/* juviloviewsdigest.garden — Lottery Studio stylesheet
   Sections: 1 tokens · 2 reset · 3 base type · 4 layout · 5 header/nav · 6 opener
   7 records · 8 tables · 9 tools/forms · 10 articles/FAQ · 11 legal · 12 footer
   13 storage notice · 14 responsive · 15 motion/print */

/* 1. Design tokens */
:root {
  --color-page: #F2F3FA;
  --color-panel: #FFFFFF;
  --color-text: #151A45;
  --color-accent: #2B34A8;
  --color-accent-2: #F4B400;
  --color-border: #D9DCEC;

  --color-accent-dark: #1C2275;
  --color-accent-tint: #E7E9FB;
  --color-accent-2-dark: #7A4F00;
  --color-accent-2-tint: #FFF3CC;
  --color-gold-light: #FFD84D;
  --color-gold-deep: #D99100;
  --color-night: #0C1036;
  --color-night-2: #1B2170;
  --color-violet: #4A2A9A;
  --color-row: #F8F9FE;
  --color-control-border: #5C6190;
  --color-on-dark: #E7E9FB;
  --color-on-dark-soft: #C9CCF2;
  --color-focus: #B8005F;
  --color-error: #A1122A;
  --color-error-tint: #FDECEF;

  --font-head: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --font-body: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --font-data: "Courier New", Courier, monospace;

  --unit: 8px;
  --pad: 40px;
  --section: 64px;
  --radius-tab: 999px;
  --radius: 10px;
  --radius-card: 18px;
  --shadow-card: 0 10px 24px rgba(21, 26, 69, 0.08);
  --shell: 1200px;
}

/* 2. Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 24px; }
#main[tabindex="-1"]:focus { outline: none; }

/* 3. Base typography */
body {
  background: var(--color-page);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: bold;
  line-height: 1.2;
  color: var(--color-text);
  hyphens: auto;
}
h1 { font-size: 54px; line-height: 1.08; margin-bottom: 24px; letter-spacing: -0.015em; }
h2 { font-size: 32px; margin-bottom: 16px; }
h3 { font-size: 23px; margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 8px; }
p { margin-bottom: 16px; }
ul, ol { padding-left: 24px; margin-bottom: 16px; }
li { margin-bottom: 6px; }
a {
  color: var(--color-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease, text-decoration-color 150ms ease, background-color 150ms ease;
}
a:hover { color: var(--color-violet); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
code, .data { font-family: var(--font-data); font-size: 0.92em; }
strong { font-weight: bold; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--color-gold-light); color: var(--color-night);
  font-weight: bold;
  padding: 12px 16px; z-index: 30; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; color: var(--color-night); }

/* 4. Layout */
.shell {
  max-width: calc(var(--shell) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.narrow { max-width: calc(880px + 2 * var(--pad)); }
.section { padding: var(--section) 0; border-bottom: 1px solid var(--color-border); }
.section-tight { padding: 24px 0 40px; }
.section-head { max-width: 72ch; margin-bottom: 32px; }
.section-foot { margin-top: 24px; font-size: 17px; }
.page-head { padding: 32px 0 40px; max-width: 72ch; }
.lede { font-size: 20px; max-width: 64ch; }
.kicker, .label-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-2-dark);
  background: var(--color-accent-2-tint);
  border: 1px solid var(--color-accent-2);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 16px;
}
.coverage {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 15px;
  font-weight: bold;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent-2);
  border-radius: var(--radius);
  padding: 8px 14px;
}
.note {
  font-size: 16px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent-2);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.hint { font-size: 15px; margin: 6px 0 0; }

.master-detail {
  display: grid;
  grid-template-columns: minmax(0, 36fr) minmax(0, 64fr);
  gap: 32px;
  align-items: start;
}

/* 5. Header and navigation */
.site-header {
  background: linear-gradient(120deg, var(--color-night) 0%, var(--color-night-2) 70%, var(--color-violet) 100%);
  border-bottom: 4px solid var(--color-accent-2);
  color: var(--color-on-dark);
}
.site-header :focus-visible { outline-color: var(--color-gold-light); }
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand-block { padding: 0; }
.brand { font-family: var(--font-head); font-weight: bold; font-size: 26px; margin: 0; line-height: 1.2; }
.brand a { color: #FFFFFF; text-decoration: none; }
.brand a::before {
  content: "";
  display: inline-block;
  width: 22px; height: 22px;
  margin-right: 10px;
  vertical-align: -3px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #FFF4B8 0, #FFCC1A 42%, #C98400 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.brand a:hover { color: var(--color-gold-light); text-decoration: underline; }
.brand-note { font-size: 15px; margin: 4px 0 0; color: var(--color-on-dark-soft); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-tab);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 17px;
  font-weight: bold;
}
.primary-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.primary-nav a[aria-current="page"] {
  background: linear-gradient(180deg, var(--color-gold-light), var(--color-accent-2));
  border-color: var(--color-gold-deep);
  color: var(--color-night);
}
.breadcrumb { padding-top: 24px; font-size: 15px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "\2022"; margin-right: 8px; color: var(--color-gold-deep); }

/* 6. Opener */
.opener {
  padding: var(--section) 0 56px;
  color: #FFFFFF;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 216, 77, 0.22) 0 54px, transparent 55px),
    radial-gradient(circle at 92% 88%, rgba(140, 149, 255, 0.25) 0 120px, transparent 121px),
    radial-gradient(circle at 64% 8%, rgba(255, 255, 255, 0.08) 0 38px, transparent 39px),
    radial-gradient(circle at 40% 96%, rgba(255, 216, 77, 0.12) 0 70px, transparent 71px),
    linear-gradient(135deg, var(--color-night) 0%, var(--color-night-2) 55%, var(--color-violet) 100%);
  border-bottom: 4px solid var(--color-accent-2);
}
.opener :focus-visible { outline-color: var(--color-gold-light); }
.opener h1 { color: #FFFFFF; }
.opener .lede { color: var(--color-on-dark); }
.opener .kicker {
  color: var(--color-night);
  background: var(--color-gold-light);
  border-color: var(--color-gold-deep);
}
.opener .coverage {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  border-left-color: var(--color-gold-light);
}
.opener .hint { color: var(--color-on-dark-soft); }
.opener-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
}
.opener-text { max-width: 720px; }
.month-label {
  font-family: var(--font-head);
  font-weight: bold;
  text-align: center;
  margin: 0;
  line-height: 0.95;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 216, 77, 0.55);
  border-radius: 24px;
  box-shadow: 0 0 40px rgba(255, 216, 77, 0.15) inset;
}
.month-num {
  display: block;
  font-family: var(--font-data);
  font-size: 20px;
  color: var(--color-gold-light);
  border-bottom: 2px dashed rgba(255, 216, 77, 0.6);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.month-name { display: block; font-size: 84px; letter-spacing: -0.02em; color: #FFFFFF; }
.month-year {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 20px;
  margin-top: 16px;
  padding: 6px 16px;
  color: var(--color-night);
  background: var(--color-gold-light);
  border-radius: 999px;
}
.mini-search {
  margin-top: 24px;
  max-width: 540px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}
.mini-search label { display: block; font-weight: bold; font-size: 16px; margin-bottom: 8px; color: #FFFFFF; }
.mini-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-search input { width: 120px; flex: 0 0 auto; font-family: var(--font-data); font-weight: bold; font-size: 20px; text-align: center; }

/* 7. Records: ledger and draw sheets */
.ledger-title { font-size: 20px; margin-bottom: 12px; }
.ledger-list { list-style: none; padding: 0; margin: 0 0 8px; }
.ledger-row { margin: 0 0 8px; }
.ledger-row a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  padding: 12px 14px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent);
  border-radius: 12px;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(21, 26, 69, 0.05);
}
.ledger-row a:hover { background: var(--color-accent-tint); border-left-color: var(--color-accent-2); }
.ledger-row time { font-family: var(--font-head); font-weight: bold; font-size: 18px; }
.ledger-link { font-size: 15px; color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.ledger-nums { grid-column: 1 / -1; font-family: var(--font-data); font-size: 17px; font-weight: bold; word-spacing: 4px; color: var(--color-accent-dark); }
.ledger-sep { color: var(--color-accent-2-dark); margin: 0 4px; }
.ledger-euro { color: var(--color-accent-2-dark); background: var(--color-accent-2-tint); border-radius: 999px; padding: 1px 8px; }

.draw-sheet {
  position: relative;
  overflow: hidden;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px 32px 32px;
  margin-bottom: 32px;
}
.draw-sheet::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-violet) 50%, var(--color-accent-2) 100%);
}
.feature-sheet {
  background: linear-gradient(180deg, #FFFBEA 0%, var(--color-panel) 45%);
  border-color: var(--color-accent-2);
}
.sheet-tab {
  display: inline-block;
  padding: 5px 14px;
  background: var(--color-night);
  color: var(--color-gold-light);
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.sheet-title { font-size: 30px; margin-bottom: 8px; }
.sheet-meta { font-size: 15px; }
.pools {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 2.6fr);
  gap: 20px;
  padding: 0;
  margin: 24px 0;
}
.pool {
  background: var(--color-accent-tint);
  border-radius: 14px;
  padding: 18px 20px;
}
.pool-euro { background: var(--color-accent-2-tint); }
.pool-title { font-family: var(--font-head); font-weight: bold; font-size: 18px; margin-bottom: 12px; }
.pool-range { display: block; font-family: var(--font-data); font-size: 14px; font-weight: normal; margin-top: 4px; }
.balls { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ball {
  margin: 0;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 23px;
  font-weight: bold;
  color: #FFFFFF;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  background: radial-gradient(circle at 32% 26%, #8C95FF 0, #3B45C9 36%, var(--color-accent-dark) 100%);
  border-radius: 50%;
  box-shadow: inset 0 -5px 10px rgba(0, 0, 0, 0.35), 0 4px 8px rgba(21, 26, 69, 0.28);
}
.balls-euro .ball {
  color: #2A1A00;
  text-shadow: none;
  background: radial-gradient(circle at 32% 26%, #FFF4B8 0, #FFCC1A 40%, var(--color-gold-deep) 100%);
  box-shadow: inset 0 -5px 10px rgba(122, 79, 0, 0.35), 0 0 0 3px #FFFFFF, 0 0 0 5px var(--color-gold-deep), 0 5px 10px rgba(21, 26, 69, 0.25);
}
.feature-sheet .ball { width: 64px; height: 64px; font-size: 27px; }
.order-note { font-size: 16px; }
.sheet-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  font-size: 16px;
  margin-bottom: 16px;
  padding-top: 18px;
  border-top: 2px dashed var(--color-border);
}
.sheet-facts dt { font-weight: bold; }
.provenance-list {
  font-size: 17px;
  margin-bottom: 24px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 24px;
  border-top: 2px dashed var(--color-border);
}
.text-link { font-weight: bold; }

.field-guide {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-accent);
  border-radius: var(--radius-card);
  padding: 0 24px;
  box-shadow: var(--shadow-card);
}
.field-guide-row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--color-border);
}
.field-guide-row:last-child { border-bottom: 0; }
.field-guide dt { font-family: var(--font-head); font-weight: bold; font-size: 19px; color: var(--color-accent-dark); }
.field-guide dd { max-width: 68ch; }

/* 8. Tables */
.freq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.freq-side { display: grid; gap: 32px; }
.freq-notes {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent-2);
  border-radius: var(--radius-card);
  padding: 24px;
}
.freq-notes h3 { font-size: 20px; }
.freq-notes li { font-size: 16px; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  margin-bottom: 8px;
}
.table-wrap:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.table-cue { font-size: 15px; font-style: italic; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 18px;
  padding: 16px 16px 12px;
}
.data-table th, .data-table td { padding: 10px 16px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: middle; }
.data-table thead th { background: var(--color-night); color: #FFFFFF; border-bottom: 3px solid var(--color-accent-2); font-size: 14px; }
.data-table tbody tr:nth-child(even) { background: var(--color-row); }
.data-table tbody th { font-family: var(--font-data); font-weight: bold; color: var(--color-accent-dark); }
.freq-table tbody th { width: 7em; font-size: 16px; }
.freq-table-euro tbody th { color: var(--color-accent-2-dark); }
.data-table tfoot th, .data-table tfoot td { background: var(--color-accent-2-tint); border-top: 2px solid var(--color-text); border-bottom: 0; font-weight: bold; }
.wide-table { min-width: 760px; }
.wide-table tbody th { font-family: var(--font-body); color: var(--color-text); }
.count { display: inline-block; min-width: 2ch; font-family: var(--font-data); font-weight: bold; font-size: 16px; }
.bar {
  display: inline-block;
  height: 12px;
  vertical-align: middle;
  margin-left: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-accent), #6A74F0);
}
.freq-table-euro .bar { background: linear-gradient(90deg, var(--color-gold-deep), var(--color-gold-light)); }
.bar-0 { width: 0; margin-left: 0; }
.bar-1 { width: 24px; }
.bar-2 { width: 48px; }
.bar-3 { width: 72px; }
.bar-4 { width: 96px; }

/* 9. Tools and forms */
.rail-title { font-size: 21px; margin-bottom: 16px; }
.filter-form, .rail-index { margin-bottom: 32px; }
.filter-form {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-accent-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}
.rail-index ol { list-style: none; padding: 0; margin: 0; }
.rail-index li { margin: 0 0 6px; }
.rail-index a {
  display: flex; align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-head);
  font-weight: bold;
}
.rail-index a:hover { background: var(--color-accent-tint); border-left-color: var(--color-accent-2); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: bold; margin-bottom: 6px; font-size: 17px; }
input, select, textarea, button { font: inherit; }
input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  font-size: 17px;
  color: var(--color-text);
  background: #FFFFFF;
  border: 1px solid var(--color-control-border);
  border-radius: var(--radius);
}
textarea { min-height: 160px; line-height: 1.5; resize: vertical; }
textarea[readonly] { background: var(--color-row); font-family: var(--font-data); font-size: 15px; }
[aria-invalid="true"] { border: 2px solid var(--color-error); }
.field-error { color: var(--color-error); font-weight: bold; font-size: 15px; margin: 6px 0 0; }
.field-error::before { content: "Error: "; }
.error-summary { border: 2px solid var(--color-error); background: var(--color-error-tint); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.error-summary p { font-weight: bold; margin-bottom: 8px; }
.error-summary ul { margin: 0; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  font-size: 17px;
  font-weight: bold;
  color: #1E1400;
  background: linear-gradient(180deg, var(--color-gold-light) 0%, var(--color-accent-2) 100%);
  border: 2px solid var(--color-gold-deep);
  border-radius: 999px;
  box-shadow: 0 3px 0 #A86F00;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.button:hover { background: linear-gradient(180deg, #FFE27A 0%, #FFC21A 100%); color: #000000; }
.button:active { box-shadow: 0 1px 0 #A86F00; }
.button-secondary {
  background: var(--color-panel);
  color: var(--color-accent-dark);
  border-color: var(--color-accent);
  box-shadow: none;
}
.button-secondary:hover { background: var(--color-accent-tint); color: var(--color-text); }
.button:disabled {
  background: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text);
  box-shadow: none;
  cursor: not-allowed;
}
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.filter-count {
  font-family: var(--font-data);
  font-weight: bold;
  font-size: 16px;
  background: var(--color-accent-tint);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.tool-status { font-weight: bold; min-height: 1.6em; }
.empty-state {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent-2);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 32px;
}
.callout-strong {
  font-size: 19px;
  font-weight: bold;
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.feedback-form {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-accent-2);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-bottom: 24px;
}

/* 10. Articles and FAQ */
.reading { max-width: 720px; }
.prose p, .prose li { max-width: 68ch; }
.prose { padding-bottom: 32px; }
.guide { border-top: 4px solid var(--color-accent); padding-top: 32px; margin-top: 16px; padding-bottom: 48px; }
.guide h3 { font-size: 21px; margin-top: 24px; }
.worked-example {
  background: var(--color-accent-2-tint);
  border: 1px solid var(--color-accent-2);
  border-left: 6px solid var(--color-gold-deep);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}
.worked-example h3 { font-size: 18px; margin-top: 0; }
.faq-list { display: grid; gap: 10px; }
.faq-list details {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-list details[open] { border-color: var(--color-accent); box-shadow: var(--shadow-card); }
.faq-list summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  min-height: 56px;
  padding: 16px 68px 16px 20px;
  font-family: var(--font-head);
  font-weight: bold;
  font-size: 20px;
  line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 12px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-data);
  font-weight: bold;
  font-size: 22px;
  color: #2A1A00;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #FFF4B8 0, #FFCC1A 42%, var(--color-gold-deep) 100%);
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:hover { background: var(--color-accent-tint); }
.faq-answer { padding: 0 20px 20px; }
.faq-answer p { max-width: 68ch; }

/* 11. Legal and reading pages */
.toc {
  background: var(--color-panel);
  border: 1px solid var(--color-border);
  border-left: 6px solid var(--color-accent-2);
  border-radius: 14px;
  padding: 16px 24px;
  margin-bottom: 40px;
}
.toc-title { font-size: 18px; margin-bottom: 8px; }
.toc ol { margin: 0; }
.toc li { font-size: 16px; }
.toc li::marker { color: var(--color-accent); font-weight: bold; }
.legal .prose h2, .reading .prose h2 { font-size: 26px; padding-top: 12px; border-top: 2px dashed var(--color-border); }
.sitemap-groups section { padding: 16px 0 24px; border-top: 2px dashed var(--color-border); }
.sitemap-groups h2 { font-size: 23px; }

/* 12. Footer */
.site-footer { margin-top: var(--section); }
.index-band { background: linear-gradient(120deg, var(--color-night) 0%, var(--color-night-2) 100%); }
.index-band ul { list-style: none; padding: 16px 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.index-band li { margin: 0; }
.index-band a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  color: var(--color-on-dark);
  font-size: 16px;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.index-band a:hover { text-decoration: underline; color: var(--color-gold-light); }
.index-band a:focus-visible { outline-color: var(--color-gold-light); }
.colophon { background: var(--color-panel); border-top: 4px solid var(--color-accent-2); padding: 40px 0; }
.colophon-inner p { font-size: 16px; max-width: 72ch; }
.colophon-brand { font-family: var(--font-head); font-weight: bold; font-size: 24px; color: var(--color-accent-dark); }
.copyright { font-size: 15px; border-top: 1px solid var(--color-border); padding-top: 16px; }

/* 13. Storage notice */
.storage-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 20;
  width: calc(100% - 32px);
  max-width: 440px;
  background: var(--color-panel);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-top: 6px solid var(--color-accent-2);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(12, 16, 54, 0.32);
  padding: 20px 22px;
}
.storage-notice-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-night);
  color: var(--color-gold-light);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: 10px;
}
.storage-notice-title { font-size: 21px; margin-bottom: 8px; }
.storage-notice-text { font-size: 15px; line-height: 1.5; margin-bottom: 14px; }
.storage-notice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.storage-notice-actions a { font-size: 15px; font-weight: bold; }

/* 14. Responsive */
@media (max-width: 1279px) {
  :root { --pad: 24px; --section: 40px; }
  .month-name { font-size: 72px; }
}
@media (max-width: 999px) {
  body { font-size: 17px; }
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .month-name { font-size: 58px; }
  .month-label { padding: 22px 24px; }
  .pools { grid-template-columns: minmax(0, 1fr); }
  .draw-sheet { padding: 36px 24px 24px; }
  .freq-grid { gap: 24px; }
}
@media (max-width: 767px) {
  :root { --pad: 16px; --section: 28px; }
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .lede { font-size: 18px; }
  .header-inner { flex-direction: column; align-items: stretch; }
  .primary-nav a { padding: 10px 14px; font-size: 16px; }
  .opener-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .month-label { text-align: left; order: -1; }
  .month-name { font-size: 48px; }
  .master-detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .freq-grid { grid-template-columns: minmax(0, 1fr); }
  .rail-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .rail-index li { margin: 0; }
  .rail-index a { font-size: 15px; }
  .field-guide { padding: 0 16px; }
  .field-guide-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sheet-title { font-size: 24px; }
  .sheet-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sheet-facts dd { margin-bottom: 8px; }
  .feedback-form { padding: 20px 16px; }
  .draw-sheet { padding: 32px 16px 20px; }
  .pool { padding: 14px; }
  .faq-list summary { font-size: 18px; }
  .storage-notice { left: 8px; bottom: 8px; width: calc(100% - 16px); padding: 16px 18px; }
}
@media (max-width: 479px) {
  h1 { font-size: 30px; }
  .month-name { font-size: 40px; }
  .ball, .feature-sheet .ball { width: 46px; height: 46px; font-size: 19px; }
  .balls { gap: 8px; }
  .ledger-row a { grid-template-columns: minmax(0, 1fr); }
  .rail-index ol { grid-template-columns: minmax(0, 1fr); }
  .button-row .button { flex: 1 1 100%; }
  .mini-search input { width: 100%; }
  .storage-notice-actions .button { flex: 1 1 100%; }
}

/* 15. Motion and print */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header nav, .index-band, .filter-form, .mini-search, .skip-link, .button-row, .storage-notice { display: none !important; }
  body { background: #FFFFFF; }
  .site-header, .opener { background: #FFFFFF; color: var(--color-text); }
  .brand a, .opener h1, .opener .lede, .month-name { color: var(--color-text); }
  .draw-sheet { break-inside: avoid; box-shadow: none; }
}