/* Regional SEO preview pages.
   The active Adelphos bundles provide the palette, typography, shell and tokens.
   This file only arranges new regional content using the home-page vocabulary. */

html.regional-seo-preview {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden !important;
  overflow-y: scroll !important;
  scrollbar-gutter: stable;
}

body.regional-preview {
  background: var(--ad-bg, #f5f3ef);
  color: var(--ad-text-0, #000);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  overflow: visible !important;
  height: auto !important;
}

.regional-preview *,
.regional-preview *::before,
.regional-preview *::after { box-sizing: border-box; }

.regional-preview .docs-layout.seo-no-rails {
  display: block;
  width: 100%;
}

.regional-preview .seo-no-rails > .docs-left,
.regional-preview .seo-no-rails > .docs-right { display: none !important; }

.regional-preview .seo-no-rails > .docs-content {
  width: min(calc(100% - 48px), 1280px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0;
}

.review-strip {
  margin-top: 18px;
  padding: 11px 14px;
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 6px;
  background: var(--ad-panel, #fff);
}

.review-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.review-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ad-text-3, #555);
  font-size: 11px;
  font-weight: 500;
}

.review-strip__status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ad-teal, #156082);
  content: '';
}

.review-strip__nav { display: flex; align-items: center; gap: 18px; }

.review-strip__nav a {
  color: var(--ad-text-3, #555);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.review-strip__nav a:hover,
.review-strip__nav a[aria-current="page"] { color: var(--ad-teal, #156082); }

.review-strip__nav a:focus-visible,
.signup-btn:focus-visible,
.text-link:focus-visible,
.region-link:focus-visible,
.faq-list summary:focus-visible,
.real-calculator-frame:focus-visible {
  outline: 2px solid var(--ad-teal, #156082);
  outline-offset: 2px;
}

.seo-page { padding-bottom: 36px; }

.seo-wrap { width: 100%; margin: 0 auto; }

.seo-kicker {
  display: inline-block;
  margin-bottom: var(--space-md, 16px);
  color: var(--ad-teal, #156082);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.seo-hero {
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 1fr);
  gap: var(--space-2xl, 64px);
  align-items: center;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}

.seo-hero__copy { min-width: 0; }

.seo-breadcrumb {
  margin: 0 0 26px;
  color: var(--ad-text-5, #888);
  font-size: 11px;
  line-height: 1.5;
}

.seo-breadcrumb a { color: inherit; text-decoration: none; }
.seo-breadcrumb a:hover { color: var(--ad-teal, #156082); }

.seo-hero h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 var(--space-md, 16px);
  color: var(--ad-text-1, #222);
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.seo-hero__lead {
  max-width: 660px;
  margin: 0 0 var(--space-lg, 28px);
  color: var(--ad-text-3, #555);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.seo-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.signup-btn {
  min-height: 44px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, transform .1s ease;
}

.signup-btn.primary { border: 0; background: var(--ad-teal, #156082); color: #fff; }
.signup-btn.primary .slot { color: inherit; }
.signup-btn.secondary { border: 0; background: #444; color: #fff; }
.signup-btn.suggestion { border: 1px solid var(--ad-teal, #156082); background: transparent; color: var(--ad-teal, #156082); }
.signup-btn:active { transform: scale(.98); }

@media (hover:hover) {
  .signup-btn.primary:hover { background: var(--ad-teal-deep, #0e4560); }
  .signup-btn.secondary:hover { background: #222; }
  .signup-btn.suggestion:hover { background: rgba(21,96,130,.08); }
}

.seo-hero__aside {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.build-preview {
  width: 100%;
  padding: 28px clamp(20px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.build-preview__line {
  color: var(--ad-text-1, #222);
  font-family: 'Gotham Medium', 'Inter', sans-serif;
  font-size: clamp(28px, 4.2vw, 54px);
  font-weight: 500;
  letter-spacing: .035em;
  line-height: 1.12;
}

.build-preview__line .accent { color: var(--ad-teal, #156082); }

.build-preview__caption {
  margin-top: 12px;
  color: var(--ad-text-5, #888);
  font-size: 12px;
  line-height: 1.5;
}

.engineering-grid,
.geo-orbit,
.geo-label { display: none; }

.proof-bar { padding: 28px 0; border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }

.proof-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.proof-item {
  min-width: 0;
  padding: 6px 24px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border, rgba(0,0,0,.08));
}

.proof-item:first-child { padding-left: 0; border-left: 0; }
.proof-item__value { color: var(--ad-text-1, #222); font-size: 17px; font-weight: 500; }
.proof-item__label { margin-top: 4px; color: var(--ad-text-5, #888); font-size: 11px; line-height: 1.45; }

.seo-section { margin: var(--space-2xl, 64px) 0; }
.seo-section--compact { margin: var(--space-xl, 48px) 0; }
.seo-section--white,
.seo-section--dark { background: transparent; color: inherit; }

.section-heading,
.specimen-heading {
  margin-bottom: var(--space-lg, 28px);
  padding-top: var(--space-md, 16px);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md, 16px);
  flex-wrap: wrap;
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
}

.section-heading > div:first-child,
.specimen-heading > div:first-child { max-width: 640px; }

.section-heading h2,
.specimen-heading h2 {
  margin: 0;
  padding-top: var(--space-md, 16px);
  color: var(--ad-text-1, #222);
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
}

.section-heading .seo-kicker,
.specimen-heading .seo-kicker { margin: 0 0 6px; }

.section-heading__copy,
.specimen-heading > p {
  max-width: 460px;
  margin: 0;
  color: var(--ad-text-3, #555);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.55;
}

.deliverable-list,
.dark-steps {
  padding: 34px 38px;
  border-radius: 14px;
  background: var(--ad-card-dark, #2f2f2f);
  box-shadow: 0 8px 22px rgba(30,52,72,.16);
  color: #fff;
}

.deliverable-row,
.dark-step {
  min-height: 92px;
  display: grid;
  grid-template-columns: 58px minmax(190px, .85fr) minmax(280px, 1.4fr);
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.deliverable-row:last-child,
.dark-step:last-child { border-bottom: 0; }

.deliverable-row__number,
.dark-step__number { color: rgba(255,255,255,.46); font-size: 11px; font-weight: 500; }

.deliverable-row h3,
.dark-step h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }

.deliverable-row p,
.dark-step p { margin: 0; color: rgba(255,255,255,.65); font-size: 16px; font-weight: 300; line-height: 1.4; }

.deliverable-list .slot,
.dark-steps .slot,
.calculator-intro-card .slot { color: inherit; }

.agentic-api__heading {
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 72px);
  padding-top: var(--space-md, 16px);
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
}

.agentic-api__heading h2 {
  max-width: 540px;
  margin: 6px 0 0;
  color: var(--ad-text-1, #222);
  font-family: 'Inter', sans-serif;
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.1;
}

.agentic-api__intro p {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--ad-text-3, #555);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.agentic-api__intro p:last-child { margin-bottom: 0; }

.agentic-flow {
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 8px;
  background: var(--ad-panel, #fff);
  list-style: none;
  overflow: hidden;
}

.agentic-flow li {
  min-height: 168px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border, rgba(0,0,0,.08));
}

.agentic-flow li:last-child { border-right: 0; }
.agentic-flow li span { color: var(--ad-text-5, #888); font-size: 11px; font-weight: 500; }
.agentic-flow li strong { margin: auto 0 8px; color: var(--ad-text-1, #222); font-size: 17px; font-weight: 500; }
.agentic-flow li p { margin: 0; color: var(--ad-text-3, #555); font-size: 13px; font-weight: 300; line-height: 1.5; }

.agentic-api__footer {
  margin-top: 18px;
  padding-top: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border, rgba(0,0,0,.08));
}

.agentic-api__footer p { max-width: 720px; margin: 0; color: var(--ad-text-3, #555); font-size: 13px; font-weight: 300; line-height: 1.55; }
.agentic-api__footer p strong { color: var(--ad-text-1, #222); font-weight: 500; }
.agentic-api__footer .text-link { flex: 0 0 auto; }

.location-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.region-link {
  min-height: 150px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border-radius: 16px;
  background: var(--ad-panel, #fff);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, background .22s ease;
}

.region-link:hover { transform: translateY(-3px); background: rgba(21,96,130,.07); }
.region-link__type { color: var(--ad-text-5, #888); font-size: 11px; font-weight: 500; }
.region-link strong { color: var(--ad-text-1, #222); font-size: 17px; font-weight: 500; }
.region-link span:last-child { color: var(--ad-teal, #156082); font-size: 16px; }

.faq-layout {
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.4fr);
  gap: var(--space-2xl, 64px);
}

.faq-layout h2 { margin: 0; color: var(--ad-text-1, #222); font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.faq-list { border-top: 1px solid var(--border, rgba(0,0,0,.08)); }
.faq-list details { border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }

.faq-list summary {
  min-height: 70px;
  padding: 20px 40px 20px 0;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--ad-text-1, #222);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; right: 6px; color: var(--ad-teal, #156082); content: '+'; font-size: 19px; font-weight: 300; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { max-width: 700px; margin: -2px 0 24px; color: var(--ad-text-3, #555); font-size: 14px; font-weight: 300; line-height: 1.65; }

.end-cta {
  width: 100%;
  margin: var(--space-2xl, 64px) 0 var(--space-lg, 28px);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  border-radius: 14px;
  background: var(--ad-card-dark, #2f2f2f);
  box-shadow: 0 8px 22px rgba(30,52,72,.16);
  color: #fff;
}

.end-cta__copy { min-width: 0; }
.end-cta h2 { margin: 0 0 10px; color: #fff; font-family: 'Inter', sans-serif; font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.end-cta p { max-width: 720px; margin: 0 0 20px; color: rgba(255,255,255,.65); font-size: 16px; font-weight: 300; line-height: 1.4; }
.end-cta .signup-btn.primary { background: #fff; color: var(--ad-teal, #156082); }
.end-cta__index { max-width: 280px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.5; }
.end-cta__index small { display: block; margin-bottom: 6px; color: #fff; font-size: 11px; font-weight: 500; }
.end-cta__index strong { font-weight: 300; }

.slot {
  color: var(--ad-teal, #156082);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.template-note {
  max-width: 660px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid rgba(21,96,130,.20);
  border-radius: 6px;
  background: rgba(21,96,130,.05);
  color: var(--ad-text-3, #555);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
}

.template-note strong { color: var(--ad-teal, #156082); font-weight: 500; }

.specimen-hero { padding: 56px 0 80px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); }
.specimen-hero h1 { max-width: 820px; margin: 0 0 16px; color: var(--ad-text-1, #222); font-size: clamp(28px,3.4vw,44px); font-weight:500; letter-spacing:-.025em; line-height:1.18; }
.specimen-hero p { max-width: 680px; margin: 0; color: var(--ad-text-3,#555); font-size:16px; font-weight:300; line-height:1.6; }
.specimen-block { margin: var(--space-2xl,64px) 0; }

.swatches { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; }
.swatch { min-height:130px; padding:16px; display:flex; flex-direction:column; justify-content:space-between; border-radius:14px; box-shadow:0 8px 22px rgba(30,52,72,.08); }
.swatch strong { font-size:13px; font-weight:500; }
.swatch span { font-size:11px; font-weight:300; }
.swatch--ink {background:#171717;color:#fff}.swatch--soft{background:#4d4d4d;color:#fff}.swatch--muted{background:#747474;color:#fff}.swatch--paper{background:#f5f3ef;color:#171717;border:1px solid rgba(0,0,0,.08)}.swatch--white{background:#fff;color:#171717}.swatch--teal{background:#156082;color:#fff}

.type-sample { padding:22px 0; display:grid; grid-template-columns:140px 1fr; gap:30px; align-items:baseline; border-top:1px solid var(--border,rgba(0,0,0,.08)); }
.type-sample:last-child { border-bottom:1px solid var(--border,rgba(0,0,0,.08)); }
.type-sample__label { color:var(--ad-text-5,#888); font-size:11px; font-weight:500; }
.type-sample--display span:last-child { color:var(--ad-text-1,#222); font-size:44px; font-weight:500; letter-spacing:-.025em; line-height:1.18; }
.type-sample--heading span:last-child { color:var(--ad-text-1,#222); font-size:32px; font-weight:500; letter-spacing:-.025em; }
.type-sample--body span:last-child { max-width:620px; color:var(--ad-text-3,#555); font-size:16px; font-weight:300; line-height:1.6; }
.type-sample--detail span:last-child { color:var(--ad-teal,#156082); font-size:12px; font-weight:500; }

.component-line { padding:24px 0; display:flex; flex-wrap:wrap; align-items:center; gap:12px; border-top:1px solid var(--border,rgba(0,0,0,.08)); }
.component-line:last-child { border-bottom:1px solid var(--border,rgba(0,0,0,.08)); }
.component-label { width:130px; color:var(--ad-text-5,#888); font-size:11px; font-weight:500; }
.mini-badge { padding:7px 12px; display:inline-flex; border:1px solid rgba(21,96,130,.25); border-radius:999px; background:rgba(21,96,130,.05); color:var(--ad-teal,#156082); font-size:11px; font-weight:500; }
.text-link { color:var(--ad-teal,#156082) !important; font-size:13px; font-weight:500; text-decoration:none; }
.text-link:hover { text-decoration:underline; }

.calculator-intro-card {
  width: min(100%, 500px);
  padding: 38px;
  border-radius: 14px;
  background: var(--ad-card-dark, #2f2f2f);
  box-shadow: 0 16px 40px rgba(30,52,72,.20);
  color: #fff;
}

.calculator-intro-card__eyebrow { display:block; margin-bottom:18px; color:rgba(255,255,255,.52); font-size:11px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; }
.calculator-intro-card > strong { display:block; max-width:350px; font-size:27px; font-weight:500; letter-spacing:-.025em; line-height:1.18; }
.calculator-intro-card > p { max-width:390px; margin:16px 0 28px; color:rgba(255,255,255,.64); font-size:14px; font-weight:300; line-height:1.55; }
.calculator-intro-card__path { padding-top:20px; display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid rgba(255,255,255,.12); }
.calculator-intro-card__path span { min-width:38px; min-height:38px; display:inline-flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.16); border-radius:6px; color:#fff; font-size:12px; font-weight:500; }
.calculator-intro-card__path i { color:rgba(255,255,255,.32); font-size:12px; font-style:normal; }

.calculator-section { scroll-margin-top: 18px; }
.real-calculator-shell { padding:5px; border:1px solid rgba(30,30,30,.08); border-radius:6px; background:#dfe5e9; }
.real-calculator-frame { width:100%; height:640px; display:block; border:0; border-radius:4px; background:#eef1f5; }
.calculator-source-note { margin:12px 2px 0; color:var(--ad-text-5,#888); font-size:11px; font-weight:300; line-height:1.5; }
.calculator-source-note strong { color:var(--ad-text-3,#555); font-weight:500; }

.formula-band { margin:var(--space-2xl,64px) 0; padding:26px 30px; border-radius:14px; background:var(--ad-panel,#fff); }
.formula-band__inner { display:grid; grid-template-columns:220px 1fr; gap:30px; align-items:center; }
.formula-band__label { color:var(--ad-text-5,#888); font-size:11px; font-weight:500; }
.formula { color:var(--ad-teal,#156082); font-family:'Inter',sans-serif; font-size:clamp(17px,2vw,24px); font-weight:500; }

.guide-steps {
  overflow: hidden;
  border: 1px solid var(--border, rgba(0,0,0,.08));
  border-radius: 8px;
  background: var(--ad-panel, #fff);
}

.guide-step {
  min-height: 118px;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: 46px minmax(260px, 1fr) minmax(260px, .8fr);
  gap: 24px;
  align-items: start;
  border-bottom: 1px solid var(--border, rgba(0,0,0,.08));
}

.guide-step:last-child { border-bottom: 0; }
.guide-step__number { color: var(--ad-teal, #156082); font-size: 11px; font-weight: 500; }
.guide-step h3 { margin: 0 0 7px; color: var(--ad-text-1,#222); font-size: 17px; font-weight: 500; }
.guide-step p { margin: 0; color: var(--ad-text-3,#555); font-size: 14px; font-weight: 300; line-height: 1.6; }
.guide-step__source { padding-left: 20px; border-left: 1px solid var(--border, rgba(0,0,0,.08)); }
.guide-step__source strong { display: block; margin-bottom: 5px; color: var(--ad-text-1,#222); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }

.formula-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 34px; }
.formula-list h2 { grid-column: 1 / -1; margin: 0 0 4px; color: var(--ad-text-1,#222); font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.formula-list > div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.formula-list .formula { font-size: clamp(15px,1.5vw,20px); }

.source-table-wrap { overflow-x: auto; border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 8px; background: var(--ad-panel,#fff); }
.source-table { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--ad-text-3,#555); font-size: 13px; line-height: 1.5; }
.source-table th,
.source-table td { padding: 14px 16px; border-bottom: 1px solid var(--border, rgba(0,0,0,.08)); text-align: left; vertical-align: top; }
.source-table tr:last-child td { border-bottom: 0; }
.source-table th { color: var(--ad-text-1,#222); background: rgba(0,0,0,.025); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.source-table td:first-child { color: var(--ad-text-1,#222); font-weight: 500; }

.technical-basis { margin-top: 18px; padding: 20px; display: grid; grid-template-columns: minmax(220px,.65fr) minmax(0,1.35fr); gap: 28px; border: 1px solid var(--border,rgba(0,0,0,.08)); border-radius: 8px; background: var(--ad-panel,#fff); }
.technical-basis h3 { margin: 6px 0 0; color: var(--ad-text-1,#222); font-size: 18px; font-weight: 500; }
.technical-basis dl { margin: 0; }
.technical-basis dl > div { padding: 10px 0; display: grid; grid-template-columns: minmax(150px,.55fr) minmax(0,1.45fr); gap: 18px; border-bottom: 1px solid var(--border,rgba(0,0,0,.08)); }
.technical-basis dl > div:first-child { padding-top: 0; }
.technical-basis dl > div:last-child { padding-bottom: 0; border-bottom: 0; }
.technical-basis dt { color: var(--ad-text-1,#222); font-size: 12px; font-weight: 500; }
.technical-basis dd { margin: 0; color: var(--ad-text-3,#555); font-size: 12px; font-weight: 300; line-height: 1.55; }
.technical-basis dd strong { color: inherit; font-weight: 500; }

.seo-prose-grid { display: grid; grid-template-columns: minmax(240px,.75fr) minmax(0,1.25fr); gap: 56px; align-items: start; }
.seo-prose-grid h2 { margin: 10px 0 0; color: var(--ad-text-1,#222); font-size: 32px; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; }
.seo-prose p { margin: 0 0 22px; color: var(--ad-text-3,#555); font-size: 15px; font-weight: 300; line-height: 1.7; }
.seo-prose h3 { margin: 30px 0 8px; color: var(--ad-text-1,#222); font-size: 18px; font-weight: 500; }

html.dark-mode .review-strip,
html.dark-mode .region-link,
html.dark-mode .swatch--white,
html.dark-mode .formula-band,
html.dark-mode .guide-steps,
html.dark-mode .source-table-wrap { background:#252525; }
html.dark-mode .region-link strong,
html.dark-mode .seo-hero h1,
html.dark-mode .section-heading h2,
html.dark-mode .specimen-heading h2,
html.dark-mode .faq-layout h2,
html.dark-mode .faq-list summary,
html.dark-mode .specimen-hero h1,
html.dark-mode .type-sample--display span:last-child,
html.dark-mode .type-sample--heading span:last-child,
html.dark-mode .build-preview__line,
html.dark-mode .guide-step h3,
html.dark-mode .guide-step__source strong,
html.dark-mode .source-table th,
html.dark-mode .source-table td:first-child,
html.dark-mode .seo-prose-grid h2,
html.dark-mode .seo-prose h3,
html.dark-mode .formula-list h2,
html.dark-mode .technical-basis h3,
html.dark-mode .technical-basis dt,
html.dark-mode .agentic-api__heading h2,
html.dark-mode .agentic-flow li strong,
html.dark-mode .agentic-api__footer p strong { color:#e0e0e0; }
html.dark-mode .seo-kicker,
html.dark-mode .slot,
html.dark-mode .formula,
html.dark-mode .text-link,
html.dark-mode .region-link span:last-child,
html.dark-mode .guide-step__number,
html.dark-mode .template-note strong,
html.dark-mode .build-preview__line .accent,
html.dark-mode .type-sample--detail span:last-child,
html.dark-mode .mini-badge,
html.dark-mode .faq-list summary::after,
html.dark-mode .review-strip__nav a[aria-current] { color:#f2f2f2 !important; }
html.dark-mode .signup-btn.primary,
html.dark-mode .signup-btn.primary .slot { color:#fff !important; }

@media (max-width: 960px) {
  .seo-hero { grid-template-columns:1fr; }
  .build-preview { padding-inline:0; }
  .proof-bar__inner { grid-template-columns:repeat(2,1fr); row-gap:24px; }
  .proof-item:nth-child(3) { padding-left:0; border-left:0; }
  .location-grid { grid-template-columns:repeat(2,1fr); }
  .agentic-api__heading { grid-template-columns:1fr; gap:24px; }
  .agentic-flow { grid-template-columns:repeat(2,1fr); }
  .agentic-flow li { border-bottom:1px solid var(--border,rgba(0,0,0,.08)); }
  .agentic-flow li:nth-child(2n) { border-right:0; }
  .agentic-flow li:last-child { border-bottom:0; }
  .faq-layout { grid-template-columns:1fr; gap:28px; }
  .technical-basis { grid-template-columns:1fr; gap:20px; }
  .swatches { grid-template-columns:repeat(3,1fr); }
}

@media (max-width: 700px) {
  .regional-preview .seo-no-rails > .docs-content { width:min(calc(100% - 32px),1280px); }
  .review-strip__inner { align-items:flex-start; flex-direction:column; gap:9px; }
  .review-strip__nav { width:100%; overflow-x:auto; padding-bottom:2px; }
  .review-strip__nav a { white-space:nowrap; }
  .seo-hero { padding:44px 0 56px; gap:40px; }
  .seo-hero__actions { flex-direction:column; }
  .seo-hero__actions .signup-btn { width:100%; }
  .proof-bar__inner { grid-template-columns:1fr; row-gap:0; }
  .proof-item,
  .proof-item:nth-child(3) { padding:18px 0; border-left:0; border-bottom:1px solid var(--border,rgba(0,0,0,.08)); }
  .proof-item:last-child { border-bottom:0; }
  .section-heading,
  .specimen-heading { align-items:flex-start; flex-direction:column; }
  .deliverable-list,
  .dark-steps { padding:26px 24px; }
  .deliverable-row,
  .dark-step { grid-template-columns:36px 1fr; gap:12px; padding:20px 0; }
  .deliverable-row p,
  .dark-step p { grid-column:2; font-size:14px; }
  .location-grid { grid-template-columns:1fr; gap:16px; }
  .region-link { min-height:120px; }
  .agentic-flow { grid-template-columns:1fr; }
  .agentic-flow li { min-height:0; border-right:0; }
  .agentic-flow li strong { margin:18px 0 6px; }
  .agentic-api__footer { align-items:flex-start; flex-direction:column; }
  .end-cta { padding:30px 26px; grid-template-columns:1fr; align-items:start; }
  .end-cta__index { max-width:none; }
  .swatches { grid-template-columns:1fr 1fr; }
  .type-sample { grid-template-columns:1fr; gap:10px; }
  .type-sample--display span:last-child { font-size:36px; }
  .component-label { width:100%; }
  .calculator-intro-card { padding:30px 26px; }
  .calculator-intro-card__path { gap:5px; }
  .calculator-intro-card__path span { min-width:34px; min-height:34px; }
  .real-calculator-shell { margin-inline:-8px; padding:5px; }
  .real-calculator-frame { height:760px; }
  .formula-band__inner { grid-template-columns:1fr; gap:10px; }
  .guide-step { grid-template-columns:36px 1fr; gap:12px; padding:18px; }
  .guide-step__source { grid-column:2; padding:12px 0 0; border-left:0; border-top:1px solid var(--border,rgba(0,0,0,.08)); }
  .formula-list,
  .seo-prose-grid { grid-template-columns:1fr; gap:22px; }
  .technical-basis dl > div { grid-template-columns:1fr; gap:4px; }
}

@media (prefers-reduced-motion:no-preference) {
  .seo-hero__copy,
  .seo-hero__aside,
  .specimen-hero .seo-wrap { animation:rise .7s ease both; }
  .seo-hero__aside { animation-delay:.12s; }
  @keyframes rise { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
}
