:root {
  --navy: #102a43;
  --navy-2: #183b5b;
  --navy-3: #091d2e;
  --gold: #f5b700;
  --gold-dark: #765400;
  --gold-soft: #fff6d7;
  --green: #147a46;
  --green-soft: #e7f6ee;
  --red: #b42318;
  --red-soft: #fff0ee;
  --blue-soft: #edf4fa;
  --ink: #1f2937;
  --muted: #5b6b7c;
  --border: #d7e0e9;
  --surface: #fff;
  --background: #f6f8fb;
  --shadow: 0 18px 48px rgba(16, 42, 67, .09);
  --radius: 18px;
  --container: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--background);
  font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration-thickness: 2px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.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: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid #e6a900; outline-offset: 3px; }

.site-header { position: sticky; z-index: 30; top: 0; background: rgba(255, 255, 255, .96); border-bottom: 1px solid rgba(215, 224, 233, .9); backdrop-filter: blur(14px); }
.header-row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { display: grid; width: 44px; aspect-ratio: 1; place-items: center; color: var(--gold); background: var(--navy); border: 7px solid var(--gold); border-radius: 50%; font-size: 11px; font-weight: 900; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.brand-mark--large { width: 76px; margin-bottom: 20px; border-width: 11px; font-size: 18px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-copy strong { color: var(--navy); font-size: 18px; font-weight: 850; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { position: relative; padding: 26px 13px 23px; color: var(--muted); font-size: 14px; font-weight: 700; }
.main-nav a::after { position: absolute; right: 13px; bottom: 16px; left: 13px; height: 3px; content: ""; background: var(--gold); border-radius: 5px; transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--navy); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-menu { position: relative; height: 76px; }
.nav-menu summary { display: flex; height: 100%; align-items: center; padding: 0 13px; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 700; list-style: none; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { margin-left: 7px; content: '⌄'; color: var(--gold-dark); font-size: 16px; }
.nav-menu[open] summary, .nav-menu.is-active summary, .nav-menu summary:hover { color: var(--navy); }
.nav-submenu { position: absolute; z-index: 40; top: 67px; right: 0; display: grid; min-width: 245px; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); }
.nav-submenu a { padding: 10px 12px; border-radius: 8px; }
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { background: var(--blue-soft); }
.menu-button { display: none; width: 44px; height: 44px; color: var(--navy); background: var(--blue-soft); border: 0; border-radius: 10px; font-size: 23px; }

.hero, .page-hero { position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.hero::before, .page-hero::before { position: absolute; top: -180px; right: -90px; width: 420px; height: 420px; content: ""; border: 78px solid rgba(245, 183, 0, .12); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; min-height: 350px; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .75fr); align-items: center; gap: 64px; padding-block: 58px; }
.eyebrow { margin: 0; color: var(--gold-dark); font-size: 11px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow--gold { color: var(--gold); }
.hero h1, .page-hero h1 { max-width: 780px; margin: 13px 0; font-size: clamp(2.35rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -.055em; }
.hero-lead, .page-hero p:last-child { max-width: 680px; margin: 0; color: #d8e4ee; font-size: 18px; }
.trust-line { display: flex; align-items: center; gap: 10px; margin-top: 25px; color: #d8e4ee; font-size: 13px; }
.trust-line > span { display: grid; width: 25px; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--gold); border-radius: 50%; font-weight: 900; }
.date-panel { padding: 24px; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: 0 26px 70px rgba(0, 0, 0, .2); }
.date-panel label, .admin-card > label:not(.checkbox) { display: block; margin-bottom: 10px; color: var(--navy); font-size: 12px; font-weight: 800; }
.date-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
input[type="date"] { width: 100%; min-height: 46px; padding: 8px 11px; color: var(--navy); background: #fff; border: 1px solid #aebdca; border-radius: 10px; font-weight: 700; }
.date-panel p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 850; }
.button--gold { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.button--gold:hover { background: #ffca25; }
.button--light { color: var(--navy); background: #fff; border-color: #aebdca; }
.button--light:hover { background: var(--blue-soft); }
.button--consent { color: var(--navy); background: #fff; border-color: var(--navy); }
.button--consent-primary { color: var(--navy); background: var(--gold); border-color: var(--gold); box-shadow: 0 6px 16px rgba(245, 183, 0, .24); }
.button--consent-primary:hover { background: #ffca25; border-color: #ffca25; }
.button--consent:hover { color: #fff; background: var(--navy); }
.button--text { min-height: auto; padding-inline: 4px; color: #125587; background: transparent; text-decoration: underline; text-underline-offset: 3px; }

.ad-region { width: min(calc(100% - 32px), var(--container)); min-height: 112px; margin: 24px auto; padding: 12px; overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
.ad-region[hidden], .ad-region[data-ad-state="unfilled"] { display: none; }
.ad-label { display: block; margin-bottom: 5px; color: #718194; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ad-unit { display: block; width: 100%; max-width: 100%; min-height: 78px; }
.ad-region--home-top { min-height: 112px; margin-block: 18px 24px; }
.ad-region--home-top .ad-unit { min-height: 90px; }
.ad-preview { display: grid; min-height: 78px; place-items: center; color: #718194; background: repeating-linear-gradient(135deg, #f5f7fa 0, #f5f7fa 10px, #edf1f5 10px, #edf1f5 20px); border-radius: 8px; font-size: 12px; }
.game-section > .ad-region, .directory-section > .ad-region { width: 100%; margin-block: 24px; }

.results-section { padding-block: 58px 74px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 26px; }
.content-grid > * { min-width: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .explain-section h2 { margin: 5px 0 0; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -.04em; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; }
.live-dot i { width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px rgba(20, 122, 70, .12); }
.filter-chips { display: flex; max-width: 100%; gap: 8px; margin: 0 0 22px; padding: 2px 2px 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.chip { flex: 0 0 auto; padding: 8px 14px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 750; }
.chip:hover { color: var(--navy); border-color: #9cadbd; }
.chip.is-active { color: var(--navy); background: var(--gold); border-color: var(--gold); box-shadow: 0 5px 14px rgba(245, 183, 0, .2); }
.result-groups { display: grid; gap: 30px; }
.lottery-result-group { min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 620px; }
.lottery-result-group[hidden] { display: none; }
.lottery-result-group__heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 12px; padding: 13px 16px; background: var(--blue-soft); border-left: 5px solid var(--gold); border-radius: 12px; }
.lottery-result-group__heading h3 { margin: 0; color: var(--navy); font-size: 1.3rem; letter-spacing: -.025em; }
.lottery-result-group__heading h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lottery-result-group__heading span { color: var(--muted); font-size: 11px; }
.lottery-result-group__heading .lottery-result-group__label { display: block; margin-bottom: 2px; color: var(--gold-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.result-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.result-list--wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result-card { display: flex; min-width: 0; flex-direction: column; padding: 21px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16, 42, 67, .055); transition: transform .2s ease, box-shadow .2s ease; }
.result-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.result-card[hidden] { display: none; }
.result-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.result-card__title { margin: 4px 0 0; color: var(--navy); font-size: 17px; line-height: 1.18; }
.result-card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.result-card__lottery { margin: 0 0 4px; color: var(--navy-2); font-size: 11px; font-weight: 800; }
.result-card__lottery span { margin-right: 4px; color: var(--gold-dark); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.status { display: inline-flex; align-items: center; width: max-content; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.status--published, .status--confirmed, .status--success { color: var(--green); background: var(--green-soft); }
.status--corrected, .status--partial, .status--warning, .status--skipped { color: #795900; background: var(--gold-soft); }
.status--failed, .status--error { color: var(--red); background: var(--red-soft); }
.status--running { color: var(--navy); background: var(--blue-soft); }
.number-row { display: flex; min-width: 0; max-width: 100%; flex-wrap: wrap; justify-content: center; gap: 9px; margin: 22px 0; }
.number-ball { display: grid; flex: 0 0 auto; width: 47px; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--background); border: 2px solid var(--navy); border-radius: 50%; box-shadow: inset 0 0 0 3px #fff; font-size: 17px; font-weight: 850; font-variant-numeric: tabular-nums; }
.number-ball--wide { width: max-content; min-width: 72px; max-width: 100%; min-height: 47px; padding: 8px clamp(13px, 1.8vw, 18px); aspect-ratio: auto; border-radius: 999px; line-height: 1.15; overflow-wrap: anywhere; text-align: center; white-space: normal; }
.number-ball--text { max-width: 100%; font-size: 14px; }
.number-ball--bonus { color: var(--navy); background: var(--gold-soft); border-color: var(--gold-dark); }
.result-card__meta { display: grid; gap: 4px; margin-top: auto; padding-top: 13px; color: var(--muted); border-top: 1px solid #ebf0f4; font-size: 10px; }
.result-card__meta strong { color: var(--ink); }
.result-card__source { display: grid; gap: 4px; margin-top: 12px; color: var(--muted); font-size: 10px; }
.result-card__source a, .text-link, .source-disclosure a, .prose-layout a { color: #125587; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.correction-note { color: #795900; font-weight: 750; }
.empty-state { grid-column: 1 / -1; padding: 46px 28px; text-align: center; background: #fff; border: 1px dashed #acbbc8; border-radius: var(--radius); }
.empty-state__icon { display: grid; width: 56px; aspect-ratio: 1; place-items: center; margin: 0 auto 14px; color: var(--gold); background: var(--navy); border: 8px solid var(--gold); border-radius: 50%; font-size: 13px; font-weight: 900; }
.empty-state h2, .empty-state h3 { margin: 0; color: var(--navy); }
.empty-state p { max-width: 560px; margin: 7px auto 0; color: var(--muted); }
.empty-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.sidebar { display: grid; gap: 18px; }
.side-card, .source-disclosure { padding: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(16, 42, 67, .05); }
.side-card--trust { color: #fff; background: var(--navy); border-color: var(--navy); }
.side-icon { display: grid; width: 41px; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--gold); border-radius: 12px; font-size: 20px; font-weight: 900; }
.side-card h2 { margin: 14px 0 7px; color: var(--navy); font-size: 18px; }
.side-card--trust h2 { color: #fff; }
.side-card p { color: var(--muted); font-size: 13px; }
.side-card--trust .text-link { color: var(--gold); }
.notification-card .button { width: 100%; margin-top: 10px; }
.notification-status { min-height: 2.8em; margin-bottom: 0; font-size: 11px !important; }
.check-list { margin: 13px 0 17px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 8px 0 8px 23px; color: #d7e4ed; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }
.check-list li::before { position: absolute; left: 0; content: "✓"; color: var(--gold); font-weight: 900; }
.text-link { display: inline-flex; padding-top: 10px; font-size: 12px; }

.explain-section { padding-block: 58px; background: #fff; border-top: 1px solid var(--border); }
.explain-section .eyebrow--gold, .principles span { color: var(--gold-dark); }
.explain-grid { display: grid; grid-template-columns: .8fr 1.35fr; align-items: start; gap: 65px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principles article { padding-left: 15px; border-left: 2px solid var(--gold); }
.principles span { color: var(--gold-dark); font-size: 11px; font-weight: 900; }
.principles h3 { margin: 6px 0 4px; color: var(--navy); font-size: 16px; }
.principles p { margin: 0; color: var(--muted); font-size: 12px; }

.page-hero--compact .container { position: relative; z-index: 1; padding-block: 60px; }
.page-hero--compact h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.prose-layout { padding-block: 48px 76px; }
.prose-layout section { padding-block: 24px; border-bottom: 1px solid var(--border); }
.prose-layout h2 { margin: 0 0 11px; color: var(--navy); font-size: 1.45rem; letter-spacing: -.025em; }
.prose-layout p, .prose-layout li { color: #405166; }
.prose-layout ul { padding-left: 22px; }
.prose-layout li { margin-block: 8px; }
.page-updated { margin-top: 30px; padding: 14px 17px; background: var(--blue-soft); border-left: 3px solid var(--gold); }
.directory-section, .game-section, .admin-section { padding-block: 36px 76px; }
.directory-category + .directory-category { margin-top: 42px; }
.directory-category > h2 { margin: 0 0 16px; color: var(--navy); font-size: 1.55rem; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.directory-card { padding: 23px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 42, 67, .05); }
.directory-card h2 { margin: 6px 0 12px; color: var(--navy); font-size: 19px; }
.directory-card h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.directory-card p { color: var(--muted); font-size: 12px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: #125587; text-decoration: underline; text-underline-offset: 2px; }
.source-disclosure { margin-top: 24px; }
.source-disclosure h2 { margin-top: 0; color: var(--navy); }
.source-disclosure p { margin-bottom: 0; color: var(--muted); }
.editorial-section { padding-block: 52px 72px; background: #fff; border-top: 1px solid var(--border); }
.editorial-section article + article { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--border); }
.editorial-section h2 { margin: 0 0 12px; color: var(--navy); font-size: 1.55rem; letter-spacing: -.025em; }
.editorial-section p { color: #405166; }
.maintenance-page .container { position: relative; z-index: 1; display: flex; min-height: 62vh; flex-direction: column; justify-content: center; padding-block: 70px; }

.date-toolbar { position: sticky; z-index: 28; top: 76px; color: var(--navy); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--border); box-shadow: 0 8px 24px rgba(16, 42, 67, .07); backdrop-filter: blur(12px); }
.date-toolbar__inner { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; }
.date-toolbar__status { display: flex; flex-direction: column; line-height: 1.25; }
.date-toolbar__status span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.date-toolbar__status strong { font-size: 13px; }
.date-toolbar__actions, .date-toolbar__form { display: flex; align-items: center; gap: 8px; }
.date-toolbar__form input[type="date"] { min-height: 40px; width: 145px; }
.date-toolbar__form .button { min-height: 40px; padding-inline: 13px; }
.date-shortcut { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 14px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 800; }
.date-shortcut:hover, .date-shortcut.is-active { color: var(--navy); background: var(--gold-soft); border-color: var(--gold); }

.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.admin-card, .table-card { padding: 23px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(16, 42, 67, .05); }
.admin-card h2 { margin-top: 0; color: var(--navy); }
.admin-card p, .admin-card li { color: var(--muted); font-size: 13px; }
.admin-card input[type="date"] { margin-bottom: 15px; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.notice { margin-bottom: 22px; padding: 13px 16px; border-radius: 10px; font-weight: 700; }
.notice--success { color: var(--green); background: var(--green-soft); }
.notice--warning { color: #795900; background: var(--gold-soft); }
.notice--error { color: var(--red); background: var(--red-soft); }
.catalog-warning p { margin: 5px 0 8px; font-weight: 500; }
.catalog-warning ul { margin: 0; padding-left: 20px; font-size: 12px; font-weight: 600; }
.catalog-warning li + li { margin-top: 5px; }
.table-card { padding: 0; overflow: hidden; }
.table-card .section-heading { padding: 22px 22px 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th, td { padding: 11px 13px; text-align: left; border-top: 1px solid var(--border); vertical-align: top; }
th { color: var(--navy); background: var(--blue-soft); font-weight: 800; white-space: nowrap; }
td { color: var(--muted); }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.admin-tabs a { padding: 9px 15px; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 800; }
.admin-tabs a.is-active { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.editorial-target { margin-bottom: 22px; }
.editorial-target > label, .editorial-form label { display: grid; gap: 6px; color: var(--navy); font-size: 12px; font-weight: 800; }
.editorial-target > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.editorial-target select, .editorial-form input, .editorial-form textarea { width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #aebdca; border-radius: 10px; }
.editorial-target select { min-height: 46px; }
.editorial-form textarea { resize: vertical; line-height: 1.5; }
.editorial-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.editorial-fields__wide { grid-column: 1 / -1; }
.editorial-sections { margin-top: 28px; }
.editorial-sections__heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.editorial-sections__heading h3 { margin: 4px 0 0; color: var(--navy); }
.editorial-section-editor { position: relative; display: grid; gap: 14px; margin: 0 0 16px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; }
.editorial-section-editor legend { padding-inline: 6px; color: var(--navy); font-size: 11px; font-weight: 850; }
.editorial-section-editor label small { color: var(--muted); font-weight: 500; }
.editorial-section-editor__remove { position: absolute; top: 10px; right: 10px; display: grid; width: 32px; aspect-ratio: 1; place-items: center; color: var(--red); background: var(--red-soft); border: 0; border-radius: 50%; font-size: 20px; }
.editorial-form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }

.site-footer { color: #d7e2ea; background: var(--navy-3); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .7fr; gap: 56px; padding-block: 48px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.brand-footer .brand-copy strong { color: #fff; }
.brand-footer .brand-copy small { color: #afbfcb; }
.footer-grid h2 { margin: 0 0 4px; color: #fff; font-size: 13px; }
.footer-grid p { max-width: 490px; margin: 4px 0 0; color: #9eb0be; font-size: 12px; }
.footer-grid .fine-print { font-size: 10px; }
.footer-grid a:not(.brand) { color: #adbdc9; font-size: 12px; }
.footer-grid a:not(.brand):hover { color: var(--gold); }
.footer-link-button { padding: 0; color: #adbdc9; background: transparent; border: 0; font-size: 12px; }
.footer-link-button:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 15px; color: #8fa3b2; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 10px; }

.cookie-banner { position: fixed; z-index: 90; right: 20px; bottom: 20px; left: 20px; display: grid; width: min(calc(100% - 40px), 980px); grid-template-columns: minmax(0, 1fr) auto; gap: 26px; margin-inline: auto; padding: 22px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 22px 70px rgba(9, 29, 46, .24); }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { margin: 0 0 6px; color: var(--navy); font-size: 1.2rem; }
.cookie-banner .eyebrow { margin-bottom: 3px; }
.cookie-banner p { max-width: 650px; margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.cookie-banner a { color: #125587; font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: grid; min-width: 190px; gap: 7px; align-content: center; }
.privacy-dialog { width: min(calc(100% - 28px), 620px); padding: 0; color: var(--ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 24px 90px rgba(9, 29, 46, .32); }
.privacy-dialog::backdrop { background: rgba(9, 29, 46, .66); backdrop-filter: blur(3px); }
.privacy-dialog > p { margin: 0; padding: 0 24px 20px; color: var(--muted); font-size: 13px; }
.privacy-dialog__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; }
.privacy-dialog__heading h2 { margin: 4px 0 0; color: var(--navy); }
.privacy-dialog__close { display: grid; width: 38px; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--blue-soft); border: 0; border-radius: 50%; font-size: 24px; line-height: 1; }
.privacy-option { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 24px; border-top: 1px solid var(--border); }
.privacy-option span { display: grid; gap: 3px; }
.privacy-option strong { color: var(--navy); }
.privacy-option strong em { margin-left: 5px; padding: 3px 6px; color: var(--green); background: var(--green-soft); border-radius: 999px; font-size: 8px; font-style: normal; letter-spacing: .03em; text-transform: uppercase; }
.privacy-option small { color: var(--muted); font-size: 12px; }
.privacy-option input { width: 21px; height: 21px; accent-color: var(--navy); }
.privacy-dialog__actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 24px 24px; border-top: 1px solid var(--border); }
.site-utilities { position: fixed; z-index: 88; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; flex-direction: column; gap: 8px; }
.utility-fab { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; padding: 8px 13px; color: #fff; background: var(--navy); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; box-shadow: 0 10px 30px rgba(9, 29, 46, .24); font-size: 11px; font-weight: 800; }
.utility-fab:hover { background: var(--navy-2); }
.utility-fab__icon { position: relative; display: grid; width: 22px; height: 22px; place-items: center; }
.utility-fab__icon svg { width: 20px; height: 20px; fill: currentColor; }
.push-fab[data-push-state="idle"] .utility-fab__icon::after { position: absolute; width: 7px; height: 7px; margin: -16px 0 0 15px; content: ""; background: var(--gold); border: 2px solid var(--navy); border-radius: 50%; }
.push-fab[data-push-state="subscribed"] { color: var(--navy); background: var(--gold); border-color: var(--gold); }
.push-fab[data-push-state="subscribed"]:hover { background: #ffca25; }
.push-fab[data-push-state="blocked"] { color: #fff; background: var(--red); }
.push-fab[hidden] { display: none; }
.privacy-fab { min-height: 44px; }
.push-invitation { position: fixed; z-index: 89; right: 16px; bottom: 76px; width: min(calc(100% - 32px), 390px); padding: 20px; color: var(--ink); background: #fff; border: 1px solid var(--border); border-top: 5px solid var(--gold); border-radius: 16px; box-shadow: 0 22px 70px rgba(9, 29, 46, .25); }
.push-invitation[hidden] { display: none; }
.push-invitation h2 { margin: 5px 28px 6px 0; color: var(--navy); font-size: 1.15rem; line-height: 1.2; }
.push-invitation > p:not(.eyebrow) { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.push-invitation__close { position: absolute; top: 10px; right: 10px; display: grid; width: 32px; aspect-ratio: 1; place-items: center; color: var(--navy); background: var(--blue-soft); border: 0; border-radius: 50%; font-size: 20px; }
.push-invitation__actions { display: flex; align-items: center; gap: 10px; }
.push-dialog { width: min(calc(100% - 28px), 680px); max-height: none; padding: 0; overflow: hidden; color: var(--ink); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 24px 90px rgba(9, 29, 46, .32); }
.push-dialog::backdrop { background: rgba(9, 29, 46, .66); backdrop-filter: blur(3px); }
.push-dialog__shell { display: grid; max-height: min(86dvh, 780px); grid-template-rows: auto minmax(0, 1fr) auto; }
.push-dialog__heading { z-index: 1; background: #fff; border-bottom: 1px solid var(--border); }
.push-dialog__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.push-dialog__intro { margin: 0; padding: 0 24px 18px; color: var(--muted); font-size: 13px; }
.push-catalog { border-top: 1px solid var(--border); }
.push-catalog > p { padding: 18px 24px; color: var(--muted); font-size: 12px; }
.push-lottery { border-bottom: 1px solid var(--border); }
.push-lottery__choice, .push-game { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 24px; }
.push-lottery__choice { color: var(--navy); background: var(--blue-soft); font-weight: 800; }
.push-games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.push-game { min-height: 50px; color: var(--muted); border-top: 1px solid #edf1f5; font-size: 12px; }
.push-lottery input, .push-game input { flex: 0 0 auto; width: 19px; height: 19px; accent-color: var(--navy); }
.push-dialog__footer { z-index: 1; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 20px rgba(16, 42, 67, .06); }
.push-dialog__footer .privacy-dialog__actions { padding-top: 12px; border-top: 0; }
.push-dialog__status { min-height: 1.5em; margin: 0; padding: 12px 24px 0; color: var(--muted); font-size: 12px; }
.push-dialog__status.is-error { color: var(--red); }
.weekly-message { color: var(--navy); background: #fff8dc; border-block: 1px solid #ecd88f; }
.weekly-message > div { display: flex; align-items: center; gap: 12px; padding-block: 14px; }
.weekly-message > div > span { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--navy); border-radius: 50%; }
.weekly-message strong { display: block; color: #765500; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.weekly-message p { margin: 2px 0 0; font-size: 13px; }
.weekly-message-editors { display: grid; gap: 12px; margin-top: 14px; }
.weekly-message-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.weekly-message-editor > label:first-of-type { grid-column: 1 / -1; }
.weekly-message-editor > div { display: flex; flex-wrap: wrap; gap: 6px; }
.operational-detail { margin-top: 8px; }
.operational-detail summary { color: var(--navy-2); font-weight: 800; cursor: pointer; }
.operational-detail pre { max-width: min(640px, 75vw); margin: 8px 0 0; padding: 12px; overflow: auto; color: #dbeafe; background: var(--navy); border-radius: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 1020px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { grid-template-columns: 1fr 1fr; }
  .directory-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .header-row { min-height: 68px; }
  .date-toolbar { top: 68px; }
  .menu-button { display: grid; place-items: center; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(16, 42, 67, .1); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px; border-radius: 8px; }
  .main-nav a::after { display: none; }
  .main-nav a.is-active { background: var(--blue-soft); }
  .nav-menu { height: auto; }
  .nav-menu summary { height: auto; padding: 12px; border-radius: 8px; }
  .nav-submenu { position: static; min-width: 0; padding: 0 0 4px 14px; border: 0; box-shadow: none; }
  .nav-submenu a { padding: 9px 12px; font-size: 13px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; padding-block: 46px; }
  .date-panel { max-width: 470px; }
  .result-list, .result-list--wide { grid-template-columns: 1fr; }
  .explain-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cookie-banner { grid-template-columns: 1fr; gap: 16px; }
  .cookie-banner__actions { grid-template-columns: 1fr 1fr; }
  .cookie-banner__actions .button--text { grid-column: 1 / -1; }
  .push-games { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-copy small { display: none; }
  .hero h1, .page-hero h1 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .hero-lead, .page-hero p:last-child { font-size: 16px; }
  .date-control { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .date-toolbar__inner { align-items: stretch; flex-direction: column; gap: 5px; padding-block: 7px; }
  .date-toolbar__status { align-items: center; flex-direction: row; gap: 6px; }
  .date-toolbar__status span { display: none; }
  .date-toolbar__actions { display: grid; grid-template-columns: auto auto minmax(0, 1fr); }
  .date-toolbar__form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .date-toolbar__form input[type="date"] { width: 100%; min-width: 0; }
  .date-shortcut { padding-inline: 12px; }
  .ad-region--home-top { width: calc(100% - 24px); min-height: 92px; padding: 9px; }
  .ad-region--home-top .ad-unit { min-height: 72px; }
  .lottery-result-group__heading { align-items: flex-start; padding: 12px 13px; }
  .lottery-result-group__heading h3 { font-size: 1.12rem; }
  .result-card { padding: 18px; }
  .editorial-target > div, .editorial-fields { grid-template-columns: 1fr; }
  .editorial-fields__wide { grid-column: auto; }
  .editorial-sections__heading { align-items: stretch; flex-direction: column; }
  .sidebar, .principles, .directory-grid, .admin-grid { grid-template-columns: 1fr; }
  .number-ball:not(.number-ball--wide) { width: 44px; font-size: 16px; }
  .number-ball--wide { min-width: 68px; min-height: 44px; padding: 7px 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .cookie-banner { right: 12px; bottom: 12px; left: 12px; width: auto; padding: 18px; }
  .cookie-banner__actions { grid-template-columns: 1fr; }
  .cookie-banner__actions .button--text { grid-column: auto; }
  .site-utilities { right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); gap: 7px; }
  .utility-fab { width: 44px; min-width: 44px; height: 44px; justify-content: center; padding: 0; }
  .utility-fab__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .push-invitation { right: 10px; bottom: calc(64px + env(safe-area-inset-bottom)); width: calc(100% - 20px); }
  .push-invitation__actions { align-items: stretch; flex-direction: column; }
  .push-invitation__actions .button { width: 100%; }
  .privacy-dialog__actions .button { flex: 1 1 100%; }
  .push-dialog__shell { max-height: 92dvh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
