/* plaint.io – formal correspondence, made easy.
   Palette: ink-blue text, carbon-copy blue for action, registered-mail red
   used only for the stamp. Public Sans for the interface, Newsreader for
   anything that is part of a letter. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 800; font-style: italic; font-display: swap;
}

:root {
  --ink: #14213d;
  --ink-2: #2b3a5c;
  --muted: #56627a;
  --carbon: #2f55c8;
  --carbon-dark: #2443a3;
  --carbon-tint: #e8eefc;
  --stamp: #c42b2b;
  --desk: #e4e9ef;
  --soft: #f3f5f8;
  --paper: #ffffff;
  --line: #d3dae4;

  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.375rem);

  --wrap: 72rem;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--carbon); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--carbon-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); font-weight: 750; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 46rem; }
.small { font-size: var(--step--1); color: var(--muted); }
.lede { font-size: var(--step-1); color: var(--ink-2); max-width: 40em; line-height: 1.5; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* ---------- Header & footer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 2.25rem; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 1.375rem; letter-spacing: -0.03em; flex: none; }
.brand:hover { color: var(--ink); }
.logo-mark { color: var(--ink); }

.main-nav { flex: 1; }
.nav { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  font: inherit; font-weight: 580; font-size: .975rem; color: var(--ink-2);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  padding: .5rem .8rem; border-radius: var(--radius);
}
.nav a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: var(--soft); color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--carbon); border-radius: 0; }
.chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }

.header-actions { display: flex; align-items: center; gap: .75rem; margin-left: auto; }
.lang-switch { font-size: .9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; padding: .35rem .75rem; border: 1.5px solid var(--line); border-radius: 999px; }
.lang-switch:hover { border-color: var(--carbon); color: var(--carbon); text-decoration: none; }
.btn-sm { padding: .55rem .9rem; font-size: .925rem; }
.menu-toggle { display: none; width: 2.6rem; height: 2.6rem; place-items: center; background: none; border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); cursor: pointer; }
.menu-toggle svg { width: 20px; height: 20px; }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }

/* Templates mega menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(20,33,61,.28);
}
.mega[hidden] { display: none; }
.mega-inner { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 3rem; padding-top: 1.75rem; padding-bottom: 2rem; }
.mega-h { font-size: .9rem; font-weight: 700; color: var(--muted); margin: 0 0 .75rem; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
.mega-grid a { display: flex; gap: .85rem; align-items: flex-start; padding: .7rem .75rem; margin-left: -.75rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.mega-grid a:hover, .mega-grid a[aria-current="page"] { background: var(--soft); }
.mega-grid .icon { flex: none; width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 50%; background: var(--carbon-tint); color: var(--carbon); }
.mega-grid strong { display: block; font-size: .98rem; font-weight: 640; line-height: 1.3; }
.mega-grid small { display: block; font-size: .87rem; color: var(--muted); line-height: 1.4; margin-top: .1rem; }
.mega-side { border-left: 1px solid var(--line); padding-left: 2.25rem; }
.mega-side ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1.25rem; }
.mega-side li a { display: block; padding: .4rem 0; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.mega-side li a:hover { color: var(--carbon); }
.mega-more { display: inline-block; font-weight: 650; font-size: .93rem; margin-top: .25rem; }

/* Mobile menu */
.mobile-menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: calc(100vh - 4rem); overflow-y: auto; box-shadow: 0 24px 40px -24px rgba(20,33,61,.3); }
.mobile-menu[hidden] { display: none; }
.mobile-menu .wrap { padding-top: 1.25rem; padding-bottom: 1.75rem; }
.mobile-menu .mega-grid { grid-template-columns: 1fr; }
.mobile-menu .mega-grid small { display: none; }
.mobile-menu .mega-grid a { align-items: center; padding: .55rem .75rem; }
.mobile-links { list-style: none; margin: 1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .1rem; }
.mobile-links a { display: block; padding: .6rem 0; font-weight: 600; color: var(--ink); text-decoration: none; }
.mobile-cta { width: 100%; margin-top: 1rem; }

.site-footer { margin-top: 5rem; background: var(--ink); color: #c9d1e0; padding: 3.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .brand, .site-footer .logo-mark { color: #fff; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 2.5rem; }
.footer-about p { margin-top: 1rem; max-width: 26em; }
.footer-langs a { margin-right: .9rem; text-decoration: underline; text-underline-offset: .2em; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .85rem; color: #9aa6bd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: .975rem; line-height: 1.2;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s;
}
.btn:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.btn-primary { background: var(--carbon); border-color: var(--carbon); color: #fff; }
.btn-primary:hover { background: var(--carbon-dark); border-color: var(--carbon-dark); color: #fff; }
.btn-lg { padding: .9rem 1.35rem; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { background: var(--desk); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.hero h1 { max-width: 13em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 .9rem; }

.hero-desk { position: relative; display: flex; justify-content: center; }
.sheet {
  background: var(--paper); color: #1d2433;
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.6;
  padding: 2.5rem 2.6rem;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(20,33,61,.06), 0 18px 40px -18px rgba(20,33,61,.35);
}
.sheet-hero { position: relative; width: min(100%, 30rem); transform: rotate(1.2deg); font-size: .98rem; }
.sheet-hero .sender { text-align: right; color: var(--muted); font-size: .9rem; }
.sheet-hero .date { text-align: right; color: var(--muted); font-size: .9rem; }
.sheet-hero .subject { font-weight: 600; color: var(--ink); }
.sheet mark { background: var(--carbon-tint); color: var(--ink); padding: 0 .15em; border-radius: 2px; }
.stamp {
  position: absolute; right: 1.6rem; bottom: 1.8rem;
  font-family: var(--sans); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em;
  color: var(--stamp); border: 3px solid var(--stamp); border-radius: 6px;
  padding: .2rem .7rem; transform: rotate(-9deg); opacity: .85;
}

/* The one orchestrated moment: the letter writes itself, then gets stamped. */
@media (prefers-reduced-motion: no-preference) {
  .sheet-hero .l { opacity: 0; transform: translateY(4px); animation: write .45s ease-out forwards; }
  .sheet-hero .l1 { animation-delay: .15s; }
  .sheet-hero .l2 { animation-delay: .35s; }
  .sheet-hero .l3 { animation-delay: .6s; }
  .sheet-hero .l4 { animation-delay: .9s; }
  .sheet-hero .l5 { animation-delay: 1.15s; }
  .sheet-hero .l6 { animation-delay: 1.5s; }
  .sheet-hero .l7 { animation-delay: 1.8s; }
  .stamp { opacity: 0; animation: stamp .35s cubic-bezier(.2,1.6,.4,1) 2.4s forwards; }
}
@keyframes write { to { opacity: 1; transform: none; } }
@keyframes stamp {
  from { opacity: 0; transform: rotate(-9deg) scale(1.8); }
  to { opacity: .85; transform: rotate(-9deg) scale(1); }
}

/* ---------- Bands ---------- */
.band { padding: 4.5rem 0; }
.band-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-ink { background: var(--ink); color: #dfe5f0; }
.band-ink h2, .band-ink h3 { color: #fff; }
.section-lede { color: var(--muted); max-width: 40em; margin-bottom: 2rem; }

/* Category list: rows, not cards. */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.cat-list li { border-bottom: 1px solid var(--line); }
.cat-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.cat-list a { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.25rem 1.25rem 0; color: var(--ink); text-decoration: none; }
.cat-list li:nth-child(even) a { padding-left: 1.25rem; }
.cat-list a:hover strong { color: var(--carbon); text-decoration: underline; text-underline-offset: .18em; }
.cat-list .icon { flex: none; width: 2.5rem; height: 2.5rem; padding: .5rem; border-radius: 50%; background: var(--carbon-tint); color: var(--carbon); }
.cat-list strong { display: block; font-size: 1.075rem; font-weight: 650; }
.cat-list small { display: block; color: var(--muted); font-size: .94rem; margin-top: .15rem; line-height: 1.5; }
.cat-list.compact { grid-template-columns: 1fr; border-top: 0; }
.cat-list.compact li, .cat-list.compact li:nth-child(odd) { border-right: 0; }
.cat-list.compact a, .cat-list.compact li:nth-child(even) a { padding: .65rem 0; align-items: center; gap: .75rem; font-weight: 550; }
.cat-list.compact .icon { width: 2rem; height: 2rem; padding: .4rem; }

/* How it works: an actual sequence, so it's numbered. */
.how { list-style: none; counter-reset: how; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.how li { counter-increment: how; position: relative; padding-top: 3.25rem; }
.how li::before {
  content: counter(how); position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid #7f92c6;
  display: grid; place-items: center; font-weight: 700; color: #fff;
}
.how p { color: #c3cbdb; }

/* EU261 table */
.eu261 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.eu261 p { color: var(--ink-2); max-width: 34em; }
.amounts { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.amounts caption { text-align: left; font-weight: 650; padding-bottom: .75rem; color: var(--muted); font-size: .95rem; }
.amounts th { text-align: left; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid var(--ink); padding: .5rem 0; }
.amounts th:last-child, .amounts td:last-child { text-align: right; }
.amounts td { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.amounts td:last-child { font-family: var(--serif); font-size: 1.85rem; font-weight: 600; color: var(--ink); line-height: 1; }

/* Company groups & chips */
.company-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem 3rem; }
.company-group h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips a {
  display: inline-block; padding: .4rem .85rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  text-decoration: none; font-size: .94rem; font-weight: 550;
}
.chips a:hover { border-color: var(--carbon); color: var(--carbon); }

/* ---------- Inner pages ---------- */
.crumbs { padding: 1.25rem 0 0; font-size: .9rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: #a3adbf; }
.crumbs a { color: var(--muted); }
.page-head { padding: 1.75rem 0 2.25rem; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem); max-width: 20em; }

.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; margin-top: 3.5rem; }
.prose { max-width: 42rem; }
.prose section { margin-bottom: 2.75rem; }
.prose h2 { font-size: var(--step-2); }
.side .related { margin-bottom: 2.5rem; }
.side h2 { font-size: 1.05rem; margin-bottom: .9rem; }

.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.75rem; margin-bottom: .7rem; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .55em; width: .8rem; height: .45rem;
  border-left: 2px solid var(--carbon); border-bottom: 2px solid var(--carbon); transform: rotate(-45deg);
}

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.5rem 3rem; border-left: 1.5px solid var(--line); margin-left: 1rem; }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(s); position: absolute; left: -1rem; top: -.1rem;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .3rem; }

.tmpl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.tmpl-link { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper); }
.tmpl-link:hover { border-color: var(--carbon); color: var(--ink); }
.tmpl-link .icon { flex: none; color: var(--carbon); }
.tmpl-link strong { display: block; }
.tmpl-link small { display: block; color: var(--muted); font-size: .9rem; }

.partners { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; margin-bottom: 2.75rem; }
.partners h2 { font-size: var(--step-1); }
.partners ul { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .6rem; }
.partners li a { display: block; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.partners li a:hover { border-color: var(--carbon); }
.partners li strong { display: block; color: var(--carbon); }
.partners li span { font-size: .94rem; color: var(--ink-2); }

.faq { margin: 3rem 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-size: 1.5rem; font-weight: 400; color: var(--carbon); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); padding-bottom: .5rem; }
.disclaimer { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: 1rem; }

.legal h2 { font-size: var(--step-1); margin-top: 2rem; }
.notfound { padding-top: 4rem; }

/* ---------- Letter builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2.5rem; align-items: start; background: var(--desk); border-radius: 10px; padding: 2rem; }
.builder-form fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.builder-form legend { font-weight: 700; font-size: 1.05rem; margin-bottom: .75rem; padding: 0; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid #bfc8d6; border-radius: var(--radius);
  padding: .65rem .75rem; width: 100%; min-width: 0;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--carbon); box-shadow: 0 0 0 3px rgba(47,85,200,.2); }
.hint { font-size: .85rem; color: var(--muted); margin: 0; }
.privacy-note { font-size: .88rem; color: var(--muted); display: flex; gap: .5rem; }

/* Optional parts of the letter */
.builder-form fieldset.options { grid-template-columns: 1fr; gap: .6rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; padding: .7rem .85rem; background: var(--paper); border: 1.5px solid #bfc8d6; border-radius: var(--radius); }
.check:has(input:checked) { border-color: var(--carbon); }
.check input { flex: none; width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; accent-color: var(--carbon); cursor: pointer; }
.check span { display: flex; flex-direction: column; gap: .1rem; }
.check strong { font-size: .95rem; font-weight: 600; }
.check small { font-size: .85rem; color: var(--muted); line-height: 1.4; }
.sub-field { margin: -.2rem 0 .3rem 2.7rem; }
.sub-field[hidden] { display: none; }

.preview-sticky { position: sticky; top: 5.5rem; }
.builder .sheet { min-height: 28rem; font-size: 1rem; white-space: normal; overflow-wrap: anywhere; }
.sheet .ph { color: var(--carbon); background: var(--carbon-tint); border-radius: 2px; padding: 0 .2em; font-style: italic; }
.sheet .r { text-align: right; }
.sheet .subj { font-weight: 650; color: var(--ink); }
.sheet p { margin-bottom: .9em; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.status { min-height: 1.5em; font-size: .92rem; color: var(--carbon-dark); font-weight: 600; margin: .6rem 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .js .main-nav, .js .header-cta { display: none; }
  .js .menu-toggle { display: grid; }
  .header-inner { gap: 1rem; }
  .hero-inner, .eu261, .prose-grid, .builder { grid-template-columns: 1fr; }
  .hero-inner { padding-top: 3rem; padding-bottom: 3.5rem; gap: 2.5rem; }
  .prose-grid { gap: 1rem; }
  .preview-sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  html:not(.js) .header-inner { flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
  html:not(.js) .main-nav { order: 3; flex-basis: 100%; }
  html:not(.js) .header-cta { display: none; }
  html:not(.js) .nav a { padding: .4rem .55rem; font-size: .9rem; white-space: nowrap; }
  html:not(.js) .nav li:first-child a { padding-left: 0; }
  .lang-switch { padding: .3rem .65rem; font-size: .85rem; }

  .cat-list { grid-template-columns: 1fr; }
  .cat-list li:nth-child(odd) { border-right: 0; }
  .cat-list li:nth-child(even) a { padding-left: 0; }
  .how { grid-template-columns: 1fr; gap: 1.75rem; }
  .company-groups { grid-template-columns: 1fr; }
  .builder { padding: 1.25rem; margin: 0 -1.25rem; border-radius: 0; }
  .builder-form fieldset { grid-template-columns: 1fr; }
  .sheet { padding: 1.6rem 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .band { padding: 3.25rem 0; }
}

/* ---------- Print: only the letter ---------- */
@media print {
  body * { visibility: hidden; }
  #letter, #letter * { visibility: visible; }
  #letter { position: absolute; inset: 0; box-shadow: none; padding: 0; font-size: 12pt; min-height: 0; }
  #letter .ph { background: none; color: inherit; }
}

/* Keep anchored sections clear of the sticky header. */
[id] { scroll-margin-top: 5.5rem; }
.nav-trigger[data-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--carbon); border-radius: 0; }
.nav-trigger[data-current][aria-expanded="true"], .nav-trigger[data-current]:hover { border-radius: var(--radius); box-shadow: none; }
