/* Stand With First Nations: site design, eleventh build, 29 November 2026 */
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio.ttf") format("truetype"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("fonts/Gelasio-Italic.ttf") format("truetype"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ivory: #F7F0E3; --paper: #FCF8F0; --sand: #E9DDC5; --sand-deep: #DDCBA8; --rule: #D8C29B;
  --forest: #123D33; --deep: #0C2F27; --on-dark: #F7F0E3; --on-dark-soft: #DCD8C9;
  --ink: #26221D; --soft: #55594F; --rust: #A8401C; --rust-dark: #873014; --gold: #C99A39; --gold-light: #EBCB86;
  --route-red: #B5391A; --route-gold: #D99A12; --route-blue: #1976B8;
  --serif: "Gelasio", Georgia, "Times New Roman", serif; --sans: "Inter", "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 1.1875rem/1.6 var(--serif); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.06; margin: 0 0 0.4em; text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: 1.7rem; } h3 { font-size: 1.35rem; }
p { margin: 0 0 0.8em; text-wrap: pretty; } p:last-child { margin-bottom: 0; }
li, dd, label { text-wrap: pretty; }
.vh, .cr i { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--forest); color: var(--on-dark); padding: 12px 18px; font: 650 1rem var(--sans); z-index: 5; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.shell { max-width: 1310px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* Header: emblem and name at left, the invitation beneath the name, the menu centred in the space beside */
.head { background: var(--ivory); position: relative; z-index: 2; }
.head-in { max-width: 1600px; margin: 0 auto; display: flex; align-items: center; gap: 24px 40px; padding: 14px 4%; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; flex: none; }
.brand img { width: 80px; }
.brand-name { display: block; font: 700 1.95rem/1 var(--serif); letter-spacing: -0.02em; white-space: nowrap; }
.brand-line { display: block; font: 400 0.95rem/1.35 var(--sans); color: #4E4C45; margin-top: 7px; }
.brand-line a { text-underline-offset: 3px; }
.brand-line b { font-weight: 650; color: var(--ink); }
.menu { flex: 1 1 520px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 30px; }
.menu a { position: relative; display: block; padding: 14px 0; font: 650 1.02rem/1.3 var(--sans); text-decoration: none; white-space: nowrap; }
.menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 3px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform 0.18s ease; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }

/* Buttons: solid fills, one size; rust leads */
.btn { display: inline-flex; flex-wrap: wrap; column-gap: 0.35em; align-items: center; justify-content: center; min-height: 50px; font: 650 1.05rem/1.3 var(--sans); padding: 12px 22px; border-radius: 5px; text-decoration: none; text-wrap: balance; text-align: center; border: 0; cursor: pointer; max-width: 100%; transition: background-color 0.16s ease; }
.btn-main { background: var(--rust); color: var(--paper); }
.btn-main:hover { background: var(--rust-dark); }
.btn-light { background: var(--on-dark); color: var(--forest); }
.btn-light:hover { background: #fff; }
.btn-quiet { background: var(--sand); color: var(--ink); }
.btn-quiet:hover { background: var(--sand-deep); }
.intro .btn-quiet, .support .btn-quiet, .next .btn-quiet { background: var(--paper); }
.intro .btn-quiet:hover, .support .btn-quiet:hover, .next .btn-quiet:hover { background: #fff; }
.btn-small { font-size: 1rem; min-height: 44px; padding: 10px 16px; }
.acts, .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.btn-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; }
.meta, .dl-meta { font-weight: 400; }

/* Home opening: the photograph across the full width, the question set over its shaded left side */
.hero { position: relative; min-height: clamp(560px, 64vw, 880px); background: var(--deep); color: var(--on-dark); overflow: hidden; display: flex; align-items: center; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 22%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(12, 47, 39, 0.9) 0%, rgba(12, 47, 39, 0.72) 30%, rgba(12, 47, 39, 0.2) 52%, rgba(12, 47, 39, 0) 64%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1600px; margin: 0 auto; padding: 64px 4%; }
.hero-copy { max-width: 37rem; }
.hero h1 { max-width: 34rem; }
.hero h1 { font-size: clamp(3rem, 5.2vw, 4.8rem); line-height: 0.98; letter-spacing: -0.025em; margin-bottom: 0.32em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.hero .lede { font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.45; color: var(--on-dark); max-width: 27em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.hero .acts { margin-top: 30px; flex-wrap: nowrap; }
.hero .btn { min-height: 54px; padding: 14px 22px; font-size: 1.1rem; white-space: nowrap; }

/* Acknowledgement: its own band on deep green */
.ack-band { background: var(--forest); color: var(--on-dark); }
.ack-band .shell { padding-top: 40px; padding-bottom: 42px; }
.ack-in { border-left: 5px solid var(--gold); padding-left: 30px; }
.ack-in p { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.45; max-width: 52em; }
.ack-in strong { display: block; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.3; margin-top: 4px; }

/* Home: three ways in, set as broad rows, with the gum leaves at left */
.ways { position: relative; overflow: hidden; padding: 74px 0 80px; }
.gum { position: absolute; left: -40px; top: -30px; width: 25%; max-width: 360px; pointer-events: none; }
.ways-in { position: relative; z-index: 1; max-width: 1020px; margin: 0 0 0 auto; }
.ways h2 { font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.025em; margin-bottom: 18px; }
.way { display: grid; grid-template-columns: 150px minmax(0, 17.5rem) minmax(0, 1fr) 52px; gap: 30px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.way:last-child { border-bottom: 0; }
.way img { width: 150px; aspect-ratio: 4 / 3; border-radius: 4px; }
.way h3 { margin: 0; color: var(--rust); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.way p { margin: 0; padding-left: 28px; border-left: 2px solid var(--rule); font-size: 1.2rem; line-height: 1.45; color: var(--ink); }
.way-go { width: 52px; height: 52px; border-radius: 50%; background: var(--rust); color: var(--paper); display: grid; place-items: center; transition: background-color 0.16s ease; }
.way-go svg { width: 22px; height: 22px; }
.way:hover h3 { color: var(--rust-dark); } .way:hover .way-go { background: var(--rust-dark); }
.way:hover p { text-decoration: none; }

/* Supporting band on sand */
.support { background: var(--sand); padding: 64px 0 70px; }
.support-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
.support h2 { font-size: clamp(2rem, 3.2vw, 2.8rem); letter-spacing: -0.02em; }
.support p { font-size: 1.15rem; }

/* Interior pages: a deep green introduction, the photograph at its true proportions */
.intro { background: var(--forest); color: var(--on-dark); }
.intro-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding-top: 46px; padding-bottom: 48px; }
.intro h1 { font-size: clamp(2.6rem, 4.8vw, 4.2rem); letter-spacing: -0.025em; }
.intro .lede { font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.5; color: var(--on-dark-soft); max-width: 34em; }
.intro-photo { height: 270px; width: auto; border-radius: 3px; }
.intro .btn-quiet { background: var(--on-dark); color: var(--forest); }
.intro .btn-quiet:hover { background: #fff; }

/* Reading areas */
.wrap { max-width: 1310px; margin: 0 auto; padding: 56px 40px 76px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.wrap.narrow { max-width: 1000px; }
.lede { font-size: 1.3rem; line-height: 1.45; }
.card { background: var(--paper); border-radius: 6px; }
.card-in { padding: 28px 32px; }
.next { background: var(--sand); }
.sec { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em; margin: 22px 0 0; padding-bottom: 12px; border-bottom: 2px solid var(--forest); color: var(--forest); }
.card h2 { font-size: 1.6rem; }

/* Get involved: each way as a row, photograph beside the words */
.gives { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.give { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; padding: 36px 0; border-bottom: 1px solid var(--rule); background: none; border-radius: 0; }
.give:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.give:nth-child(even) img { order: 2; }
.give img { width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; }
.give .card-in { padding: 0; }
.give h2, .give h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); color: var(--forest); letter-spacing: -0.02em; margin-bottom: 0.35em; }
.give p { font-size: 1.2rem; max-width: 34em; }
.give-wide { grid-column: auto; }

/* Lists of terms: dates, depths */
.dates, .depths { margin: 0 0 14px; }
.dates div, .depths div { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 2px 24px; padding: 15px 0; border-top: 1px solid var(--rule); }
.dates div:first-child, .depths div:first-child { border-top: 0; }
.dates dt { font: 650 1.02rem/1.5 var(--sans); color: var(--rust); }
.depths div { grid-template-columns: 9em minmax(0, 1fr); }
.depths dt { font: 650 1.02rem/1.5 var(--sans); }
dd { margin: 0; }
.dates dd b { display: block; font-size: 1.15rem; }
.usual { display: block; color: var(--soft); font-size: 1.05rem; margin-top: 2px; }
.usual-note { color: var(--soft); font-size: 1.05rem; border-top: 1px solid var(--rule); padding-top: 12px; }

/* Quotations as the feature of their pages */
.quote { margin: 0; background: var(--forest); color: var(--on-dark); border-left: 5px solid var(--gold); border-radius: 0 6px 6px 0; }
.quote > p { font: 700 clamp(1.6rem, 2.6vw, 2.1rem)/1.25 var(--serif); letter-spacing: -0.01em; }
.quote > p.quote-turn { color: var(--gold-light); font-size: clamp(1.45rem, 2.3vw, 1.85rem); }
.quote footer { color: var(--on-dark-soft); font-size: 1.05rem; margin-top: 16px; }
.quote .note { color: var(--gold-light); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points h2 { font-size: 1.5rem; }
.note { font: 650 0.95rem var(--sans); color: var(--rust); text-decoration: none; padding: 0 3px; white-space: nowrap; }
.note:hover { text-decoration: underline; }
.checks { margin: 0; padding-left: 1.3em; } .checks li { margin-bottom: 0.45em; }
.sources ol { margin: 0; padding-left: 1.4em; } .sources li { margin-bottom: 0.5em; }
.sources a { text-underline-offset: 3px; }

/* Who stands behind this */
.emblem { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; align-items: start; }
.cr { display: block; } .cr .role { display: block; font: 650 0.85rem/1.4 var(--sans); letter-spacing: 0.1em; font-variant: small-caps; text-transform: lowercase; color: var(--soft); } .cr b { font-weight: 700; color: var(--ink); }

/* Directory: search and filters beside the list, rows instead of boxes */
.dir { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 60px; padding-top: 48px; padding-bottom: 76px; align-items: start; }
.side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 2px 6px 2px 2px; }
.find label, .index h2 { display: block; font: 650 1rem/1.3 var(--sans); margin: 0 0 8px; color: var(--ink); }
.find input { width: 100%; font: 400 1.05rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--rule); border-radius: 6px; padding: 12px 14px; }
.find input:focus { border-color: var(--forest); outline: 3px solid var(--gold-light); outline-offset: 1px; }
.find { margin-bottom: 22px; }
.index ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 4px; }
.index ul a { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 11px 14px; border-radius: 6px; background: var(--paper); font: 600 1rem/1.25 var(--sans); text-decoration: none; }
.index ul a:hover { background: var(--sand); }
.index ul a[aria-current="true"] { background: var(--forest); color: var(--on-dark); }
.index ul a[aria-current="true"] span { color: var(--on-dark-soft); }
.index ul a span { color: var(--soft); font-weight: 400; font-size: 0.92rem; white-space: nowrap; }
.led-only { display: flex; align-items: center; gap: 10px; font: 600 1rem/1.3 var(--sans); margin: 4px 0 6px; cursor: pointer; }
.led-only input { width: 22px; height: 22px; accent-color: var(--rust); }
.tools { margin-top: 26px; }
.notes { list-style: none; margin: 0 0 18px; padding: 0; font: 400 1rem/1.5 var(--sans); color: var(--soft); }
.notes li { padding: 10px 0; border-top: 1px solid var(--rule); }
.tools .btn { width: 100%; justify-content: flex-start; text-align: left; margin-bottom: 8px; }
.count { font: 600 1rem var(--sans); color: var(--soft); margin: 0 0 6px; min-height: 1.5em; }
.none { display: none; background: var(--paper); border-radius: 6px; padding: 22px 24px; margin: 18px 0; }
.none.on { display: block; }
.dot { display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--rust); margin-right: 0.4em; vertical-align: 0.08em; }
.part { margin-bottom: 48px; scroll-margin-top: 16px; }
.part-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 22px; border-bottom: 2px solid var(--forest); padding-bottom: 12px; margin-bottom: 4px; }
.part-head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); letter-spacing: -0.02em; margin: 0; color: var(--forest); }
.region, .sub { font: 650 1.2rem/1.3 var(--sans); color: var(--forest); margin: 34px 0 2px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); scroll-margin-top: 16px; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 17.5rem; gap: 12px 40px; padding: 26px 0; border-bottom: 1px solid var(--rule); align-items: start; scroll-margin-top: 16px; }
.row:target { background: var(--paper); box-shadow: -16px 0 0 var(--paper), 16px 0 0 var(--paper); }
.row-main { max-width: 50em; }
.row h4 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); margin: 4px 0 8px; letter-spacing: -0.015em; }
.row h4 a { text-decoration: none; } .row h4 a:hover { text-decoration: underline; }
.where { font: 600 0.98rem/1.3 var(--sans); color: var(--forest); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.led-tag { color: var(--ink); white-space: nowrap; }
.what { margin-bottom: 8px; }
.facts { margin: 0; font: 400 1rem/1.5 var(--sans); color: var(--soft); }
.facts dt { font-weight: 650; color: var(--ink); }
.row .facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 30px; margin-top: 12px; }
.row .facts div { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.row .facts div:only-child { grid-column: 1 / -1; }
.row .btn { justify-self: start; align-self: start; margin-top: 6px; text-wrap: pretty; }
.nat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.nat-item { padding: 20px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; }
.nat-item h4 { font-size: 1.2rem; margin: 4px 0; }
.nat-item p { font-size: 1.04rem; color: var(--soft); margin-bottom: 12px; }
.nat-item .btn { margin-top: auto; align-self: flex-start; }
.nat-more { margin: 24px 0 8px; }
[hidden] { display: none !important; }

/* Register of national bodies */
.reg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 36px; }
.natc { padding: 20px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; background: none; border-radius: 0; }
.natc h3 { font-size: 1.2rem; margin-bottom: 4px; }
.natc h3.led::before { content: ""; display: inline-block; width: 0.62em; height: 0.62em; border-radius: 50%; background: var(--rust); margin-right: 0.4em; vertical-align: 0.06em; }
.natc .what { font-size: 1.04rem; color: var(--soft); margin-bottom: 12px; }
.natc .btn { margin-top: auto; align-self: flex-start; }

/* Forms and replies */
.form-page h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-top: 6px; color: var(--forest); }
.form-page .lede { color: var(--soft); white-space: pre-line; }
.form label { display: block; font: 650 1.05rem/1.3 var(--sans); margin: 18px 0 6px; } .form label:first-of-type { margin-top: 0; }
.form input[type="text"], .form input[type="email"], .form textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid #8A8577; border-radius: 6px; padding: 12px 14px; }
.form input:focus, .form textarea:focus { border-color: var(--forest); outline: 3px solid var(--gold-light); outline-offset: 1px; }
.form .btn { margin-top: 22px; }
.hp { position: absolute; left: -9999px; }

/* Footer: deep green */
.foot { background: var(--deep); color: #E9E3D4; padding: 54px 0 58px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.foot-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 700 1.6rem/1.1 var(--serif); }
.foot-brand img { width: 62px; }
.foot-line { color: var(--on-dark-soft); font: 400 1rem/1.45 var(--sans); margin-top: 16px; }
.foot-line b { color: var(--on-dark); font-weight: 650; }
.foot-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.foot-links li { break-inside: avoid; }
.foot-links a { display: block; padding: 7px 0; font: 600 1.05rem/1.3 var(--sans); text-decoration: none; }
.foot-links a:hover { color: var(--gold-light); text-decoration: underline; }
.foot-credit { margin-top: 24px; font-family: var(--sans); color: var(--on-dark-soft); }
.foot-credit .role { color: var(--on-dark-soft); }
.foot-credit b { color: var(--gold-light); font-size: 1.05rem; }
.foot-credit a { display: block; color: var(--gold-light); font-weight: 650; text-decoration: none; margin-top: 2px; }
.foot-credit a:hover { text-decoration: underline; }
.foot-checked { margin-top: 10px; font: 400 0.98rem var(--sans); color: var(--on-dark-soft); }
.foot .btn-light { margin-top: 20px; }

@media (max-width: 1180px) {
  .menu { flex-basis: 100%; }
  .way { grid-template-columns: 150px minmax(0, 1fr) 52px; }
  .way img { width: 150px; grid-row: span 2; }
  .way h3 { grid-column: 2; } .way p { grid-column: 2; padding-left: 0; border-left: 0; }
  .way-go { grid-column: 3; grid-row: 1 / span 2; }
  .gum { width: 20%; }
}
@media (max-width: 1100px) { .reg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .hero { display: flex; flex-direction: column; min-height: 0; background: var(--forest); }
  .hero-photo { order: 2; }
  .hero::before { display: none; }
  .hero-photo { position: static; height: auto; aspect-ratio: 1499 / 1049; object-position: 62% 22%; }
  .hero-in { padding: 38px 24px 40px; }
  .hero .acts { flex-wrap: wrap; }
  .hero-copy { max-width: none; }
  .hero h1, .hero .lede { text-shadow: none; }
  .support-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .gum { display: none; }
  .ways-in { margin: 0; }
  .dir { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { position: static; display: contents; max-height: none; }
  .view-switch { order: 0; margin-bottom: 0; }
  .find { order: 1; margin-bottom: 0; } .index { order: 2; } .list { order: 3; } .tools { order: 4; margin-top: 0; }
  .index ul { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-bottom: 4px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .intro-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .intro-photo { height: auto; width: 100%; max-width: 560px; }
  .intro-dir .intro-photo { height: auto; width: 100%; max-width: 320px; }
  .nat { grid-template-columns: minmax(0, 1fr); }
  .give, .give:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .give:nth-child(even) img { order: 0; }
}
@media (max-width: 760px) {
  .reg { grid-template-columns: minmax(0, 1fr); }
  .dates div, .depths div { grid-template-columns: minmax(0, 1fr); }
  .emblem { grid-template-columns: minmax(0, 1fr); } .emblem img { max-width: 150px; }
}
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .shell { padding-left: 20px; padding-right: 20px; }
  .wrap { padding: 36px 20px 56px; }
  .head-in { padding: 12px 20px 4px; gap: 6px 14px; }
  .brand { gap: 12px; flex: 1 1 auto; min-width: 0; } .brand img { width: 56px; } .brand-name { white-space: normal; }
  .brand-name { font-size: 1.42rem; } .brand-line { font-size: 0.9rem; margin-top: 4px; }
  .menu ul { gap: 0 18px; } .menu a { font-size: 0.98rem; padding: 9px 0; } .menu a::after { bottom: 3px; }
  .hero-in { padding: 30px 20px 34px; }
  .hero h1 { font-size: 2.35rem; }
  .hero .acts { flex-direction: column; } .hero .acts .btn { width: 100%; white-space: normal; }
  .ack-in { padding-left: 18px; }
  .ways { padding: 48px 0 52px; }
  .way { grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; padding: 20px 0; }
  .way img { width: 96px; grid-row: span 2; align-self: start; }
  .way h3 { font-size: 1.6rem; } .way p { font-size: 1.05rem; }
  .way-go { display: none; }
  .intro h1 { font-size: 2.3rem; }
  .sec, .part-head h2 { font-size: 1.8rem; }
  .card-in { padding: 22px 20px; }
  .foot-links { columns: 1; }
  .index ul { grid-template-columns: minmax(0, 1fr); }
  .row .facts { grid-template-columns: minmax(0, 1fr); }
  .intro-dir .intro-in { padding-top: 26px; padding-bottom: 28px; }
}
@media (max-width: 380px) { .brand-name { font-size: 1.25rem; } .hero h1, .intro h1 { font-size: 2rem; } .sec, .part-head h2 { font-size: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .menu, .foot, .skip, .btn, .side { display: none; } .hero, .intro, .quote, .ack-band { background: none; color: var(--ink); } .hero-photo { position: static; } }

/* Directory controls: local or national, area, live count */
.view-switch { grid-column: 1 / -1; justify-self: start; display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sand); border-radius: 8px; margin: 0 0 -20px; }
.view-switch a { display: inline-flex; align-items: baseline; gap: 10px; padding: 11px 18px; border-radius: 6px; font: 650 1.02rem/1.25 var(--sans); text-decoration: none; color: var(--ink); }
.view-switch a span { font-weight: 400; color: var(--soft); }
.view-switch a[aria-current="true"] { background: var(--forest); color: var(--on-dark); }
.view-switch a[aria-current="true"] span { color: var(--on-dark-soft); }
.view-switch a:hover:not([aria-current="true"]) { background: var(--sand-deep); }
.area-select { display: none; width: 100%; font: 600 1.05rem var(--sans); color: var(--ink); background: var(--paper); border: 2px solid var(--rule); border-radius: 6px; padding: 12px 14px; margin-bottom: 8px; }
.clear-all { margin: 6px 0 4px; }
.row-acts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.row-acts .upd { background: var(--paper); color: var(--soft); font-size: 0.95rem; font-weight: 600; }
.row-acts .upd:hover { background: var(--sand); color: var(--ink); }
.count { font: 650 1.05rem var(--sans); color: var(--ink); }
@media (max-width: 980px) {
  .dir-js .index ul { display: none; }
  .dir-js .area-select { display: block; }
  .led-only { order: 2; } .clear-all { order: 2; }
  .row-acts { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
}

/* Reading pages: an "On this page" list beside the article; on phones it folds away */
.wrap.has-toc { max-width: 1310px; grid-template-columns: 260px minmax(0, 1fr); column-gap: 60px; align-items: start; }
.wrap.has-toc > * { grid-column: 2; max-width: 840px; }
.wrap.has-toc > .toc { grid-column: 1; grid-row: 1 / span 60; position: sticky; top: 16px; max-width: none; align-self: start; }
.toc summary { font: 650 1rem/1.3 var(--sans); color: var(--soft); cursor: pointer; list-style: none; padding: 4px 0 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.toc a { display: block; padding: 8px 0 8px 16px; margin-left: -2px; border-left: 3px solid transparent; font: 600 1rem/1.35 var(--sans); text-decoration: none; color: var(--ink); }
.toc a:hover { color: var(--rust); }
.toc a[aria-current="true"] { border-left-color: var(--rust); color: var(--rust); }
.back-top { margin-top: 6px; }
@media (max-width: 980px) {
  .wrap.has-toc { grid-template-columns: minmax(0, 1fr); }
  .wrap.has-toc > *, .wrap.has-toc > .toc { grid-column: 1; grid-row: auto; position: static; max-width: none; }
  .toc details { background: var(--paper); border-radius: 6px; padding: 12px 18px; }
  .toc summary { font-size: 1.05rem; color: var(--ink); padding: 6px 0; display: flex; justify-content: space-between; }
  .toc summary::after { content: "Open"; font-weight: 600; color: var(--rust); }
  .toc details[open] summary::after { content: "Close"; }
  .toc ul { margin-top: 8px; }
}

.form .req, .form .opt { font-weight: 400; color: var(--soft); }
.char-count { font: 400 0.98rem var(--sans); color: var(--soft); margin: 6px 0 0; }

/* Print and share */
.docs { gap: 0; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 40px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.doc h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--forest); letter-spacing: -0.02em; }
.doc p { margin: 0; max-width: 34em; }
.doc .btn-col { margin-top: 0; }
.docs .usual-note { border-top: 0; margin-top: 18px; }
@media (max-width: 760px) { .doc { grid-template-columns: minmax(0, 1fr); } }

/* Phone menu: folds behind a Menu button */
.menu-toggle { margin-left: auto; font: 650 1rem/1 var(--sans); color: var(--ink); background: var(--sand); border: 0; border-radius: 6px; min-height: 44px; padding: 10px 16px; cursor: pointer; }
.menu-toggle:hover { background: var(--sand-deep); }
.menu.folded { display: none; flex-basis: 100%; }
.menu.folded.open { display: block; }
.menu.folded ul { flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 10px; }
.menu.folded a { padding: 13px 4px; border-top: 1px solid var(--rule); font-size: 1.08rem; }
.menu.folded a::after { display: none; }
.menu.folded a[aria-current="page"] { color: var(--rust); }
@media (max-width: 760px) { .head-in { flex-wrap: wrap; align-items: center; } .brand { flex: 1 1 0; min-width: 0; } .brand-name { white-space: normal; } }

.jump-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 6px; }
.give { scroll-margin-top: 16px; }
@media (max-width: 560px) {
  .view-switch { display: flex; width: 100%; }
  .view-switch a { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; }
}
@media (max-width: 980px) { .view-switch { margin-bottom: 4px; } }
