/* === pages/campaign.css === */
/* ============================================
   SECTION: CAMPAIGN
   ============================================ */
.campaign-split {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding: 0.5rem 0;
}

.campaign-split--single {
  max-width: 100%;
}

@media screen and (min-width: 900px) {
  .campaign--split .campaign-split {
    grid-template-columns: 1fr minmax(320px, 504px);
    gap: 3rem;
    padding: 1rem 0;
  }

  .campaign--split .campaign-content {
    padding-right: 1rem;
  }

  .campaign--split .campaign-embed {
    position: sticky;
    top: 8rem;
    padding-left: 0.5rem;
  }
}

.campaign-content {
  width: 100%;
  min-width: 0;
}

.campaign-content .section-desc {
  margin-top: 1.5rem;
  text-align: left;
}

.campaign-embed__wrapper {
  position: relative;
  width: 100%;
  max-width: 504px;
  margin: 0 auto;
  padding: 0.75rem;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #000000;
}

.campaign-embed__wrapper iframe {
  display: block;
  width: 100%;
  min-height: 320px;
  height: 399px;
  max-height: 80vh;
  border: 0;
}

@media screen and (max-width: 899px) {
  .campaign-embed {
    order: 1; /* text first, then embed when stacked */
  }
}

@media screen and (max-width: 768px) {
  .campaign-split {
    gap: 0.75rem;
  }

  .campaign-embed__wrapper {
    max-width: 100%;
    padding: 0.5rem;
  }

  .campaign-embed__wrapper iframe {
    min-height: 220px;
    height: 260px;
    max-height: 50vh;
  }
}

@media screen and (max-width: 480px) {
  .campaign-embed__wrapper {
    padding: 0.35rem;
  }

  .campaign-embed__wrapper iframe {
    min-height: 180px;
    height: 220px;
    max-height: 45vh;
  }
}


/* === pages/momentum.css === */
/* ============================================
   MOMENTUM SECTION & PARTNERS
   ============================================ */
.momentum-section {
  width: 100%;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--gray-200);
}

.momentum-intro {
  margin-bottom: 3rem;
}

@media screen and (max-width: 768px) {
  .momentum-intro {
    margin-bottom: 1rem;
  }
}

.momentum-intro .section-title {
  margin-bottom: 1rem;
}

.momentum-intro .section-desc {
  max-width: 900px;
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
  }
}

.partner-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .partner-card {
    padding: 2rem 1.5rem;
  }
}

/* Homepage Traction: partners flagged as linking AI resources — subtle backdrop + hint */
.partner-card--ai-resources {
  background: var(--white);
}

a.partner-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.partner-card__ai-hint {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-900);
  line-height: 1.2;
}

/* Dissolve white logo backgrounds into the green-tinted card */
.partner-card--ai-resources .partner-logo__img {
  mix-blend-mode: multiply;
}

.partner-card--ai-resources[data-ai-url] {
  cursor: pointer;
}


.partner-card--hidden {
  display: none !important;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.partner-card:hover::before {
  transform: scaleX(1);
}

.partner-logo {
  margin-bottom: 1.25rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  flex-shrink: 0;
}

.partner-card--dummy {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: none;
  background: var(--gray-50);
  transition: all 0.3s ease;
}

.partner-card--dummy:hover {
  background: var(--green-50);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.partner-card--dummy .partner-logo {
  color: var(--gray-400);
}

.partner-card--dummy:hover .partner-logo {
  color: var(--green-600);
}

.partner-card--dummy h3 {
  color: var(--gray-600);
}

.partner-card--dummy:hover h3 {
  color: var(--green-700);
}

.partner-logo__img {
  display: block;
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: var(--transition);
}

/* Hide broken images in partner logos */
.partner-logo__img.is-broken {
  display: none !important;
}

.partner-logo__placeholder {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border-radius: 0;
  border: 2px dashed var(--gray-300);
  transition: var(--transition);
}

.partner-card:hover .partner-logo__placeholder {
  background: var(--green-50);
  border-color: var(--green-300);
}

.partner-logo__placeholder-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.partner-card:hover .partner-logo__placeholder-text {
  color: var(--green-600);
}

.partners-reveal-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--green-600);
  color: var(--green-700);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.partners-reveal-btn:hover {
  background: var(--green-600);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.partners-reveal-btn svg {
  transition: transform 0.3s ease;
}

.partners-reveal-btn.active svg {
  transform: rotate(180deg);
}

.partner-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  min-height: calc(1.3em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.partner-stats {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.5;
  min-height: calc(1.5em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

/* By theme links (Toolkit – badge + label), equal width across container */
.themes-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.theme-link {
  flex: 1 1 0;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: none;
  border-radius: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition);
  color: var(--gray-800);
  text-decoration: none;
}

.theme-link__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  line-height: 0;
}

.theme-link__badge-img {
  display: block;
  max-width: 100%;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Hide broken images in theme links */
.theme-link__badge-img.is-broken {
  display: none !important;
}

/* When a Customizer image is present but fails to load, show letter fallback */
.theme-link__badge:has(.theme-link__badge-img:not(.is-broken)) .theme-link__badge-placeholder--img-fallback {
  display: none !important;
}

.theme-link__badge-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theme-link__label {
  display: block;
}

@media screen and (max-width: 768px) {
  .themes-links {
    flex-wrap: nowrap;
    gap: 0.4rem;
  }

  .theme-link {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.55rem;
    gap: 0.35rem;
  }

  .theme-link__badge {
    min-height: 0;
  }

  .theme-link__badge-img {
    max-height: 64px;
  }
}

/* ── Partner card responsive (migrated from responsive.css) ── */

@media screen and (max-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }


  .partner-card {
    padding: 1rem 0.75rem;
  }

  .partner-card h3 {
    font-size: 0.7rem;
    margin-bottom: 0.35rem;
    /* min-height only — line-clamp handles truncation, fixed height clips tall-glyph text */
    min-height: calc(1.2em * 2);
  }

  .partner-stats {
    font-size: 0.65rem;
    line-height: 1.35;
    min-height: calc(1.35em * 2);
  }

  .partner-logo {
    min-height: 44px;
    margin-bottom: 0.5rem;
  }

  .partner-logo__img {
    max-height: 44px;
  }

  .partner-logo__placeholder {
    height: 44px;
  }
}

@media screen and (max-width: 480px) {
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  /* Visibility past the first N partners is controlled by .partner-card--hidden + JS
   * (Show more / less). Do not use nth-child display:none here — it breaks the reveal
   * on small phones because !important wins over toggled classes. */

  .partner-card {
    padding: 0.75rem 0.5rem;
  }

  .partner-card h3 {
    font-size: 0.7rem;
  }

  .partner-stats {
    font-size: 0.65rem;
  }

  .partner-logo {
    min-height: 36px;
    margin-bottom: 0.35rem;
  }

  .partner-logo__img {
    max-height: 36px;
  }

  .partner-logo__placeholder {
    height: 36px;
  }
}

/* === pages/themes.css === */
/* ============================================
   SECTION: THEMES
   ============================================ */
#themes.section {
  padding-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 2rem;
}

.theme-card {
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  cursor: pointer;
}

.theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.theme-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.3) 100%);
  opacity: 0;
  transition: var(--transition);
}

.theme-card:hover img {
  transform: scale(1.08);
}

.theme-card:hover::after {
  opacity: 1;
}


/* === pages/aim.css === */
/* ============================================
   SECTION: AIM — single column on phone; 2-col from tablet up
   ============================================ */

.aims-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
}

.aim-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: -1px 0 0 -1px;
}

.aim-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.02em;
  min-width: 1.75rem;
  padding-top: 0.15rem;
}

.aim-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--gray-200);
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Mobile: show first 3 aims; expand control reveals the rest */
.aims-expand-wrap {
  display: none;
}

/* Viewport-wide: many phones/tablets report >768px CSS width — collapse until large desktop */
@media (max-width: 1024px) {
  .aims-list:not(.aims-list--expanded) .aim-item:nth-child(n + 4) {
    display: none;
  }

  .aims-expand-wrap {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
  }

  .aims-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55rem 1.35rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
  }

  .aims-expand:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
  }

  .aims-expand:focus {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 3px;
  }
}

/* ── Tablet / desktop: two-column grid + roomier type ───────────────────── */
@media (min-width: 769px) {
  .aims-list {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;
  }

  .aim-item {
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .aim-num {
    font-size: 2rem;
    min-width: 3rem;
    padding-top: 0.05rem;
  }

  .aim-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }
}

/* Wide screens only: show all aims without expand control */
@media (min-width: 1025px) {
  .aims-expand-wrap {
    display: none !important;
  }
}

/* === pages/toolkit.css === */
/* ============================================
   SECTION: TOOLKIT
   ============================================ */

#free-resources-section .toolkit-free-resources--section {
  margin-top: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-200);
}

#free-resources-section .resources-grid {
  margin-top: 1.25rem;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 100%;
}

.toolkit-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 1.75rem;
  transition: var(--transition);
  min-width: 0;
  /* allow grid item to shrink below content size */
  overflow: hidden;
}

.toolkit-card__image-wrap {
  margin: -1.75rem -1.75rem 1rem -1.75rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--gray-100);
}

.toolkit-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.toolkit-card__image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

.toolkit-card__image-placeholder-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  font-family: var(--font-display);
}

.toolkit-card:hover {
  border-color: var(--green-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Toolkit card as link (e.g. Latest Newsletter) */
a.toolkit-card.toolkit-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

a.toolkit-card.toolkit-card--link:hover {
  color: inherit;
}

/* LinkedIn post card (front page) */
#linkedin-post .linkedin-card-wrapper {
  max-width: 560px;
  margin-top: 2rem;
}

.linkedin-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.linkedin-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  color: inherit;
}

.linkedin-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: #0a66c2;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.linkedin-card__icon svg {
  width: 26px;
  height: 26px;
}

.linkedin-card__content {
  flex: 1;
  min-width: 0;
}

.linkedin-card__title {
  font-size: 1.125rem;
  margin: 0 0 0.35em;
  font-family: var(--font-display);
}

.linkedin-card__desc {
  font-size: 1rem;
  color: var(--gray-700);
  margin: 0 0 0.75em;
  line-height: 1.5;
}

.linkedin-card__cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-600);
}

.linkedin-card:hover .linkedin-card__cta {
  color: var(--green-700);
}

.toolkit-card .toolkit-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Icons removed from toolkit cards */
.toolkit-card .toolkit-icon {
  display: none;
}

.toolkit-card h3 {
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

.toolkit-card .section-desc {
  text-align: left;
  max-width: none;
}

/* Toolkit cards: 3 in a row on mobile, auto on desktop */
@media screen and (max-width: 768px) {
  .toolkit-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .toolkit-card {
    padding: 0.6rem;
  }

  .toolkit-card__image-wrap {
    margin: -0.6rem -0.6rem 0.5rem -0.6rem;
  }

  .toolkit-card h3 {
    font-size: 0.7rem;
    text-align: left;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.4em;
  }

  .toolkit-card .section-desc {
    font-size: 0.7rem;
    text-align: left;
    line-height: 1.35;
  }
}

@media screen and (max-width: 480px) {
  .toolkit-grid {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .toolkit-card {
    padding: 0.5rem;
  }

  .toolkit-card__image-wrap {
    margin: -0.5rem -0.5rem 0.4rem -0.5rem;
  }

  .toolkit-card h3 {
    font-size: 0.65rem;
    min-height: 2.4em;
  }

  .toolkit-card .section-desc {
    font-size: 0.65rem;
  }
}

/* Mid-range: 2-column until auto-fit kicks in (~900px+) */
@media screen and (min-width: 769px) and (max-width: 900px) {
  .toolkit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Display board styles → components/display-board.css */


/* === pages/get-involved.css === */
/* ============================================
   SECTION: GET INVOLVED / FORM
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-desc {
  margin-top: 1rem;
}

.pledge-counter {
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--gray-200);
  background: var(--white);
}

.pledge-counter__title {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.pledge-counter__value {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gray-900);
}

.pledge-counter__target {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.pledge-counter__bar {
  margin-top: 0.65rem;
  height: 10px;
  background: var(--gray-100);
  overflow: hidden;
}

.pledge-counter__bar-fill {
  display: block;
  height: 100%;
  background: var(--green-600);
  transition: width 0.35s ease;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  padding: 2.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

/* Exclude checkbox/radio so they keep normal size and remain clickable */
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 16px;
  /* Optimized for mobile to prevent auto-zoom on iOS */
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  /* Reset for Safari mobile */
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234b5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-group input:not([type="checkbox"]):not([type="radio"]):focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .contact-checklist {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.contact-checklist .form-label-optional {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.contact-checklist .checklist-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Override .form-group label so checklist rows stay horizontal and readable */
.contact-checklist label.checklist-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  padding: 0.5rem 0;
  margin-bottom: 0;
  transition: color 0.2s;
  /* Minimum touch target for checkbox row */
  min-height: 2.75rem;
}

.contact-checklist label.checklist-option:hover {
  color: var(--green-700);
}

.contact-checklist .checklist-option input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  margin: 0;
  cursor: pointer;
  accent-color: var(--green-600);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.contact-checklist .checklist-option .checklist-option__text {
  flex: 1;
  line-height: 1.4;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--green-600);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media screen and (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Mobile: larger touch targets for checklist so tick boxes are easy to tap */
  .contact-checklist label.checklist-option {
    min-height: 3rem;
    padding: 0.625rem 0;
    gap: 0.875rem;
  }

  .contact-checklist .checklist-option input[type="checkbox"] {
    width: 1.5rem;
    height: 1.5rem;
    min-width: 1.5rem;
    min-height: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .contact-form {
    padding: 1.25rem;
  }

  /* Checkbox size already 1.5rem from 768px block — no repeat needed */
  .contact-checklist label.checklist-option {
    min-height: 3rem;
    font-size: 1rem;
  }
}
/* === pages/resources-archive.css === */
/* ============================================
   RESOURCES ARCHIVE – FILTERS (bigger, more appealing)
   ============================================ */
.resource-filters {
  margin-bottom: 2.5rem;
}

.resource-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 0;
}

.resource-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.resource-filter-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-600);
  white-space: nowrap;
}

.resource-filter-select {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  min-width: 140px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378818f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1rem;
}

.resource-filter-select:hover {
  border-color: var(--gray-300);
}

.resource-filter-select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.resource-filter-group--submit {
  align-items: flex-start;
}

.resource-filter-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-600);
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.resource-filter-submit:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Shared: Resources & From partners – card grid (same layout for both) */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  max-width: 100%;
  align-items: start;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
  position: relative;
  /* allow grid item to shrink */
}

/* Placeholder card in #free-resources: same grid as activity cards, links to archive */
.resource-card--placeholder {
  display: flex;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-style: dashed;
  border-color: var(--gray-300);
  background: var(--gray-50);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  align-self: stretch;
}

.resource-card--placeholder:hover {
  border-color: var(--green-500);
  background: var(--green-50);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.resource-card__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.resource-card__placeholder-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
}

.resource-card--placeholder:hover .resource-card__placeholder-title {
  color: var(--green-700);
}

.resource-card__placeholder-desc {
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media screen and (min-width: 769px) {
  .resource-card--placeholder {
    grid-column: 1 / -1;
    width: 100%;
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    justify-self: stretch;
    align-self: start;
    padding: 1rem;
    border: none;
    background: var(--gray-900, #111);
    color: var(--white, #fff);
  }

  .resource-card--placeholder:hover {
    border: none;
    background: #000;
    transform: none;
    box-shadow: none;
  }

  .resource-card--placeholder .resource-card__placeholder-title {
    font-size: 1.05rem;
    color: var(--white, #fff);
  }

  .resource-card--placeholder:hover .resource-card__placeholder-title {
    color: var(--white, #fff);
  }

  .resource-card--placeholder .resource-card__placeholder-desc {
    font-size: 0.9rem;
    color: var(--gray-300, #d4d4d4);
  }

  .tools-grid .resource-card--placeholder {
    grid-column: auto;
    width: 100%;
    min-height: 100%;
    padding: 1.5rem;
  }
}

.resource-card__image-link {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  pointer-events: auto;
}

/* Free and curated resource cards: image/placeholder area 40% smaller (60% of default height) */
.resource-card--download .resource-card__image-link,
.resource-card--external .resource-card__image-link {
  aspect-ratio: 16/6;
}

.resource-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder “hero” tile: dark gradient variant (charcoal → black + glints + bottom vignette) */
.resource-card__image-placeholder,
.resource-card__image-placeholder--dark-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 28%),
    radial-gradient(ellipse 125% 85% at 92% 6%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 100% 75% at 6% 94%, rgba(255, 255, 255, 0.04) 0%, transparent 46%),
    linear-gradient(
      148deg,
      #646464 0%,
      #505050 10%,
      #3d3d3d 24%,
      #2a2a2a 42%,
      #1a1a1a 58%,
      #101010 72%,
      #050505 88%,
      #000000 100%
    ),
    linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.5) 100%);
  background-size: cover, cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
}

.resource-card__image-placeholder-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.98;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.75), 0 0 24px rgba(0, 0, 0, 0.35);
}

.resource-card__image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
  /* Ensure overlay doesn't block clicks on parent link */
}

.resource-card__image-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.resource-card__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.4rem;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.resource-card__pill--org {
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
}

.resource-card__pill--type {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-900);
}

/* Stacked session-length label: short slot + time (avoids awkward wraps on narrow cards) */
.resource-card__pill--duration {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.06rem;
  line-height: 1.12;
  text-align: center;
  min-width: 0;
}

.resource-card__pill-slot,
.resource-card__pill-time {
  display: block;
  white-space: nowrap;
  max-width: 100%;
}

.resource-card__pill-time {
  font-size: 0.88em;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.resource-card__pill--theme {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-900);
}

.resource-card__pill--safe {
  background: var(--badge-safe);
  color: var(--badge-black);
}

.resource-card__pill--smart {
  background: var(--badge-smart);
  color: var(--badge-black);
}

.resource-card__pill--creative {
  background: var(--badge-creative);
  color: var(--badge-black);
}

.resource-card__pill--responsible {
  background: var(--badge-responsible);
  color: var(--badge-black);
}

.resource-card__pill--future {
  background: var(--badge-future);
  color: var(--badge-black);
}

.resource-card__image-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card__body {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

.resource-card__org {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.resource-card__org a {
  color: inherit;
}

.resource-card__org a:hover {
  color: var(--green-600);
}

.resource-card__meta {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
}

.resource-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.resource-card__title a {
  color: inherit;
  text-decoration: none;
}

.resource-card__title a:hover {
  color: var(--green-600);
}

/* Excerpt always smaller than title (applies with or without .section-desc class) */
.resource-card__excerpt,
.resource-card__excerpt.section-desc {
  text-align: left;
  max-width: none;
  margin-top: 0.75rem;
  font-size: 0.95rem; /* smaller than title (1.15rem) */
}


#partner-resources .resource-card__meta {
  font-size: 0.7rem;
  margin-bottom: 0.35rem;
}

.resource-card__action {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.resource-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-600);
  cursor: pointer;
  pointer-events: auto;
}

.resource-card__link:hover {
  color: var(--green-700);
}

/* Ensure links are always clickable, even if href is empty (shouldn't happen, but safety) */
.resource-card__link[href]:not([href=""]) {
  cursor: pointer;
  pointer-events: auto;
}

.resource-card__link[href=""] {
  cursor: not-allowed;
  pointer-events: none;
}

.resource-bookmark-btn {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  padding: 0.3rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.resource-bookmark-btn[aria-pressed="true"] {
  border-color: var(--green-600);
  color: var(--green-700);
  background: var(--green-50);
}

.saved-resources-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 92vw);
  height: 100vh;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  z-index: 9999;
  padding: 1rem;
  overflow-y: auto;
}

.saved-resources-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.saved-resources-panel__close {
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.saved-resources-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.saved-resources-panel__list a {
  color: var(--green-700);
  font-size: 0.9rem;
}

/* Resources archive: mobile-friendly – less padding, content in columns */
@media screen and (max-width: 768px) {
  .resources-archive .section.pt-100 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .resources-archive .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Resources grid: single column on mobile for readable text */
@media screen and (max-width: 640px) {
  .resources-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Place the placeholder card side-by-side with the last card if it's the only odd one */
  .resources-grid > .resource-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .resource-card__body {
    padding: 0.5rem 0.4rem;
  }

  .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
    line-height: 1;
  }

  .resource-card__image-link {
    aspect-ratio: 16/10;
  }

  .resource-card__image-placeholder-text {
    font-size: 1rem;
  }

  .resource-card__image-title {
    font-size: 0.55rem;
    line-height: 1.1;
  }

  .resource-card__title {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .resource-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .resource-card__excerpt.section-desc {
    font-size: 0.65rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .resource-card__action {
    margin-top: 0.25rem;
  }

  .resource-card__link {
    font-size: 0.65rem;
  }
}

/* Resources archive + featured (handpicked): same filter-card setup as home #free-resources, mobile only */
@media screen and (max-width: 768px) {
  .resources-archive .resources-grid,
  .featured-resources-archive .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .resources-archive .resource-card,
  .featured-resources-archive .resource-card {
    min-width: 0;
  }

  .resources-archive .resource-card__image-link,
  .featured-resources-archive .resource-card__image-link {
    aspect-ratio: 16/10;
  }

  .resources-archive .resource-card__image-placeholder-text,
  .featured-resources-archive .resource-card__image-placeholder-text {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  .resources-archive .resource-card__image-overlay,
  .featured-resources-archive .resource-card__image-overlay {
    padding: 0.35rem;
  }

  .resources-archive .resource-card__image-top,
  .featured-resources-archive .resource-card__image-top {
    gap: 0.25rem;
  }

  .resources-archive .resource-card__pill,
  .featured-resources-archive .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
    line-height: 1;
  }

  .resources-archive .resource-card__image-title,
  .featured-resources-archive .resource-card__image-title {
    font-size: 0.5rem;
    line-height: 1.1;
  }

  .resources-archive .resource-card__body,
  .featured-resources-archive .resource-card__body {
    padding: 0.5rem 0.4rem;
  }

  .resources-archive .resource-card__title,
  .featured-resources-archive .resource-card__title {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  .resources-archive .resource-card__title a,
  .featured-resources-archive .resource-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .resources-archive .resource-card__excerpt,
  .resources-archive .resource-card__excerpt.section-desc,
  .featured-resources-archive .resource-card__excerpt,
  .featured-resources-archive .resource-card__excerpt.section-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .resources-archive .resource-card__action,
  .featured-resources-archive .resource-card__action {
    margin-top: 0.2rem;
  }

  .resources-archive .resource-card__link,
  .featured-resources-archive .resource-card__link {
    font-size: 0.55rem;
  }
}

@media screen and (max-width: 480px) {
  .resources-archive .resources-grid,
  .featured-resources-archive .resources-grid {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .resources-archive .resource-card__image-placeholder-text,
  .featured-resources-archive .resource-card__image-placeholder-text {
    font-size: 0.55rem;
  }

  .resources-archive .resource-card__body,
  .featured-resources-archive .resource-card__body {
    padding: 0.4rem 0.35rem;
  }

  .resources-archive .resource-card__title,
  .featured-resources-archive .resource-card__title {
    font-size: 0.55rem;
  }

  .resources-archive .resource-card__excerpt,
  .resources-archive .resource-card__excerpt.section-desc,
  .featured-resources-archive .resource-card__excerpt,
  .featured-resources-archive .resource-card__excerpt.section-desc {
    font-size: 12px;
    margin-bottom: 0.2rem;
  }

  .resources-archive .resource-card__link,
  .featured-resources-archive .resource-card__link {
    font-size: 0.5rem;
  }

  .resources-archive .resource-card__image-overlay,
  .featured-resources-archive .resource-card__image-overlay {
    padding: 0.25rem;
  }

  .resources-archive .resource-card__pill,
  .featured-resources-archive .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
  }

  .resources-archive .resource-card__image-placeholder-text,
  .featured-resources-archive .resource-card__image-placeholder-text {
    font-size: 0.5rem;
  }
}

/* Free Resources (toolkit): three activity cards in one row on mobile */
@media screen and (max-width: 768px) {
  #free-resources .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }

  #free-resources .resource-card--placeholder {
    align-self: stretch;
    clip-path: none;
    background: var(--gray-50);
    border-width: 2px;
  }

  #free-resources .resource-card--placeholder:hover {
    background: var(--green-50);
    box-shadow: none;
    transform: none;
  }

  #free-resources .resource-card--placeholder .resource-card__placeholder-title {
    font-size: 0.7rem;
  }

  #free-resources .resource-card--placeholder .resource-card__placeholder-desc {
    font-size: 0.55rem;
  }

  #free-resources .resource-card {
    min-width: 0;
  }

  #free-resources .resource-card__image-link {
    aspect-ratio: 16/10;
    /* Fixed: Increased height to prevent overlap */
  }

  #free-resources .resource-card__image-placeholder-text {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  #free-resources .resource-card__image-overlay {
    padding: 0.35rem;
  }

  #free-resources .resource-card__image-top {
    gap: 0.25rem;
  }

  #free-resources .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
    line-height: 1;
  }

  #free-resources .resource-card__image-title {
    font-size: 0.5rem;
    line-height: 1.1;
  }

  #free-resources .resource-card__body {
    padding: 0.5rem 0.4rem;
  }

  #free-resources .resource-card__title {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  #free-resources .resource-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #free-resources .resource-card__excerpt.section-desc {
    font-size: 0.55rem;
    line-height: 1.3;
    margin-top: 0.4rem;
    margin-bottom: 0.25rem;
    /* Fixed: Added small margin instead of inheriting large global section-desc margin */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #free-resources .resource-card__action {
    margin-top: 0.2rem;
    /* Adjusted: Closer to description */
  }

  #free-resources .resource-card__link {
    font-size: 0.78rem;
  }
}

@media screen and (max-width: 480px) {
  #free-resources .resources-grid {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  #free-resources .resource-card__image-placeholder-text {
    font-size: 0.55rem;
  }

  #free-resources .resource-card__body {
    padding: 0.4rem 0.35rem;
  }

  #free-resources .resource-card__title {
    font-size: 0.55rem;
  }

  #free-resources .resource-card__excerpt.section-desc {
    font-size: 0.5rem;
    margin-bottom: 0.2rem;
  }

  #free-resources .resource-card__link {
    font-size: 0.78rem;
  }

  /* Fixed: Adjust pills and placeholder text to prevent overlap on small mobile */
  #free-resources .resource-card__image-overlay {
    padding: 0.25rem;
  }

  #free-resources .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
  }

  #free-resources .resource-card__image-placeholder-text {
    font-size: 0.5rem;
    transform: translateY(2px);
    /* Slightly shift text down to avoid pills */
  }
}

/* Partner Resources: same three-in-a-row compact layout on mobile, match AI Awareness Activities */
@media screen and (max-width: 768px) {
  #partner-resources .section-title {
    font-size: 1.1rem;
  }

  #partner-resources .section-desc {
    font-size: 1.01rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  #partner-resources .resources-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-top: 1rem;
  }

  #partner-resources .resource-card {
    min-width: 0;
  }

  #partner-resources .resource-card--placeholder {
    align-self: stretch;
    clip-path: none;
    border-width: 2px;
  }

  #partner-resources .resource-card--placeholder .resource-card__placeholder-title {
    font-size: 0.7rem;
  }

  #partner-resources .resource-card--placeholder .resource-card__placeholder-desc {
    font-size: 0.55rem;
  }

  #partner-resources .resource-card__image-link {
    aspect-ratio: 16/10;
    /* Fixed: Increased height to prevent overlap */
  }

  #partner-resources .resource-card__image-placeholder-text {
    font-size: 0.6rem;
    letter-spacing: 0.04em;
  }

  #partner-resources .resource-card__image-overlay {
    padding: 0.35rem;
  }

  #partner-resources .resource-card__image-top {
    gap: 0.25rem;
  }

  #partner-resources .resource-card__pill {
    padding: 0.1rem 0.2rem;
    font-size: 0.45rem;
    line-height: 1;
  }

  /* Mobile: Hide org name and activity title in black box overlay */
  #partner-resources .resource-card__pill--org {
    display: none !important;
  }

  #partner-resources .resource-card__image-title {
    display: none !important;
  }

  #partner-resources .resource-card__body {
    padding: 0.5rem 0.4rem;
  }

  #partner-resources .resource-card__title {
    font-size: 0.6rem;
    margin-bottom: 0.25rem;
  }

  #partner-resources .resource-card__title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #partner-resources .resource-card__meta {
    font-size: 0.5rem;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }


  #partner-resources .resource-card__action {
    margin-top: 0.35rem;
  }

  #partner-resources .resource-card__link {
    font-size: 0.78rem;
  }

  #partner-resources .duration-badge {
    font-size: 0.5rem;
    padding: 0.1rem 0.25rem;
    margin-bottom: 0.2rem;
  }
}

@media screen and (max-width: 480px) {
  #partner-resources .resources-grid {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  #partner-resources .resource-card__image-placeholder-text {
    font-size: 0.55rem;
  }

  /* Small mobile: Keep org name and activity title hidden */
  #partner-resources .resource-card__pill--org {
    display: none !important;
  }

  #partner-resources .resource-card__image-title {
    display: none !important;
  }

  #partner-resources .resource-card__body {
    padding: 0.4rem 0.35rem;
  }

  #partner-resources .resource-card__title {
    font-size: 0.55rem;
  }

  #partner-resources .resource-card__meta {
    font-size: 0.45rem;
  }


  #partner-resources .resource-card__link {
    font-size: 0.78rem;
  }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.featured-from-orgs {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--gray-200);
}

.featured-from-orgs .section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.featured-from-orgs .section-desc {
  margin-bottom: 1.5rem;
}

.featured-from-orgs__link {
  margin-top: 1.5rem;
}

.featured-from-orgs__link a {
  font-weight: 600;
  color: var(--green-600);
}

.featured-from-orgs__link a:hover {
  color: var(--green-700);
}

.featured-from-orgs--teaser .section-desc {
  margin-bottom: 1rem;
}

.featured-from-orgs__cta {
  margin: 0;
}

/* Same responsive button as Apply filters – anchor inherits .resource-filter-submit, no text underline */
.featured-from-orgs__cta-btn {
  text-decoration: none;
}

@media (max-width: 640px) {
  .resource-filter-form {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .resource-filter-group {
    min-width: 0;
  }

  .resource-filter-label {
    font-size: 0.65rem;
  }

  .resource-filter-select {
    min-width: 0;
    width: 100%;
    padding: 0.5rem 2rem 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

  .resource-filter-submit {
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
  }

  .resource-filter-group--submit .resource-filter-submit {
    width: 100%;
  }

  .featured-from-orgs__cta .resource-filter-submit {
    width: 100%;
  }
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-submit:hover svg {
  transform: translateX(3px);
}

/* ============================================
   SINGLE RESOURCE (single-resource.php)
   Full-width layout - styles moved to single-resource.css
   ============================================ */

/* Clear fixed header on single resource: first section needs enough top padding on mobile */
@media (max-width: 768px) {
  .single-resource .section.pt-100 {
    padding-top: 5.5rem; /* clears 72px fixed header */
  }
}

@media (max-width: 782px) {
  .admin-bar .single-resource .section.pt-100 {
    padding-top: 7.5rem; /* clears 72px header + 46px admin bar */
  }
}

.single-resource .resource-activity-card {
  padding: 1rem;
}

.single-resource .resource-activity-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.single-resource .resource-activity-card figure.resource-activity-figure {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 2rem;
  margin-bottom: 2rem;
  max-width: none;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  max-height: 520px;
}

.single-resource .resource-activity-card figure.resource-activity-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.single-resource .entry-content.entry-content--resource {
  font-size: 1.05rem;
  line-height: 1.8;
}

.single-resource .resource-sections.resource-sections--rows {
  margin-top: 2.5rem;
}

.single-resource .resource-section.mt-2rem {
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .single-resource .resource-activity-card {
    padding: 0.75rem;
  }

  .single-resource .resource-activity-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .single-resource .resource-activity-title {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

  .single-resource .resource-activity-footer {
    gap: 0.5rem;
  }

  .single-resource .resource-footer-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }
}

/* ── Mobile: 2-column resource card grid ── */
@media screen and (max-width: 640px) {
  #free-resources .resources-grid,
  #partner-resources .resources-grid,
  .resources-archive .resources-grid,
  .featured-resources-archive .resources-grid,
  .resources-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
}
/* === pages/single-resource.css === */
/* SINGLE RESOURCE */
/* ============================================
   SINGLE RESOURCE TEMPLATE
   Activity card, structured content, instructions, definitions, footer
   ============================================ */

/* Activity card layout */
.resource-activity-card {
  background: var(--resource-card-bg, var(--white));
  border-radius: 0;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  width: 100%;
  /* Prevent long titles / URLs from forcing horizontal scroll (esp. mobile) */
  min-width: 0;
  overflow-x: clip;
}

/* Mobile: full-width with no padding */
@media screen and (max-width: 767px) {
  .single-resource .section {
    padding-left: 0;
    padding-right: 0;
  }

  .resource-activity-card {
    padding: 1.5rem 1rem;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }
}

/* Desktop: centered container with standard padding */
@media screen and (min-width: 768px) {
  .single-resource .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .resource-activity-card {
    max-width: var(--container-width, min(1200px, 90vw));
    margin-left: auto;
    margin-right: auto;
    padding: 2rem;
  }
}

.resource-activity-header {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gray-900);
  min-width: 0;
}

.resource-activity-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  min-width: 0;
}

.resource-activity-title-text {
  flex: 1 1 12rem;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Theme-specific title colours — dark enough for AA contrast */
[data-theme="safe"]        .resource-activity-title,
[data-theme="safe"]        .resource-section__title { color: #3b82f6 !important; } /* blue-500   */
[data-theme="smart"]       .resource-activity-title,
[data-theme="smart"]       .resource-section__title { color: #f97316 !important; } /* orange-500 */
[data-theme="creative"]    .resource-activity-title,
[data-theme="creative"]    .resource-section__title { color: #8b5cf6 !important; } /* violet-500 */
[data-theme="responsible"] .resource-activity-title,
[data-theme="responsible"] .resource-section__title { color: #22c55e !important; } /* green-500  */
[data-theme="future"]      .resource-activity-title,
[data-theme="future"]      .resource-section__title { color: #ec4899 !important; } /* pink-500   */

.resource-activity-title-badge {
  display: inline-flex;
  margin: 0;
  flex-shrink: 0;
}

.resource-activity-title-badge .principle-badge__img {
  display: block;
  max-height: 2.75rem;
  width: auto;
  max-width: min(7rem, 28vw);
  object-fit: contain;
}

.resource-activity-title-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  border-radius: 0;
  background: var(--resource-dot-color, var(--accent-green));
}

.resource-activity-overview {
  margin: 0 0 1rem 0;
  font-size: 0.9em;
  color: var(--text-muted, var(--gray-500));
  line-height: 1.7;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.resource-activity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

/* Post body: keep editor content within the card (images, embeds, long URLs) */
.single-resource .entry-content.entry-content--resource {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-resource .entry-content.entry-content--resource img,
.single-resource .entry-content.entry-content--resource video {
  max-width: 100%;
  height: auto;
}

.single-resource .entry-content.entry-content--resource iframe,
.single-resource .entry-content.entry-content--resource embed {
  max-width: 100%;
}

.resource-list--resources a {
  overflow-wrap: anywhere;
  color: var(--accent-blue, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
}

.resource-list--resources a:hover {
  color: var(--accent-blue-dark, #1d4ed8);
  text-decoration-thickness: 2px;
}

.resource-activity-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.6rem 0 0 0;
}

.resource-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

.resource-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.65;
  border-radius: 2px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.resource-tag--theme {
  background: var(--gray-900);
  color: var(--white);
  border-color: var(--gray-900);
}

/* Theme-specific badge colors */
.resource-tag--safe {
  background: var(--badge-safe);
  color: var(--badge-black);
}

.resource-tag--smart {
  background: var(--badge-smart);
  color: var(--badge-black);
}

.resource-tag--creative {
  background: var(--badge-creative);
  color: var(--badge-black);
}

.resource-tag--responsible {
  background: var(--badge-responsible);
  color: var(--badge-black);
}

.resource-tag--future {
  background: var(--badge-future);
  color: var(--badge-black);
}

/* Section headings with icons */
.resource-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--heading-color, inherit);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.25;
}

.resource-section__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  flex-shrink: 0;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
}

.resource-section__icon--info,
.resource-section__icon--target,
.resource-section__icon--list,
.resource-section__icon--chat,
.resource-section__icon--lightbulb {
  background: var(--gray-100);
  color: var(--gray-400);
  border-radius: 2px;
}

.resource-section__icon--info::before {
  content: "i";
  font-style: italic;
  font-family: serif;
}

.resource-section__icon--target::before {
  content: "◎";
  font-size: 0.75rem;
}

.resource-section__icon--list::before {
  content: "≡";
  font-size: 1rem;
  font-weight: 600;
}

.resource-section__icon--chat::before {
  content: "\201C";
  font-size: 1.125rem;
  font-family: serif;
}

.resource-section__icon--lightbulb::before {
  content: "◈";
  font-size: 0.875rem;
}

/* Structured content sections */
.resource-sections {
  border-top: none;
  padding-top: 0;
}

#resource-content-sections {
  font-size: 0.92em;
  line-height: 1.7;
}

.resource-sections-row--prep-only {
  font-size: 0.92em;
  line-height: 1.7;
}

.resource-sections-row--prep-only .resource-sections-row {
  padding: 0 0 1.25rem;
  border-bottom: 2px solid var(--gray-900);
}

.resource-sections-row--prep-only .resource-section__title {
  font-size: clamp(0.875rem, 2.4vw, 1.125rem);
  font-weight: 800;
}

.resource-sections-row--prep-only .resource-list li {
  margin-bottom: 0.625rem;
}

.resource-sections-row--prep-only .resource-section.mt-2rem {
  margin-top: 0;
}

.resource-sections--rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

/* Consistent spacing between preparation and content sections */
.resource-sections-row--prep-only + #resource-content-sections {
  margin-top: 0;
  padding-top: 0;
}

.resource-sections-row {
  display: grid;
  /* Same two-column track for every row so gutters line up (do not mix with 2fr/3fr on one row only). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 2px solid var(--gray-900);
}

.resource-sections-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.resource-sections-row:first-child {
  padding-top: 0;
}

.resource-section-cell {
  min-width: 0;
}

.resource-section-cell .resource-section {
  margin-bottom: 0;
}

.resource-sections-row--full {
  grid-template-columns: 1fr;
}

.resource-section-cell--full {
  grid-column: 1 / -1;
}

.resource-instruction-step {
  margin-bottom: 1rem;
}

.resource-instruction-duration,
.resource-instruction-ref,
.resource-instruction-student {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.8em;
  color: var(--text-muted, var(--gray-500));
}

/* Desktop: Style metadata as distinct pills */
@media screen and (min-width: 768px) {
  .resource-instruction-duration,
  .resource-instruction-ref,
  .resource-instruction-student {
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-weight: 500;
  }

  .resource-instruction-duration {
    background: var(--gray-100);
    color: var(--gray-600);
  }

  .resource-instruction-ref {
    background: var(--accent-purple-light, #f3e8ff);
    color: var(--accent-purple-dark, #6b21a8);
  }

  .resource-instruction-student {
    background: var(--accent-blue-light);
    color: var(--accent-blue-dark);
  }
}

.resource-instruction-tip {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.95em;
  font-style: italic;
  color: var(--text-muted, var(--gray-500));
}

.resource-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0;
  background: var(--aiad-border, var(--gray-200));
  color: var(--text-muted, var(--gray-500));
}

.resource-badge--ks-adapted {
  background: var(--accent-blue-light);
  color: var(--accent-blue-dark);
}

.resource-diff-label {
  font-weight: 600;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.resource-diff-label:first-of-type {
  margin-top: 0;
}

.resource-diff-content {
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 767px) {
  .resource-sections-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem 0;
  }
  
  .resource-sections-row:first-child {
    padding-top: 0;
  }

  .resource-section__title {
    font-size: clamp(0.85rem, 2.6vw, 1.05rem) !important;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .resource-section__icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    font-size: 0.75rem;
  }

  .resource-tag {
    font-size: 0.65em;
    padding: 0.15rem 0.5rem;
  }

  .resource-tag--level {
    display: none;
  }

  .resource-badge {
    display: none;
  }

  /* Restore native list markers on mobile */
  .resource-list {
    list-style: disc !important;
    padding-left: 1.5rem !important;
  }

  .resource-list li {
    padding-left: 0.25rem !important;
    display: list-item !important;
  }

  .resource-list--objectives {
    list-style: disc !important;
    padding-left: 1.5rem !important;
  }

  .resource-list--objectives li {
    display: list-item !important;
    padding-left: 0.25rem !important;
  }

  .resource-list--objectives li::before {
    display: none !important;
  }

  .resource-list--ordered,
  .resource-list--instructions {
    list-style: decimal !important;
    padding-left: 1.5rem !important;
  }

  .resource-list--instructions li {
    display: list-item !important;
    padding-left: 0.25rem !important;
  }

  .resource-list--instructions li::before {
    display: none !important;
  }
}

/* Section and list base: mobile-first, no markers by default */
.resource-section {
  margin-bottom: 2.25rem;
}

.resource-section:last-child {
  margin-bottom: 0;
}

.resource-section__subtitle {
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.resource-definitions {
  margin: 0;
}

.resource-definition {
  margin-bottom: 0;
  padding: 0.75rem 0;
  border-top: 1px solid var(--gray-100);
  position: relative;
}

.resource-definition:first-child {
  padding-top: 0;
  border-top: none;
}

.resource-definition::before {
  display: none;
}

.resource-definition dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 0.3rem;
}

.resource-definition dd {
  margin-left: 0;
  margin-bottom: 0;
  line-height: 1.65;
  color: var(--gray-700);
}

.resource-list {
  margin: 0 0 1rem;
  padding-left: 0;
  list-style: none;
}

.resource-list li {
  margin-bottom: 0.625rem;
  padding-left: 0;
}

.resource-list--objectives {
  list-style: none;
  padding-left: 0;
}
.resource-list--objectives li {
  position: relative;
}
.resource-list--objectives li::before {
  display: none;
}

.resource-list--ordered {
  list-style: none;
  padding-left: 0;
  counter-reset: resource-step;
}
.resource-list--instructions li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0.75rem;
}
.resource-list--instructions li::before {
  display: none;
}

.resource-list--prompts li::marker {
  color: var(--accent-blue);
}
.resource-list--prompts li {
  padding-left: 0.25rem;
}

.resource-list--answers li::marker {
  color: var(--accent-blue);
}

/* Desktop: add list markers and decorative ::before */
@media (min-width: 769px) {
  .resource-definition {
    padding-left: 0;
  }

  .resource-definition::before {
    display: none;
  }

  .resource-list {
    padding-left: 1.75rem;
  }

  .resource-list li {
    padding-left: 0.25rem;
  }

  .resource-list--objectives {
    padding-left: 1.5rem;
  }
  .resource-list--objectives li::before {
    display: block;
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 0;
    background: var(--gray-300);
  }

  .resource-list--instructions li {
    padding-left: 2.5rem;
  }
  .resource-list--instructions li::before {
    display: flex;
    counter-increment: resource-step;
    content: counter(resource-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0;
    background: var(--accent-purple);
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    line-height: 1.75rem;
    text-align: center;
  }
}

.resource-answers-toggle {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--green-700);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.resource-answers-toggle:focus-visible {
  outline: 2px solid var(--green-600);
  outline-offset: 2px;
}

.resource-discussion-question {
  font-weight: 500;
  margin-bottom: 0.75rem;
  padding-left: 2.5rem;
}

.resource-notes {
  line-height: 1.7;
  padding-left: 2.5rem;
}

/* Resource activity footer (Back + Download) */
.resource-activity-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-900);
}

.resource-footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
}

/* Back button */
.resource-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-back-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.resource-back-btn__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.resource-footer-btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.resource-footer-btn--secondary:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.resource-footer-btn--primary {
  background: var(--accent-purple-mid);
  color: var(--white);
}
.resource-footer-btn--primary:hover {
  background: var(--accent-purple-dark);
  color: var(--white);
}

/* Share button */
.resource-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  /* Inherits all styles from .resource-footer-btn */
}

.resource-footer-btn--share {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.resource-footer-btn--share:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.resource-share-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.resource-share-btn__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}


/* Print button */
.resource-print-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  /* Inherits all styles from .resource-footer-btn */
}

.resource-footer-btn--print {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.resource-footer-btn--print:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

.resource-print-btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.resource-print-btn__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}


/* Mobile: Hide text labels for share and print buttons, show icons only */
@media screen and (max-width: 767px) {
  .resource-activity-footer {
    gap: 0.5rem;
  }

  .resource-footer-btn {
    padding: 0.625rem;
    min-width: 44px; /* Touch target size */
  }

  .resource-share-btn__label,
  .resource-print-btn__label {
    display: none;
  }

  .resource-share-btn,
  .resource-print-btn {
    gap: 0;
    justify-content: center;
  }

  .resource-back-btn__label {
    display: none;
  }

  .resource-back-btn {
    gap: 0;
    justify-content: center;
  }

  /* Hide "Generate share image" on mobile — too long, rarely used */
  .resource-social-card-btn {
    display: none;
  }
}

/* Desktop: Show text labels for all buttons */
@media screen and (min-width: 768px) {
  .resource-share-btn__label,
  .resource-print-btn__label,
  .resource-back-btn__label {
    display: inline;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .main-navigation,
  .nav-toggle,
  .resource-activity-footer,
  .featured-from-orgs,
  .resources-theme-badges,
  footer,
  #wpadminbar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .single-resource .section.pt-100 {
    padding: 0 !important;
  }

  .resource-activity-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    max-width: 100% !important;
  }

  .resource-activity-title {
    font-size: 20pt;
    margin-bottom: 0.4rem;
  }

  .entry-content,
  .resource-sections,
  .resource-list {
    font-size: 11.5pt;
    line-height: 1.55;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    word-break: break-all;
  }

  .resource-download-link::after {
    content: " " attr(href);
    display: inline;
    font-size: 9pt;
  }
}

/* ============================================
   PRESENTATION / VIDEO PREVIEW (PPTX embed or optional video)
   ============================================ */
.resource-pptx-preview {
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.resource-pptx-preview__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem;
  background: var(--gray-900);
  color: #fff;
}

.resource-pptx-preview__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-300);
}

.resource-pptx-preview__download {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--gray-600);
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}

.resource-pptx-preview__download:hover {
  background: var(--gray-700);
  border-color: var(--gray-400);
}

/* Frame wrap — 16:9 aspect ratio container for the iframe */
.resource-pptx-preview__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--gray-100);
}

.resource-pptx-preview__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* oEmbed (YouTube, Vimeo) or block wrapper from core */
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
}

/* Cover all WP oEmbed wrapper structures: bare iframe, wp-block-embed, wp-block-embed__wrapper */
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed iframe,
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed > * > iframe,
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed > * > * > iframe {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  border: 0 !important;
}

.resource-pptx-preview__frame-wrap--embed .resource-preview-embed .wp-block-embed,
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed figure.wp-block-embed,
.resource-pptx-preview__frame-wrap--embed .resource-preview-embed .wp-block-embed__wrapper {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}

.resource-preview-video-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

@media screen and (max-width: 767px) {
  .resource-pptx-preview__toolbar {
    padding: 0.5rem 0.75rem;
  }
  .resource-pptx-preview__label {
    font-size: 0.72rem;
  }
  .resource-pptx-preview__download {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }
  .resource-pptx-preview__frame-wrap {
    min-height: 320px;
  }
}


/* ============================================
   TEACHER-OPTIMISED SECTION DESIGN
   Clean layout matching site style —
   no colour-coded backgrounds, compact steps
   ============================================ */

/* Objectives | Instructions: same grid as other two-column rows — column split must match
   row 2 (definitions | differentiation) or headings and gutters misalign. */

/* ── Section title: uppercase label ─────────────────────── */
.resource-section__title {
  font-size: clamp(0.875rem, 2.4vw, 1.125rem) !important;
  font-weight: 800 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  color: var(--gray-900) !important;
  margin-bottom: 0.875rem !important;
  line-height: 1.2 !important;
}

/* ── No colour-coded backgrounds — keep site's clean white ── */
.resource-section--preparation,
.resource-section--objectives,
.resource-section--instructions,
.resource-section--definitions,
.resource-section--differentiation,
.resource-section--extensions {
  background: transparent;
  border-left: none;
  padding: 0;
}

/* ── Preparation list: checklist style ──────────────────── */
.resource-list--preparation {
  list-style: none !important;
  padding-left: 0 !important;
}

.resource-list--preparation li {
  display: block !important;
  padding-left: 1.5rem !important;
  position: relative !important;
  margin-bottom: 0.4rem !important;
}

.resource-list--preparation li::before {
  content: "✓" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.05em !important;
  color: var(--gray-400) !important;
  font-weight: 700 !important;
  font-size: 0.9em !important;
}

/* ── Instruction steps: compact timeline ─────────────────── */
/* Remove card borders — steps flow naturally with the number badge */
.resource-list--instructions {
  padding-left: 0 !important;
  counter-reset: resource-step;
}

.resource-list--instructions li.resource-instruction-step {
  display: block !important;
  position: relative;
  padding-left: 2.5rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-right: 0 !important;
  margin-bottom: 1.1rem !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}

/* Number badge — matches existing purple style */
.resource-list--instructions li.resource-instruction-step::before {
  display: flex !important;
  counter-increment: resource-step;
  content: counter(resource-step) !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.1em !important;
  width: 1.5rem !important;
  height: 1.5rem !important;
  border-radius: 2px !important;
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.resource-instruction-action {
  display: block;
  font-weight: 500;
  line-height: 1.55;
}

/* Pills: duration, ref, student action — stay inline below action */
.resource-instruction-duration,
.resource-instruction-ref,
.resource-instruction-student {
  display: inline-block;
  margin-top: 0.3rem;
  margin-right: 0.35rem;
  font-size: 0.75em;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  color: var(--gray-600);
  background: var(--gray-100);
  vertical-align: middle;
}

.resource-instruction-ref {
  background: var(--accent-purple-light);
  color: var(--accent-purple-mid);
}

.resource-instruction-student {
  background: var(--accent-blue-light);
  color: var(--accent-blue-dark);
}

/* ── Teacher tip: subtle inline note, not a full block ───── */
.resource-instruction-tip,
.resource-list--instructions .resource-instruction-tip {
  display: block !important;
  margin-top: 0.4rem !important;
  padding: 0 !important;
  background: transparent !important;
  border-left: none !important;
  font-style: italic !important;
  font-size: 0.85em !important;
  color: var(--gray-500) !important;
  font-weight: 400 !important;
}

.resource-instruction-tip::before,
.resource-list--instructions .resource-instruction-tip::before {
  content: "↳ " !important;
  font-style: normal !important;
  font-weight: 600 !important;
  color: var(--gray-400) !important;
}

/* ── Differentiation sub-labels — same spec as definition dt ─ */
.resource-diff-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-top: 1.1rem;
  margin-bottom: 0.3rem;
}

.resource-diff-label:first-of-type {
  margin-top: 0;
}

.resource-diff-content {
  line-height: 1.65;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

/* ── Remove double margin from last section in a cell ────── */
.resource-section-cell .resource-section {
  margin-bottom: 0;
}

/* ── Instruction step collapse / reveal ─────────────────── */
.resource-list--instructions.steps-collapsed li.resource-instruction-step:nth-child(n+3) {
  display: none !important;
}

.resource-steps-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.resource-steps-toggle:hover {
  color: var(--gray-900);
}

.resource-steps-toggle__icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Print: always show all steps */
@media print {
  .resource-list--instructions.steps-collapsed li.resource-instruction-step {
    display: block !important;
  }
  .resource-steps-toggle {
    display: none !important;
  }
}

/* === pages/partners-archive.css === */
/**
 * Partners archive (archive-partner.php)
 * Styles moved from inline to allow child theme overrides.
 */
.partners-archive .section.section--top {
  padding-top: 100px;
}

.partners-archive .partner-filters {
  margin-bottom: 2rem;
}

.partners-archive .partner-filters form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.partners-archive .partner-filters .btn-submit {
  width: auto;
  padding: 0.5rem 1.25rem;
}

.partners-archive .partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  align-items: center;
}

.partners-archive .partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: var(--border-radius, 0);
  transition: var(--transition, 0.2s ease);
}

.partners-archive .partner-logo img {
  max-width: 160px;
  height: auto;
  max-height: 80px;
  object-fit: contain;
}

.partners-archive .partner-logo .partner-logo__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}

.partners-archive .partner-logo .partner-logo__type {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* === pages/single-partner.css === */
/**
 * Single Partner page (single-partner.php)
 * Keep styling consistent with shared section patterns.
 */
.single-partner .section.section--top {
  padding-top: 76px; /* fixed header offset without big whitespace */
}

.partner-bio {
  max-width: 980px;
  margin: 0 auto;
}

.partner-bio__card {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.partner-bio__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
}

.partner-bio__logo-img {
  width: auto;
  height: auto;
  max-width: min(720px, 92vw);
  max-height: 220px;
  object-fit: contain;
  filter: saturate(1.02);
}

.partner-bio__intro {
  max-width: 70ch;
  margin: 0 auto 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: var(--gray-900);
  text-align: center;
}

.partner-bio__content {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--gray-700);
  line-height: 1.85;
  font-size: 1.05rem;
}

.partner-bio__content p:first-child {
  margin-top: 0;
}

.partner-bio__resources {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.partner-bio__resources-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  text-align: center;
  margin: 0 0 1rem;
}

.partner-bio__resources-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.partner-bio__theme {
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 14px;
  padding: 1rem;
}

.partner-bio__theme-title {
  margin: 0 0 0.75rem;
}

.partner-bio__theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-900);
}

.partner-bio__theme-pill--safe { border-color: rgba(59,130,246,0.35); }
.partner-bio__theme-pill--smart { border-color: rgba(245,158,11,0.35); }
.partner-bio__theme-pill--creative { border-color: rgba(168,85,247,0.35); }
.partner-bio__theme-pill--responsible { border-color: rgba(34,197,94,0.35); }
.partner-bio__theme-pill--future { border-color: rgba(244,63,94,0.35); }

.partner-bio__link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.partner-bio__link-item {
  margin: 0;
}

.partner-bio__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.partner-bio__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.partner-bio__link-title {
  font-weight: 750;
  color: var(--gray-900);
}

.partner-bio__link-duration {
  flex: 0 0 auto;
  font-size: 0.85rem;
  color: var(--gray-600);
  white-space: nowrap;
}

.partner-bio__actions {
  display: flex;
  gap: 0.875rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* Override .btn-submit defaults (which are full-width) for this layout */
.partner-bio__cta.btn-submit {
  width: auto;
  margin-top: 0;
  padding: 0.9rem 1.5rem;
}

.partner-bio__back {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  transition: var(--transition);
}

.partner-bio__back:hover {
  transform: translateY(-1px);
  border-color: var(--gray-300);
  background: var(--white);
  text-decoration: none;
}

.partner-bio__back:focus-visible,
.partner-bio__cta:focus-visible {
  outline: 3px solid rgba(34, 197, 94, 0.35);
  outline-offset: 3px;
}

@media screen and (max-width: 768px) {
  .partner-bio__card {
    border-radius: 14px;
  }

  .partner-bio__resources-grid {
    grid-template-columns: 1fr;
  }

  .partner-bio__content {
    font-size: 1rem;
  }
}


/* === responsive/responsive.css === */
/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  /* Principle grid responsive → components/principles.css */

  .partners-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Keep partner cards 2×2 when viewport is reduced (override 1024px auto-fill) */
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Swap "By Theme" and "By Session Length" order on mobile */
  .toolkit-explore-themes {
    display: flex;
    flex-direction: column;
  }

  /* "By session length" section - show first on mobile */
  .explore-subheading:last-of-type,
  .explore-subheading:last-of-type+.explore-session-cards {
    order: 1;
  }

  /* "By theme" section - show second on mobile */
  .explore-subheading:first-of-type,
  .explore-subheading:first-of-type+.themes-links {
    order: 2;
  }

  /* Mobile nav → layout/navigation.css */

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Principle card responsive → components/principles.css */
  /* Partner card responsive → pages/momentum.css */
  /* Aim section responsive → pages/aim.css */

  /* Form styling consolidated in pages/get-involved.css */
}

@media (max-width: 480px) {
  /* Aim section responsive rules → pages/aim.css */
  /* Principle card responsive → components/principles.css */
  /* Partner card responsive → pages/momentum.css */

  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Small mobile: tighter form spacing */
  .contact-wrapper {
    gap: 1.5rem;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .form-group {
    margin-bottom: 0.875rem;
  }

  .form-group input:not([type="checkbox"]):not([type="radio"]),
  .form-group select,
  .form-group textarea {
    padding: 0.75rem 0.875rem;
  }
}

/* YouTube / Video section – left-aligned */
#youtube .youtube-header {
  text-align: left;
  margin-bottom: 1rem;
}

#youtube .video-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

#youtube .video-wrapper--left {
  margin: 0;
}

#youtube .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.theme-link:hover {
  border-color: var(--green-600);
  color: var(--gray-900);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
/* === responsive/mobile.css === */
/* ============================================
   MOBILE STANDARDS (max-width: 767px)
   Typography, spacing, and touch targets only
   ============================================ */
@media screen and (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .section-label {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 2.25rem);
    margin-bottom: 1rem;
    line-height: 1.1;
  }

  .section-desc {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }

  .section.pt-100 {
    padding-top: 1.5rem;
  }

  .hero-title-block .hero-date {
    font-size: clamp(0.95rem, 3.5vw, 1.25rem);
    margin-bottom: 1rem;
  }

  .hero-title-block .hero-slogan,
  .hero-title-block .hero-subtitle,
  .hero-title-block .section-desc {
    font-size: 1rem;
  }

  .display-board-steps__toggle,
  .btn-submit,
  .resource-filter-submit,
  .nav-cta {
    min-height: 48px;
    padding: 0.5rem 1.25rem;
  }
}

@media screen and (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .section-title {
    font-size: clamp(1.35rem, 6vw, 2rem);
    margin-bottom: 0.8rem;
  }

  .section-desc {
    font-size: 1.01rem;
  }
}

