/*
VOICE   plain and factual, like the small print you can trust
IDEA    a product facts label, the panel printed on packaging
PICTURE the label itself, the same for every tool, black rules on white
COLOUR  black on white; yellow only for checked dates; green, amber and grey dots for data location
TYPE    Fira Sans 400 to 800, heavy weights for names, tabular figures for prices
LAYOUT  1200px content, a grey band behind the labels, sections below in two columns
*/
:root {
  color-scheme: light dark;
  --bg: light-dark(#ffffff, #000000);
  --ink: light-dark(#000000, #ffffff);
  --muted: light-dark(#5f6b73, #a7b2b9);
  --band: light-dark(#eceff1, #15191c);
  --hl: #ffe14d;
  --eu: light-dark(#0b7a4b, #3dbe84);
  --amber: light-dark(#9a5b00, #e2a33a);
  --grey: light-dark(#5f6b73, #a7b2b9);
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 "Fira Sans", "Helvetica Neue", Arial, sans-serif;
  overflow-x: clip;
}
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: 8px; top: -80px; z-index: 10;
  padding: 10px 14px; background: var(--ink); color: var(--bg);
}
.skip:focus { top: 8px; color: var(--bg); }
.muted { color: var(--muted); }
.hl { background: var(--hl); color: #000; padding: 1px 5px; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 600; }

/* Header and footer */
.site-head { border-bottom: 1px solid var(--ink); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.wordmark { display: inline-flex; flex-direction: column; border: 2px solid var(--ink); }
.wordmark-bar { height: 5px; background: var(--ink); }
.wordmark-text { padding: 3px 9px 4px; font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: -0.01em; }
.tagline { max-width: 200px; font-size: 14px; line-height: 1.3; color: var(--muted); }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 24px; margin-left: auto; font-weight: 500; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.main-nav a.on { text-decoration: underline; text-decoration-thickness: 2px; }

.site-foot { margin-top: 56px; border-top: 1px solid var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 48px; padding-block: 28px 44px; font-size: 14px; line-height: 1.5; }
.foot-note { margin: 0; max-width: 48ch; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* Type */
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(36px, 5.4vw, 62px); line-height: 1.04; }
h2 { font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
.lead { max-width: 62ch; margin: 18px 0 0; font-size: 19px; line-height: 1.5; }
.page-top { padding-block: 48px 28px; }

/* Home: hero and filters */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px 64px; align-items: end; padding-block: 48px 32px; }
.hero h1 { max-width: 17ch; }
.legend { padding: 14px 16px 6px; border: 2px solid var(--ink); }
.legend-title { margin: 0; padding-bottom: 10px; border-bottom: 8px solid var(--ink); font-weight: 700; font-size: 17px; line-height: 1.3; }
.legend ul { margin: 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ink); font-size: 15px; line-height: 1.3; }
.legend li:last-child { border-bottom: 0; }
.legend .n { font-weight: 700; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--muted); }
select {
  min-height: 44px; padding: 0 12px;
  border: 2px solid var(--ink); border-radius: 2px;
  background: var(--bg); color: var(--ink);
  font: 500 16px "Fira Sans", "Helvetica Neue", Arial, sans-serif;
}
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

.band { background: var(--band); border-block: 1px solid var(--ink); }
.band > .wrap { padding-block: 32px 48px; }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; margin-bottom: 14px; }
.band-head p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 16px; margin: 0; font-size: 15px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px 24px; align-items: stretch; }
.empty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 8px 0 0; font-size: 16px; }
.empty p { margin: 0; }

/* Home: the finder (search, categories, filters, sort) */
.finder { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; padding: 16px 18px 10px; border: 2px solid var(--ink); background: var(--bg); }
.search { display: flex; flex-direction: column; gap: 6px; }
.search-label { font-weight: 700; font-size: 18px; line-height: 1.3; }
.search input {
  width: 100%; min-height: 52px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 2px;
  background: var(--bg); color: var(--ink);
  font: 500 18px "Fira Sans", "Helvetica Neue", Arial, sans-serif;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chip { position: relative; display: flex; flex: none; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--ink); background: var(--bg);
  font-weight: 500; font-size: 15px; white-space: nowrap;
}
.chip .n { font-weight: 400; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.chip input:checked + span { background: var(--ink); color: var(--bg); }
.chip input:checked + span .n { color: inherit; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.chip:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.finder-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; border-top: 1px solid var(--ink); padding-top: 6px; }
.finder-row .sort { flex-direction: row; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; }
.text-btn {
  min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink);
  font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.text-btn:hover { color: var(--muted); }

/* Home: what the two kinds of label mean */
.key { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 8px 32px; margin: 0 0 24px; font-size: 14px; line-height: 1.4; }
.key div { display: flex; gap: 10px; align-items: baseline; }
.key dt { display: inline-flex; align-items: baseline; gap: 8px; flex: none; font-weight: 700; }
.key dd { margin: 0; color: var(--muted); }
.key-mark { display: inline-block; width: 16px; height: 12px; border: 2px solid var(--ink); background: var(--bg); }
.key-full { border-top-width: 5px; }
.key-short { border-width: 1px; }

/* The label */
.label-card { display: flex; flex-direction: column; gap: 10px; }
.label { flex: 1 0 auto; padding: 14px 16px 12px; border: 2px solid var(--ink); background: var(--bg); }
.label-name { margin: 0; font-weight: 800; font-size: 27px; line-height: 1.05; letter-spacing: -0.01em; }
.label-name a { text-decoration: none; }
.label-name a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }
.label-kind { margin: 4px 0 12px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.rule-thick { height: 8px; background: var(--ink); }
.rule-mid { height: 4px; background: var(--ink); }
.label-rows { margin: 0; font-size: 16px; line-height: 1.3; }
.label-rows .row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--ink); }
.label-rows .row:last-child { border-bottom: 0; }
.label-rows dt { flex: 0 0 auto; max-width: 50%; font-weight: 600; }
.label-rows dd { display: flex; flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
.v { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 700; font-variant-numeric: tabular-nums; }
.label-rows .s { margin-top: 2px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.label-foot { margin: 9px 0 0; font-size: 13px; line-height: 1.4; }
.label-checked { margin: 6px 0 0; font-size: 13px; line-height: 1.4; }

/* The short label: same structure, lighter frame, no thick rule */
.short .label { border-width: 1px; }
.short .label-name { font-size: 24px; }
.short .label-kind { margin-bottom: 6px; }
.label-summary { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.short .label-foot { color: var(--muted); }
.short .label-foot a { color: var(--ink); }

.dot { flex: none; display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.dot-eu-default { background: var(--eu); }
.dot-eu-choice { border: 2px solid var(--eu); background: linear-gradient(90deg, var(--eu) 50%, transparent 50%); }
.dot-eu-higher { border: 2px solid var(--amber); background: linear-gradient(90deg, var(--amber) 50%, transparent 50%); }
.dot-not-stated { border: 2px solid var(--grey); }
.dot-unchecked { border: 2px dotted var(--grey); }

.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  background: var(--ink); color: var(--bg);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.btn:hover { background: var(--muted); color: var(--bg); }
.btn.inline { display: inline-flex; }
.btn-line { border: 1px solid var(--ink); background: var(--bg); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg); }
.aff-note { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Home: below the labels */
.after-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px 72px; padding-block: 56px 0; }
.how { display: flex; flex-direction: column; gap: 14px; max-width: 62ch; margin-top: 16px; padding-top: 14px; border-top: 2px solid var(--ink); font-size: 16px; }
.how p { margin: 0; }
.link-list, .changes { list-style: none; margin: 16px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.link-list li { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: 16px; }
.link-list .title { font-weight: 700; font-size: 19px; line-height: 1.3; }
.link-list .meta { margin-top: 4px; font-size: 13px; }
.link-list.wide { max-width: 760px; margin-top: 32px; }
.changes li { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--ink); font-size: 16px; }
.changes .date { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Tables */
.table-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: 15px; line-height: 1.35; }
.cmp th, .cmp td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.cmp thead th { border-bottom: 2px solid var(--ink); font-weight: 600; font-size: 14px; }
.cmp tbody th { font-weight: 700; font-size: 17px; }
.cmp tbody th a { text-decoration: none; }
.cmp tbody th a:hover { text-decoration: underline; }
.cmp .s { display: block; margin-top: 2px; font-weight: 400; font-size: 13px; color: var(--muted); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Tool page */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--muted); }
.tool-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px 56px; align-items: start; padding-block: 20px 40px; }
.tool-intro .kind { margin: 10px 0 0; font-size: 18px; color: var(--muted); }
.disclosure { max-width: 62ch; margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; margin-top: 28px; }
.fit h2 { padding-bottom: 8px; border-bottom: 2px solid var(--ink); font-size: 20px; }
.fit ul, .tool-body ul { margin: 10px 0 0; padding-left: 1.1em; }
.fit li, .tool-body li { margin: 6px 0; }
.tool-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 56px; padding-block: 28px 36px; border-top: 2px solid var(--ink); }
.tool-body h2 { font-size: 22px; }
.tool-body p { max-width: 62ch; margin: 10px 0 0; }
.facts { margin: 10px 0 0; }
.facts div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--ink); }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.alts, .sources { padding-block: 28px 8px; border-top: 2px solid var(--ink); }
.alt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.alt-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.alt-list .name { font-weight: 700; text-decoration: none; }
.alt-list .name:hover { text-decoration: underline; }
.alt-list .where { grid-column: 1; display: inline-flex; align-items: baseline; gap: 7px; font-size: 14px; color: var(--muted); }
.alt-list .price { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sources ol { margin: 12px 0; padding-left: 1.4em; }
.sources li { margin: 6px 0; }
.host { font-size: 14px; color: var(--muted); }
.checked-line { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 15px; }

/* Articles */
.article { padding-bottom: 16px; }
.article h1 { max-width: 22ch; margin-top: 20px; }
.byline { margin: 14px 0 0; font-size: 15px; color: var(--muted); }
.byline + .byline { margin-top: 6px; }
.prose { max-width: 72ch; margin-top: 28px; }
.prose > p:first-child { font-size: 19px; }
.prose h2 { margin: 40px 0 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.prose h3 { margin: 24px 0 0; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose li { margin: 6px 0; }
.prose .table-scroll { margin-top: 18px; }
.prose table:not(.cmp) { width: 100%; border-collapse: collapse; margin-top: 18px; border-top: 2px solid var(--ink); font-size: 15px; }
.prose table:not(.cmp) th, .prose table:not(.cmp) td { padding: 10px 16px 10px 0; border-bottom: 1px solid var(--ink); text-align: left; vertical-align: top; }
.prose code { font-size: 0.92em; }
.sources-all h3 { margin-top: 20px; font-size: 18px; }
.sources-all ol { margin: 8px 0 0; padding-left: 1.4em; }

.groups { margin: 28px 0 0; padding: 16px 18px; border: 2px solid var(--ink); }
.groups-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px 24px; }
.group-title { display: flex; align-items: baseline; gap: 8px; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-weight: 700; line-height: 1.3; }
.group ul { margin: 8px 0 0; padding: 0; list-style: none; }
.group li { display: flex; flex-direction: column; margin: 0; padding: 5px 0; }
.group li a { font-weight: 600; }
.group .s { font-size: 13px; color: var(--muted); }
.groups figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); }

.nf { padding-block: 72px 24px; }

.cmp td.zone { white-space: nowrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .legend { max-width: 420px; }
}

@media (max-width: 820px) {
  .tool-top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: 12px; border-bottom: 1px solid var(--ink); }
  .stack th, .stack td { display: flow-root; padding: 3px 0 3px 9em; border: 0; text-align: start; }
  .stack td::before {
    content: attr(data-l); float: left; width: 8.5em; margin-left: -9em;
    font-weight: 600; font-size: 13px; color: var(--muted); white-space: normal;
  }
  .stack tbody th { padding-left: 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .lead { font-size: 17px; }
  .hero { padding-block: 32px 24px; }
  .tagline { display: none; }
  .main-nav { gap: 0 16px; margin-left: 0; }
  .head-row { gap: 4px 20px; }
  .band > .wrap { padding-top: 20px; }
  .hero .legend { display: none; }
  .finder { margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); border-inline: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--pad) * -1); padding: 2px var(--pad) 8px; scrollbar-width: thin; }
  .finder-row { flex-direction: column; align-items: stretch; }
  .finder-row .sort { margin-left: 0; justify-content: space-between; }
}

@media print {
  .site-head nav, .finder, .btn, .aff-note, .text-btn { display: none; }
  .band { background: none; }
}
