/* CHECKSUM24 base styles: tokens, reset, shell, shared components.
   Values come from reference/NOTES.md. */

@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  src: url("../vendor/inter/inter-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #022d94;          /* header */
  --blue-dark: #00217d;     /* teaser navy */
  --blue-grad: #0131b7;     /* home gradient top */
  --action: #0563c1;        /* buttons, links */
  --action-hover: #04529f;
  --yellow: #febb1e;
  --red: #e30613;
  --orange: #f66e03;
  --gold: #b39656;
  --green: #0a8a2e;
  --text: #181818;
  --muted: #666666;
  --border: #dcdcdc;
  --pill-grey: #dcdcdc;
  --pill-blue: #d9e0ef;
  --info-bg: #e5ebf7;
  --tile-bg: #f4f4f4;
  --footer-bg: #fafafa;
  --navy: #04143c;
  --radius-card: 8px;
  --radius-tile: 12px;
  --shadow-card: 0 1px 6px rgba(0, 0, 0, .12);
  --shadow-pop: 0 4px 16px rgba(0, 0, 0, .16);
  --container: 1280px;
  --pad: 20px;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: #fff;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: calc(var(--container) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
@media (min-width: 1100px) { :root { --pad: 80px; } .container { max-width: calc(var(--container) + 160px); } }
@media (min-width: 1100px) and (max-width: 1439px) { :root { --pad: 40px; } }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.md { width: 20px; height: 20px; }
.icon.lg { width: 32px; height: 32px; stroke-width: 1.5; }
.icon.xl { width: 40px; height: 40px; stroke-width: 1.25; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; color: #fff; text-decoration: none !important; }
.wordmark svg { height: 46px; width: auto; }
@media (max-width: 767px) { .wordmark svg { height: 27px; } }

/* ---------- header ---------- */
.site-header { background: var(--blue); color: #fff; position: relative; z-index: 20; }
.site-header.home { background: transparent; }
.hdr-row { display: flex; align-items: center; gap: 24px; height: 84px; }
.hdr-search { flex: 1; max-width: 730px; position: relative; }
.hdr-search input {
  width: 100%; height: 44px; border: 0; border-radius: 22px; padding: 0 48px 0 16px;
  font-size: 16px; color: var(--text); background: #fff;
}
.hdr-search input::placeholder { color: #6b6b6b; }
.hdr-search .icon { position: absolute; right: 14px; top: 10px; color: #6b6b6b; pointer-events: none; }
.hdr-icons { margin-left: auto; display: flex; gap: 6px; }
.hdr-icon {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px;
  color: #fff; background: none; border: 0; padding: 4px 6px; font-size: 12px; font-weight: 500;
  text-decoration: none !important; position: relative;
}
.hdr-icon .icon { width: 26px; height: 26px; stroke-width: 1.6; }
.hdr-icon .dot { position: absolute; top: 2px; right: 18px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--red); font-size: 10px; line-height: 16px; text-align: center; font-weight: 700; padding: 0 4px; }
.hdr-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; }
.hdr-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; flex: none;
  border: 1.5px solid #fff; border-radius: 16px; color: #fff; font-size: 15px; font-weight: 600;
  white-space: nowrap; text-decoration: none !important; background: transparent;
}
.chip .icon { width: 16px; height: 16px; }
.chip:hover { background: rgba(255, 255, 255, .12); }
.chip.active { background: #fff; color: var(--blue); }
/* category tabs on landing pages: only the active one is outlined */
.hdr-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 0 18px; }
.hdr-tabs::-webkit-scrollbar { display: none; }
.hdr-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 16px; color: #fff; font-size: 17px; font-weight: 500; white-space: nowrap; border: 1.5px solid transparent; text-decoration: none; }
.hdr-tabs a .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.hdr-tabs a.active { border-color: #fff; }
.hdr-tabs a:hover { background: rgba(255, 255, 255, .1); }

.search-results {
  position: absolute; left: 0; right: 0; top: 50px; background: #fff; color: var(--text);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 8px 0; z-index: 50; max-height: 420px; overflow: auto;
}
.search-results a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: #f2f5fb; text-decoration: none; }
.search-results .kind { margin-left: auto; font-size: 12px; color: var(--muted); }
.search-results .empty { padding: 10px 16px; color: var(--muted); }

@media (max-width: 767px) {
  .hdr-row { flex-wrap: wrap; height: auto; padding-top: 14px; gap: 0; }
  .hdr-row .wordmark { order: 1; }
  .hdr-icons { order: 2; gap: 0; }
  .hdr-icon { min-width: 0; padding: 4px 4px; font-size: 11px; }
  .hdr-icon .dot { right: 10px; }
  .hdr-icon .icon { width: 24px; height: 24px; }
  .hdr-search { order: 3; flex: 1 0 100%; max-width: none; margin: 14px 0 16px; }
  .hdr-search input { height: 48px; border-radius: 24px; font-size: 17px; padding-left: 48px; }
  .hdr-search .icon { left: 16px; right: auto; top: 12px; }
  .site-header:not(.home) .hdr-icons .hide-sm { display: none; }
  .site-header:not(.home) .hdr-search { display: none; }
  .site-header:not(.home) .hdr-row { padding-bottom: 14px; }
  .site-header.compact .hdr-row, .site-header.slim .hdr-row { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 6px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: 999px; border: 0; font-size: 18px; font-weight: 400;
  text-decoration: none !important; white-space: nowrap; transition: background .15s;
}
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover { background: var(--action-hover); }
.btn-primary:disabled { background: #9bb9dc; cursor: default; }
.btn-outline { background: #fff; color: var(--action); border: 1px solid var(--action); }
.btn-outline:hover { background: #f2f6fc; }
.btn-ghost { background: transparent; color: var(--action); padding: 0 8px; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-lg { height: 50px; font-size: 19px; padding: 0 40px; }
.btn-sm { height: 32px; font-size: 14px; padding: 0 14px; }
.btn-block { width: 100%; }
.btn-white-outline { background: transparent; color: #fff; border: 1px solid #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--action); font-size: inherit; }
.link-btn:hover { text-decoration: underline; }
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- form controls ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-size: 14px; color: var(--muted); }
.input, .select, textarea.input {
  height: 48px; border: 1px solid #949494; border-radius: 6px; padding: 0 14px; font-size: 16px; background: #fff; width: 100%;
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--action); outline: none; box-shadow: 0 0 0 1px var(--action); }
.check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; padding: 6px 0; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border: 1px solid #8a8a8a; border-radius: 3px; background: #fff; flex: none; display: grid; place-content: center; }
.check input[type=radio] { border-radius: 50%; }
.check input:checked { border-color: var(--action); background: var(--action); }
.check input[type=checkbox]:checked::after { content: ""; width: 12px; height: 7px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input[type=radio]:checked { background: #fff; border: 2px solid var(--action); }
.check input[type=radio]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--action); }

/* ---------- cards, pills, badges ---------- */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card); }
.card-shadow { background: #fff; border-radius: 10px; box-shadow: var(--shadow-card); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 14px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.pill-blue { background: var(--pill-blue); color: var(--blue); }
.pill-grey { background: var(--pill-grey); color: var(--text); }
.pill-yellow { background: var(--yellow); color: var(--text); }
.pill-red { background: #fde4e6; color: #b0000d; }
.pill-green { background: #e0f3e5; color: #0a6b25; }
.pill .icon { width: 18px; height: 18px; }
.score { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.score b { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 3px; background: var(--blue); color: #fff; font-weight: 600; font-size: 16px; }
.stars { display: inline-flex; gap: 1px; color: #f5b301; }
.stars .icon { width: 16px; height: 16px; stroke-width: 1.5; }
.stars .icon.full { fill: currentColor; }
.info-i { display: inline-grid; place-items: center; color: #8a8a8a; background: none; border: 0; padding: 0; vertical-align: middle; }
.info-i .icon { width: 18px; height: 18px; stroke-width: 1.6; }
.flame { color: #f97316; }

.section { margin-top: 56px; }
.section-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.section-sub { margin: -8px 0 16px; }
.page { padding-bottom: 64px; min-height: 50vh; }
.page-title { font-size: 44px; font-weight: 400; line-height: 1.2; }
.page-sub { font-size: 22px; margin-top: 18px; }
@media (max-width: 767px) {
  .page-title { font-size: 28px; font-weight: 600; }
  .page-sub { font-size: 18px; margin-top: 10px; }
  .section { margin-top: 40px; }
  .section-title { font-size: 21px; }
}
.breadcrumb { font-size: 14px; color: var(--muted); padding: 14px 0; }
.breadcrumb a { color: var(--muted); }

/* yellow search pill shared by landing + result header */
.searchpill {
  display: flex; align-items: center; min-height: 68px; border: 4px solid var(--yellow); border-radius: 34px;
  background: #fff; padding: 0 5px 0 20px; gap: 16px;
}
.searchpill .sp-field { flex: 1; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 6px 0; }
.searchpill .sp-field .icon { color: var(--text); stroke-width: 1.6; }
.searchpill .sp-label { font-size: 16px; color: var(--muted); line-height: 1.3; }
.searchpill .sp-value { font-size: 16px; line-height: 1.3; }
.searchpill .sp-value select, .searchpill .sp-value input { border: 0; padding: 0; background: transparent; font-size: 16px; width: 100%; outline: none; }
.searchpill .btn { height: 50px; min-width: 180px; font-size: 19px; }
@media (max-width: 767px) {
  .searchpill { flex-direction: column; align-items: stretch; border-radius: 26px; padding: 6px 10px 10px; gap: 0; }
  .searchpill .sp-field { padding: 14px 8px; border-bottom: 1px solid #d0d0d0; }
  .searchpill .sp-field:last-of-type { border-bottom: 0; }
  .searchpill .btn { width: 100%; margin-top: 6px; }
}

/* ---------- modal + bottom sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(20, 24, 40, .45); backdrop-filter: blur(4px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 24px; width: 750px; max-width: 100%; max-height: calc(100vh - 40px); overflow: auto; padding: 24px 24px 32px; position: relative; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h2 { font-size: 21px; font-weight: 500; }
.modal-close { background: none; border: 0; padding: 4px; color: var(--text); }
.modal-close .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.pilltabs { display: flex; border: 1px solid var(--border); border-radius: 28px; padding: 4px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.pilltabs button { flex: 1; height: 46px; border: 0; background: none; border-radius: 23px; font-size: 16px; font-weight: 600; white-space: nowrap; padding: 0 16px; }
.pilltabs button.active { background: var(--pill-blue); color: var(--action); }
@media (max-width: 767px) {
  .overlay.sheet-wrap { align-items: flex-end; padding: 0; }
  .overlay.sheet-wrap .modal { border-radius: 20px 20px 0 0; width: 100%; max-height: 88vh; animation: slideup .2s ease-out; }
}
@keyframes slideup { from { transform: translateY(40%); } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #222; color: #fff; padding: 10px 18px; border-radius: 22px; font-size: 15px; z-index: 200; box-shadow: var(--shadow-pop); animation: fade .15s; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); margin-top: 48px; font-size: 14px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 216px); gap: 0; padding: 32px 0 28px; }
.site-footer h4 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.site-footer .cols a { display: block; color: var(--text); padding: 4px 0; }
.site-footer .bottom { border-top: 1px solid #e3e3e3; padding: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.site-footer .bottom a { color: var(--text); }
.site-footer .satire { color: var(--muted); padding: 0 0 26px; font-size: 13px; }
.site-footer.slim .bottom { border-top: 0; }
@media (max-width: 767px) {
  .site-footer .cols { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
}

/* ---------- cookie banner ---------- */
.cookie-wrap { position: fixed; inset: 0; z-index: 150; background: rgba(10, 16, 40, .55); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 20px; }
.cookie {
  position: relative; width: 500px; max-width: 100%; background: var(--navy); color: #fff; border-radius: 12px;
  padding: 30px 24px 24px; font-size: 14px; line-height: 1.43;
}
.cookie .shaker { position: absolute; left: 50%; top: -100px; transform: translateX(-30%); width: 110px; }.cookie-wrap[hidden] { display: none; }
.cookie-wrap.peek { background: none; backdrop-filter: none; pointer-events: none; place-items: end center; }
.cookie-wrap.peek .cookie { pointer-events: auto; width: 640px; padding: 16px 20px; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); }
.cookie-wrap.peek .shaker, .cookie-wrap.peek .cookie p, .cookie-wrap.peek .c-links, .cookie-wrap.peek .c-top { display: none; }
.cookie-wrap.peek .cookie h2 { font-size: 16px; margin: 0; }
.cookie-wrap.peek .c-btns { margin: 10px 0 0; }
.cookie .c-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.cookie .c-top .wordmark svg { height: 36px; }
.cookie a { color: #fff; text-decoration: underline; font-size: 12px; font-weight: 600; }
.cookie h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.cookie .c-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 12px; }
.cookie .c-btns .btn { height: 36px; font-size: 16px; }
.cookie .c-links { display: flex; justify-content: space-between; align-items: flex-end; }
.cookie .c-links div { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 767px) {
  .cookie-wrap { align-items: end; padding: 0; }
  .cookie { border-radius: 16px 16px 0 0; width: 100%; padding-top: 40px; }
  .cookie .shaker { top: -84px; width: 90px; }
}

/* ---------- misc ---------- */
.notice { background: var(--info-bg); border-radius: 8px; padding: 12px 16px; font-size: 15px; }
.notice.warn { background: #fff4d6; }
.notice.err { background: #fde4e6; color: #8a000a; }
.notice.ok { background: #e0f3e5; color: #0a5a1f; }
.digest { font-family: var(--mono); font-size: 13px; word-break: break-all; background: #f6f7f9; border: 1px solid #e6e8ec; border-radius: 6px; padding: 8px 10px; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--action); font-size: 14px; padding: 2px 4px; }
.copy-btn .icon { width: 16px; height: 16px; }
.dropzone { border: 2px dashed #b9c4dc; border-radius: 12px; padding: 24px; text-align: center; color: var(--muted); background: #f8faff; cursor: pointer; }
.dropzone.over { border-color: var(--action); background: #eef4fc; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 767px) { .grid-2 { grid-template-columns: 1fr; } }
table.facts { border-collapse: collapse; width: 100%; font-size: 15px; }
table.facts th, table.facts td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
table.facts th { font-weight: 600; width: 38%; color: var(--text); }
.tool-card { padding: 24px; }
.hide-mobile { }
@media (max-width: 767px) { .hide-mobile { display: none !important; } }
@media (min-width: 768px) { .only-mobile { display: none !important; } }
