/* Page header band (crumb + h1 + lead), used on every interior marketing page */
.page-head { background: var(--bg-band); border-bottom: 1px solid var(--border-soft); }
.page-head__inner { max-width: var(--container-max); margin: 0 auto; padding: 56px 40px 52px; }
.page-head__inner h1 { font-size: 3.4375rem; margin-top: 18px; }
.page-head__inner .lead { margin-top: 14px; max-width: 44em; }
.page-head--narrow .page-head__inner { max-width: var(--container-narrow); }

/* Legal documents (Privacy Policy, Terms of Service, Refund Policy) -
   long-form reading column, reusing .container--narrow rather than a
   new width token. */
.legal-doc { max-width: 46em; }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc__meta { font-size: var(--text-small); color: var(--ink-faint); border-bottom: 1px solid var(--border-soft); padding-bottom: var(--space-4); margin-bottom: var(--space-4); }
.legal-doc h2 { margin-top: var(--space-6); }
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc h3 { margin-top: var(--space-4); }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin-top: 14px; line-height: 1.65; }
.legal-doc ul, .legal-doc ol { padding-left: 1.3em; }
.legal-doc li { margin-top: 8px; }
.legal-doc li p { margin-top: 0; }
.legal-doc table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.legal-doc th, .legal-doc td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border-soft); font-size: var(--text-small); }
.legal-doc__callout { background: var(--bg-band); border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: var(--space-4); margin-top: var(--space-5); }
.legal-doc__callout p:first-child { margin-top: 0; }

/* Home hero - full-bleed dark navy band with an orange bottom border
   (the comp's own treatment - #1B2A6B background, white text, 4px
   #F25C2A border-bottom). .hero-band carries the background/border;
   .container.hero constrains and grids the content inside it, same
   split as every other full-bleed section in this app
   (.section--dark). */
.hero-band { background: var(--brand); color: var(--on-ink); border-bottom: 4px solid var(--accent); }
.hero { padding: 56px 0 0; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: start; }
.hero > div:first-child { padding-bottom: 56px; }
.hero h1 { color: var(--on-ink); }
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-weight: 700; font-size: var(--text-label);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-border);
  background: rgb(242 92 42 / 0.18); border: 1px solid rgb(242 92 42 / 0.5); border-radius: 6px; padding: 6px 12px;
}
.hero h1 { font-size: var(--text-display); margin-top: 20px; text-wrap: balance; }
.hero__lead { font-family: var(--font-body); font-size: 1.15625rem; line-height: 1.55; color: var(--on-ink-muted); margin: 18px 0 0; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 0; font-family: var(--font-body); font-weight: 600; font-size: var(--text-micro); color: var(--on-ink-faint); }
.hero__meta span.sep { opacity: 0.4; }

/* Home hero preview panel ("sample college list") - white card sitting
   on the dark hero band, matching the comp exactly. */
.list-panel { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-panel); overflow: hidden; margin-top: 8px; }
.list-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px;
  border-bottom: 1px solid var(--border); background: var(--bg);
}
.list-panel__head span { font-family: var(--font-sans); font-weight: 700; font-size: var(--text-label); }
.list-panel__head span:first-child { color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 0.84375rem; }
.list-panel__head span:last-child { color: var(--ink-soft); }
.list-panel__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--border-soft); }
.list-panel__row:last-of-type { border-bottom: 0; }
.list-panel__row-title { font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 700; }
.list-panel__row-meta { font-family: var(--font-body); font-size: 0.78125rem; color: var(--ink-soft); margin-top: 3px; }
.list-panel__row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.list-panel__row-price { font-family: var(--font-sans); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.list-panel__foot {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 13px 18px; background: var(--bg);
  font-family: var(--font-body); font-size: var(--text-small); color: var(--ink-muted);
}
.list-panel__foot span.sep { opacity: 0.4; }

/* CTA band (closing section on most pages) */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding: 72px 0; }
.cta-band h2 { font-size: 2.3125rem; }
.cta-band p { font-size: var(--text-body-lg); color: var(--ink-muted); margin: 12px 0 0; max-width: 44em; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero quick-match card (mini, decorative form - the real computation
   only happens after a student registers and completes intake; this
   card's submit button is just another path into auth.register, never
   a second, fake band calculator). */
.hero__quickmatch { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; margin-top: 26px; box-shadow: var(--shadow-panel); }
.hero__quickmatch-label { font-family: var(--font-sans); font-weight: 700; font-size: var(--text-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.hero__quickmatch-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.hero__quickmatch-field { display: flex; flex-direction: column; gap: 5px; }
.hero__quickmatch-field label { font-size: var(--text-micro); font-weight: 600; color: var(--ink-2); }
.hero__quickmatch-field select { font-family: var(--font-sans); font-size: var(--text-small); padding: 9px 10px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.hero__quickmatch .btn { display: block; width: 100%; margin-top: 12px; }

/* Media card (photo + body) - the grade-band and outcomes sections */
.card--media { padding: 0; overflow: hidden; }
.card--media img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--bg-band); }
.card--media .card__inner { padding: 20px; }
.card--media .card__eyebrow { font-family: var(--font-sans); font-size: var(--text-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }

/* Dark info card - reused by the outcomes and trust sections */
.info-card--dark { background: var(--brand-soft); border: 1px solid var(--brand-soft); border-radius: var(--radius-md); padding: 18px; }
.info-card--dark h3 { font-family: var(--font-serif); font-weight: 700; font-size: 1.09375rem; color: var(--on-ink); margin: 0; }
.info-card--dark p { font-family: var(--font-body); font-size: var(--text-small); line-height: 1.55; color: var(--on-ink-muted); margin: 8px 0 0; }
.info-card--dark .info-card__kicker { font-family: var(--font-sans); font-size: 0.65625rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-border); }

/* Outcomes image gallery (one large + two stacked) - the comp's own
   pixel heights (300px big image, 142px each stacked image). Needs an
   explicit height on the grid itself: with only grid-template-COLUMNS
   set, row height falls back to "auto", so a percentage height on the
   <img> resolves to auto too and the browser renders each photo at its
   full natural aspect ratio instead of the intended compact crop -
   confirmed against the running page, not a hypothetical. Grid items
   also default to min-height:auto, which lets a content-sized child
   (an <img> with its own intrinsic aspect ratio) overflow its track
   instead of shrinking to it - every grid item in this gallery
   (the big <img>, the .stack, and the two <img> inside it) needs an
   explicit min-height:0 to actually respect the 300px/142px heights
   above rather than the image's natural size. Confirmed via a real
   getBoundingClientRect() check against the running page - the
   height:300px alone did not fix it. */
.outcomes-gallery { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; height: 300px; }
.outcomes-gallery > * { min-height: 0; }
.outcomes-gallery__stack { display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 16px; height: 100%; min-height: 0; }
.outcomes-gallery__stack > * { min-height: 0; }
.outcomes-gallery img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--brand-soft); background: var(--brand-soft); }

/* Explore tile grid (real, working filters only - state and test
   policy, matching what app/explore actually supports today) */
.explore-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: var(--space-5); }
.explore-tile { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; color: inherit; }
.explore-tile:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgb(16 24 40 / 0.08); }
.explore-tile__icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: var(--text-small); font-weight: 800; background: var(--brand-tint-bg); color: var(--brand); }
.explore-tile h3 { font-size: 1.03125rem; margin: 14px 0 0; }
.explore-tile p { font-size: var(--text-small); color: var(--ink-soft); margin: 6px 0 0; }

/* Browse preview (real colleges, no fabricated per-major curation) -
   dense card matching the comp's own metrics-footer treatment (test
   policy / deadline / application / verified), every value real. */
.browse-preview-list { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-4); }
.browse-card { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.browse-card:hover { border-color: var(--brand); box-shadow: 0 6px 18px rgb(16 24 40 / 0.08); }
.browse-card__main, .browse-card__end { display: inline-block; }
.browse-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 18px; align-items: start; }
.browse-card__title-row h3 { font-size: 1rem; margin: 0; }
.browse-card__location { font-family: var(--font-body); font-size: 0.8125rem; color: var(--ink-soft); margin-top: 4px; }
.browse-card__end { text-align: right; }
.browse-card__price { font-family: var(--font-sans); font-weight: 800; font-size: 1.1875rem; color: var(--ink); }
.browse-card__price-unit { font-family: var(--font-body); font-size: var(--text-micro); color: var(--ink-soft); margin-top: 1px; }
.browse-card__end .link-btn { display: inline-block; margin-top: 4px; font-size: var(--text-micro); }
.browse-card__metrics {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 12px -18px -16px; padding: 11px 18px; background: var(--bg-band); border-top: 1px solid var(--border-soft);
}
.browse-card__metric-label { font-family: var(--font-sans); font-size: 0.65625rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
.browse-card__metric-value { font-family: var(--font-body); font-size: 0.8125rem; color: var(--ink-2); margin-top: 2px; }

.browse-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding: 18px 20px; background: var(--brand); border-radius: var(--radius-md); }
.browse-banner h3 { font-size: 1.0625rem; color: var(--on-ink); margin: 0; }
.browse-banner p { font-size: var(--text-small); color: var(--on-ink-muted); margin: 4px 0 0; }

/* Test-score policy matrix (general reasoning, not a per-college fact) */
.policy-matrix { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.policy-matrix__head, .policy-matrix__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.policy-matrix__head { background: var(--bg-band); border-bottom: 1px solid var(--border); font-family: var(--font-sans); font-size: var(--text-label); font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-soft); }
.policy-matrix__head div, .policy-matrix__row div { padding: 13px 18px; }
.policy-matrix__row { border-bottom: 1px solid var(--border-soft); font-family: var(--font-body); }
.policy-matrix__row:last-child { border-bottom: 0; }
.policy-matrix__row div:first-child { font-size: var(--text-body); color: var(--ink-2); }
.policy-matrix__row div:last-child { font-family: var(--font-sans); font-weight: 700; font-size: var(--text-small); }

/* Simple text point card - the parents section's 2x2 grid */
.point-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; font-family: var(--font-body); font-size: var(--text-body); line-height: 1.5; color: var(--ink-2); }

/* Home page stats bar - a plain white section with a thin colored
   accent bar per stat (the comp's own treatment, not the dark
   full-bleed .stat-band used elsewhere in this app for admin/report
   contexts - kept separate rather than changing that shared
   component's look for surfaces the comp has no opinion on). */
.stat-bar-section { background: var(--surface); border-bottom: 1px solid var(--border); }
.stat-bar-grid { max-width: var(--container-max); margin: 0 auto; padding: 28px 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.stat-bar-item { display: flex; align-items: center; gap: 14px; }
.stat-bar-item__bar { width: 4px; align-self: stretch; border-radius: 4px; }
.stat-bar-item__value { font-family: var(--font-sans); font-weight: 800; font-size: 1.875rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.stat-bar-item__label { font-family: var(--font-body); font-size: var(--text-small); font-weight: 600; color: var(--ink-soft); margin-top: 5px; }

/* Coming-soon placeholder */
.coming-soon { max-width: 40em; margin: 0 auto; padding: var(--space-8) 40px; text-align: center; }
.coming-soon p { font-size: var(--text-lead); color: var(--ink-muted); margin: 16px 0 28px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 56px 0 48px; }
  .page-head__inner h1 { font-size: 2.5rem; }
  .hero__quickmatch-fields { grid-template-columns: 1fr; }
  .outcomes-gallery { grid-template-columns: 1fr; height: auto; }
  .outcomes-gallery__stack { height: 300px; }
  .explore-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-matrix__head, .policy-matrix__row { grid-template-columns: 1fr; }
  .policy-matrix__head div:last-child { display: none; }
}
@media (max-width: 560px) {
  .explore-tile-grid { grid-template-columns: 1fr; }
}
