:root {
  --paper: #f6f2e8;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #171915;
  --muted: #62675d;
  --line: #d7d0bf;
  --accent: #0f5a3a;
  --accent-strong: #0a422b;
  --gold: #d2a21f;
  --soft: #ebe5d7;
  --shadow: 0 18px 45px rgba(45, 38, 24, .08);
  --radius: 18px;
  --shell: min(1120px, calc(100% - 32px));
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151713;
    --surface: #1d201b;
    --surface-strong: #23271f;
    --ink: #f4f0e6;
    --muted: #b4b9ae;
    --line: #3d4339;
    --accent: #78d5a9;
    --accent-strong: #a7e6c7;
    --gold: #edc453;
    --soft: #292d26;
    --shadow: 0 18px 45px rgba(0, 0, 0, .24);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.68; }
a { color: var(--accent-strong); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; }
.shell { width: var(--shell); margin-inline: auto; }
.skip-link { position: fixed; inset: 8px auto auto 8px; z-index: 100; transform: translateY(-160%); background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand, .footer-brand { color: var(--ink); font-weight: 850; letter-spacing: -.04em; text-decoration: none; }
.brand { font-size: 1.35rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-nav a { color: var(--muted); font-size: .9rem; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.page { min-height: 66vh; padding-block: clamp(60px, 9vw, 112px); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.035em; }
h1 { max-width: 950px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.2rem); line-height: .98; }
h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.08; }
h3 { margin: 0 0 8px; font-size: 1.35rem; }
.lede { max-width: 780px; margin: 24px 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.24rem); }
.section { margin-top: 56px; }
.section-heading { max-width: 760px; margin-bottom: 22px; }
.section-heading p { margin: 0; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entry-card { display: block; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.entry-card:hover, .entry-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); }
.entry-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; letter-spacing: -.03em; }
.entry-card span { display: block; margin-top: 6px; color: var(--muted); }
.region-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.region-card p { margin: 8px 0 0; color: var(--muted); }
.region-card .count { color: var(--accent); font-weight: 800; white-space: nowrap; }
.content-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); gap: 30px; align-items: start; }
.prose { max-width: 780px; }
.prose p { margin: 0 0 18px; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px; }
.facts dt { color: var(--muted); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 700; }
.examples { display: grid; gap: 12px; }
.example { border-inline-start: 4px solid var(--gold); background: var(--surface); padding: 18px 20px; }
.example blockquote { margin: 0; font-size: 1.08rem; font-weight: 700; }
.example p { margin: 8px 0 0; color: var(--muted); }
.callout { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.callout.warning { border-inline-start: 5px solid var(--gold); }
.callout p { margin: 0; color: var(--muted); }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.related-list a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 8px 13px; color: var(--ink); font-weight: 750; text-decoration: none; }
.question-list { display: grid; gap: 12px; }
.question-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 16px 18px; }
.question-list summary { cursor: pointer; font-weight: 800; }
.question-list p { margin: 12px 0 0; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: .86rem; }
.breadcrumbs a { color: var(--muted); }
.source-box { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: .9rem; }
.source-link { font-weight: 700; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { min-height: 130px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 28px; align-items: center; }
.footer-inner p, .footer-inner span { color: var(--muted); font-size: .85rem; }
.footer-inner p { margin: 0; }
.footer-inner span { text-align: end; }
@media (max-width: 760px) {
  :root { --shell: min(100% - 22px, 1120px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .site-nav { gap: 12px; }
  .entry-grid, .content-columns { grid-template-columns: 1fr; }
  .region-card { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 8px; padding-block: 30px; }
  .footer-inner span { text-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* LocalMean browser voice */
.voice-tool { margin-top: 22px; display: grid; gap: 8px; justify-items: start; }
.voice-button { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; border: 1px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--accent-strong); padding: 10px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.voice-button:hover, .voice-button:focus-visible { background: var(--soft); }
.voice-button[aria-pressed="true"] { border-color: var(--gold); }
.voice-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.voice-note { max-width: 620px; margin: 0; color: var(--muted); font-size: .84rem; }
