/* Older-adults edition: big type, high contrast, few elements, nothing that needs a hover.
   Builds on style.css for fonts and color tokens, then overrides for readability. */

body.older {
  --ink-2: #33363d;            /* darker secondary text than the parent site, for contrast */
  --ink-3: #4a4d55;
  --line: #d6cfc2;
  font-size: 21px;
  line-height: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.older { --ink-2: #e2ded7; --ink-3: #cfcac2; --line: #3a3d43; }
}
:root[data-theme="dark"] body.older { --ink-2: #e2ded7; --ink-3: #cfcac2; --line: #3a3d43; }

.o-wrap { max-width: calc(728px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.older h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.5rem); margin-top: 8px; }
.older h2 { font-size: 1.55rem; margin-bottom: .6em; }
.older h3 { font-size: 1.25rem; }
.older a { text-decoration-thickness: 2px; }
.older :focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; }

/* header: brand, region, a clear way back */
.o-header { background: var(--surface); border-bottom: 2px solid var(--line); }
.o-header-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.o-brand { font-family: var(--serif); font-weight: 650; font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.o-brand span { font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ink-2); }
.older .region-switch { margin-right: auto; }
.older .region-switch select { font-size: 1rem; padding: 10px 32px 10px 14px; min-height: 48px; }
.o-switch { font-size: 1rem; font-weight: 600; padding: 10px 4px; }

/* verdict */
.o-verdict { margin: 24px 0 8px; padding: 22px 22px 18px; background: var(--surface); border: 2px solid var(--line); border-left: 10px solid var(--ink-3); border-radius: 18px; }
.o-verdict.lvl-low { border-left-color: var(--fine); }
.o-verdict.lvl-moderate { border-left-color: var(--fineish); }
.o-verdict.lvl-high { border-left-color: var(--less); }
.o-verdict.lvl-very_high { border-left-color: var(--notfine); }
.o-eyebrow { margin: 0; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.o-level { margin: 6px 0 4px; font-family: var(--serif); font-weight: 650; font-size: clamp(2rem, 1.6rem + 2vw, 2.6rem); line-height: 1.15; }
.o-quip { margin: 0; font-size: 1.15rem; }

.o-narration { font-size: 1.2rem; line-height: 1.7; }
.older .fact { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-style: solid; text-decoration-thickness: 2px; cursor: pointer; padding: 2px 3px; }
.o-hint { font-size: 1rem; color: var(--ink-2); }
.o-explain { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin: 4px 0 12px; }
.o-explain p { margin: 0 0 .5em; }
.o-explain-title { font-weight: 700; }
.o-explain-src { font-size: 1rem; color: var(--ink-2); }

/* the three sections */
.o-card { background: var(--surface); border: 2px solid var(--line); border-radius: 18px; padding: 22px; margin: 22px 0; }
.o-card p:last-child { margin-bottom: 0; }
.o-bug { padding: 14px 0; border-top: 2px solid var(--line); }
.o-bug:first-child { border-top: 0; padding-top: 0; }
.o-bug p { margin: 6px 0; }
.o-bug-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.o-bug-name { font-size: 1.3rem; font-weight: 700; }
.o-pill { font-weight: 700; font-size: 1rem; padding: 4px 14px; border-radius: 999px; background: var(--surface-2); }
.o-bug.lvl-high .o-pill { background: color-mix(in srgb, var(--less) 18%, transparent); }
.o-bug.lvl-very_high .o-pill { background: color-mix(in srgb, var(--notfine) 18%, transparent); }
.o-bug.lvl-moderate .o-pill { background: color-mix(in srgb, var(--fineish) 20%, transparent); }
.o-chart { margin-top: 10px; }
.o-chart .chart, .o-chart svg { width: 100%; }
.o-small { font-size: 1rem; color: var(--ink-2); }
.o-list { padding-left: 1.2em; margin: 0 0 1em; }
.o-list li { margin: .45em 0; }
.o-numbers strong { font-size: 1.25rem; }
.o-callout { background: var(--surface-2); border-left: 6px solid var(--notfine); border-radius: 12px; padding: 14px 16px; }
.o-alert h3 { margin-bottom: .3em; }
.o-alert + .o-alert { margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--line); }
.o-quiet { background: transparent; }

/* big, plain buttons; nothing depends on hover */
.o-link { font: 700 1.05rem var(--sans); color: var(--accent); background: none; border: 0; padding: 10px 0; min-height: 48px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; cursor: pointer; }
.o-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.o-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 700 1.05rem var(--sans); text-decoration: none; cursor: pointer; }
.o-btn.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.o-btn:hover { filter: brightness(1.05); color: inherit; }

.o-footer { border-top: 2px solid var(--line); padding: 24px 0 40px; font-size: 1rem; color: var(--ink-2); }
.o-footer a { color: var(--ink); }

@media (max-width: 520px) {
  body.older { font-size: 20px; }
  .o-card, .o-verdict { padding: 18px; }
  .o-btn { width: 100%; }
}

/* One clean page for the fridge or a bulletin board */
@media print {
  body.older { font-size: 15pt; background: #fff; color: #000; }
  .o-header .region-switch, .o-switch, .o-actions, .o-hint, .o-link, .o-chart, #demo-banner, .o-explain { display: none !important; }
  .o-card, .o-verdict { border: 1px solid #999; break-inside: avoid; box-shadow: none; }
  .older .fact { text-decoration: none; }
  .older a { color: #000; text-decoration: none; }
}
