/* AltMed doctor directory. Brand tokens lifted from the live Elementor kit. */
:root {
  --green: #00a049;
  --green-bright: #00d573;
  --green-ink: #234615;
  --green-deep: #1d3d10;
  --green-text: #007a37; /* AltMed green darkened to 5.3:1 for body-size text */
  --green-tile: #00843d; /* takes white text at 4.8:1 */
  --green-bright-hover: #12e283;
  --green-wash: #e6f7d9;
  --cream: #fffded;
  --cream-2: #f6f3dc;
  --ink: #0e1a09;
  --on-dark-muted: #c9d8bf; /* secondary text on Forest Ink, 7.2:1 */
  --muted: #55634d;
  --line: #e2dfc4;
  --white: #ffffff;
  --surface: #fffdf4; /* soft warm card surface, a touch lighter than the cream page */
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 1px 2px rgba(14, 26, 9, .06), 0 8px 24px -12px rgba(14, 26, 9, .2);
  --shadow-lg: 0 2px 4px rgba(14, 26, 9, .06), 0 24px 48px -20px rgba(14, 26, 9, .28);
  --font: "Archivo", "Acumin Pro", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 17px/1.55 var(--font); font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
::selection { background: var(--green-bright); color: var(--green-ink); }
html { scrollbar-color: #b9c4a8 var(--cream); accent-color: var(--green); caret-color: var(--green-text); }
.dist, .count, .loc .n, .chip b, h1, h2, h3, h4 { text-wrap: balance; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--green-ink); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--green-bright); outline-offset: 2px; border-radius: 6px; }

/* Top bar + header */
.topbar { background: var(--green-ink); color: var(--cream); text-align: center; font-size: .9rem; font-weight: 500; letter-spacing: 0; padding: 7px 16px; }
.topbar a { color: var(--cream); font-weight: 700; }
@media (max-width: 720px) { .topbar-long { display: none; } }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 253, 237, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--green-ink); text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { background: var(--green-wash); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green-bright); color: var(--green-ink); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--cream); padding: 12px 20px 20px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons + chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1rem/1 var(--font); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-bright); color: var(--green-ink); }
.btn-primary:hover { background: var(--green-bright-hover); color: var(--green-ink); }
.btn-dark { background: var(--green-ink); color: var(--cream); }
.btn-dark:hover { background: var(--green-deep); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--green-ink); box-shadow: inset 0 0 0 2px var(--green-ink); }
.btn-ghost:hover { background: var(--green-ink); color: var(--cream); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); color: var(--green-ink); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; font-family: var(--font); transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--green); color: var(--green-ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--green-ink); border-color: var(--green-ink); color: var(--cream); }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; padding: 4px 9px; border-radius: 999px; background: var(--green-wash); color: var(--green-ink); }
.badge.tele { background: #dff7ff; color: #0b4a5c; }
.badge.both { background: #efe7ff; color: #3d2a63; }
.badge.muted { background: var(--cream-2); color: var(--muted); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Hero */
.hero { position: relative; margin: 16px auto 0; max-width: calc(var(--wrap) - 40px + 40px); padding: 0 20px; }
.hero-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: clamp(380px, 52vh, 500px); border-radius: var(--radius); overflow: hidden; background: #0f2a0a url(/assets/leaves.jpg) center/cover; color: var(--white); padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px); isolation: isolate; }
.hero-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 26, 6, .82) 0%, rgba(10, 26, 6, .45) 55%, rgba(10, 26, 6, .1) 100%); }
.hero h1 { color: var(--white); max-width: 18ch; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: .35em; }
.hero-sub { font-size: 1.1rem; max-width: 52ch; color: #e9f3e1; margin-bottom: 22px; }

/* Search box */
.searchbar { position: relative; display: flex; background: var(--surface); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-lg); max-width: 720px; }
.searchbar .field { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 18px; min-width: 0; }
.searchbar .field svg { color: var(--green); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 1.08rem var(--font); color: var(--ink); background: transparent; padding: 12px 0; }
.searchbar input::placeholder { color: #69735f; }
.searchbar .near { border: 0; background: transparent; color: var(--green-ink); font: 600 .95rem var(--font); display: flex; align-items: center; gap: 6px; padding: 0 14px; cursor: pointer; border-left: 1px solid var(--line); white-space: nowrap; }
.searchbar .near:hover { color: var(--green); }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); list-style: none; margin: 0; padding: 6px; z-index: 30; color: var(--ink); max-height: 380px; overflow: auto; }
.suggest[hidden] { display: none; }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--green-wash); }
.suggest .k { font-size: .8rem; font-weight: 600; color: var(--muted); margin-left: auto; }
.suggest .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--cream); color: var(--green); flex: none; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero-chips .chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: var(--white); backdrop-filter: blur(4px); }
.hero-chips .chip:hover { background: rgba(255, 255, 255, .2); border-color: var(--green-bright); color: var(--white); }
@media (max-width: 620px) {
  .searchbar { flex-direction: column; border-radius: 16px; gap: 4px; }
  .searchbar .near { border-left: 0; border-top: 1px solid var(--line); padding: 12px 18px; justify-content: flex-start; }
  .searchbar .btn { border-radius: 12px; }
}


/* Sections */
section.block { padding: clamp(48px, 8vw, 96px) 0; }
section.block.tint { background: var(--cream-2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head > a { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Intent tiles: the live altmed.com.au homepage tiles */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2.4vw, 40px); padding-top: 30px; padding-bottom: 8px; }
.tile { aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; border-radius: 8px; background: var(--green-tile); color: var(--white); text-decoration: none; text-align: center; transition: background .2s, transform .3s var(--ease-out); }
.tile:hover { background: var(--green-text); color: var(--white); transform: translateY(-2px); }
.tile .ti { width: clamp(38px, 4.4vw, 56px); height: clamp(38px, 4.4vw, 56px); color: var(--green-bright); }
.tile b { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 700; letter-spacing: -.01em; }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles > :last-child { grid-column: 1 / -1; aspect-ratio: auto; flex-direction: row; padding: 18px; } }

/* Ruled lists: state index and prescription steps */
.step-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step-list li { border-bottom: 1px solid var(--line); }
.state-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.state { display: flex; flex-direction: column; gap: 2px; padding: 18px 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--green-ink); transition: border-color .15s, transform .3s var(--ease-out); }
.state:hover { border-color: var(--green); color: var(--green-ink); transform: translateY(-2px); }
.state b { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--green-text); margin-bottom: 8px; }
.state span { font-weight: 600; font-size: .9rem; line-height: 1.3; }
.state small { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.state.tele-only { background: transparent; border-style: dashed; }
.state.tele-only b { color: var(--muted); }
@media (max-width: 1080px) { .state-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.step-list { counter-reset: step; }
.step-list li { counter-increment: step; position: relative; padding: 18px 0 18px 44px; color: #2c3a25; }
.step-list li::before { content: counter(step); position: absolute; left: 2px; top: 18px; font-weight: 800; font-size: 1.25rem; color: var(--green-text); line-height: 1.3; }
.step-list h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--green-ink); margin: 0 0 6px; line-height: 1.3; }
.step-list p { margin: 0; max-width: 60ch; }
.prescriber { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 32px; padding-bottom: 32px; margin-top: 8px; margin-bottom: 56px; }
.prescriber p { margin: 0; color: var(--muted); }
.prescriber b { color: var(--green-ink); }

/* Location grid */
.loc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.loc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--green-ink); font-weight: 700; transition: border-color .15s, transform .15s; }
.loc:hover { border-color: var(--green); transform: translateY(-2px); color: var(--green-ink); }
.loc small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; }
.loc .n { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 999px; background: var(--green-wash); display: grid; place-items: center; font-weight: 800; color: var(--green-text); }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* Doctor cards */
.cards { display: grid; gap: 14px; }
.cards.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.card:hover, .card.hl { border-color: var(--green); }
.card .av { width: 64px; height: 64px; border-radius: 12px; background: var(--green-wash); color: var(--green-text); display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; overflow: hidden; border: 1px solid var(--line); }
.card .av img { width: 100%; height: 100%; object-fit: contain; background: var(--white); }
.card h3 { margin: 0 0 2px; font-size: 1.1rem; }
.card h3 a { color: var(--green-ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card .sub { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.card .dist { font-weight: 700; color: var(--green-text); font-size: .9rem; }
.card .actions { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.card .actions a { font-size: .85rem; font-weight: 700; text-decoration: none; padding: 8px 12px; border-radius: 999px; background: var(--cream); color: var(--green-ink); display: inline-flex; gap: 6px; align-items: center; }
.card .actions a:hover { background: var(--green-wash); }

/* Directory search layout */
.finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; min-height: calc(100vh - 110px); border-top: 1px solid var(--line); }
.finder-list { padding: 22px 24px 60px; }
.finder-map { position: sticky; top: 72px; height: calc(100vh - 72px); background: var(--cream-2); }
#map { width: 100%; height: 100%; }
.finder .searchbar { box-shadow: var(--shadow); max-width: none; border: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; align-items: center; }
.filters select { font: 600 .9rem var(--font); color: var(--green-ink); padding: 8px 34px 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23234615' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; cursor: pointer; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 12px; flex-wrap: wrap; }
.results-head h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
.results-head .count { color: var(--muted); font-weight: 500; font-size: .95rem; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--green-wash); color: var(--green-ink); margin: 14px 0; }
.notice svg { color: var(--green); margin-top: 3px; }
.notice p { margin: 0; }
.notice.tele { background: #e3f6fb; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.map-toggle { display: none; }
@media (max-width: 960px) {
  .finder { grid-template-columns: 1fr; }
  .finder-map { position: fixed; inset: 72px 0 0 0; height: auto; z-index: 40; display: none; }
  .finder.show-map .finder-map { display: block; }
  .map-toggle { display: inline-flex; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 45; box-shadow: var(--shadow-lg); }
  .finder-list { padding: 18px 16px 90px; }
}
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--green); border: 3px solid var(--white); box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.pin.on { background: var(--green-ink); width: 36px; height: 36px; }
.pin-me { width: 18px; height: 18px; border-radius: 50%; background: #1f7aff; border: 3px solid var(--white); box-shadow: 0 0 0 6px rgba(31, 122, 255, .25); }
.leaflet-tile-pane { filter: saturate(.55) sepia(.18) brightness(1.03); }
.leaflet-container { background: var(--cream-2); font-family: var(--font); }
.leaflet-popup-content { font-family: var(--font); }
.leaflet-popup-content a { font-weight: 700; }

/* Breadcrumbs */
.crumbs { font-size: .9rem; color: var(--muted); margin: 22px 0 14px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b8b59a; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-text); }

/* Page header (location / taxonomy) */
.page-head { padding: 8px 0 28px; }
.page-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.page-head .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.side-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: sticky; top: 92px; }
.side-box h3 { font-size: 1.05rem; }
.side-box + .side-box { margin-top: 16px; position: static; }
.mini-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-bottom: 18px; }

/* Profile */
.profile-head { display: grid; grid-template-columns: 116px 1fr; gap: 26px; align-items: center; padding: 6px 0 30px; }
.profile-head .av { width: 116px; height: 116px; border-radius: 20px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; font-size: 2.2rem; font-weight: 800; color: var(--green-text); }
.profile-head .av img { width: 100%; height: 100%; object-fit: contain; }
.profile-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 6px; }
.profile-head .sub { color: var(--muted); font-size: 1.08rem; margin: 0 0 12px; }
@media (max-width: 600px) { .profile-head { grid-template-columns: 1fr; } .profile-head .av { width: 88px; height: 88px; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.panel h2 { font-size: 1.3rem; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; }
.facts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font-size: .9rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 600; color: var(--green-ink); overflow-wrap: anywhere; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts div:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.cta-stack { display: grid; gap: 10px; }
.cta-stack .btn { width: 100%; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { color: var(--green); margin-top: 4px; }
.stars { color: #f2b200; letter-spacing: 2px; }
.review { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; min-width: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; color: var(--green-ink); display: flex; justify-content: space-between; gap: 16px; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--green); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: #2c3a25; }

/* Heading column beside content */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split > div:first-child { position: sticky; top: 104px; }
.split h2 { max-width: 16ch; }
.split .pill-list { margin-top: 18px; }
.split-note { color: var(--muted); max-width: 34ch; margin-bottom: 10px; }
.split-link { margin: 0; }
.split-link a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.split-link a:hover { text-decoration: underline; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > div:first-child { position: static; } }

/* FAQ page */
.faq-group { margin: 40px 0 16px; }
.faq-group:first-child { margin-top: 0; }
.faq .prose { max-width: 66ch; }
.faq .prose ol, .faq .prose ul { padding-left: 1.2em; }

/* Glossary */
.az { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; }
.az a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--green-ink); }
.az a:hover { border-color: var(--green); }
.glossary section { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 0 24px; border-top: 1px solid var(--line); padding: 20px 0; scroll-margin-top: 90px; }
.glossary h2 { font-size: 2rem; color: var(--green-text); margin: 0; }
.glossary dl { margin: 0; display: grid; gap: 18px; max-width: 72ch; }
.glossary dt { font-weight: 700; color: var(--green-ink); scroll-margin-top: 90px; }
.glossary dd { margin: 2px 0 0; color: #2c3a25; }

/* Simple message pages */
.narrow-page { max-width: 760px; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(56px, 9vw, 112px); }
.narrow-page .row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* Listing form */
.listing-form fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.listing-form legend { font-weight: 800; font-size: 1.2rem; color: var(--green-ink); margin-bottom: 12px; }
.field-row { display: grid; gap: 6px; margin-bottom: 14px; }
.field-row span { font-weight: 600; font-size: .9rem; color: var(--green-ink); }
.field-row input, .field-row select, .field-row textarea { font: 400 1rem var(--font); color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%; }
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-wash); }
.field-row input:user-invalid, .field-row select:user-invalid { border-color: #b3261e; }
.field-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 12px; }
.field-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .field-grid, .field-grid.two { grid-template-columns: 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 14px; }
.choice-row label, .consent { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.choice-label { font-weight: 600; font-size: .9rem; color: var(--green-ink); width: 100%; }
.consent { align-items: flex-start; margin-top: 6px; }
.consent input { margin-top: 5px; }
.hint { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-kind="ok"] { color: var(--green-text); }
.form-status[data-kind="error"] { color: #b3261e; }

/* Prose */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--green-ink); color: var(--on-dark-muted); padding: 64px 0 28px; margin-top: 0; }
.site-footer a { color: var(--cream); text-decoration: none; }
.site-footer a:hover { color: var(--green-bright); }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--green-ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { color: var(--cream); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.foot-grid .socials { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 26px; }
.socials a { font-size: .9rem; font-weight: 600; color: var(--on-dark-muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.socials a:hover { color: var(--cream); text-decoration-color: var(--green-bright); }
.foot-logo img { height: 30px; width: auto; margin-bottom: 16px; }
.disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .85rem; line-height: 1.6; color: var(--on-dark-muted); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* One arrival: the hero search settles into place. Content is visible from the first frame. */
@keyframes settle { from { transform: translateY(10px) scale(.985); } to { transform: none; } }
.hero .searchbar { box-shadow: none; animation: settle .9s var(--ease-out) both; }
@media (prefers-reduced-motion: reduce) { .hero .searchbar { animation: none; } html { scroll-behavior: auto; } }
