/* PR Cutoff site styles: clean white and blue, built for phones first. Rules for ad slots are in website/README.md. */
:root {
  --page: #f3f4f6;
  --white: #ffffff;
  --ink: #111827;
  --text: #374151;
  --muted: #4b5563;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --subtle: #f9fafb;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --ok: #166534;
  --ok-bg: #dcfce7;
  --warn: #92400e;
  --warn-bg: #fef3c7;
  --bad: #b91c1c;
  --bad-bg: #fee2e2;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
  --sans: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  accent-color: var(--blue);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--sans); caret-color: var(--blue); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--blue-200); color: var(--ink); }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 700; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
p { margin: 0; text-wrap: pretty; max-width: 60ch; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; border-radius: var(--radius-small); }
.skip:focus { left: 8px; }
.icon { width: 16px; height: 16px; flex: none; vertical-align: -3px; }

/* Layout helpers */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stack-small { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stack-large { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 4px 12px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.section { padding-top: 24px; padding-bottom: 24px; }
.section-head { margin-bottom: 12px; }
.grid-2, .grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.head-row { height: 60px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; flex: none; }
.brand .logo { display: block; height: 32px; width: auto; }
.nav-desktop { display: none; gap: 24px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav-desktop a { color: var(--text); text-decoration: none; padding: 20px 0 18px; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.nav-desktop a:hover, .nav-desktop a[aria-current] { color: var(--blue); border-bottom-color: var(--blue); }
.site-head .head-app { display: none; flex: none; }
.nav-mobile { margin-left: auto; }
.nav-mobile summary { list-style: none; cursor: pointer; min-height: 44px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border-radius: var(--radius-small); font-weight: 500; color: var(--text); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--page); }
.nav-mobile nav { position: absolute; left: 0; right: 0; top: 60px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; padding: 4px 16px 12px; box-shadow: 0 12px 24px -12px rgba(17, 24, 39, 0.25); }
.nav-mobile nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
.nav-mobile nav a[aria-current] { color: var(--blue); }
.nav-mobile nav a:last-child { border-bottom: 0; color: var(--blue); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: var(--radius-small); background: var(--blue); color: var(--white); font: 500 16px/1.2 var(--sans); text-align: center; text-decoration: none; border: 0; cursor: pointer; transition: background-color 0.15s; }
.btn:hover { background: var(--blue-dark); color: var(--white); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-outline { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-outline:hover { background: var(--blue-soft); color: var(--blue-dark); }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* Page furniture */
.page-top { padding: 20px 16px 4px; display: flex; flex-direction: column; gap: 10px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; }
.crumbs a { color: var(--muted); }
.crumbs .icon { width: 14px; height: 14px; }
.lede { font-size: 17px; line-height: 1.5; color: var(--text); max-width: 56ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 500; border-radius: 999px; padding: 5px 12px; background: var(--white); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
a.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip-ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--radius-small); background: var(--white); border: 1px solid var(--line-strong); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab[aria-current] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.promo { background: var(--blue-soft); border: 1px solid var(--blue-200); border-radius: var(--radius); padding: 16px; }
.promo h2 { font-size: 18px; }
.promo .btn { align-self: flex-start; }
.note { background: var(--warn-bg); border-radius: var(--radius-small); padding: 12px max(14px, calc(100% - 62ch)) 12px 14px; color: #451a03; max-width: none; }
a.note { display: block; text-decoration: none; }
.note b { color: var(--warn); }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.6; color: var(--text); max-width: 60ch; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
ul.prose, ol.prose { margin: 0; padding-left: 22px; gap: 8px; }
.prose h2 { margin-top: 12px; }
.prose h3 { margin-top: 6px; }
.lede-small { font-size: 16px; }
.heading-small { font-size: 19px; }

/* Ads: fixed sizes so loading an ad never moves the page. */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 32px auto; max-width: 100%; }
.ad-label { font-size: 12px; color: var(--muted); }
.ad-units { display: flex; gap: 24px; justify-content: center; max-width: 100%; }
.ad-box { flex: none; max-width: 100%; display: flex; align-items: center; justify-content: center; border: 1px dashed #9ca3af; border-radius: 4px; background: #e5e7eb; font-size: 13px; color: var(--muted); }
.ad-box .ad-wide { display: none; }
.ad-top .ad-box { width: 320px; height: 100px; }
.ad-list .ad-box, .ad-section .ad-box { width: 300px; height: 250px; }
.ad-second { display: none; }
.ad-rail-tall, .ad-rail-small { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table-narrow { max-width: 560px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-size: 13px; font-weight: 500; color: var(--muted); padding: 10px 12px; background: var(--subtle); border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink); }
.t tbody tr:last-child td { border-bottom: 0; }
.t .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t tr.closed td { color: var(--muted); }
.t caption { caption-side: bottom; text-align: left; font-size: 13px; color: var(--muted); padding: 10px 12px; border-top: 1px solid var(--line); }
.t-fixed { table-layout: fixed; }
.t-fixed th { white-space: normal; padding-left: 8px; padding-right: 8px; }
.t-fixed td { overflow-wrap: anywhere; padding-left: 8px; padding-right: 8px; }
.closed-note { color: var(--warn); }
.search-results { margin-top: 8px; }

/* Home */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; padding-bottom: 8px; align-items: start; }
.hero-text { display: flex; flex-direction: column; gap: 14px; }
.hero-actions { display: flex; flex-direction: column; gap: 8px; }
.latest { padding: 16px 16px 6px; }
.latest-head { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--line); }
.latest-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: background-color 0.15s; }
.latest-row:last-child { border-bottom: 0; }
.latest-row:hover { color: var(--ink); background: var(--subtle); }
.latest-row b { display: block; font-weight: 500; }
.latest-row .meta { display: block; font-size: 13px; line-height: 1.35; color: var(--muted); }
.latest-row .score { font-size: 21px; font-weight: 700; color: var(--blue); text-align: right; }
.latest-row .no-score { font-size: 14px; color: var(--muted); text-align: right; }
.calc-card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); transition: border-color 0.15s; }
.calc-card:hover { border-color: var(--blue); color: var(--ink); }
.calc-card .t-name { font-size: 17px; font-weight: 700; }
.calc-card .go { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: var(--blue); }
.proof b { display: block; font-size: 21px; line-height: 1.25; color: var(--blue); }
.proof p { font-size: 15px; color: var(--text); }
.section-more { margin-top: 14px; }
.not-found { padding-top: 72px; padding-bottom: 72px; }
.news { padding: 2px 16px; }
.news-item { display: flex; flex-direction: column; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.news-item:last-child { border-bottom: 0; }
.news-item:hover { color: var(--blue); }
.news-item b { font-size: 16px; font-weight: 500; line-height: 1.4; }
.community-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 10px 12px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; transition: border-color 0.15s; }
.community-tile:hover { border-color: var(--blue); color: var(--ink); }
.community-tile b { font-size: 14px; font-weight: 500; }
.community-tile span { font-size: 12px; line-height: 1.35; color: var(--muted); }

/* Rail */
.rail { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.rail .ad { margin: 0 auto; }
.link-panel { display: flex; flex-direction: column; }
.link-panel h3 { font-size: 15px; margin-bottom: 4px; }
.link-panel a { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.link-panel a:hover { text-decoration: underline; }
.link-panel a:last-child { border-bottom: 0; padding-bottom: 2px; }

/* Calculator */
.calc-top { margin-top: 24px; }
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-loading { min-height: 320px; display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.q-group { display: flex; flex-direction: column; gap: 22px; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.q-group + .q-group { margin-top: 28px; }
.calc-form > .q-group:first-child { padding-top: 0; border-top: 0; }
.q-group > h2 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.q-group > h2 .n { width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.q { display: flex; flex-direction: column; gap: 10px; }
.q-label { font-size: 16px; font-weight: 500; line-height: 1.4; max-width: 58ch; }
.q-help { font-size: 14px; color: var(--muted); line-height: 1.45; max-width: 56ch; }
.options { display: flex; flex-direction: column; gap: 6px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); background: var(--white); color: var(--ink); font: 400 15px/1.35 var(--sans); cursor: pointer; transition: border-color 0.15s, background-color 0.15s; }
.opt:hover { border-color: var(--blue-400); }
.opt[aria-pressed='true'], .opt[aria-checked='true'] { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.opt .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #9ca3af; flex: none; position: relative; }
.opt[aria-pressed='true'] .dot { border-color: var(--blue); }
.opt[aria-pressed='true'] .dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue); }
.opt .box { width: 20px; height: 20px; border-radius: 5px; border: 2px solid #9ca3af; flex: none; display: flex; align-items: center; justify-content: center; }
.opt[aria-checked='true'] .box { background: var(--blue); border-color: var(--blue); }
.opt[aria-checked='true'] .box::after { content: ''; width: 9px; height: 5px; border: 2px solid var(--white); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt .txt small { font-size: 13px; color: var(--muted); max-width: 54ch; }
.opt .pts { flex: none; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--blue-dark); background: var(--blue-soft); border-radius: 999px; padding: 3px 9px; }
.opt[aria-pressed='true'] .pts, .opt[aria-checked='true'] .pts { background: var(--white); }
.seg { display: inline-flex; flex-wrap: wrap; align-self: flex-start; border: 1px solid var(--line-strong); border-radius: var(--radius-small); overflow: hidden; background: var(--white); }
.seg button { min-height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--text); font: 500 14px/1 var(--sans); cursor: pointer; border-right: 1px solid var(--line-strong); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--blue-soft); }
.seg button[aria-pressed='true'] { background: var(--blue); color: var(--white); }
.yesno { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-width: 340px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 13px; font-weight: 500; color: var(--text); }
.input { display: flex; align-items: center; gap: 8px; height: 48px; border: 1px solid var(--line-strong); border-radius: var(--radius-small); padding: 0 12px; background: var(--white); max-width: 260px; transition: border-color 0.15s; }
.input:focus-within { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.input input, .input select { border: 0; outline: 0; font: 500 16px/1 var(--sans); color: var(--ink); width: 100%; min-width: 0; background: transparent; }
.input input::placeholder { color: var(--muted); font-weight: 400; }
.input .affix { color: var(--muted); font-size: 15px; flex: none; }
.input.wide { max-width: 100%; }
.input.bad { border-color: var(--bad); }
.picker { max-width: 420px; }
.hint { font-size: 13px; color: var(--muted); max-width: 54ch; }
.hint.ok { color: var(--ok); font-weight: 500; }
.err { font-size: 13px; color: var(--bad); font-weight: 500; }
.warn-text { font-size: 13px; color: var(--warn); font-weight: 500; }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.lang-grid .input { max-width: none; padding: 0 12px; }
.search .input { max-width: 100%; }
.picked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--blue); font: 500 14px/1.4 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 10px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 10px 12px; }
.pick-row .input { height: 42px; }
.pick-row .linkish { grid-column: 1 / -1; justify-self: start; }

/* Result panel */
.result { display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.score-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.score-card .lbl { font-size: 14px; font-weight: 500; color: var(--muted); }
.score-card .big { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.score-card .big b { font-size: 56px; line-height: 1; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.score-card .big span { color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.2s ease-out; }
.sec { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.sec-head { display: flex; justify-content: space-between; gap: 12px; }
.sec-head b { font-weight: 500; }
.sec-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; color: var(--muted); font-size: 13px; }
.sec-note { font-size: 12px; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.panel h3 { font-size: 15px; }
.panel-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.4; }
.gain, .above { color: var(--ok); font-weight: 700; flex: none; text-align: right; }
.short { color: var(--warn); font-weight: 700; flex: none; text-align: right; }
.msg { font-size: 14px; line-height: 1.45; border-radius: var(--radius-small); padding: 10px 12px; }
.msg-info { background: var(--blue-soft); }
.msg-warning { background: var(--warn-bg); color: #451a03; }
.msg-error { background: var(--bad-bg); color: var(--bad); }
.todo { margin: 0; padding-left: 18px; font-size: 14px; color: var(--text); display: flex; flex-direction: column; gap: 4px; }
.mini-score { display: flex; position: sticky; top: 0; z-index: 10; margin: 0 -16px 16px; background: var(--white); border-bottom: 1px solid var(--line-strong); padding: 8px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 6px 12px -10px rgba(17, 24, 39, 0.35); line-height: 1.2; }
.mini-score b { font-size: 24px; line-height: 1; color: var(--blue); }
.mini-score a { font-weight: 500; font-size: 14px; }

/* Points tables */
.tables-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line-strong); display: flex; flex-direction: column; gap: 6px; }
.faq-item:last-child { border-bottom: 0; }
.faq-item p { color: var(--text); max-width: 60ch; }
.sources { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; max-width: 58ch; }
.accuracy { display: flex; flex-direction: column; gap: 8px; }
.acc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.acc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 15px; font-weight: 500; }
.acc-tag { font-size: 12px; font-weight: 500; border-radius: 999px; padding: 2px 9px; }
.acc-official .acc-tag { background: var(--ok-bg); color: var(--ok); }
.acc-reading .acc-tag { background: var(--blue-soft); color: var(--blue-dark); }
.acc-unconfirmed .acc-tag { background: var(--warn-bg); color: var(--warn); }
.acc p { font-size: 14px; color: var(--text); max-width: 56ch; }

/* Draws */
.latest-draw { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.latest-draw .k { font-size: 14px; color: var(--muted); }
.latest-draw .big { font-size: 56px; line-height: 1; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.latest-draw .mid { font-size: 28px; line-height: 1.1; font-weight: 700; }
.latest-numbers { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; }
.latest-number { display: flex; flex-direction: column; gap: 2px; }
.compare { background: var(--blue-soft); border-radius: var(--radius-small); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bars { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.bar-row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 13px; }
.bar-row a, .bar-row > span:first-child { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.bar-row a:hover { color: var(--blue); }
.bar-row .track { height: 12px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 3px; background: var(--blue-400); }
.bar-row .track i.main { background: var(--blue); }
.bar-row .track i.pnp { background: var(--blue-200); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
.legend .swatch-main { background: var(--blue); }
.legend .swatch-cat { background: var(--blue-400); }
.legend .swatch-pnp { background: var(--blue-200); }
.draw-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.draw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.draw:last-child { border-bottom: 0; }
.draw:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.draw:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.draw:target { background: var(--blue-soft); }
.draw-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.draw h3 { font-size: 16px; font-weight: 500; }
.draw .when { font-size: 13px; color: var(--muted); }
.draw p { font-size: 14px; color: var(--text); max-width: 56ch; }
.draw-link { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 14px; font-weight: 500; text-decoration: none; }
.draw-link:hover { text-decoration: underline; }
.draw-num { display: flex; flex-direction: column; align-items: flex-end; text-align: right; min-width: 64px; }
.draw .score { font-size: 28px; line-height: 1.1; font-weight: 700; color: var(--blue); }
.draw .score-none { font-size: 14px; line-height: 1.3; font-weight: 500; color: var(--muted); max-width: 84px; }

/* RCIP */
.status { border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.status-open { background: var(--ok-bg); }
.status-closed { background: var(--warn-bg); }
.status-unknown { background: var(--blue-soft); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 8px; }
.status-open .dot { background: var(--ok); }
.status-closed .dot { background: var(--warn); }
.status-unknown .dot { background: var(--blue); }
.status a { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.fact span { font-size: 12px; color: var(--muted); }
.fact b { font-size: 15px; font-weight: 500; }
.check-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.check-list li b { font-weight: 500; }
.check-list .ic { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.check-list .ic svg { width: 14px; height: 14px; }
.ic-pass { background: var(--ok-bg); color: var(--ok); }
.ic-fail { background: var(--bad-bg); color: var(--bad); }
.ic-check, .ic-missing { background: var(--warn-bg); color: var(--warn); }

/* High-wage */
.level b { display: block; font-size: 28px; line-height: 1.15; color: var(--blue); }
.level h2 { font-size: 15px; line-height: 1.3; font-weight: 500; }

/* Footer */
.site-foot { background: #111827; color: #d1d5db; margin-top: 40px; }
.site-foot .wrap { padding-top: 36px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; font-size: 14px; }
.foot-cols div { display: flex; flex-direction: column; }
.foot-cols b { color: var(--white); font-weight: 500; margin-bottom: 4px; }
.foot-cols a { color: #d1d5db; text-decoration: none; padding: 5px 0; }
.foot-cols a:hover { color: var(--white); text-decoration: underline; }
.foot-bottom { display: flex; gap: 16px 24px; align-items: center; border-top: 1px solid #374151; padding-top: 20px; flex-wrap: wrap; }
.foot-bottom p { font-size: 13px; color: #d1d5db; max-width: 62ch; flex: 1; min-width: 260px; }
.foot-logo .logo { height: 28px; width: auto; display: block; }
.foot-logo:hover { opacity: 0.85; }

/* Bigger phones and small tablets */
@media (min-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .lang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pick-row { grid-template-columns: minmax(0, 1fr) 120px auto; }
  .pick-row .linkish { grid-column: auto; justify-self: auto; }
  .foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .latest-draw { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; }
  .bar-row { grid-template-columns: 170px minmax(0, 1fr) 48px; font-size: 14px; }
}

/* Desktop layout */
@media (min-width: 900px) {
  h1 { font-size: 34px; }
  h2 { font-size: 24px; }
  .wrap { padding: 0 24px; }
  .page-top { padding: 28px 24px 4px; }
  .section { padding-top: 32px; padding-bottom: 32px; }
  .head-row { height: 64px; }
  .brand .logo { height: 36px; }
  .nav-desktop { display: flex; }
  .site-head .head-app { display: inline-flex; }
  .nav-mobile { display: none; }
  .two-col { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 8px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .grid-2 { gap: 16px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tables-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .calc { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  .result { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
  .mini-score { display: none; }
  .ad-rail-tall, .ad-rail-small { display: flex; }
  .ad-rail-tall .ad-box { width: 300px; height: 600px; }
  .ad-rail-small .ad-box { width: 300px; height: 250px; }
}

/* Wide enough for leaderboards beside the rail */
@media (min-width: 1120px) {
  .ad-top .ad-box, .ad-list .ad-box { width: 728px; height: 90px; }
  .ad-top .ad-box .ad-narrow, .ad-list .ad-box .ad-narrow { display: none; }
  .ad-top .ad-box .ad-wide, .ad-list .ad-box .ad-wide { display: inline; }
  .ad-section .ad-box { width: 336px; height: 280px; }
  .ad-section .ad-box .ad-narrow { display: none; }
  .ad-section .ad-box .ad-wide { display: inline; }
  .ad-second { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
