/* ==========================================================================
   Daniel Butnar — web accessibility for online shops
   Design system. This site has to pass the audit it sells: every colour pair
   below is WCAG AA or better, focus is always visible, motion is optional.
   ========================================================================== */

:root {
  /* Colour. Yellow is the tactile-paving reference: a background and a marker,
     never a text colour. */
  --ink: #0F1F3D;        /* navy, 16:1 on white */
  --ink-2: #1B2E52;
  --paper: #FFFFFF;
  --paper-2: #F2F4F8;    /* cool tint for alternating sections */
  --signal: #FFD100;     /* ink on signal: 11:1 */
  --signal-2: #FFE566;
  --slate: #475467;      /* secondary text, 7.6:1 on white */
  --muted-d: #B8C2D6;    /* secondary text on ink, 9:1 */
  --line: rgba(15, 31, 61, .18);
  --line-d: rgba(255, 255, 255, .22);
  --fail: #B42318;       /* 6.6:1 on white */
  --fail-bg: #FDEDEB;
  --warn: #B54708;       /* 5.4:1 on white */
  --warn-bg: #FFF3E6;
  --pass: #067647;       /* 5.7:1 on white */
  --pass-bg: #E6F4EC;
  --focus: var(--ink);

  --font: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 68px;

  /* Type scale, major third from 18px */
  --t-s: .889rem;
  --t-0: 1rem;
  --t-1: 1.15rem;
  --t-2: 1.375rem;
  --t-3: clamp(1.5rem, 1.1rem + 1.4vw, 1.95rem);
  --t-4: clamp(1.9rem, 1.3rem + 2.2vw, 2.7rem);
  --t-5: clamp(2.25rem, 1.4rem + 3.4vw, 3.9rem);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-footer :focus-visible { --focus: var(--signal); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 300;
  background: var(--signal); color: var(--ink); padding: 10px 16px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 750; line-height: 1.12; letter-spacing: -.012em; margin: 0 0 .5em; text-wrap: balance; overflow-wrap: anywhere; }
:lang(de) :is(h1, h2, h3) { hyphens: auto; } /* long German compounds such as "Datenschutzerklärung" at 375 px */
h1 { font-size: var(--t-5); letter-spacing: -.02em; }
h2 { font-size: var(--t-4); }
h3 { font-size: var(--t-3); }
h4 { font-size: var(--t-2); }
p, ul, ol, dl, table, pre, figure { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
.lead { font-size: var(--t-2); line-height: 1.45; max-width: 34em; }
.measure { max-width: 65ch; }
.small { font-size: var(--t-s); }
.muted { color: var(--slate); }
.on-ink .muted { color: var(--muted-d); }
strong, b { font-weight: 700; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: from-font; text-underline-offset: .14em; }
a:hover { text-decoration-thickness: 3px; text-decoration-color: var(--signal); }
code, kbd, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--paper-2); padding: .1em .35em; border-radius: 4px; }
.on-ink code { background: rgba(255, 255, 255, .12); }
pre {
  font-family: var(--mono); font-size: var(--t-s); line-height: 1.5;
  background: var(--ink); color: #F5F7FB; padding: 1em 1.2em; border-radius: var(--r);
  white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; /* wraps instead of scrolling, so no keyboard-unreachable scroll region */
}
pre code { background: none; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.section-title { max-width: 26ch; }
.section-title + .lead { margin-top: -.2em; }

/* ---------- Layout ---------- */
.section { padding-block: clamp(3.2rem, 7vw, 6rem); }
.section--tint { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--signal { background: var(--signal); color: var(--ink); }
.section + .section:not(.section--tint):not(.section--ink):not(.section--signal) { padding-top: 0; }
.grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--side { grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 880px) { .grid--side { grid-template-columns: 5fr 7fr; } }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

/* Tactile-paving strip: the one brand ornament, used sparingly. */
.paving {
  height: 12px;
  background-color: var(--signal);
  background-image: radial-gradient(circle, rgba(15, 31, 61, .28) 1.6px, transparent 2.2px);
  background-size: 12px 12px;
  background-position: 6px 6px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --tx: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .7em 1.35em; border-radius: var(--r);
  background: var(--bg); color: var(--tx); border: 2px solid var(--bd);
  font: 700 var(--t-0)/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { --bg: var(--ink-2); --bd: var(--ink-2); text-decoration: none; }
.btn--signal { --bg: var(--signal); --tx: var(--ink); --bd: var(--signal); }
.btn--signal:hover { --bg: var(--signal-2); --bd: var(--signal-2); }
.btn--ghost { --bg: transparent; --tx: currentColor; --bd: currentColor; }
.btn--ghost:hover { --bg: rgba(15, 31, 61, .06); --bd: currentColor; }
.on-ink .btn--ghost:hover { --bg: rgba(255, 255, 255, .1); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header__inner { min-height: var(--header-h); display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 750; font-size: var(--t-1); margin-right: auto; padding-block: .6rem; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__tag { font-weight: 400; color: var(--slate); }
@media (max-width: 640px) { .brand__tag { display: none; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem 1.4rem; flex-wrap: wrap; }
.site-nav a { text-decoration: none; padding: .5rem 0; display: inline-block; font-weight: 500; border-bottom: 3px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--signal); }

.lang { display: flex; gap: .15rem; align-items: center; }
.lang a { text-decoration: none; padding: .45rem .55rem; border-radius: var(--r); font-size: var(--t-s); font-weight: 700; letter-spacing: .02em; }
.lang a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.lang a:not([aria-current]):hover { background: var(--paper-2); }

.burger { display: none; min-width: 48px; min-height: 48px; border: 2px solid var(--ink); background: var(--paper); border-radius: var(--r); font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); }
@media (max-width: 800px) {
  .js .burger { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: 0 .8rem; }
  .js .site-nav { display: none; width: 100%; padding-block: .5rem 1rem; }
  .js .menu-open .site-nav { display: block; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .js .site-nav a[aria-current="page"], .js .site-nav a:hover { border-bottom-color: var(--signal); }
  .site-nav:not(.js *) { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 2.7vw, 3rem); max-width: 20ch; }
@media (min-width: 880px) { .hero .grid--side { grid-template-columns: 6fr 6fr; align-items: center; } }
.hero .lead { margin-top: 1.1rem; }
.hero .cluster { margin-top: 1.8rem; }
.hero__law { margin-top: 1.6rem; font-size: var(--t-s); color: var(--slate); max-width: 40em; }

/* The mock shop page. Decorative for screen readers (the caption explains it), and the
   one place where motion is spent: the four barrier markers appear once, in sequence. */
.demo { position: relative; }
.mock {
  position: relative; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper);
  padding: 0; overflow: visible; font-size: 14px; line-height: 1.3; user-select: none;
}
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock__logo { width: 62px; height: 16px; background: var(--ink); border-radius: 3px; }
.mock__search { flex: 1; height: 28px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-2); }
.mock__cart { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.mock__cart::after { content: ""; position: absolute; inset: 7px 6px 6px 6px; border: 2px solid var(--slate); border-top-width: 1px; border-radius: 0 0 3px 3px; }
.mock__body { display: grid; grid-template-columns: 1.05fr 1fr; gap: 16px; padding: 16px 14px 18px; }
.mock__img {
  aspect-ratio: 4 / 3; border-radius: 6px;
  background: linear-gradient(135deg, #DCE3EE, #B9C6DA);
  position: relative; overflow: hidden;
}
.mock__img::before { content: ""; position: absolute; left: 22%; right: 22%; top: 18%; bottom: 18%; border-radius: 50% 50% 8px 8px; background: #7C8DA8; opacity: .55; }
.mock__info { display: grid; gap: 8px; align-content: start; }
.mock__title { height: 12px; width: 80%; background: var(--ink); border-radius: 3px; opacity: .9; }
.mock__title--2 { width: 55%; opacity: .5; }
.mock__price { font-weight: 800; font-size: 20px; margin-top: 4px; }
/* The "button" is an abstract bar (light bar on light blue) so the illustration shows a
   low-contrast button without putting real low-contrast text on this page. */
.mock__cta { position: relative; height: 34px; border-radius: 6px; background: #5A8CF0; }
.mock__cta::before { content: ""; position: absolute; left: 22%; right: 22%; top: 13px; height: 8px; border-radius: 4px; background: #F4F7FF; }
.mock__field { height: 30px; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; }
.mock__field::before { content: "Notify me: e-mail"; font-size: 12px; color: #667085; padding: 7px 8px; display: block; }
.mock__icon { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 6px; margin-top: 2px; position: relative; justify-self: start; }
.mock__icon::after { content: ""; position: absolute; inset: 8px; border: 2px solid var(--slate); border-radius: 50% 50% 0 50%; transform: rotate(45deg); }

.marker {
  position: absolute; z-index: 2; left: var(--x); top: var(--y);
  display: inline-block; max-width: 220px;
  background: var(--signal); color: var(--ink); font-weight: 700; font-size: 13px; line-height: 1.25;
  padding: 6px 10px 6px 26px; border-radius: 6px; border: 2px solid var(--ink);
  box-shadow: 0 6px 18px rgba(15, 31, 61, .18);
  transform-origin: 0 50%;
}
.marker::before {
  content: ""; position: absolute; left: 9px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--ink);
}
.marker--fail::before { background: var(--fail); box-shadow: 0 0 0 2px var(--paper); }
.demo:has(#show-barriers:not(:checked)) .marker { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .marker { animation: marker-in .45s var(--ease) both; animation-delay: calc(.5s + var(--i, 0) * .45s); }
  @keyframes marker-in {
    from { opacity: 0; transform: translateY(6px) scale(.96); }
    to { opacity: 1; transform: none; }
  }
}
.demo__toggle { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; font-size: var(--t-s); font-weight: 500; cursor: pointer; }
.demo__toggle input { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); cursor: pointer; }
@media (max-width: 500px) {
  .mock { font-size: 12px; }
  .mock__body { gap: 10px; padding: 12px 10px 14px; }
  .marker { max-width: 150px; font-size: 12px; padding: 4px 8px 4px 22px; }
}

/* ---------- Proof strip ---------- */
.proof { border-block: 1px solid var(--line); }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.proof__list li { padding: 1.4rem 1.4rem 1.4rem 0; border-right: 1px solid var(--line); }
.proof__list li:last-child { border-right: 0; }
.proof__list li + li { padding-left: 1.4rem; }
.proof__n { display: block; font-size: var(--t-4); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.proof__l { display: block; margin-top: .4rem; color: var(--slate); font-size: var(--t-s); max-width: 22em; }
.section--ink .proof__l { color: var(--muted-d); }
@media (max-width: 700px) {
  .proof__list li { border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem 0; }
  .proof__list li + li { padding-left: 0; }
  .proof__list li:last-child { border-bottom: 0; }
}

/* ---------- Facts (law) ---------- */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.facts li { border-top: 3px solid var(--ink); padding-top: 1rem; }
.facts h3 { font-size: var(--t-2); margin-bottom: .4em; }
.facts p { margin: 0; }
.facts p + p { margin-top: .6em; }

/* ---------- Process (a real sequence, so it is numbered) ---------- */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: .8rem 1rem; align-items: start; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--signal); color: var(--ink); font-weight: 800; font-size: var(--t-1); border: 2px solid var(--ink);
}
.steps h3 { font-size: var(--t-1); margin: .35em 0 .3em; }
.steps p { margin: 0; font-size: var(--t-s); color: var(--slate); }
.steps .step__body { grid-column: 2; }

/* ---------- Packages (a comparison table, not cards) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: var(--t-s); }
th, td { text-align: left; vertical-align: top; padding: .75rem .8rem; border-bottom: 1px solid var(--line); }
thead th { border-bottom: 2px solid var(--ink); font-weight: 750; }
tbody th { font-weight: 700; }
caption { text-align: left; caption-side: top; font-weight: 700; padding-bottom: .6rem; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.packages th, .packages td { padding: .9rem .9rem; }
.packages thead th { font-size: var(--t-1); }
.packages .price { font-size: var(--t-2); font-weight: 800; white-space: nowrap; }
.packages .price small { display: block; font-size: var(--t-s); font-weight: 400; color: var(--slate); white-space: normal; }
.packages tbody th { width: 22%; color: var(--slate); font-weight: 500; }
.packages .btn { margin-top: .4rem; }
.packages tr.is-featured th, .packages tr.is-featured td { background: var(--paper-2); }
.packages thead th.featured { box-shadow: inset 0 4px 0 var(--signal); }

/* ---------- Findings and badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .35em; padding: .15em .6em .15em .5em; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.4; white-space: nowrap; border: 1.5px solid currentColor;
}
.badge::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; }
.badge--critical { color: var(--fail); background: var(--fail-bg); }
.badge--serious { color: var(--fail); background: transparent; }
.badge--moderate { color: var(--warn); background: var(--warn-bg); }
.badge--minor { color: var(--slate); background: var(--paper-2); }
.badge--pass { color: var(--pass); background: var(--pass-bg); }
.badge--pass::before { width: .7em; height: .4em; border-radius: 0; background: none; border: solid currentColor; border-width: 0 0 2px 2px; transform: translateY(-.1em) rotate(-45deg); }

.finding { border: 1px solid var(--line); border-left: 6px solid var(--fail); border-radius: var(--r); padding: 1.1rem 1.25rem; margin-bottom: 1.2rem; background: var(--paper); }
.finding--moderate { border-left-color: var(--warn); }
.finding--minor { border-left-color: var(--slate); }
.finding__head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; margin-bottom: .6rem; }
.finding__head h3, .finding__head h4 { margin: 0; font-size: var(--t-1); }
.finding__meta { font-size: var(--t-s); color: var(--slate); display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.finding dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .8rem 0 0; font-size: var(--t-s); }
.finding dt { font-weight: 700; }
.finding dd { margin: 0; min-width: 0; }
.finding pre { margin: .6rem 0 0; font-size: .8rem; }
.finding p:last-child { margin-bottom: 0; }

/* ---------- Report document ---------- */
.doc { border: 1px solid var(--line); border-radius: 10px; background: var(--paper); padding: clamp(1.2rem, 4vw, 3rem); box-shadow: 0 1px 0 var(--line), 0 18px 40px -30px rgba(15, 31, 61, .35); }
.doc__cover { border-bottom: 2px solid var(--ink); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.doc__cover h1, .doc__cover h2 { margin-bottom: .3em; }
.doc__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: .8rem 1.5rem; margin: 1.2rem 0 0; font-size: var(--t-s); }
.doc__meta div { border-top: 1px solid var(--line); padding-top: .5rem; }
.doc__meta dt { color: var(--slate); }
.doc__meta dd { margin: .1rem 0 0; font-weight: 700; }
.doc h2 { font-size: var(--t-3); margin-top: 2.2rem; }
.doc h2:first-of-type { margin-top: 0; }
.doc__sig { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: var(--t-s); color: var(--slate); }

/* ---------- Bars (study) ---------- */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
@media (min-width: 640px) { .bars li { grid-template-columns: 250px 1fr; align-items: center; gap: 1rem; } }
.bars .bar { position: relative; height: 26px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.bars .bar span { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ink); border-radius: 4px; }
.bars .bar--fail span { background: var(--fail); }
.bars .val { font-weight: 700; font-variant-numeric: tabular-nums; }
.bars .label { display: flex; justify-content: space-between; gap: 1rem; }

/* ---------- Callouts ---------- */
.note { border-left: 6px solid var(--signal); background: var(--paper-2); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; margin: 1.5rem 0; }
.note p:last-child { margin-bottom: 0; }
.on-ink .note { background: rgba(255, 255, 255, .08); }

/* ---------- Details / FAQ ---------- */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: .9rem 2.2rem .9rem 0; font-weight: 700; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details > :not(summary) { padding-bottom: 1rem; }
details p:last-child { margin-bottom: 0; }

/* ---------- Demo before/after ---------- */
.compare { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .compare { grid-template-columns: 1fr 1fr; } }
.compare__pane { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.compare__pane > h3 { margin: 0; padding: .6rem 1rem; font-size: var(--t-s); background: var(--paper-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .6rem; }
.compare__pane--bad > h3 { background: var(--fail-bg); color: var(--fail); }
.compare__pane--good > h3 { background: var(--pass-bg); color: var(--pass); }
.compare__live { padding: 1.2rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.compare__pane pre { margin: 0; border-radius: 0; font-size: .78rem; }
.ex-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: .5rem 1rem; border-radius: 6px; border: 2px solid var(--ink); background: var(--paper); font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.ex-btn--low { background: #C7CEDB; color: #FFFFFF; border-color: #C7CEDB; }
.ex-input { display: block; width: 100%; max-width: 20rem; min-height: 44px; padding: .5rem .7rem; border: 2px solid var(--slate); border-radius: 6px; font: inherit; }
.ex-label { display: block; font-weight: 700; margin-bottom: .3rem; }
.ex-low { color: #9AA5B8; }
.ex-img { width: 120px; height: 90px; border-radius: 6px; background: linear-gradient(135deg, #DCE3EE, #B9C6DA); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 560px; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-size: var(--t-s); color: var(--slate); margin-bottom: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border: 2px solid var(--slate); border-radius: var(--r);
  font: inherit; color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--fail); }
.field .error { display: none; color: var(--fail); font-weight: 700; font-size: var(--t-s); margin-top: .35rem; }
.field.is-invalid .error { display: block; }
.form__status { font-weight: 700; min-height: 1.5em; }
.form__status.is-ok { color: var(--pass); }
.form__status.is-err { color: var(--fail); }
/* On the navy contact section the semantic colours need light variants (all above 9:1 on ink). */
.on-ink .field .hint { color: var(--muted-d); }
.on-ink .field .error, .on-ink .form__status.is-err { color: #FFB4A8; }
.on-ink .form__status.is-ok { color: #8CE0B0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 760px) { .about { grid-template-columns: 260px 1fr; gap: 3rem; } }
.about img { border-radius: 10px; border: 2px solid var(--ink); }
.about .tools { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.about .tools li { margin: 0; padding: .3rem .7rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--t-s); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 2.5rem 2rem; font-size: var(--t-s); }
.site-footer a { color: inherit; }
.footer__grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer h2 { font-size: var(--t-0); margin-bottom: .6rem; }
.footer__legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-d); color: var(--muted-d); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }

/* ---------- Page: study table ---------- */
.study-table td, .study-table th { padding: .55rem .6rem; white-space: nowrap; }
.study-table td:nth-child(3) { white-space: normal; }
.study-table tbody tr:nth-child(even) { background: #F7F8FA; }
.table-wrap:focus-visible { outline-offset: -3px; }
.link-list a { display: inline-block; padding-block: .3rem; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .skip, .paving, .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  a { text-decoration: none; }
  pre { white-space: pre-wrap; background: #eee; color: #000; }
  .finding { break-inside: avoid; }
}
