/* Results & Cutoff: all values live in :root */
:root {
  --c-bg: #F7F8FC;
  --c-surface: #FFFFFF;
  --c-tint: #ECEEFA;
  --c-border: #D9DCEE;
  --c-text: #1B1F33;
  --c-muted: #4A4F6A;
  --c-accent: #3F4BB8;
  --c-accent-hover: #343FA0;
  --c-on-accent: #FFFFFF;
  --c-header: #23296B;
  --c-on-header: #FFFFFF;
  --c-footer: #1B1F33;
  --c-on-footer: #E6E8F5;
  --c-focus: #3F4BB8;
  --c-focus-dark: #FFD166;
  --c-pos: #1F6B45;
  --c-neg: #9B2C2C;
  --badge-bg: #DDF3E4;
  --badge-text: #14502F;
  --badge-border: #9FD3B2;

  --trow-bg: #D0D5F0;
  --trow-secondary-bg: #C2C9EA;
  --thead-bg: #23296B;
  --thead-text: #FFFFFF;
  --trow-border: #9EA8DA;
  --thead-border: #1B1F33;

  --radius: 3px;
  --shadow: none;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-size: 16px;
  --font-weight-head: 700;
  --line-height: 1.55;
  --space: 0.75rem;
  --space-s: 0.4rem;
  --space-l: 1.25rem;
  --space-xl: 2rem;
  --maxw: 70rem;
  --measure: 46rem;
  --header-h: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--font-size); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  line-height: var(--line-height);
  color: var(--c-text);
  background: var(--c-bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--font-weight-head); line-height: 1.2; margin: 0 0 var(--space); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; margin-top: var(--space-l); }
p { margin: 0 0 var(--space); max-width: var(--measure); }
ul, ol { margin: 0 0 var(--space); padding-left: 1.25rem; }
a { color: var(--c-accent); }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--c-focus-dark); }
section[id], article[id], aside[id] { scroll-margin-top: calc(var(--header-h) + 0.5rem); }

.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;
}
.skip-link {
  position: absolute; left: var(--space); top: -4rem; z-index: 100;
  background: var(--c-surface); color: var(--c-text); padding: var(--space-s) var(--space);
  border: 2px solid var(--c-accent); border-radius: var(--radius);
}
.skip-link:focus { top: var(--space); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-l); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header); color: var(--c-on-header); }
.header-inner { display: flex; align-items: center; gap: var(--space); min-height: var(--header-h); }
.brand { display: block; background: var(--c-surface); padding: 0.2rem 0.5rem; border-radius: var(--radius); line-height: 0; }
.brand img { height: 1.7rem; width: auto; }
.header-cta { margin-left: auto; white-space: nowrap; }
.nav-toggle {
  background: transparent; color: var(--c-on-header); border: 1px solid var(--c-on-header);
  border-radius: var(--radius); padding: 0.4rem 0.7rem; font: inherit; cursor: pointer;
}
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--c-header); border-top: 1px solid var(--c-accent); padding: var(--space) var(--space-l); }
.js .site-nav.is-open { display: block; }
html:not(.js) .site-nav { display: block; position: static; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--c-on-header); text-decoration: none; display: block; padding: 0.5rem 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .sub { padding-left: var(--space-l); display: none; }
.site-nav .has-sub.open > .sub { display: block; }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > a { flex: 1; }
.sub-toggle { background: transparent; color: var(--c-on-header); border: 0; font: inherit; padding: 0.4rem 0.7rem; cursor: pointer; }
.sub-toggle::after { content: "\25BE"; }
.has-sub > .sub { flex-basis: 100%; }

/* Buttons */
.btn {
  display: inline-block; background: var(--c-accent); color: var(--c-on-accent);
  border: 2px solid var(--c-accent); border-radius: var(--radius);
  padding: 0.5rem 1rem; font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  box-shadow: var(--shadow); cursor: pointer;
}
.btn:hover { background: var(--c-accent-hover); border-color: var(--c-accent-hover); text-decoration: none; }
.btn-ghost { background: var(--c-surface); color: var(--c-accent); }
.btn-ghost:hover { background: var(--c-tint); color: var(--c-accent-hover); }
.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.9rem; }
.site-header .btn { background: var(--c-surface); color: var(--c-header); border-color: var(--c-surface); }
.site-header .btn:hover { background: var(--c-tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-s); margin-top: var(--space); }

/* Sections */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.section > .wrap > h2 { margin-bottom: var(--space-l); }
.lead { font-size: 1.08rem; }

.hero { background: var(--c-tint); border-bottom: 1px solid var(--c-border); padding: var(--space-xl) 0; }
.hero-grid { display: grid; gap: var(--space-l); align-items: center; }
.hero-art { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); }
.tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--c-header);
  border: 1px solid var(--c-accent); border-radius: var(--radius); padding: 0.1rem 0.5rem;
  margin-bottom: var(--space);
}
.badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
  background: var(--badge-bg); color: var(--badge-text); border: 1px solid var(--badge-border);
  border-radius: var(--radius); padding: 0.05rem 0.45rem; vertical-align: middle;
}

.short { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent); border-radius: var(--radius); padding: var(--space-l); }
.short ul { margin-bottom: 0; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; margin-bottom: var(--space); border: 1px solid var(--trow-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
caption { text-align: left; font-weight: 700; padding: var(--space-s) var(--space); background: var(--c-surface); border-bottom: 1px solid var(--trow-border); }
th, td { padding: 0.55rem var(--space); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--trow-border); }
thead th { background: var(--thead-bg); color: var(--thead-text); border-bottom: 2px solid var(--thead-border); white-space: nowrap; }
tbody tr { background: var(--trow-bg); color: var(--c-text); }
tbody tr:nth-child(even) { background: var(--trow-secondary-bg); }
tbody th { font-weight: 700; color: var(--c-text); }
td.num, th.num { text-align: center; }
.logo-cell img { width: 7.5rem; max-width: none; height: auto; }
.table-wrap .btn { white-space: nowrap; }

/* Cards */
.cards { display: grid; gap: var(--space); grid-template-columns: 1fr; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--space-l); display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: var(--space); margin-bottom: var(--space); }
.rank { background: var(--c-header); color: var(--c-on-header); font-weight: 700; border-radius: var(--radius); min-width: 2rem; height: 2rem; display: flex; align-items: center; justify-content: center; }
.card-head img { width: 7.5rem; height: auto; }
.card h3 { margin-bottom: var(--space-s); }
.rating { margin: 0 0 var(--space); font-size: 0.95rem; color: var(--c-muted); }
.rating strong { font-size: 1.4rem; color: var(--c-text); }
.offer { margin: 0 0 var(--space); font-weight: 700; }
.card ul { padding-left: 1.1rem; }
.card .btn-row { margin-top: auto; padding-top: var(--space-s); }
.card details { margin-top: var(--space); }

details { border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-bg); }
summary { cursor: pointer; padding: var(--space-s) var(--space); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: var(--space); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 700; color: var(--c-accent); }
details[open] > summary::after { content: "\2212"; }
details > :not(summary) { padding: 0 var(--space); }
details > p:last-child { margin-bottom: var(--space); }

/* Picks */
.pick { padding: var(--space-l) 0; border-top: 1px solid var(--c-border); }
.pick:first-of-type { border-top: 0; }
.pick-art { margin-bottom: var(--space); border: 1px solid var(--c-border); border-radius: var(--radius); }
.toplist { list-style: none; padding: 0; margin: 0 0 var(--space-l); counter-reset: top; }
.toplist li { counter-increment: top; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space) var(--space) var(--space) 3rem; margin-bottom: var(--space-s); position: relative; }
.toplist li::before { content: counter(top); position: absolute; left: var(--space); top: var(--space); width: 1.6rem; height: 1.6rem; background: var(--c-header); color: var(--c-on-header); font-weight: 700; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.toplist p { margin-bottom: var(--space-s); }
.toplist .btn-row { margin-top: var(--space-s); }

/* Pros and cons */
.pc { display: grid; gap: var(--space); margin: var(--space) 0; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding-left: 1.2rem; position: relative; margin-bottom: var(--space-s); }
.pc .pros li::before { content: "+"; position: absolute; left: 0; font-weight: 700; color: var(--c-pos); }
.pc .cons li::before { content: "\2212"; position: absolute; left: 0; font-weight: 700; color: var(--c-neg); }
.label { font-weight: 700; margin: 0 0 var(--space-s); }

.review { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--space-l); margin-bottom: var(--space-l); }
.review-head { display: flex; align-items: center; gap: var(--space); margin-bottom: var(--space); flex-wrap: wrap; }
.review-head img { width: 7.5rem; height: auto; }
.review-head h3 { margin: 0; }
.facts { margin: 0 0 var(--space); }

.criteria { padding-left: 1.4rem; max-width: var(--measure); }
.criteria li { margin-bottom: var(--space); }

.note { background: var(--c-surface); border-left: 4px solid var(--c-accent); padding: var(--space); border-radius: var(--radius); max-width: var(--measure); }
.responsible { background: var(--c-tint); border: 1px solid var(--c-accent); border-radius: var(--radius); padding: var(--space-l); }
.responsible h2 { margin-bottom: var(--space); }

.faq details { margin-bottom: var(--space-s); background: var(--c-surface); }
.faq details > p { max-width: var(--measure); }

/* Footer */
.site-footer { background: var(--c-footer); color: var(--c-on-footer); padding: var(--space-xl) 0; }
.site-footer a { color: var(--c-on-footer); }
.footer-nav ul { list-style: none; padding: 0; margin: 0 0 var(--space); display: flex; flex-wrap: wrap; gap: var(--space-s) var(--space-l); }
.site-footer p { margin: 0 0 var(--space-s); max-width: none; }

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pc { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.1rem; }
}
@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: none; }
  .site-nav, .js .site-nav, html:not(.js) .site-nav { display: block; position: static; background: transparent; border: 0; padding: 0; margin-left: auto; }
  .site-nav { order: 4; }
  .header-cta { margin-left: 0; order: 5; }
  .site-nav > ul { display: flex; gap: var(--space-s); }
  .site-nav a { padding: 0.5rem 0.6rem; }
  .has-sub { position: relative; flex-wrap: nowrap; }
  .has-sub > a { flex: none; }
  .sub-toggle { padding: 0.4rem 0.3rem; }
  .site-nav .sub, .site-nav .has-sub.open > .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 12rem; background: var(--c-header); border: 1px solid var(--c-accent); border-radius: var(--radius); padding: var(--space-s) 0; flex-basis: auto; }
  .site-nav .has-sub:hover > .sub, .site-nav .has-sub.open > .sub, .site-nav .has-sub:focus-within > .sub { display: block; }
  .site-nav .sub a { padding: 0.4rem var(--space); }
}
@media (max-width: 55.99rem) {
  .header-cta { order: 2; }
  .nav-toggle { order: 3; }
  .brand { order: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
