:root {
  --ink: #1b2329;
  --muted: #4f5d66;
  --bg: #fafbfc;
  --panel: #ffffff;
  --line: #dce3e8;
  --brand: #1d4f6e;
  --brand-dark: #133a52;
  --accent: #b2531c; /* white text on it is 4.9:1 (WCAG AA needs 4.5) */
  --tint: #eaf2f7;
  --warn: #fff4e0;
  --radius: 10px;
  --wrap: 72rem;
  --text: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); margin-top: 1.5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.7rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1rem; }
li { margin-bottom: .35rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
main > *:not(.full) { max-width: var(--text); }
main { padding-bottom: 3rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* header */
.site-head { background: var(--brand); color: #fff; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .8rem; padding-bottom: .8rem; }
.brand { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.1rem; display: inline-flex; align-items: center; gap: .5rem; }
.brand span { white-space: nowrap; line-height: 1.2; }
/* Centre the mark on the capital letters, not the font's line box (the name has no descenders). */
.brand span { text-box: trim-both cap alphabetic; }
.brand-mark { display: block; width: 32px; height: 32px; flex: none; }
.brand:hover { color: #fff; }
.site-head nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; list-style: none; margin: 0; padding: 0; }
.site-head nav li { margin: 0; }
.site-head nav a:not(.btn) { color: #e4eef4; text-decoration: none; font-size: .95rem; }
.site-head nav a:not(.btn):hover { color: #fff; text-decoration: underline; }

/* buttons */
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: .7rem 1.2rem; border-radius: 999px; border: 0; text-decoration: none;
  font-size: 1rem; cursor: pointer; line-height: 1.2;
}
.btn:hover { background: #8f4214; color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--tint); color: var(--ink); }

/* hero */
.hero { max-width: var(--text); padding: 1rem 0 .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); }
.honest {
  background: var(--tint); border-left: 4px solid var(--brand); padding: .9rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin: 1.25rem 0; }

/* content blocks */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding: 0; list-style: none; max-width: none !important; }
.cards li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; }
.cards h3 { margin-top: 0; font-size: 1.05rem; }
.cards p { margin: 0; color: var(--muted); font-size: .97rem; }
.note { background: var(--warn); padding: .8rem 1rem; border-radius: var(--radius); font-size: .97rem; }
.checked { font-size: .9rem; color: var(--muted); }
.source { font-size: .9rem; color: var(--muted); }
.pull { margin: 1.5rem 0; padding: .2rem 0 .2rem 1.1rem; border-left: 4px solid var(--accent); }
.pull p { font-size: 1.15rem; margin: 0 0 .4rem; }
.pull footer { font-size: .9rem; color: var(--muted); }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 0 0 .75rem; background: var(--panel); font-size: .97rem; }
caption { text-align: left; font-size: .9rem; color: var(--muted); padding-bottom: .4rem; }
th, td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--tint); }

/* faqs */
.faqs details { border-bottom: 1px solid var(--line); padding: .7rem 0; }
.faqs summary { font-weight: 600; cursor: pointer; }
.faqs details > div { padding-top: .5rem; }
.faqs details > div p:last-child { margin-bottom: 0; }

/* form */
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.field-row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
input[type=text], input[type=tel], input[type=email], input[type=number], select {
  width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #b9c2be; border-radius: 8px; background: #fff; color: var(--ink);
}
input[type=file] { font-size: .95rem; max-width: 100%; }
input:focus, select:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid #8fb6d0; outline-offset: 2px; }
.choice { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin: .35rem 0; cursor: pointer; }
.choice input { margin-top: .35rem; flex: none; width: 1.1rem; height: 1.1rem; }
.consent .choice { font-size: .95rem; }
.req, .hint-inline { font-weight: 400; font-size: .8rem; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin: .3rem 0 0; }
.field-error { color: #a1301e; font-size: .9rem; margin: .3rem 0 0; }

/* calculators */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1rem; margin: 1.5rem 0; }
.calc input[type=date] { width: 100%; max-width: 16rem; font: inherit; padding: .55rem .7rem; border: 1px solid #b9c2be; border-radius: 8px; background: #fff; color: var(--ink); }
.calc-results-title { margin: .5rem 0 .75rem; font-size: 1.2rem; }
.calc-list { margin: 0 0 .75rem; }
.calc-row { display: grid; grid-template-columns: 1fr; gap: .1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.calc-row dt { font-size: .9rem; color: var(--muted); }
.calc-row dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.calc-row.calc-given dd { font-weight: 400; }
.calc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.calc-warning, .calc-error { background: var(--warn); padding: .7rem .9rem; border-radius: var(--radius); }
.calc-error { color: #a1301e; font-weight: 600; }
.calc-note { background: var(--tint); padding: .7rem .9rem; border-radius: var(--radius); }
#calc-status:empty { display: none; }
@media (min-width: 40rem) {
  .calc { padding: 1.5rem 1.75rem; }
  .calc-row { grid-template-columns: 18rem 1fr; gap: 1rem; align-items: baseline; }
}

/* related */
.related { margin-top: 2rem; }
.related ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.related li { margin: 0; }
.related a { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-size: .95rem; }

/* footer */
.site-foot { background: #16222b; color: #d0dae0; padding: 2rem 0 1.5rem; font-size: .95rem; }
.site-foot a { color: #e9f0f4; }
.foot-honest { max-width: var(--text); }
.foot-cols { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 1.5rem 0; }
.foot-cols h2 { font-size: 1rem; margin: 0 0 .5rem; color: #fff; }
.foot-cols ul { list-style: none; padding: 0; margin: 0; }
.foot-small { font-size: .85rem; color: #a3b1ba; margin: 0; }
.foot-business { font-size: .9rem; max-width: var(--text); margin: 0 0 1rem; }
.foot-business p { margin: 0 0 .25rem; }

.todo { background: #ffe066; color: #000; padding: 0 .25rem; font-weight: 600; }

/* breadcrumbs and guide byline */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 1rem 0 0; font-size: .875rem; color: var(--muted); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "›"; padding: 0 .45rem; }
.crumbs a { color: var(--muted); }
.byline { font-size: .875rem; color: var(--muted); margin-top: -.25rem; }
@media print { .crumbs { display: none !important; } }

/* product placeholders and the affiliate line */
.disclosure { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--line); padding-left: .75rem; }
.buy { display: inline-block; font-weight: 600; font-size: .95rem; padding: .5rem 1rem; border-radius: 999px; text-decoration: none; background: var(--accent); color: #fff; }
.buy:hover { background: #8f4214; color: #fff; }
.buy-pending { background: var(--tint); color: var(--muted); border: 1px dashed #9fb4c2; font-weight: 600; }
.buy-pending small { font-weight: 400; }

/* product cards on comparison pages */
.product { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.25rem 0; }
.product h3 { margin-top: 0; }
.product dl { display: grid; grid-template-columns: 1fr; gap: .1rem; margin: 0 0 .9rem; }
.product dt { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.product dd { margin: 0; }
@media (min-width: 40rem) {
  .product dl { grid-template-columns: 13rem 1fr; gap: .35rem 1rem; }
  .product dt { margin-top: 0; }
}
.specs th:first-child, .specs td:first-child { min-width: 9rem; }
.specs td, .specs th { font-size: .92rem; }
.key { background: var(--tint); border-radius: var(--radius); padding: .9rem 1rem; }
.key p:last-child { margin-bottom: 0; }
.health { background: var(--warn); border-left: 4px solid var(--accent); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.sources { font-size: .92rem; }
.sources li { margin-bottom: .5rem; overflow-wrap: anywhere; }
.calc-big { font-size: 1.6rem; font-weight: 700; margin: 0; }
.calc-output { background: var(--tint); border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.calc-output p:last-child { margin-bottom: 0; }
