/* ============================================================
   Sarpah — component styles
   ============================================================ */

/* ===== Top nav ===== */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-nav__inner {
  max-width: 1360px; margin: 0 auto;
  padding: 14px var(--s-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-7);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  color: var(--ink);
  font-family: var(--serif); font-size: 24px; letter-spacing: -0.02em;
  font-weight: 500;
  white-space: nowrap;
}
.brand__word { line-height: 1; }
.brand__amp {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
  padding-left: 12px; border-left: 1px solid var(--rule-strong);
  line-height: 1;
  position: relative;
  top: -2px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .brand__amp { display: none; }
}
.nav-list {
  display: flex; align-items: center; gap: 2px;
  margin: 0; padding: 0; list-style: none;
}
.nav-list a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-xs);
  transition: background .12s ease, color .12s ease;
}
.nav-list a:hover { color: var(--ink); background: var(--paper-2); }
.nav-list a.is-active { color: var(--ink); background: var(--paper-3); }
.nav-actions { display: flex; align-items: center; gap: var(--s-3); }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink-3); font-size: 13px;
  cursor: pointer;
  min-width: 200px;
}
.search-trigger:hover { background: var(--paper-3); color: var(--ink); }
.search-trigger kbd {
  font-family: var(--mono); font-size: 10px;
  border: 1px solid var(--rule-strong);
  padding: 1px 5px; border-radius: 3px;
  margin-left: auto;
  color: var(--ink-3);
  background: var(--card);
}
.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--rule-strong);
  padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--paper-2); }

@media (max-width: 1100px) {
  .site-nav__inner { grid-template-columns: auto 1fr auto; }
  .nav-list { display: none; }
  .search-trigger { min-width: auto; }
  .search-trigger .search-trigger__hint { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--paper); padding: var(--s-6);
  display: none; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-7); }
.mobile-nav__list { list-style: none; padding: 0; margin: 0; }
.mobile-nav__list a {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--serif); font-size: var(--t-2xl);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--rule);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: var(--s-11) 0 var(--s-7);
  margin-top: var(--s-12);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--s-7);
  padding-bottom: var(--s-9);
  border-bottom: 1px solid var(--rule);
}
.footer-brand .display { font-size: var(--t-3xl); margin-bottom: var(--s-3); }
.footer-brand p { color: var(--ink-3); max-width: 32ch; font-size: var(--t-sm); }
.footer-col h4 {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500;
  margin: 0 0 var(--s-3);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--accent); }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: var(--s-6);
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-4);
  flex-wrap: wrap; gap: var(--s-3);
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ===== Hero photo variant ===== */
.hero--photo {
  position: relative;
  min-height: clamp(560px, 72vh, 760px);
  display: flex; align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero__bg, .page-head__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  transform: scale(1.04);
}
.hero__scrim, .page-head__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,18,16,0.40) 0%, rgba(22,18,16,0.0) 35%, rgba(22,18,16,0.0) 60%, rgba(22,18,16,0.70) 100%),
    linear-gradient(90deg, rgba(22,18,16,0.65) 0%, rgba(22,18,16,0.30) 40%, rgba(22,18,16,0.0) 80%, rgba(22,18,16,0) 100%);
  z-index: 1;
}
.hero__inner--photo {
  position: relative; z-index: 2;
  max-width: 1360px; width: 100%;
  margin: 0 auto;
  padding: var(--s-12) var(--s-6) var(--s-10);
  display: block;
}
.hero__title--on-photo, .page-head__title--on-photo {
  color: #f4f1ea;
}
.hero__sub--on-photo, .page-head__lede--on-photo {
  color: rgba(244,241,234,0.82);
}
.ribbon--on-photo {
  color: rgba(244,241,234,0.78) !important;
}
.ribbon--on-photo::before { background: rgba(244,241,234,0.4) !important; }
.btn--on-photo {
  background: transparent;
  color: #f4f1ea;
  border: 1px solid rgba(244,241,234,0.35);
}
.btn--on-photo:hover {
  background: rgba(244,241,234,0.08);
  border-color: rgba(244,241,234,0.6);
}

/* ===== Page-head photo variant ===== */
.page-head--photo {
  position: relative;
  background: var(--ink);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  min-height: 360px;
  display: flex; align-items: flex-end;
}
.page-head--md { min-height: 320px; }
.page-head__inner--photo {
  position: relative; z-index: 2;
  max-width: 1360px; width: 100%;
  margin: 0 auto;
  padding: var(--s-10) var(--s-6) var(--s-8);
}
.page-head__inner--photo .crumbs a,
.page-head__inner--photo .crumbs span {
  color: rgba(244,241,234,0.7);
}
.page-head__inner--photo .crumbs a:hover { color: #fff; }

/* ===== Card photo variant ===== */
.card--photo { padding: 0 !important; overflow: hidden; }
.card__photo {
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--rule);
}
.card--photo .card__body { padding: var(--s-6) var(--s-7) var(--s-7); }
.card--photo .card__title { margin-top: var(--s-3); }

/* ===== Image band (4-up) ===== */
.image-band {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.image-band__tile {
  position: relative;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  margin: 0;
  display: flex; align-items: flex-end;
  isolation: isolate;
  color: #f4f1ea;
}
.image-band__tile::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(22,18,16,0.85) 100%);
  z-index: 1;
}
.image-band__tile figcaption {
  position: relative; z-index: 2;
  padding: var(--s-6) var(--s-6);
  width: 100%;
}
.image-band__label {
  font-family: var(--mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: rgba(244,241,234,0.7);
  margin-bottom: 6px;
}
.image-band__caption {
  font-family: var(--serif); font-size: var(--t-lg);
  line-height: 1.2;
}
@media (max-width: 1000px) { .image-band { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .image-band { grid-template-columns: 1fr; } .image-band__tile { aspect-ratio: 16/10; } }

/* ===== Corridor photo (Corridors index) ===== */
.corridor-photo {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--card);
}
.corridor-photo__img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.corridor-photo figcaption {
  padding: var(--s-6);
  border-top: 1px solid var(--rule);
}
.corridor-photo figcaption p {
  margin: var(--s-3) 0 0;
  color: var(--ink-2);
  font-size: var(--t-sm);
}
.ribbon--inline { display: inline-flex; }

/* ===== Hero (home + section) ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--paper);
  padding: var(--s-9) 0 var(--s-12);
}
.hero__inner {
  max-width: 1360px; margin: 0 auto; padding: 0 var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--s-9);
  align-items: center;
}
.hero__lockup { position: relative; z-index: 2; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.022em;
  margin: var(--s-6) 0 var(--s-6);
  color: var(--ink);
  text-wrap: balance;
}
.hero__title em { color: var(--accent); font-style: italic; }
.hero__sub {
  font-family: var(--serif); font-size: var(--t-xl);
  line-height: 1.4; color: var(--ink-2);
  max-width: 36ch;
  margin-bottom: var(--s-7);
}
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__map {
  position: relative; aspect-ratio: 1.05 / 1;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--card);
  overflow: hidden;
}
@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__map { aspect-ratio: 4/3; }
}

/* ===== Three doors ===== */
.three-doors {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.door {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-7);
  min-height: 260px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.door:hover { transform: translateY(-2px); border-color: var(--ink); }
.door .ribbon { margin-bottom: var(--s-5); }
.door h3 {
  font-family: var(--serif); font-size: var(--t-2xl);
  line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 var(--s-3); font-weight: 400;
  color: var(--ink);
}
.door p { color: var(--ink-2); margin: 0 0 var(--s-6); font-size: var(--t-sm); max-width: 30ch; }
.door .door__foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: var(--t-sm); color: var(--ink); font-weight: 500;
}
.door .door__num {
  position: absolute; top: var(--s-7); right: var(--s-7);
  font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-4);
  letter-spacing: 0.12em;
}
@media (max-width: 900px) { .three-doors { grid-template-columns: 1fr; } }

/* ===== Stat strip / data block ===== */
.stat-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.stat {
  padding: var(--s-7);
  border-right: 1px solid var(--rule);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--serif); font-size: var(--t-4xl);
  font-weight: 400; letter-spacing: -0.02em; line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--s-3);
}
.stat__num em { color: var(--accent); font-style: normal; }
.stat__label {
  font-family: var(--mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
  margin-bottom: var(--s-2);
}
.stat__note { font-size: var(--t-sm); color: var(--ink-2); max-width: 28ch; }
@media (max-width: 880px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .stat-strip { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--rule); }
  .stat:last-child { border-bottom: 0; }
}

/* ===== Page header (interior pages) ===== */
.page-head {
  padding: var(--s-10) 0 var(--s-9);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.page-head__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 var(--s-6);
  display: grid; grid-template-columns: 1fr; gap: var(--s-5);
}
.page-head__breadcrumbs {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.page-head__breadcrumbs a:hover { color: var(--ink); }
.page-head__breadcrumbs .sep { opacity: .5; }
.page-head__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: balance;
  margin: 0;
}
.page-head__lede {
  font-family: var(--serif); font-size: var(--t-xl);
  color: var(--ink-2); line-height: 1.45; max-width: 50ch;
  margin: 0;
}
.page-head__meta {
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  margin-top: var(--s-3);
}
.page-head--ink { background: var(--ink); color: var(--paper); border-bottom: 0; }
.page-head--ink .page-head__title,
.page-head--ink .page-head__lede { color: var(--paper); }
.page-head--ink .page-head__breadcrumbs,
.page-head--ink .page-head__breadcrumbs a { color: rgba(244,241,234,0.6); }

/* ===== Two-col body (sidebar + content) ===== */
.body-two-col {
  max-width: 1200px; margin: 0 auto; padding: var(--s-9) var(--s-6) var(--s-12);
  display: grid; grid-template-columns: 240px 1fr; gap: var(--s-9);
  align-items: start;
}
.toc-side {
  position: sticky; top: 96px;
  font-family: var(--sans); font-size: var(--t-sm);
}
.toc-side h4 {
  font-family: var(--mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-4); font-weight: 500;
  margin: 0 0 var(--s-3); padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.toc-side ul { list-style: none; padding: 0; margin: 0; }
.toc-side li { margin-bottom: 6px; }
.toc-side a { color: var(--ink-2); display: block; padding: 4px 0; line-height: 1.4; }
.toc-side a:hover { color: var(--ink); }
.toc-side a.is-active { color: var(--accent); font-weight: 500; }

@media (max-width: 920px) {
  .body-two-col { grid-template-columns: 1fr; }
  .toc-side { position: static; order: 2; margin-top: var(--s-7); padding-top: var(--s-6); border-top: 1px solid var(--rule); }
}

/* ===== Sub-nav (in-section nav for products / compliance / origination) ===== */
.section-nav {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
  position: sticky; top: 64px; z-index: 40;
}
.section-nav__inner {
  max-width: 1360px; margin: 0 auto; padding: 0 var(--s-6);
  display: flex; align-items: center; gap: var(--s-7);
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav__label {
  font-family: var(--mono); font-size: var(--t-xs);
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-4); padding: 14px 0;
  border-right: 1px solid var(--rule); padding-right: var(--s-6);
  white-space: nowrap; flex-shrink: 0;
}
.section-nav__items {
  display: flex; gap: 2px; padding: 8px 0;
  flex-wrap: nowrap;
}
.section-nav__items a {
  font-size: 13px; font-weight: 500;
  color: var(--ink-3);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  white-space: nowrap;
}
.section-nav__items a:hover { color: var(--ink); background: var(--card); }
.section-nav__items a.is-active { color: var(--paper); background: var(--ink); }

/* ===== Card grids ===== */
.card-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: border-color .15s ease, transform .15s ease;
  min-height: 200px;
}
.card:hover { border-color: var(--ink); }
.card__title {
  font-family: var(--serif); font-size: var(--t-xl); font-weight: 400;
  letter-spacing: -0.012em; line-height: 1.2;
  color: var(--ink); margin: 0;
}
.card__desc { color: var(--ink-2); font-size: var(--t-sm); margin: 0; flex: 1; }
.card__foot {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-sm); color: var(--ink); font-weight: 500;
  margin-top: var(--s-3);
}
.card__num {
  font-family: var(--mono); font-size: var(--t-xs);
  color: var(--ink-4); letter-spacing: 0.1em;
}

/* Index group (with section heading + grid) */
.index-group { margin-bottom: var(--s-10); }
.index-group__head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--rule);
}
.index-group__head h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--t-2xl); letter-spacing: -0.015em;
  margin: 0;
}
.index-group__head .count {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}

/* ===== Quote / pull block ===== */
.pull {
  font-family: var(--serif); font-style: italic;
  font-size: var(--t-3xl); line-height: 1.2; letter-spacing: -0.012em;
  color: var(--ink); max-width: 26ch;
  text-wrap: balance;
}
.pull cite { display: block; font-style: normal; font-family: var(--sans); font-size: var(--t-sm); color: var(--ink-3); margin-top: var(--s-5); letter-spacing: 0.04em; }

/* ===== Form ===== */
.form-shell {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-9);
  max-width: 1200px; margin: 0 auto; padding: var(--s-9) var(--s-6) var(--s-12);
  align-items: start;
}
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-aside {
  position: sticky; top: 96px;
  padding-right: var(--s-6);
}
.form-aside h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: var(--t-2xl); margin: 0 0 var(--s-3); letter-spacing: -0.015em;
}
.form-aside p { color: var(--ink-2); font-size: var(--t-sm); }
.form-aside .ribbon { margin-bottom: var(--s-5); }
.form-stages {
  display: flex; gap: 4px;
  margin-top: var(--s-7); margin-bottom: var(--s-3);
}
.form-stages__seg {
  flex: 1; height: 3px; background: var(--rule); border-radius: 2px;
  transition: background .25s ease;
}
.form-stages__seg.is-done { background: var(--accent); }
.form-stages__seg.is-active { background: var(--ink); }
.form-stages__caption {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3);
}

.form-card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-8);
}
.fieldset { display: grid; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px; font-weight: 500;
  display: flex; justify-content: space-between; align-items: baseline;
}
.field label .req { color: var(--accent); }
.field .hint { color: var(--ink-3); font-size: var(--t-xs); font-family: var(--mono); letter-spacing: 0.04em; }
.field input,
.field select,
.field textarea {
  font-family: var(--sans); font-size: var(--t-base); color: var(--ink);
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  padding: 11px 13px;
  border-radius: var(--r-sm);
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--card);
}
.field.is-error input,
.field.is-error select,
.field.is-error textarea { border-color: var(--accent); background: rgba(184,83,26,0.04); }
.field .error-msg {
  color: var(--accent-ink); font-size: var(--t-xs);
  font-family: var(--mono); letter-spacing: 0.04em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-group, .radio-group { display: grid; gap: 8px; }
.choice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  cursor: pointer;
  background: var(--paper);
  transition: border-color .12s ease, background .12s ease;
}
.choice:hover { border-color: var(--rule-strong); background: var(--card); }
.choice input { margin-top: 3px; flex-shrink: 0; accent-color: var(--ink); }
.choice.is-checked { border-color: var(--ink); background: var(--card); }
.choice__label { font-size: var(--t-sm); font-weight: 500; }
.choice__hint { color: var(--ink-3); font-size: var(--t-xs); margin-top: 2px; }

.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: var(--s-8);
  padding-top: var(--s-6);
  border-top: 1px solid var(--rule);
}
.form-actions .step-meta {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4);
}

/* Submit confirmation */
.form-success {
  text-align: center; padding: var(--s-9) var(--s-6);
}
.form-success__ref {
  font-family: var(--mono); font-size: var(--t-md);
  background: var(--paper-2); border: 1px solid var(--rule);
  display: inline-block; padding: 8px 14px;
  border-radius: var(--r-sm);
  letter-spacing: 0.12em;
  margin: var(--s-5) 0;
}

/* ===== Search modal ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(15, 27, 45, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start; justify-content: center;
  padding: 10vh var(--s-5) var(--s-5);
}
.search-overlay.is-open { display: flex; }
.search-modal {
  width: 100%; max-width: 720px;
  background: var(--paper); border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-modal);
  display: flex; flex-direction: column;
  max-height: 78vh; overflow: hidden;
}
.search-modal__input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
}
.search-modal__input {
  flex: 1; font-family: var(--sans); font-size: var(--t-lg);
  border: 0; outline: 0; background: transparent;
  color: var(--ink);
}
.search-modal__input::placeholder { color: var(--ink-4); }
.search-modal__hint {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.1em;
  text-transform: uppercase;
}
.search-results {
  list-style: none; padding: 8px; margin: 0;
  overflow-y: auto;
}
.search-results li a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  align-items: baseline;
}
.search-results li a:hover,
.search-results li.is-active a { background: var(--paper-2); }
.search-results .res-title {
  font-family: var(--serif); font-size: var(--t-md);
  color: var(--ink); margin-bottom: 2px;
}
.search-results .res-desc {
  font-size: var(--t-sm); color: var(--ink-3);
}
.search-results .res-section {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); align-self: start;
}
.search-empty {
  padding: var(--s-7); text-align: center; color: var(--ink-3); font-size: var(--t-sm);
}
.search-modal__foot {
  border-top: 1px solid var(--rule);
  padding: 10px 14px;
  display: flex; gap: var(--s-5); justify-content: flex-end;
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-4);
}
.search-modal__foot kbd {
  border: 1px solid var(--rule-strong);
  padding: 1px 5px; border-radius: 3px;
  background: var(--card); color: var(--ink-2);
  font-family: inherit; font-size: 10px;
}

/* ===== Tweaks panel scoped overrides (uses tweaks-panel starter) ===== */
.tweaks-panel { font-family: var(--sans) !important; }

/* ===== Insight article specifics ===== */
.insight-meta {
  display: flex; gap: var(--s-5); flex-wrap: wrap;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.insight-meta time { color: var(--ink-3); }

/* ===== Compliance side rail ===== */
.compliance-rail {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-5);
  margin: var(--s-7) 0;
}
.compliance-rail .ribbon { margin-bottom: var(--s-3); }
.compliance-rail h4 { font-family: var(--serif); font-size: var(--t-lg); margin: 0 0 var(--s-3); font-weight: 400; }
.compliance-rail ul { padding-left: 18px; margin: 0; }
.compliance-rail li { font-size: var(--t-sm); color: var(--ink-2); margin-bottom: 4px; }

/* ===== Corridor / product spec sheet ===== */
.spec-sheet {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--card); overflow: hidden;
}
.spec-sheet dt {
  padding: 12px 14px;
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}
.spec-sheet dd {
  padding: 12px 14px;
  font-family: var(--sans); font-size: var(--t-sm);
  color: var(--ink); margin: 0;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.spec-sheet > div:last-of-type dt,
.spec-sheet > div:last-of-type dd { border-bottom: 0; }

/* Pair as flex */
.spec-row {
  display: contents;
}

/* ===== Index hero (audience pages) ===== */
.audience-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--s-9);
  padding: var(--s-10) 0;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.audience-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.0; letter-spacing: -0.02em;
  margin: var(--s-4) 0 var(--s-5);
  text-wrap: balance;
}
.audience-hero p { color: var(--ink-2); font-size: var(--t-lg); max-width: 38ch; line-height: 1.5; }
@media (max-width: 900px) { .audience-hero { grid-template-columns: 1fr; } }
.audience-hero__visual {
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--card); aspect-ratio: 1.05/1;
  position: relative; overflow: hidden;
}

/* ===== Big numeral ===== */
.num-display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(72px, 14vw, 200px);
  line-height: 0.85; letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.num-display em { color: var(--accent); font-style: normal; }

/* ===== Steps / process ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  padding: var(--s-7);
  border-right: 1px solid var(--rule);
  position: relative;
}
.step:last-child { border-right: 0; }
.step__num {
  font-family: var(--mono); font-size: var(--t-xs);
  letter-spacing: 0.12em; color: var(--accent);
  margin-bottom: var(--s-5);
}
.step__title {
  font-family: var(--serif); font-size: var(--t-lg); font-weight: 400;
  letter-spacing: -0.012em; margin: 0 0 var(--s-3); line-height: 1.2;
}
.step__body { color: var(--ink-2); font-size: var(--t-sm); line-height: 1.55; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; }
  .step:nth-child(2n) { border-right: 0; }
}

/* ===== Mobile table affordance ===== */
.table-wrap[data-overflow="true"]::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 32px; pointer-events: none;
  background: linear-gradient(to right, transparent, var(--card));
}

/* ===== Anchor offset for sticky nav ===== */
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }

/* ===== Dropcap on insights leading paragraph ===== */
.prose.has-dropcap > p:first-of-type::first-letter {
  font-family: var(--serif);
  float: left; font-size: 5.4em; line-height: 0.85;
  padding: 4px 10px 0 0; color: var(--accent);
  font-weight: 400;
}
