/* ==========================================================================
   components.css — reusable BEM blocks
   ========================================================================== */

/* --------------------------------------------------------------------------
   Button — Figma: 255×68, radius 100, 18px semibold
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 68px;
  padding: 0 var(--space-32);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.67;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  color: var(--color-white);
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.btn--primary:hover {
  color: var(--color-white);
  background: var(--color-brand-dark);
  border-color: var(--color-brand-dark);
  box-shadow: var(--shadow-lift);
}

.btn--green {
  color: var(--color-white);
  background: var(--color-green);
  border-color: var(--color-green);
}
.btn--green:hover {
  color: var(--color-white);
  background: var(--color-green-dark);
  border-color: var(--color-green-dark);
  box-shadow: 0 20px 44px rgba(49, 105, 79, 0.28);
}

.btn--outline {
  color: var(--color-ink);
  background: var(--color-white);
  border-color: var(--color-ink);
}
.btn--outline:hover {
  color: var(--color-white);
  background: var(--color-ink);
  border-color: var(--color-ink);
}

.btn--light {
  color: var(--color-brand);
  background: var(--color-white);
  border-color: var(--color-white);
}
.btn--light:hover {
  color: var(--color-brand-dark);
  background: var(--color-surface-pale);
  border-color: var(--color-surface-pale);
}

.btn--wide { min-width: min(255px, 100%); }
.btn--block { width: 100%; }
.btn--sm { min-height: 52px; padding: 0 var(--space-24); font-size: var(--fs-body); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
}
.btn-row--center { justify-content: center; }

/* --------------------------------------------------------------------------
   Card — generic white surface
   -------------------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card--lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}
.card__body { padding: clamp(1.5rem, 1rem + 1.4vw, 2.5rem); }
.card__title {
  margin-bottom: var(--space-12);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}
.card__text { color: var(--color-text); }

/* --------------------------------------------------------------------------
   Feature card — 3-up "Listening to Your Needs" row on the home page
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}
.feature__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { padding: var(--space-24); }
.feature__title {
  margin-bottom: var(--space-8);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}
.feature__text {
  font-size: var(--fs-body);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Publisher card — "Trusted Names. Curated For K-12 Schools."
   -------------------------------------------------------------------------- */
.publisher-grid {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .publisher-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .publisher-grid { grid-template-columns: repeat(4, 1fr); } }

.publisher {
  display: flex;
  flex-direction: column;
  padding: var(--space-24);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.publisher:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}
.publisher__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 72px;
  margin-bottom: var(--space-16);
}
.publisher__logo img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}
.publisher__meta {
  margin-bottom: var(--space-8);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-brand);
}
.publisher__text {
  flex: 1;
  margin-bottom: var(--space-20);
  font-size: var(--fs-small);
  line-height: 1.72;
}

/* --------------------------------------------------------------------------
   Resource card — Digital Resources (overlapping logo plate + SVG backdrop)
   Figma: panel 644×631, plate 396×232 (half above card), shape 690×280
   -------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  gap: 3.5rem clamp(1.5rem, 3vw, 4.4375rem); /* Figma row gap ~56px, col ~71px */
  grid-template-columns: 1fr;
  justify-content: center;
}
@media (min-width: 900px) {
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 644px));
  }
}

.resource {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 644px);
  margin-inline: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform var(--dur) var(--ease);
}
.resource:hover { transform: translateY(-6px); }

.resource__shape {
  position: absolute;
  top: 30.625rem; /* Figma: 125px plate offset + 365px shape offset = 490px */
  left: -1.125rem; /* Figma: shape x − panel x (−18px) */
  z-index: 0;
  width: 690px;
  height: 280px;
  max-width: calc(100% + 2.25rem);
  object-fit: fill;
  pointer-events: none;
}

.resource__plate {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: min(100%, 24.71875rem); /* Figma: 395.5px */
  height: 14.5rem; /* Figma: ~232px */
  padding: var(--space-24);
  background: var(--color-white);
  border: 8px solid var(--color-border-pale);
  border-radius: var(--radius-card);
  transform: translateX(-50%);
}
.resource__plate img {
  max-width: 100%;
  max-height: 10.5rem; /* Figma: ~166px logo height */
  width: auto;
  height: auto;
  object-fit: contain;
}

.resource__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  min-height: 39.4375rem; /* Figma: 631px */
  margin-top: 7.8125rem; /* Figma: plate hangs ~125px above panel top */
  padding: 9.5625rem 2.5625rem 2.375rem; /* Figma: 153px top, 41px sides, 38px bottom */
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}
.resource:hover .resource__panel {
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}

.resource__tag {
  margin: 0 0 var(--space-16);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}
.resource__text { flex: 1; margin-bottom: var(--space-32); }
.resource__text p + p { margin-top: var(--space-16); }
.resource .btn-row { flex-shrink: 0; }

@media (max-width: 720px) {
  .resource__shape {
    top: 42%;
    left: -3%;
    width: 106%;
    height: auto;
    aspect-ratio: 690 / 280;
  }
  .resource__panel {
    min-height: 0;
    margin-top: clamp(5rem, 18vw, 7.8125rem);
    padding-inline: var(--space-24);
  }
  .resource__plate {
    width: min(92%, 24.71875rem);
    height: clamp(9rem, 28vw, 14.5rem);
  }
}

/* --------------------------------------------------------------------------
   Offer card — Promotions / Publisher detail tiered offers
   -------------------------------------------------------------------------- */
.offer {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.offer__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: var(--space-8) var(--space-24);
  margin-bottom: var(--space-24);
  font-size: var(--fs-h3);
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}
.offer__title {
  margin-bottom: var(--space-24);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
}

.tier-list { display: flex; flex-direction: column; }
.tier {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
  padding-block: var(--space-20);
  border-top: 1px solid var(--color-rule);
}
.tier:first-child { border-top: 0; padding-top: 0; }
.tier__icon { width: 22px; height: 22px; margin-top: 6px; }
.tier__amount {
  margin-bottom: var(--space-4);
  font-size: 1.3125rem; /* 21px */
  font-weight: var(--fw-bold);
  line-height: 1.43;
}
.tier__detail {
  font-size: var(--fs-small);
  line-height: var(--lh-snug);
  color: var(--color-text);
}

.fine-print {
  margin-top: var(--space-32);
  padding-top: var(--space-24);
  border-top: 1px solid var(--color-rule);
}
.fine-print__title {
  margin-bottom: var(--space-8);
  font-size: 1.3125rem;
  font-weight: var(--fw-bold);
}
.fine-print__text { font-size: var(--fs-body); line-height: 1.69; }

/* --------------------------------------------------------------------------
   Steps — numbered "Step 1 / 2 / 3" band
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
  padding: clamp(2rem, 1.4rem + 1.8vw, 3rem);
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; }
@media (min-width: 900px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 34px;
    right: calc(var(--space-32) * -0.5);
    width: 1px;
    height: calc(100% - 34px);
    background: rgba(255, 255, 255, 0.35);
  }
}
.step__num {
  margin-bottom: var(--space-16);
  font-size: var(--fs-stat);
  font-weight: var(--fw-extrabold);
  line-height: 1;
}
.step__text {
  font-size: 1.3125rem;
  font-weight: var(--fw-bold);
  line-height: 1.43;
}

/* --------------------------------------------------------------------------
   Stat block — "35+ years served"
   -------------------------------------------------------------------------- */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-24) var(--space-40);
  padding: var(--space-32) clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-lg);
}
.stat { display: flex; flex-direction: column; }
.stat__value {
  font-size: var(--fs-stat);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
}
.stat__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  opacity: 0.9;
}
.stat-bar__spacer { flex: 1; }

/* --------------------------------------------------------------------------
   Contact method — icon + label/value rows on Schedule a Meeting
   -------------------------------------------------------------------------- */
.contact-list { display: flex; flex-direction: column; gap: var(--space-32); }
.contact-method {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: var(--space-20);
  align-items: center;
}
.contact-method__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: var(--color-brand);
  border-radius: 50%;
}
.contact-method__icon img { width: 20px; height: 20px; object-fit: contain; }
.contact-method__label {
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  line-height: 1.67;
}
.contact-method__value {
  font-size: var(--fs-body-lg);
  line-height: 1.67;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
a.contact-method__value:hover { color: var(--color-brand); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--space-24); }
.form__row {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field { display: flex; flex-direction: column; gap: var(--space-8); }
.field__label {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
}
.field__req { color: #c0392b; }
.field__control {
  width: 100%;
  min-height: 60px;
  padding: var(--space-16) var(--space-20);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-white);
  border: 2px solid var(--color-border-pale);
  border-radius: 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea.field__control { min-height: 150px; resize: vertical; }
.field__control::placeholder { color: #9aa5b1; }
.field__control:hover { border-color: #a9cbe9; }
.field__control:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(14, 121, 177, 0.15);
}
.field__control[aria-invalid='true'] {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}
.field__error {
  display: none;
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: #c0392b;
}
.field__error.is-shown { display: block; }

.form__status {
  display: none;
  padding: var(--space-16) var(--space-20);
  font-weight: var(--fw-semibold);
  border-radius: 14px;
}
.form__status.is-shown { display: block; }
.form__status--ok {
  color: #1e5b41;
  background: #e3f5eb;
  border: 1px solid #b6e2ca;
}
.form__status--err {
  color: #8e2b21;
  background: #fdecea;
  border: 1px solid #f5c2bd;
}

/* --------------------------------------------------------------------------
   Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: var(--space-16); }
.accordion__item {
  overflow: hidden;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  width: 100%;
  padding: var(--space-24);
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  text-align: left;
  color: var(--color-text);
}
.accordion__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  position: relative;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  background: var(--color-brand);
  transition: transform var(--dur) var(--ease);
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded='true'] .accordion__icon::after { transform: rotate(0deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}
.accordion__panel[data-open='true'] { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__body { padding: 0 var(--space-24) var(--space-24); }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-20);
  background: rgba(18, 30, 53, 0.6);
}
.modal.is-open { display: flex; }
.modal__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hero);
}
.modal__close {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink);
  border-radius: 50%;
  transition: background-color var(--dur) var(--ease);
}
.modal__close:hover { background: var(--color-surface-pale); }
.modal__title { margin-bottom: var(--space-16); font-size: var(--fs-h3); }

/* --------------------------------------------------------------------------
   Switch panel — "Switch to Public Libraries" CTA card
   -------------------------------------------------------------------------- */
.switch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 19.1875rem; /* Figma: 307px */
  min-height: 13rem; /* Figma: 208px */
  padding: var(--space-24);
  text-align: center;
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: var(--radius-xl);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.switch-card:hover {
  color: var(--color-white);
  background: var(--color-brand-dark);
  transform: translateY(-4px);
}
.switch-card__art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.switch-card__deco {
  position: absolute;
  pointer-events: none;
}
/* Figma Frame 272×166 inset 20px from card left (307px card) */
.switch-card__deco--swirl {
  top: 0;
  left: 1.25rem; /* 20px */
  width: 17rem; /* 272px */
  height: auto;
  max-height: none;
}
.switch-card__deco--blob {
  top: 6.1rem;
  left: 3.6875rem;
  width: 5.1875rem;
  height: auto;
}
.switch-card__title {
  position: relative;
  z-index: 1;
  font-size: clamp(1.25rem, 1.05rem + 0.63vw, 1.875rem);
  font-weight: var(--fw-extrabold);
  line-height: 1.28;
  text-transform: capitalize;
}

/* --------------------------------------------------------------------------
   Region tabs — used on Home, Promotions and Public
   Figma: 800×78 pill rail, 246×46 pills, active = white on brand blue
   -------------------------------------------------------------------------- */
.region-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto var(--space-48);
  padding: var(--space-8);
  background: var(--color-brand);
  border-radius: var(--radius-pill);
}
@media (max-width: 599px) {
  .region-tabs { border-radius: var(--radius-card); }
}

.region-tabs__tab {
  flex: 1 1 200px;
  min-height: 46px;
  padding: var(--space-8) var(--space-20);
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  background: transparent;
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.region-tabs__tab:hover { background: rgba(255, 255, 255, 0.18); }
.region-tabs__tab.is-active {
  color: var(--color-text);
  background: var(--color-white);
}
.region-tabs__tab:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: -3px;
}

/* --------------------------------------------------------------------------
   Promo card — the 3-up publisher promo row under the region tabs
   -------------------------------------------------------------------------- */
.promo-grid {
  display: grid;
  gap: var(--space-32);
  grid-template-columns: 1fr;
  justify-items: center;
}
@media (min-width: 700px) {
  .promo-grid { grid-template-columns: repeat(2, minmax(0, 417px)); justify-content: center; }
}
@media (min-width: 1024px) {
  .promo-grid {
    grid-template-columns: repeat(3, minmax(0, 417px));
    gap: clamp(1.25rem, 3vw, 3.5625rem); /* Figma ~57px */
    justify-content: center;
  }
}
.promo-grid[hidden] { display: none; }

.promo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 417px);
  min-height: 373px; /* 91px offset + 282px shape */
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: transform var(--dur) var(--ease);
}
.promo-card:hover { transform: translateY(-6px); }
/* Legacy cards without the Figma backdrop wrapper */
.promo-card:not(:has(.promo-card__panel)) {
  width: auto;
  min-height: 0;
  padding: var(--space-32);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.promo-card:not(:has(.promo-card__panel)):hover {
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}
.promo-card__shape {
  position: absolute;
  top: 91px; /* Figma: shape y − panel y (4745 − 4654) */
  left: -18px; /* Figma: shape x − panel x (733 − 751) */
  z-index: 0;
  width: 454px;
  height: 282px;
  max-width: calc(100% + 36px);
  object-fit: fill;
  pointer-events: none;
}
.promo-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 417px;
  max-width: 100%;
  /* Figma: 417×357. min-, not a fixed height — a card whose copy runs long grows
     instead of letting the text escape the white panel. */
  min-height: 357px;
  margin: 0;
  padding: 0 1.6875rem 1.5rem; /* 27px sides, 24px bottom */
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--dur) var(--ease);
}
.promo-card:hover .promo-card__panel {
  box-shadow: 0 22px 70px rgba(14, 121, 177, 0.3);
}
/* Figma: logo + title block is always 142px tall (title baseline aligned across cards) */
.promo-card__head {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-height: 8.875rem; /* 142px */
  margin-bottom: 1.5625rem; /* 25px — gap before button divider */
}
/* Scoped under .promo-card so the blanket `.section img { height: auto }` reset
   in mobile.css (same specificity, loaded later) cannot flatten the logo slot. */
.promo-card .promo-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 7.5rem; /* 120px logo slot */
  margin-top: 0;
  margin-bottom: 0.75rem; /* 12px — gap before title */
  padding-top: 0;
  overflow: visible;
}
.promo-card .promo-card__logo img {
  display: block;
  width: 100%;
  max-width: 17.5rem; /* full inner card width */
  height: auto;
  min-height: 4.5rem; /* 72px */
  max-height: 8.5rem; /* 136px */
  object-fit: contain;
  object-position: center center;
}
/* Maker Maven — tall mark needs a narrower box and more vertical room */
.promo-card .promo-card__logo--tall {
  min-height: 8.5rem;
}
.promo-card .promo-card__logo--tall img {
  width: auto;
  max-width: 8rem;
  min-height: 0;
  max-height: 9.5rem;
}
.promo-card__title {
  flex-shrink: 0;
  margin: 0;
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  line-height: 1.875rem; /* 30px */
  text-align: center;
}
.promo-card__pub {
  flex: 1;
  margin-bottom: var(--space-24);
  font-size: var(--fs-body);
  color: var(--color-text-muted);
}
.promo-card .btn-row {
  flex-shrink: 0;
  justify-content: center;
  gap: 0.625rem; /* Figma: 10px between buttons */
  margin: 0;
  padding-top: 1.8125rem; /* 29px below divider */
  padding-bottom: 1.875rem; /* 30px — room for divider border within 357px panel */
  border-top: 1px solid var(--color-rule);
}
.promo-card .btn-row .btn--sm {
  min-height: 68px; /* Figma button height */
  min-width: 0;
  flex: 0 1 auto;
  padding-inline: var(--space-24);
  font-size: var(--fs-body-lg);
}
.promo-card__links {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  margin: 0;
  padding-top: 0.875rem; /* 14px below divider */
  border-top: 1px solid var(--color-rule);
}
@media (max-width: 480px) {
  .promo-card:has(.promo-card__panel) {
    width: 100%;
    min-height: auto;
  }
  .promo-card__panel {
    width: 100%;
    height: auto;
    min-height: 320px;
  }
  .promo-card__shape {
    top: 22%;
    left: -4%;
    width: 108%;
    height: auto;
    aspect-ratio: 454 / 282;
  }
}
.promo-card__links a {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-brand);
}
.promo-card__links a:hover { text-decoration: underline; }
/* Legacy cards without panel wrapper — keep compact spacing */
.promo-card:not(:has(.promo-card__panel)) .promo-card__logo {
  flex: none;
  margin-top: 0;
  margin-bottom: var(--space-16);
  padding-top: 0;
  height: 72px;
}
.promo-card:not(:has(.promo-card__panel)) .btn-row {
  padding-top: var(--space-20);
  padding-bottom: 0;
  border-top: 1px solid var(--color-rule);
}
.promo-card:not(:has(.promo-card__panel)) .promo-card__links {
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-rule);
}

/* --------------------------------------------------------------------------
   CTA band — closing call to action on every page
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band__title {
  max-width: 80%;
  margin-inline: auto;
  margin-bottom: var(--space-24);
  font-size: clamp(1.625rem, 1.05rem + 2vw, 2.25rem);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}
.cta-band__lead {
  max-width: 843px;
  margin-inline: auto;
  margin-bottom: var(--space-40);
  /* font-size: var(--fs-lead); */
  line-height: 1.64;
  color: var(--color-text-muted);
}
.cta-band__note {
  margin-top: var(--space-32);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-semibold);
  line-height: 2;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Publisher card extras (promo badge on the dark section)
   -------------------------------------------------------------------------- */
.publisher { position: relative; }
.publisher__promo {
  position: absolute;
  top: var(--space-16);
  right: var(--space-16);
  padding: 4px var(--space-12);
  font-size: 0.9375rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  background: #fd7c21;
  border-radius: 5px;
}
.publisher__name {
  margin-bottom: var(--space-8);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  text-transform: capitalize;
}
.publisher__offer {
  margin-bottom: var(--space-16);
  padding: var(--space-12);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: #8a4a10;
  background: #fff4ea;
  border-radius: 10px;
}
.publisher__actions { margin-top: auto; }
.publisher__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  margin-top: var(--space-16);
}
.publisher__links a {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  color: var(--color-brand);
}
.publisher__links a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   County selector — school Promotions (Figma 13:2023)
   Two full-width pills: an active state (filled radio) + county <select>, and
   an inactive state. Replaces the region tab-rail on the school home.
   -------------------------------------------------------------------------- */
.county-select {
  display: grid;
  gap: var(--space-24);
  grid-template-columns: 1fr;
  max-width: 1402px;
  margin: 0 auto var(--space-48);
}
@media (min-width: 900px) {
  .county-select { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.county {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
  min-height: 78px;
  padding: var(--space-8) var(--space-8) var(--space-8) var(--space-24);
  border-radius: var(--radius-pill);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
@media (max-width: 519px) {
  .county { flex-wrap: wrap; border-radius: var(--radius-card); padding-bottom: var(--space-12); }
}
.county--pa { background: var(--color-brand); }
.county--de { background: var(--color-green); }
.county.is-active { box-shadow: 0 18px 44px rgba(14, 121, 177, 0.28); }
.county--de.is-active { box-shadow: 0 18px 44px rgba(49, 105, 79, 0.3); }

.county__radio {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 3px solid var(--color-white);
  border-radius: 50%;
}
.county__radio::after {
  content: '';
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--color-white);
  transform: scale(0);
  transition: transform var(--dur) var(--ease);
}
.county.is-active .county__radio::after { transform: scale(1); }

.county__name {
  font-size: var(--fs-h5);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--color-white);
  white-space: nowrap;
}
.county__hint {
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.72);
  white-space: nowrap;
}
@media (max-width: 767px) { .county__hint { display: none; } }

.county__field {
  position: relative;
  flex: 1 1 200px;
  min-width: 0;
  margin-left: auto;
}
.county__select {
  width: 100%;
  min-height: 62px;
  padding: 0 62px 0 var(--space-24);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  background: var(--color-white);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.county__select:invalid { color: #9aa5b1; }
.county__select:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 2px;
}
.county__caret {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  pointer-events: none;
}
.county--pa .county__caret { background: #cfe4f4; color: var(--color-brand); }
.county--de .county__caret { background: #c3ddce; color: var(--color-green); }
.county__caret svg { width: 12px; height: 14px; }

/* --------------------------------------------------------------------------
   Promo card with offers — the card the promotions page and the school home
   teaser both render. Gated on the offers block rather than on a page class so
   the same card looks the same wherever it is dropped; cards without offers
   keep the shorter fixed-height Figma panel above.
   -------------------------------------------------------------------------- */
.promo-grid:has(.promo-card__promotions) {
  align-items: stretch;
  row-gap: clamp(2.5rem, 4vw, 4rem);
}

/* Panel grows for 3–4 offers instead of clipping at the Figma height */
.promo-card:has(.promo-card__promotions) {
  --promo-panel-min-h: 44rem;
  --promo-shape-h: 17.625rem; /* 282px */
  --promo-shape-overlap: 16.625rem; /* shape overlap onto panel bottom */
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 417px);
  height: 100%;
  min-height: calc(var(--promo-panel-min-h) + var(--promo-shape-h) - var(--promo-shape-overlap));
  padding: 0;
  /* Room for shape to peek below the white panel */
  padding-bottom: calc(var(--promo-shape-h) - var(--promo-shape-overlap));
  overflow: visible;
}

/* Backdrop — top edge sits (panel-height − overlap) from card top; tracks growing panels */
.promo-card:has(.promo-card__promotions) .promo-card__shape {
  position: absolute;
  top: calc(100% - var(--promo-shape-h));
  left: -1.125rem;
  z-index: 0;
  width: 28.375rem; /* 454px */
  max-width: calc(100% + 2.25rem);
  height: var(--promo-shape-h);
  object-fit: fill;
  pointer-events: none;
}

.promo-card:has(.promo-card__promotions) .promo-card__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: var(--promo-panel-min-h);
  padding: 2rem 1.6875rem 1.75rem;
  overflow: visible;
}
.promo-card:has(.promo-card__promotions) .promo-card__head {
  flex-shrink: 0;
  min-height: 12rem;
  margin-bottom: 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-rule);
}
.promo-card:has(.promo-card__promotions) .promo-card__logo {
  flex: 0 0 auto;
  min-height: 7.5rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-top: 0;
  overflow: visible;
}
.promo-card:has(.promo-card__promotions) .promo-card__logo img {
  width: 100%;
  max-width: 17.5rem; /* full inner card width */
  height: auto;
  min-height: 4.5rem;
  max-height: 8.5rem; /* 136px */
  object-fit: contain;
  object-position: center center;
}
.promo-card:has(.promo-card__promotions) .promo-card__logo--tall {
  min-height: 8.5rem;
}
.promo-card:has(.promo-card__promotions) .promo-card__logo--tall img {
  width: auto;
  max-width: 8rem;
  max-height: 9.5rem;
  min-height: 0;
}
.promo-card:has(.promo-card__promotions) .promo-card__title {
  color: var(--color-text);
}

.promo-card:has(.promo-card__promotions) .promo-card__promotions {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  padding-block: 1.25rem 1rem;
  overflow: visible;
}
.promo-card:has(.promo-card__promotions) .promo-card__offers {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 0 0.5rem;
  list-style: none;
}
.promo-card:has(.promo-card__promotions) .promo-card__no-offers {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-text-muted);
}

.promo-card:has(.promo-card__promotions) .btn-row {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  border-top: 1px solid var(--color-rule);
}
.promo-card:has(.promo-card__promotions) .promo-card__links {
  flex-shrink: 0;
  padding-bottom: 0.25rem;
  border-top: 1px solid var(--color-rule);
}
.promo-card__promotions-label {
  flex-shrink: 0;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--color-brand);
}
.promo-card__offer-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding-block: 0.625rem;
}
.promo-card__offer-item:last-child {
  padding-bottom: 0.875rem;
}
.promo-card__offer-item + .promo-card__offer-item {
  border-top: 1px solid rgba(30, 129, 176, 0.12);
}
.promo-card__offer-check {
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: #1e81b0;
  line-height: 0;
}
.promo-card__offer-check svg {
  display: block;
  width: 20px;
  height: 20px;
}
.promo-card__offer-body {
  flex: 1 1 auto;
  min-width: 0;
}
.promo-card__offer-name {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  line-height: 1.35;
  color: #1a3e5c;
}
.promo-card__offer-desc {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

@media (max-width: 480px) {
  .promo-card:has(.promo-card__promotions) {
    --promo-panel-min-h: 40rem;
    --promo-shape-h: 15rem;
  }
  .promo-card:has(.promo-card__promotions) {
    width: 100%;
  }
  .promo-card:has(.promo-card__promotions) .promo-card__shape {
    left: -0.75rem;
    width: calc(100% + 1.5rem);
    max-width: calc(100% + 1.5rem);
    height: var(--promo-shape-h);
  }
  .promo-card:has(.promo-card__promotions) .promo-card__panel {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
  }
  .promo-card:has(.promo-card__promotions) .promo-card__promotions {
    padding-bottom: 0.75rem;
  }
  .promo-card__offer-item:last-child {
    padding-bottom: 0.75rem;
  }
}
