/* Upstream Chargeback Solutions — design system
   Ink navy base, paper surfaces, signal green for recovered money. */

:root {
  /* Color */
  --ink-900: #071320;
  --ink-800: #0B1D30;
  --ink-700: #12293F;
  --ink-600: #1D3A54;
  --ink-500: #33556F;
  --ink-400: #5C7A92;
  --ink-300: #92A8B8;

  --paper: #F8F6F1;
  --paper-2: #F1EEE6;
  --paper-3: #E7E2D6;
  --white: #FFFFFF;

  --signal: #0E8F5C;      /* recovered money */
  --signal-bright: #16B978;
  --signal-soft: #E4F2EB;
  --amber: #B5751A;       /* at-risk / leakage */
  --amber-soft: #F6EBD8;
  --red: #A32B2B;

  --rule: #D8D2C4;
  --rule-dark: rgba(255, 255, 255, 0.14);

  --text: #0F1E2C;
  --text-muted: #4B6072;
  --text-invert: #F4F2EC;
  --text-invert-muted: #A9BCCB;

  /* Type */
  --font-display: 'Zodiak', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Switzer', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-hero: clamp(2.5rem, 6vw, 4.25rem);

  /* Space */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem;
  --s9: 6rem; --s10: 8rem;

  --maxw: 1180px;
  --maxw-prose: 44rem;
  --radius: 3px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: var(--text-hero); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 var(--s4); }
a { color: var(--ink-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: var(--ink-300); }
a:hover { color: var(--signal); text-decoration-color: var(--signal); }
strong { font-weight: 600; }
small { font-size: var(--text-sm); }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { max-width: 100%; height: auto; display: block; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s5); }
.prose-wrap { width: 100%; max-width: var(--maxw-prose); margin-inline: auto; padding-inline: var(--s5); }
section { padding-block: var(--s8); }
@media (min-width: 900px) { section { padding-block: var(--s9); } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 var(--s4);
  font-weight: 500;
}
.eyebrow--muted { color: var(--ink-400); }
.on-ink .eyebrow { color: var(--signal-bright); }

.lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 40rem; }
.on-ink .lede { color: var(--text-invert-muted); }

.on-ink { background: var(--ink-900); color: var(--text-invert); }
.on-ink h1, .on-ink h2, .on-ink h3, .on-ink h4 { color: var(--white); }
.on-ink a { color: var(--white); text-decoration-color: rgba(255,255,255,.4); }
.on-ink a:hover { color: var(--signal-bright); text-decoration-color: var(--signal-bright); }
.on-paper-2 { background: var(--paper-2); }

.rule { border: 0; border-top: 1px solid var(--rule); margin: var(--s7) 0; }
.on-ink .rule { border-color: var(--rule-dark); }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(248,246,241,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand svg { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.05; letter-spacing: -0.02em; }
.brand-sub { display: block; font-family: var(--font-mono); font-size: 0.575rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-400); font-weight: 500; }

.nav { display: none; align-items: center; gap: var(--s5); }
@media (min-width: 1000px) { .nav { display: flex; } .nav-toggle { display: none; } }
.nav a {
  font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--ink-700);
  padding-block: 0.35rem; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); border-bottom-color: var(--signal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600;
  padding: 0.7rem 1.15rem; border-radius: var(--radius); text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  line-height: 1.2;
}
.btn--primary { background: var(--signal); color: #fff; }
.btn--primary:hover { background: #0b7a4e; color: #fff; }
.btn--ghost { border-color: var(--ink-300); color: var(--ink-700); background: transparent; }
.btn--ghost:hover { border-color: var(--ink-700); color: var(--ink-900); background: rgba(0,0,0,.02); }
.on-ink .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.on-ink .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn--lg { font-size: var(--text-base); padding: 0.9rem 1.5rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--rule);
  border-radius: var(--radius); padding: .5rem .75rem; font-family: var(--font-body); font-size: var(--text-sm);
  font-weight: 600; color: var(--ink-700);
}
.mobile-nav { display: none; border-top: 1px solid var(--rule); background: var(--paper); }
.mobile-nav.open { display: block; }
@media (min-width: 1000px) { .mobile-nav, .mobile-nav.open { display: none; } }
.mobile-nav ul { list-style: none; margin: 0; padding: var(--s4) 0 var(--s5); }
.mobile-nav li a {
  display: block; padding: .7rem var(--s5); text-decoration: none; color: var(--ink-700);
  font-weight: 500; border-bottom: 1px solid var(--paper-3);
}
.mobile-nav li a:hover { color: var(--signal); }
.mobile-nav .sub a { padding-left: calc(var(--s5) + 1rem); font-size: var(--text-sm); color: var(--text-muted); }
.mobile-nav .cta-row { padding: var(--s4) var(--s5) 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink-900); color: #fff;
  padding: .75rem 1rem; z-index: 100; text-decoration: none;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s8) var(--s8); position: relative; overflow: hidden; }
@media (min-width: 900px) { .hero { padding-block: var(--s9) var(--s9); } }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); } }
.hero h1 { margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.page-head { padding-block: var(--s7) var(--s6); border-bottom: 1px solid var(--rule-dark); }
@media (min-width: 900px) { .page-head { padding-block: var(--s8) var(--s7); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s5); display: flex; flex-direction: column;
}
.card h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 650; letter-spacing: -0.01em; }
.card p:last-child { margin-bottom: 0; }
.card--link { text-decoration: none; color: inherit; transition: border-color .16s ease, transform .16s ease; }
.card--link:hover { border-color: var(--signal); color: inherit; }
.card__index { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--signal); letter-spacing: .1em; margin-bottom: var(--s3); }
.on-ink .card { background: var(--ink-800); border-color: var(--rule-dark); }
.on-ink .card--link:hover { border-color: var(--signal-bright); }

.tile {
  border-top: 2px solid var(--ink-900); padding-top: var(--s4);
}
.on-ink .tile { border-top-color: var(--signal-bright); }

/* ---------- Lists ---------- */
.checklist { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.checklist li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: .55rem;
  border-left: 2px solid var(--signal); border-bottom: 2px solid var(--signal); transform: rotate(-45deg);
}
.bare-list { list-style: none; margin: 0; padding: 0; }
.bare-list li { padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.on-ink .bare-list li { border-color: var(--rule-dark); }

.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.pill {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .04em;
  border: 1px solid var(--rule); background: var(--white); padding: .3rem .6rem; border-radius: 100px; color: var(--ink-600);
}
.on-ink .pill { background: transparent; border-color: var(--rule-dark); color: var(--text-invert-muted); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin-bottom: var(--s5); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
table { border-collapse: collapse; width: 100%; font-size: var(--text-sm); min-width: 32rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); font-weight: 500; background: var(--paper-2); }
tbody tr:last-child td { border-bottom: 0; }
td code, .code { font-family: var(--font-mono); font-size: .82em; background: var(--paper-2); padding: .1rem .3rem; border-radius: 2px; }

/* ---------- Stat / callout ---------- */
.stat { display: flex; flex-direction: column; gap: .2rem; }
.stat__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: var(--text-sm); color: var(--text-muted); }
.on-ink .stat__label { color: var(--text-invert-muted); }
.stat__src { font-size: var(--text-xs); color: var(--ink-400); }

.callout {
  border-left: 3px solid var(--signal); background: var(--signal-soft);
  padding: var(--s4) var(--s5); border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--s5);
}
.callout--amber { border-left-color: var(--amber); background: var(--amber-soft); }
.callout p:last-child { margin-bottom: 0; }
.callout h4 { margin-bottom: .4rem; }

.placeholder {
  border: 1px dashed var(--amber); background: repeating-linear-gradient(135deg, var(--amber-soft), var(--amber-soft) 10px, #fff8ec 10px, #fff8ec 20px);
  padding: var(--s4) var(--s5); border-radius: var(--radius); margin-bottom: var(--s5);
}
.placeholder .placeholder__tag {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber); display: block; margin-bottom: .35rem; font-weight: 500;
}
.placeholder p:last-child { margin-bottom: 0; }
.on-ink .placeholder { background: rgba(181,117,26,.12); }
.on-ink .placeholder p { color: var(--text-invert); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.on-ink .faq, .on-ink .faq details { border-color: var(--rule-dark); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s4) 2.5rem var(--s4) 0; position: relative;
  font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.25rem; color: var(--signal); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 var(--s5); max-width: 46rem; color: var(--text-muted); }
.on-ink .faq details > div { color: var(--text-invert-muted); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 var(--s6) var(--s7);
  border-left: 1px solid var(--rule); margin-left: .9rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -0.95rem; top: -0.15rem; width: 1.9rem; height: 1.9rem;
  background: var(--ink-900); color: #fff; border-radius: 50%;
  font-family: var(--font-mono); font-size: .6875rem; display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
.on-ink .steps > li { border-left-color: var(--rule-dark); }
.on-ink .steps > li::before { background: var(--signal); }
.steps h3 { font-size: var(--text-lg); font-family: var(--font-body); font-weight: 650; margin-bottom: .35rem; }
.steps p:last-child { margin-bottom: 0; }

/* ---------- Figures ---------- */
figure { margin: var(--s6) 0; }
figure svg { width: 100%; height: auto; }
figcaption { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--s3); }
.on-ink figcaption { color: var(--text-invert-muted); }
.figure-frame {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5);
}
.on-ink .figure-frame { background: var(--ink-800); border-color: var(--rule-dark); }

/* ---------- Article ---------- */
.article-body { max-width: var(--maxw-prose); }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: var(--s7); }
.article-body h3 { font-size: var(--text-xl); margin-top: var(--s6); font-family: var(--font-body); font-weight: 650; }
.article-body ul, .article-body ol { padding-left: 1.2rem; margin-bottom: var(--s4); }
.article-body li { margin-bottom: .45rem; }
.article-body figure, .article-body .table-scroll, .article-body .callout { margin-block: var(--s6); }
.article-meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-400); }
.byline { color: var(--text-muted); font-size: var(--text-sm); }

.breadcrumb { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--s5); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.breadcrumb li::after { content: "/"; margin-left: .4rem; color: var(--ink-300); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--text-muted); }
.on-ink .breadcrumb, .on-ink .breadcrumb a { color: var(--text-invert-muted); }
.on-ink .breadcrumb li::after { color: var(--ink-500); }

.toc { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s5); margin-bottom: var(--s6); }
.toc h2 { font-size: var(--text-sm) !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); margin: 0 0 var(--s3) !important; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: var(--text-sm); }
.toc li { margin-bottom: .3rem; }

.sources { font-size: var(--text-sm); }
.sources ol { padding-left: 1.2rem; }
.sources li { margin-bottom: .5rem; word-break: break-word; }

/* ---------- Form ---------- */
.form-grid { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .35rem; }
.hint { font-weight: 400; color: var(--text-muted); font-size: var(--text-xs); display: block; margin-top: .2rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--text-base); color: var(--text);
  padding: .65rem .8rem; border: 1px solid var(--ink-300); border-radius: var(--radius); background: var(--white);
}
textarea { min-height: 8rem; resize: vertical; }
select[multiple] { min-height: 10rem; }
input:focus, select:focus, textarea:focus { border-color: var(--signal); outline: 2px solid rgba(14,143,92,.25); outline-offset: 0; }
fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--s4); margin: 0; }
legend { font-size: var(--text-sm); font-weight: 600; padding-inline: .4rem; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
@media (min-width: 700px) { .checkbox-grid { grid-template-columns: repeat(3, 1fr); } }
.checkbox-grid label { display: flex; align-items: center; gap: .45rem; font-weight: 400; font-size: var(--text-sm); margin: 0; }
.checkbox-grid input { accent-color: var(--signal); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink-900); color: var(--text-invert); }
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band .lede { color: var(--text-invert-muted); }
.cta-inner { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 900px) { .cta-inner { grid-template-columns: 1.3fr .7fr; } .cta-inner .cta-actions { justify-self: end; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--text-invert-muted); padding-block: var(--s7) var(--s6); border-top: 1px solid var(--rule-dark); font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-300); font-weight: 500; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: var(--text-invert-muted); text-decoration: none; }
.site-footer a:hover { color: var(--signal-bright); text-decoration: underline; }
.footer-brand svg { color: #fff; }
.footer-bottom { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--rule-dark); display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: var(--text-xs); color: var(--ink-400); }
.footer-note { max-width: 34rem; font-size: var(--text-xs); color: var(--ink-400); line-height: 1.6; }

/* ---------- Utilities ---------- */
.mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--s6); }
.mt-5 { margin-top: var(--s5); }
.mt-4 { margin-top: var(--s4); }
.center { text-align: center; }
.max-40 { max-width: 40rem; }
.max-48 { max-width: 48rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section-head { margin-bottom: var(--s6); }
.section-head h2 { margin-bottom: var(--s3); }
.two-col-text { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .two-col-text { grid-template-columns: 0.85fr 1.15fr; gap: var(--s8); } }

/* ---------- Overflow guards ---------- */
.two-col-text > *, .grid > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
.table-scroll { max-width: 100%; }
.figure-frame svg, .article-body svg { max-width: 100%; height: auto; display: block; }
.cta-band .btn--ghost, .page-head .btn--ghost, .hero .btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; background: transparent; }
.cta-band .btn--ghost:hover, .page-head .btn--ghost:hover, .hero .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.10); color: #fff; }
@media (min-width: 1000px) { .nav-toggle { display: none !important; } }

/* Wide diagrams pan horizontally on small screens rather than shrinking to illegibility */
@media (max-width: 760px) {
  .figure-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: var(--s4); }
  .figure-frame > svg { min-width: 640px; }
  .figure-frame figcaption { min-width: 0; }
}
@media (max-width: 760px) {
  .figure-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .figure-scroll > svg { min-width: 640px; }
}
.figure-scroll > svg, figure > svg { max-width: 100%; height: auto; display: block; }

/* ---------- Newsletter ---------- */
.newsletter__inner { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .newsletter__inner { grid-template-columns: 1.05fr 1fr; gap: var(--s8); align-items: center; } }
.newsletter h2 { max-width: 24ch; }
.newsletter.on-ink h2 { color: #fff; }
.newsletter.on-ink .lede { color: var(--text-invert-muted); }
.newsletter__form { max-width: 30rem; }
.newsletter.on-ink label { color: #fff; }
.newsletter__row { display: grid; gap: .6rem; }
@media (min-width: 520px) { .newsletter__row { grid-template-columns: 1fr auto; } }
.newsletter__row .btn { white-space: nowrap; justify-content: center; }
.newsletter__consent { font-size: var(--text-xs); line-height: 1.55; color: var(--text-muted); margin: .75rem 0 0; }
.newsletter.on-ink .newsletter__consent { color: var(--text-invert-muted); }
.newsletter.on-ink .newsletter__consent a { color: #fff; }
.newsletter__notice {
  font-family: var(--font-mono); font-size: var(--text-xs); line-height: 1.55;
  margin: .75rem 0 0; padding: .6rem .75rem; border-radius: var(--radius);
  background: rgba(181,117,26,.12); border: 1px dashed rgba(181,117,26,.5); color: var(--ink-700);
}
.newsletter.on-ink .newsletter__notice { color: #F4F2EC; }
.newsletter__status { font-size: var(--text-sm); font-weight: 600; margin: .75rem 0 0; }
.newsletter__status[data-state="ok"] { color: var(--signal); }
.newsletter.on-ink .newsletter__status[data-state="ok"] { color: #6ee7b7; }
.newsletter__status[data-state="err"] { color: #b4232a; }
.newsletter.on-ink .newsletter__status[data-state="err"] { color: #fca5a5; }
.newsletter__form input:disabled { opacity: .55; cursor: not-allowed; }
.newsletter__form .btn:disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.newsletter__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- Inquiry form: validation + submission states ----------------------- */
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field-error {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #b4232a;
  margin: .4rem 0 0;
}

.form-grid input[aria-invalid="true"],
.form-grid textarea[aria-invalid="true"] {
  border-color: #b4232a;
  box-shadow: 0 0 0 3px rgba(180, 35, 42, .12);
}

#form-status[data-state="ok"] {
  border-left-color: var(--signal);
  background: rgba(22, 185, 120, .08);
}

#form-status[data-state="err"] {
  border-left-color: #b4232a;
  background: rgba(180, 35, 42, .07);
}

#form-status a { text-decoration: underline; }

.form-grid button[type="submit"]:disabled {
  opacity: .6;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- 404 page link lists ------------------------------------------------ */
.link-list { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.link-list li { border-top: 1px solid var(--ink-200); }
.link-list li:last-child { border-bottom: 1px solid var(--ink-200); }
.link-list a {
  display: block;
  padding: .7rem 0;
  font-weight: 600;
  color: var(--ink-900);
  text-decoration: none;
}
.link-list a:hover { color: var(--signal); }
