@font-face{font-family:"Source Sans 3 Variable";font-style:normal;font-display:swap;font-weight:200 900;src:url("/assets/member-navigation/source-sans-3.woff2") format("woff2")}
/* Shared Keel-Haulers design decisions. Components retain editorial image caps. */
:root {
  --kh-font-display: 'Source Sans 3 Variable', 'Segoe UI', Arial, sans-serif;
  --kh-font-body: 'Source Sans 3 Variable', 'Segoe UI', Arial, sans-serif;
  --kh-radius: .2rem;
  --kh-control-height: 3rem;
  --kh-panel-space: clamp(1rem, 2.5vw, 1.75rem);
  --kh-water-950: #04273e;
  --kh-water-800: #073c60;
  --kh-water-650: #075d7d;
  --kh-rapid-500: #129dcc;
  --kh-rapid-200: #bcecff;
  --kh-rapid-100: #ddf5fd;
  --kh-paper: #f5f1e8;
  --kh-foam: #f6fbfd;
  --kh-white: #ffffff;
  --kh-ink: #0b1f2a;
  --kh-muted: #52636e;
  --kh-stone-700: #52636e;
  --kh-rock: #d9d2c6;
  --kh-rock-300: #d9d2c6;
  --kh-line: rgba(7, 60, 96, 0.2);
  --kh-line-dark: rgba(255, 255, 255, 0.24);
  --kh-race-yellow: #f2b92c;
  --kh-race-yellow-dark: #a16e06;
  --kh-alert-red: #a4342d;
  --kh-danger: #a4342d;
  --kh-success: #236443;
  --kh-wrap: 1180px;
  --kh-gutter: clamp(1rem, 3vw, 2.5rem);
  --kh-content-width: min(var(--kh-wrap), calc(100% - 2 * var(--kh-gutter)));
  --kh-section-space: clamp(2.75rem, 5vw, 4.5rem);
  --kh-header-height: 92px;
  --kh-header-offset: calc(var(--kh-header-height) + 2rem);
}

@media (max-width: 1120px) {
  :root { --kh-header-height: 72px; }
}

:root {
  --navy-950: var(--kh-water-950);
  --navy-900: var(--kh-water-800);
  --navy-800: var(--kh-water-650);
  --river-600: var(--kh-water-650);
  --river-500: var(--kh-rapid-500);
  --river-200: var(--kh-rapid-200);
  --foam-100: var(--kh-foam);
  --sand-100: var(--kh-paper);
  --sun-500: var(--kh-race-yellow);
  --ink: var(--kh-ink);
  --muted: var(--kh-muted);
  --white: #ffffff;
  --radius: .25rem;
  --shadow: 0 22px 70px rgba(3, 31, 52, 0.14);
  --container: var(--kh-content-width);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button:not(:disabled), summary { cursor: pointer; }
:root body :focus-visible { outline: 3px solid var(--kh-race-yellow); outline-offset: 3px; box-shadow: 0 0 0 6px var(--kh-water-950); }
main { scroll-margin-top: var(--kh-header-offset); }
main:focus { outline: none; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .7rem 1rem;
  color: var(--white);
  background: var(--navy-950);
  border-radius: .5rem;
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 250, 253, .94);
  border-bottom: 1px solid rgba(6, 43, 73, .08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { width: 8.75rem; flex: 0 0 auto; display: block; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.menu-toggle { display: none; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: .75rem 1.35rem;
  color: var(--navy-950);
  background: var(--sun-500);
  border: 2px solid var(--sun-500);
  border-radius: .2rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .18); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sun-500); outline-offset: 3px; }
.button-small { min-height: 2.5rem; padding: .45rem 1rem; font-size: .82rem; }
.button-ghost { color: var(--white); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.75); }
.button-dark { color: var(--white); background: var(--navy-900); border-color: var(--navy-900); }
.button-light { color: var(--navy-950); background: var(--white); border-color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero { position: relative; min-height: clamp(34rem, 68vh, 46rem); display: grid; align-items: end; overflow: hidden; color: var(--white); background: var(--navy-950); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 38%; }
.hero-shade { background: linear-gradient(90deg, rgba(3,25,42,.92) 0%, rgba(3,25,42,.62) 52%, rgba(3,25,42,.22) 100%), linear-gradient(0deg, rgba(3,25,42,.55), transparent 52%); }
.hero-content { position: relative; z-index: 2; padding-block: 5.75rem 4.75rem; }
.hero h1, h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: -.035em; }
.hero h1 { max-width: 760px; font-size: clamp(3rem, 5.8vw, 5.35rem); }
.hero-copy { max-width: 650px; margin: 1.35rem 0 0; font-size: clamp(1.08rem, 1.65vw, 1.3rem); color: rgba(255,255,255,.9); }
.eyebrow { margin: 0 0 1rem; color: var(--river-200); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.dark { color: var(--river-600); }
.photo-credit { position: absolute; right: 1rem; bottom: 1rem; z-index: 3; padding: .25rem .55rem; color: rgba(255,255,255,.82); background: rgba(3,25,42,.55); border-radius: .35rem; font-size: .72rem; }
.section { padding-block: clamp(4.25rem, 7.5vw, 6.5rem); }
.split-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.split-heading h2, .story-copy h2, .archive-teaser h2, .final-cta h2 { font-size: clamp(2.6rem, 5vw, 5rem); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); }
.lede p:first-child { margin-top: 0; }
.section-blue { color: var(--white); background: var(--navy-900); }
.card-grid { display: grid; gap: 1.25rem; }
.three-up { grid-template-columns: repeat(3, 1fr); }
.feature-card { min-height: 19rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); }
.feature-card h2 { margin-top: auto; font-size: 2.7rem; }
.feature-card p { color: rgba(255,255,255,.78); }
.card-number { color: var(--river-200); font-size: .82rem; font-weight: 800; letter-spacing: .12em; }
.text-link { color: var(--river-200); font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .35rem; }
.image-story { background: var(--sand-100); }
.image-story-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.image-story figure { margin: 0; }
.photo-crop { height: 30rem; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.image-story figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
figcaption { margin-top: .65rem; color: var(--muted); font-size: .78rem; }
.story-copy p:not(.eyebrow) { margin-block: 1.5rem 2rem; font-size: 1.2rem; }
.archive-teaser { color: var(--white); background: var(--navy-950); overflow: hidden; }
.archive-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.archive-grid > div:first-child > p:not(.eyebrow) { max-width: 35rem; color: rgba(255,255,255,.76); font-size: 1.16rem; }
.archive-photo-stack { position: relative; min-height: 36rem; }
.archive-photo-stack img { position: absolute; width: 67%; aspect-ratio: 4 / 3; object-fit: cover; border: .5rem solid rgba(255,255,255,.95); box-shadow: 0 25px 65px rgba(0,0,0,.35); }
.archive-photo-stack img:first-child { top: 0; left: 0; transform: rotate(-3deg); }
.archive-photo-stack img:last-child { right: 0; bottom: 0; transform: rotate(4deg); }
.final-cta { background: var(--foam-100); }
.final-cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.final-cta-inner p { max-width: 37rem; font-size: 1.2rem; }

/* Homepage information desk */
.quick-desk { color: var(--white); background: var(--navy-950); }
.quick-desk-inner { display: grid; grid-template-columns: .72fr repeat(4, 1fr); }
.quick-desk-inner > p, .quick-desk-inner > a { min-height: 5.6rem; margin: 0; padding: 1rem 1.1rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.13); }
.quick-desk-inner > p { padding-left: 0; color: rgba(255,255,255,.66); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.quick-desk-inner > p span { color: var(--river-200); }
.quick-desk-inner > a { text-decoration: none; }
.quick-desk-inner > a:hover { background: rgba(255,255,255,.07); }
.quick-desk-inner strong { font-size: .9rem; }
.quick-desk-inner a span { color: rgba(255,255,255,.6); font-size: .72rem; }
.home-intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.home-intro h2 { max-width: 720px; font-size: clamp(2.8rem, 5vw, 5rem); }
.home-intro .lede p:first-child { margin-top: 0; }
.compact-heading { align-items: start; }
.path-list { border-top: 1px solid rgba(6,43,73,.18); }
.path-list article { padding: 1.6rem 0; display: grid; grid-template-columns: 3.5rem 1fr auto; gap: 1.5rem; align-items: center; border-bottom: 1px solid rgba(6,43,73,.18); }
.path-list article > span { color: var(--river-600); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.path-list h3 { margin-bottom: .35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.path-list p { max-width: 720px; margin: 0; color: var(--muted); }
.path-list a { color: var(--navy-900); font-size: .86rem; font-weight: 800; white-space: nowrap; }
.calendar-preview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(20rem, .9fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.calendar-preview h2 { max-width: 720px; font-size: clamp(2.8rem, 5vw, 5rem); }
.calendar-preview > div > p:not(.eyebrow) { max-width: 650px; font-size: 1.12rem; }
.calendar-preview .button-row { align-items: center; }
.calendar-link { margin-left: .5rem; }
.calendar-preview aside { border-top: 4px solid var(--river-500); background: var(--foam-100); }
.calendar-preview aside > span { padding: 1.2rem 1.35rem .45rem; display: block; color: var(--river-600); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.calendar-preview aside a { padding: 1rem 1.35rem; display: grid; border-bottom: 1px solid rgba(6,43,73,.13); text-decoration: none; }
.calendar-preview aside a:hover strong { color: var(--river-600); }
.calendar-preview aside strong { font-size: .98rem; }
.calendar-preview aside a span { color: var(--muted); font-size: .8rem; }
.slip-spotlight { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(24rem, .88fr); color: var(--white); background: var(--navy-900); }
.slip-spotlight > img { width: 100%; height: 100%; min-height: 30rem; object-fit: cover; }
.slip-spotlight-copy { padding: clamp(3rem, 7vw, 6.5rem); align-self: center; }
.slip-spotlight h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.slip-spotlight-copy > p:not(.eyebrow) { max-width: 650px; color: rgba(255,255,255,.78); font-size: 1.12rem; }
.archive-home-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.archive-home-lead h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.archive-home-lead > p:last-child { max-width: 640px; color: var(--muted); font-size: 1.08rem; }
.archive-shelves { border-top: 1px solid rgba(6,43,73,.18); }
.archive-shelves a { padding: 1.35rem 0; display: grid; grid-template-columns: .65fr 1.45fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(6,43,73,.18); text-decoration: none; }
.archive-shelves a:hover strong { color: var(--river-600); }
.archive-shelves span, .archive-shelves em { color: var(--muted); font-size: .78rem; font-style: normal; }
.archive-shelves em { text-align: right; }
.site-footer { padding-block: 4.5rem 2rem; color: var(--white); background: var(--navy-950); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .72fr .72fr .8fr; gap: clamp(2rem, 5vw, 4rem); }
.footer-logo { width: 9rem; filter: brightness(0) invert(1); opacity: .92; }
.site-footer h2 { margin: 0 0 1rem; color: var(--river-200); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.site-footer a { display: block; width: fit-content; margin-block: .45rem; color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-underline-offset: .25rem; }
.fine-print, .footer-bottom { color: rgba(255,255,255,.62); font-size: .82rem; }
.footer-bottom { margin-top: 4rem; padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 2rem; border-top: 1px solid rgba(255,255,255,.15); }
.footer-bottom p { margin: 0; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; color: var(--white); background: var(--navy-950); }
.page-hero::after { position: absolute; right: -8rem; bottom: -15rem; width: 38rem; height: 38rem; border: 7rem solid rgba(18,168,211,.16); border-radius: 50%; content: ""; }
.page-hero-river { background: linear-gradient(125deg, var(--navy-900), #075f7c); }
.page-hero-sand { color: var(--ink); background: linear-gradient(125deg, var(--sand-100), var(--foam-100)); }
.page-hero-sand .eyebrow { color: var(--river-600); }
.page-hero-inner { position: relative; z-index: 1; padding-block: clamp(4rem, 7vw, 6rem); }
.page-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 5.3vw, 5.2rem); }
.page-hero-inner > p:last-child { max-width: 770px; margin: 1.35rem 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.08rem, 1.7vw, 1.3rem); }
.page-hero-sand .page-hero-inner > p:last-child { color: var(--muted); }
.section-sand { background: var(--sand-100); }
.compact-section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.large-copy { font-size: clamp(1.2rem, 2.4vw, 1.55rem); }
.section-heading-row { margin-bottom: 2.5rem; display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: end; }
.section-heading-row h2 { font-size: clamp(2.5rem, 4vw, 4.4rem); }
.section-heading-row > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.dark-link { color: var(--navy-900); }

/* Events */
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(19rem, .55fr); gap: 3rem; align-items: start; }
.calendar-shell { min-height: 49rem; overflow: hidden; border: 1px solid rgba(6,43,73,.12); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.calendar-shell iframe { width: 100%; min-height: 49rem; display: block; border: 0; }
.calendar-sidebar { position: sticky; top: 7rem; padding: 2rem; border-radius: var(--radius); background: var(--foam-100); }
.calendar-sidebar h2 { font-size: 2.5rem; }
.calendar-sidebar hr { margin-block: 2rem; border: 0; border-top: 1px solid rgba(6,43,73,.14); }
.trip-expectations { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; align-items: start; }
.trip-expectations h2 { font-size: clamp(2.5rem, 4vw, 4.2rem); }
.check-list { display: grid; gap: 1rem; }
.check-list p { margin: 0; padding: 1rem 0 1rem 2.5rem; border-top: 1px solid rgba(6,43,73,.16); }

/* Tools */
.section-jump { position: sticky; top: 5rem; z-index: 50; border-bottom: 1px solid rgba(6,43,73,.12); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.section-jump .container { min-height: 3.7rem; display: flex; align-items: center; gap: .5rem 1.8rem; overflow-x: auto; }
.section-jump a { color: var(--navy-900); font-size: .8rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-jump a:hover { color: var(--river-600); }
.resource-section { scroll-margin-top: 8.7rem; }
.resource-layout { display: grid; grid-template-columns: minmax(17rem, .72fr) minmax(0, 1.28fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.resource-layout > header { position: sticky; top: 10.5rem; }
.resource-layout h2 { font-size: clamp(2.7rem, 4.7vw, 4.8rem); }
.resource-layout > header > p:last-child { max-width: 520px; color: var(--muted); font-size: 1.08rem; }
.resource-list { border-top: 1px solid rgba(6,43,73,.18); }
.resource-list > a { padding: 1.35rem 0; display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1.2rem; align-items: start; border-bottom: 1px solid rgba(6,43,73,.18); text-decoration: none; }
.resource-list > a > span { padding-top: .18rem; color: var(--river-600); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.resource-list strong { color: var(--navy-900); font-size: 1.08rem; }
.resource-list p { max-width: 680px; margin: .3rem 0 0; color: var(--muted); font-size: .9rem; }
.resource-list em { color: var(--navy-900); font-size: .78rem; font-style: normal; font-weight: 800; white-space: nowrap; }
.resource-list > a:hover strong, .resource-list > a:hover em { color: var(--river-600); }
.river-note { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.river-note h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.river-note > p { color: rgba(255,255,255,.76); font-size: 1.08rem; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { min-height: 20rem; padding: 1.7rem; display: flex; flex-direction: column; color: var(--ink); border: 1px solid rgba(6,43,73,.12); border-radius: 1rem; background: var(--white); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.tool-card:hover { transform: translateY(-4px); border-color: var(--river-500); box-shadow: 0 20px 45px rgba(6,43,73,.12); }
.tool-card > span { color: var(--river-600); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.tool-card h3 { margin-top: auto; font-size: 1.55rem; }
.tool-card p { color: var(--muted); }
.tool-card strong { color: var(--navy-900); font-size: .85rem; }
.decision-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; }
.decision-grid h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.decision-steps { display: grid; gap: .6rem; }
.decision-steps article { padding: 1.25rem 0; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; border-top: 1px solid rgba(255,255,255,.2); }
.decision-steps article > span { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; color: var(--navy-950); background: var(--river-200); border-radius: 50%; font-size: .8rem; font-weight: 850; }
.decision-steps h3, .decision-steps p { margin: 0; }
.decision-steps p { color: rgba(255,255,255,.72); }

/* Safety */
.safety-opening, .festival-intro { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
.safety-opening h2, .festival-intro h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.safety-opening p:first-child, .festival-intro p:first-child { margin-top: 0; }
.safety-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.safety-grid article { min-height: 23rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); background: rgba(255,255,255,.04); }
.safety-grid article h2 { margin-top: auto; font-size: clamp(2rem, 4vw, 3.7rem); }
.safety-grid article p { color: rgba(255,255,255,.72); }
.safety-word { color: var(--river-200); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.reference-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 5rem; }
.reference-layout h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.reference-list { border-top: 1px solid rgba(6,43,73,.18); }
.reference-list a { padding: 1.4rem 0; display: grid; grid-template-columns: 1fr 1.6fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(6,43,73,.18); text-decoration: none; }
.reference-list a:hover strong { color: var(--river-600); }
.reference-list span, .reference-list em { color: var(--muted); font-size: .78rem; font-style: normal; }
.notice { margin-top: 3rem; padding: 1.5rem 1.7rem; border-left: .4rem solid var(--river-500); border-radius: 0 .8rem .8rem 0; background: var(--foam-100); }
.notice h2 { font-size: 1.25rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-safety { border-color: var(--sun-500); background: #fff8dd; }
.notice-history { border-color: var(--navy-900); background: rgba(255,255,255,.62); }

/* Slip Fest */
.festival-status { color: var(--white); background: var(--navy-950); }
.festival-status .container { display: grid; grid-template-columns: .95fr 1.15fr 1fr; }
.festival-status p { min-height: 5rem; margin: 0; padding: .85rem 1.2rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid rgba(255,255,255,.13); }
.festival-status p:first-child { padding-left: 0; }
.festival-status span { color: var(--river-200); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.festival-status strong { font-size: .83rem; }
.festival-opening { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(23rem, .95fr); gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.festival-opening figure { margin: 0; }
.festival-opening figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.festival-opening h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.festival-band { color: var(--white); background: linear-gradient(125deg, #0c6b83, var(--navy-900)); }
.festival-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.festival-days article { min-height: 21rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); }
.festival-days span { color: var(--river-200); font-size: .76rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.festival-days h2 { margin-top: auto; font-size: 2.4rem; }
.festival-days p { color: rgba(255,255,255,.75); }
.festival-days a { color: var(--river-200); font-size: .82rem; font-weight: 800; }
.festival-race { display: grid; grid-template-columns: minmax(0, .95fr) minmax(20rem, .75fr); gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.festival-race h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.festival-race > div > p:not(.eyebrow) { max-width: 680px; font-size: 1.08rem; }
.race-facts { padding: 1.8rem; border-top: 4px solid var(--river-500); background: var(--foam-100); }
.race-facts > div { padding: .9rem 0; display: grid; border-bottom: 1px solid rgba(6,43,73,.14); }
.race-facts span { color: var(--river-600); font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.race-facts strong { font-size: .94rem; }
.race-facts .button { margin-top: 1.4rem; }
.memorial-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 5rem; align-items: center; }
.memorial-photo-wrap { height: 33rem; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.memorial-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.memorial-grid h2 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.location-strip { display: grid; grid-template-columns: .8fr 1.4fr 1fr; gap: 2rem; }
.location-strip div { padding-left: 1.25rem; border-left: 3px solid var(--river-500); }
.location-strip span, .location-strip strong { display: block; }
.location-strip span { color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.festival-link-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid rgba(6,43,73,.18); }
.festival-link-grid a { min-height: 7rem; padding: 1.25rem 1.1rem 1.25rem 0; display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid rgba(6,43,73,.18); text-decoration: none; }
.festival-link-grid a:nth-child(odd) { margin-right: 1.5rem; border-right: 1px solid rgba(6,43,73,.18); }
.festival-link-grid strong { color: var(--navy-900); font-size: 1.08rem; }
.festival-link-grid span { grid-column: 1; color: var(--muted); font-size: .84rem; }
.festival-link-grid em { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--navy-900); font-size: .78rem; font-style: normal; font-weight: 800; }
.festival-link-grid a:hover strong, .festival-link-grid a:hover em { color: var(--river-600); }
.festival-history { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.festival-history h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.festival-history > div:last-child > p { color: rgba(255,255,255,.75); font-size: 1.08rem; }

/* Conservation */
.conservation-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; }
.conservation-lead h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.conservation-lead > p:last-child { color: var(--muted); font-size: 1.15rem; }
.impact-list { border-top: 1px solid rgba(6,43,73,.16); }
.impact-list a { padding: 1.4rem 0; display: grid; grid-template-columns: .7fr 1.5fr auto; gap: 1rem; border-bottom: 1px solid rgba(6,43,73,.16); text-decoration: none; }
.impact-list span, .impact-list em { color: var(--muted); font-size: .78rem; font-style: normal; }
.impact-list a:hover strong { color: var(--river-600); }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.action-grid > div { min-height: 21rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); }
.action-grid span { color: var(--river-200); font-size: .76rem; font-weight: 850; }
.action-grid h2 { margin-top: auto; font-size: 2.2rem; }
.action-grid p { color: rgba(255,255,255,.72); }

/* History */
.archive-directory-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.archive-directory h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.archive-directory-list { border-top: 1px solid rgba(6,43,73,.18); }
.archive-directory-list a { padding: 1.3rem 0; display: grid; grid-template-columns: .7fr 1.5fr auto; gap: 1rem; align-items: center; border-bottom: 1px solid rgba(6,43,73,.18); text-decoration: none; }
.archive-directory-list span, .archive-directory-list em { color: var(--muted); font-size: .76rem; font-style: normal; }
.archive-directory-list a:hover strong { color: var(--river-600); }
.story-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.historic-image-frame { position: relative; padding: .65rem; background: var(--white); box-shadow: var(--shadow); transform: rotate(-2deg); }
.historic-image-frame img { width: 100%; }
.historic-image-frame span { position: absolute; right: 1.2rem; bottom: 1.2rem; padding: .4rem .7rem; color: var(--white); background: var(--navy-900); font-size: .75rem; font-weight: 850; letter-spacing: .1em; }
.story-feature-grid h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.story-feature-grid p { font-size: 1.1rem; }
.story-chapters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.story-chapters article { min-height: 24rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); }
.story-chapters span { color: var(--river-200); font-size: .74rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.story-chapters h2 { margin-top: auto; font-size: 2.3rem; }
.story-chapters p { color: rgba(255,255,255,.73); }
.grand-canyon-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 5rem; align-items: center; }
.grand-canyon-grid h2 { font-size: clamp(3rem, 5vw, 5rem); }
.grand-canyon-grid img { width: 100%; min-height: 30rem; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.history-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .8rem; }
.history-timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); }
.history-timeline::before { position: absolute; top: 1.25rem; right: 0; left: 0; height: 2px; background: var(--river-500); content: ""; }
.history-timeline > div { position: relative; padding: 3.2rem 1.5rem 0 0; }
.history-timeline > div::before { position: absolute; top: .86rem; left: 0; width: .85rem; height: .85rem; border: .25rem solid var(--white); border-radius: 50%; background: var(--river-500); box-shadow: 0 0 0 1px var(--river-500); content: ""; }
.history-timeline span { color: var(--river-600); font-size: .72rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.history-timeline strong { margin-top: .35rem; display: block; color: var(--navy-900); font-size: 1.05rem; }
.history-timeline p { color: var(--muted); font-size: .85rem; }
.editorial-stories { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 8vw, 7rem); align-items: start; }
.editorial-stories > header { position: sticky; top: 10.5rem; }
.editorial-stories h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.editorial-stories > header > p:last-child { color: rgba(255,255,255,.7); }
.editorial-story-list { border-top: 1px solid rgba(255,255,255,.2); }
.editorial-story-list article { padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.editorial-story-list span { color: var(--river-200); font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.editorial-story-list h3 { margin-top: .35rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.editorial-story-list p { color: rgba(255,255,255,.72); }
.editorial-story-list a { color: var(--river-200); font-size: .82rem; font-weight: 800; }
.newsletters-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.newsletters-layout h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.newsletters-layout > div:first-child > p:not(.eyebrow) { max-width: 620px; color: var(--muted); font-size: 1.08rem; }
.year-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(6,43,73,.18); border-left: 1px solid rgba(6,43,73,.18); }
.year-grid a { min-height: 4.4rem; padding: .8rem; display: flex; align-items: center; justify-content: space-between; color: var(--navy-900); border-right: 1px solid rgba(6,43,73,.18); border-bottom: 1px solid rgba(6,43,73,.18); font-size: .86rem; font-weight: 800; text-decoration: none; }
.year-grid a:hover { color: var(--river-600); background: var(--foam-100); }
.captioned-gallery figure { margin: 0; }
.captioned-gallery figcaption { padding-inline: .25rem; }

/* Club and membership */
.club-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.club-values article { min-height: 24rem; padding: 2rem; display: flex; flex-direction: column; border: 1px solid rgba(6,43,73,.13); border-radius: var(--radius); }
.club-values span { color: var(--river-600); font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.club-values h2 { margin-top: auto; font-size: 1.9rem; line-height: 1.16; }
.leadership-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 5rem; }
.leadership-layout h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.update-note { color: var(--muted); font-size: .8rem; }
.officer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.officer-grid article { min-height: 12rem; padding: 1.5rem; display: flex; flex-direction: column; border-radius: 1rem; background: var(--white); }
.officer-grid span { color: var(--river-600); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.officer-grid h3 { margin-top: auto; font-size: 1.65rem; }
.committee-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 5rem; align-items: center; }
.committee-grid h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.pill-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.pill-list span { padding: .55rem .85rem; border: 1px solid rgba(6,43,73,.2); border-radius: .2rem; font-size: .85rem; font-weight: 750; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 4rem; }
.contact-band h2 { font-size: clamp(2.5rem, 4vw, 4.3rem); }
.membership-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
.price-card { padding: clamp(2rem, 4vw, 3.2rem); border-radius: var(--radius); color: var(--white); background: var(--navy-900); box-shadow: var(--shadow); }
.price-card > p:first-child { color: var(--river-200); font-size: .78rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.price-card > div { display: flex; align-items: baseline; gap: .2rem; }
.price-card > div span { font-size: 2rem; }
.price-card > div strong { font-size: clamp(5rem, 10vw, 8rem); line-height: 1; letter-spacing: -.07em; }
.price-card > div em { color: rgba(255,255,255,.68); font-style: normal; }
.price-card ul { margin: 2rem 0; padding: 0; list-style: none; }
.price-card li { padding: .65rem 0 .65rem 1.5rem; border-top: 1px solid rgba(255,255,255,.15); }
.price-card li::before { margin-left: -1.5rem; margin-right: .6rem; color: var(--river-200); content: "✓"; }
.dark-fine { color: rgba(255,255,255,.62); }
.membership-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.membership-copy h3 { margin: 2.2rem 0 .3rem; font-size: 1.25rem; }
.narrow-copy { max-width: 760px; }
.narrow-copy h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.error-page { min-height: 70vh; padding-block: 8rem; color: var(--white); background: var(--navy-950); }
.error-page h1 { font-size: clamp(3.2rem, 7vw, 6.5rem); }
.error-page p { font-size: 1.2rem; }

@media (max-width: 1050px) {
  .menu-toggle { display: inline-flex; align-items: center; gap: .65rem; color: var(--navy-900); background: transparent; border: 0; font: inherit; font-weight: 800; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { width: 1.5rem; height: 2px; display: block; background: currentColor; content: ""; }
  .menu-toggle-lines { position: relative; }
  .menu-toggle-lines::before { position: absolute; top: -.42rem; }
  .menu-toggle-lines::after { position: absolute; top: .42rem; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 1.5rem max(1.25rem, calc((100vw - 1180px) / 2)); display: none; align-items: stretch; flex-direction: column; background: var(--foam-100); border-bottom: 1px solid rgba(6,43,73,.12); box-shadow: 0 18px 40px rgba(6,43,73,.16); }
  .site-nav[data-open="true"] { display: flex; }
  .site-nav > a { padding-block: .35rem; }
  .site-nav .button { margin-top: .5rem; }
  .three-up, .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { min-height: 17rem; }
  .quick-desk-inner { grid-template-columns: repeat(4, 1fr); }
  .quick-desk-inner > p { display: none; }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 1.5rem, 1180px); }
  .header-inner { min-height: 4.7rem; }
  .brand { width: 7.6rem; }
  .hero { min-height: 39rem; }
  .hero-content { padding-block: 5.75rem 4rem; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4.35rem); }
  .hero-shade { background: linear-gradient(0deg, rgba(3,25,42,.94) 0%, rgba(3,25,42,.62) 65%, rgba(3,25,42,.34) 100%); }
  .button-row { align-items: stretch; flex-direction: column; }
  .button-row .button { width: 100%; }
  .split-heading, .image-story-grid, .archive-grid, .final-cta-inner, .footer-grid, .home-intro-grid, .calendar-preview, .slip-spotlight, .archive-home-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .quick-desk-inner { grid-template-columns: repeat(2, 1fr); }
  .quick-desk-inner > a { min-height: 5.1rem; padding-inline: .75rem; }
  .path-list article { grid-template-columns: 2rem 1fr; gap: .8rem 1rem; align-items: start; }
  .path-list article > a { grid-column: 2; }
  .calendar-preview .button-row { align-items: stretch; }
  .calendar-link { margin: .5rem 0 0; }
  .slip-spotlight { gap: 0; }
  .slip-spotlight > img { min-height: 20rem; }
  .archive-shelves a { grid-template-columns: 1fr; gap: .2rem; }
  .archive-shelves em { margin-top: .35rem; text-align: left; }
  .photo-crop { height: 26rem; }
  .archive-photo-stack { min-height: 25rem; }
  .footer-bottom { flex-direction: column; }
  .calendar-layout, .trip-expectations, .decision-grid, .safety-opening, .reference-layout, .festival-intro, .festival-opening, .festival-race, .festival-history, .memorial-grid, .conservation-grid, .archive-directory-grid, .editorial-stories, .newsletters-layout, .story-feature-grid, .grand-canyon-grid, .leadership-layout, .committee-grid, .membership-layout, .resource-layout, .river-note { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-jump { top: 4.7rem; }
  .section-jump .container { gap: 1.2rem; }
  .resource-layout > header { position: static; }
  .editorial-stories > header { position: static; }
  .resource-list > a { grid-template-columns: 1fr auto; gap: .25rem 1rem; }
  .resource-list > a > span { grid-column: 1 / -1; }
  .calendar-sidebar { position: static; }
  .calendar-shell, .calendar-shell iframe { min-height: 42rem; }
  .section-heading-row { grid-template-columns: 1fr; gap: 1rem; }
  .tool-grid, .safety-grid, .festival-days, .action-grid, .story-chapters, .club-values, .officer-grid { grid-template-columns: 1fr; }
  .reference-list a, .impact-list a { grid-template-columns: 1fr; gap: .2rem; }
  .reference-list em, .impact-list em { margin-top: .35rem; }
  .location-strip { grid-template-columns: 1fr; }
  .festival-status .container { grid-template-columns: 1fr; }
  .festival-status p, .festival-status p:first-child { min-height: auto; padding: .8rem 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .festival-link-grid { grid-template-columns: 1fr; }
  .festival-link-grid a:nth-child(odd) { margin-right: 0; border-right: 0; }
  .history-gallery { grid-template-columns: 1fr; }
  .archive-directory-list a { grid-template-columns: 1fr; gap: .2rem; }
  .history-timeline { grid-template-columns: 1fr; padding-left: 1.5rem; }
  .history-timeline::before { top: 0; bottom: 0; left: .38rem; width: 2px; height: auto; }
  .history-timeline > div { padding: 0 0 2.1rem 1rem; }
  .history-timeline > div::before { top: .3rem; left: -1.45rem; }
  .year-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-band { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .contact-band .button-row { width: 100%; }
  .contact-band > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

:root {
  --kh-type-home-display: clamp(3.25rem, 5vw, 4.5rem);
  --kh-type-page-h1: clamp(2.75rem, 4.5vw, 3.75rem);
  --kh-type-section-h2: clamp(2rem, 3.4vw, 2.75rem);
  --kh-type-h3: clamp(1.5rem, 2.2vw, 2rem);
  --kh-type-lede: 1.25rem;
  --kh-type-body: 1.125rem;
  --kh-type-small-body: 1rem;
  --kh-type-label: 1rem;
  --kh-type-caption: 0.875rem;
}

/* Shared reading scale. Section titles use IDs; small card and footer headings
 * retain their semantic role instead of inheriting an oversized display scale. */
/* Some migrated components declare a literal condensed font in scoped styles.
 * Keep this common reading policy authoritative across those components. */
:root body :is(h1, h2, h3, a, button, summary, [class$="__eyebrow"], [class$="__label"]) {
  font-family: var(--kh-font-body) !important;
}

:root body {
  font-family: var(--kh-font-body);
  font-size: var(--kh-type-body);
  font-weight: 400;
  line-height: 1.6;
}

:root body :where(input, select, textarea) {
  font-family: var(--kh-font-body);
}

:root body :is(h1, h2, h3) {
  font-family: var(--kh-font-display);
  letter-spacing: 0;
}

:root body main h1,
:root body main h1[id] {
  font-size: var(--kh-type-page-h1) !important;
  font-weight: 800;
  line-height: 1.1 !important;
}

:root body main h2[id] {
  font-size: var(--kh-type-section-h2);
  font-weight: 700;
  line-height: 1.15;
}

:root body main h3 {
  font-size: var(--kh-type-h3);
  font-weight: 700;
  line-height: 1.2;
}

:root body :is(.kh-home-display, .home-display) {
  max-inline-size: 14ch;
  font-family: var(--kh-font-display);
  font-size: var(--kh-type-home-display);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
}

:root body :is(.kh-section-heading, .section-heading) {
  max-inline-size: 18ch;
}

:root body :is(.kh-lede, .lede) {
  font-family: var(--kh-font-body);
  font-size: var(--kh-type-lede);
  font-weight: 400;
  line-height: 1.45;
}

:root body :is(.kh-small-body, .small-body, small) {
  font-family: var(--kh-font-body);
  font-size: var(--kh-type-small-body);
  font-weight: 400;
  line-height: 1.48;
}

:root body :is(.kh-eyebrow, .eyebrow, .kh-label, .display-label) {
  font-family: var(--kh-font-display);
  font-size: var(--kh-type-label);
  font-weight: 700;
  letter-spacing: 0.045em;
  line-height: 1.35;
  text-transform: uppercase;
}

:root body :is(figcaption, .kh-caption, .caption, .kh-meta, .meta) {
  font-family: var(--kh-font-body);
  font-size: var(--kh-type-caption);
  font-weight: 600;
  line-height: 1.35;
}

:root body :is(nav, nav a, nav button, .button, button, .kh-display-label) {
  font-family: var(--kh-font-body);
}

:root body :is(.button, button, .kh-display-label) {
  font-weight: 700;
}

/* Functional text stays at a comfortable reading size, including scoped CTAs. */
:root body :is(.button, button) {
  font-size: 1.0625rem;
  line-height: 1.35;
}

:root body .home-documentary-hero__action {
  font-size: 1.0625rem;
  line-height: 1.35;
}

:root body :is(.footer-nav a, .footer-nav h2) {
  font-family: var(--kh-font-body);
  font-size: 1rem;
  line-height: 1.45;
}

:root body .footer-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

:root body .footer-contact-link {
  flex-direction: column;
  align-items: flex-start;
}

:root body :is(.kh-measure, .body-measure, .prose) {
  max-inline-size: 68ch;
}

:root body :is(.kh-tabular-numerals, .tabular-numerals, [data-tabular-numerals]) {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}

@media (max-width: 720px) {
  :root {
    --kh-type-home-display: clamp(2.5rem, 10vw, 3.25rem);
    --kh-type-page-h1: clamp(2.25rem, 9vw, 3rem);
    --kh-type-section-h2: clamp(1.875rem, 7vw, 2.375rem);
    --kh-type-h3: 1.5rem;
    --kh-type-lede: 1.125rem;
    --kh-type-body: 1.0625rem;
    --kh-type-small-body: 1rem;
    --kh-type-label: 0.9375rem;
    --kh-type-caption: 0.875rem;
  }
}

/* Header and primary navigation overrides.
 * This file intentionally follows global.css so the legacy header rules can be
 * retired without changing unrelated shared styles.
 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 92px;
  min-height: 92px;
  overflow: visible;
  background: var(--kh-foam);
  border-bottom: 1px solid var(--kh-water-800, #073c60);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.header-inner {
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.25vw, 1.25rem);
}

.site-brand.brand {
  box-sizing: border-box;
  width: 140px;
  height: 92px;
  min-width: 140px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 140px;
  text-decoration: none;
}

.site-brand .site-logo {
  width: auto;
  height: auto;
  max-width: min(116px, 100%);
  max-height: min(85px, 100%);
  display: block;
  object-fit: contain;
}

.site-brand:focus-visible,
.menu-toggle:focus-visible,
.primary-nav-link:focus-visible,
.header-action:focus-visible {
  outline: 3px solid var(--kh-race-yellow, #f2b92c);
  outline-offset: 2px;
}

.site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  gap: clamp(0.375rem, 0.8vw, 0.75rem);
}

.primary-nav {
  order: -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 1 auto;
  gap: clamp(0, 0.2vw, 0.125rem);
  list-style: none;
}

.primary-nav-item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.primary-nav-link,
.header-action {
  position: relative;
  min-height: 48px;
  min-width: 48px;
  padding-inline: clamp(0.375rem, 0.62vw, 0.625rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kh-water-800, #073c60);
  border-bottom: 3px solid transparent;
  font-family: var(--kh-font-body);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav-link:hover,
.header-action-account:hover {
  color: var(--kh-water-650, #075d7d);
  border-bottom-color: var(--kh-rapid-100, #ddf5fd);
  background-color: var(--kh-rapid-100, #ddf5fd);
}

.primary-nav-link[aria-current="page"],
.header-action[aria-current="page"] {
  color: var(--kh-water-800, #073c60);
  border-bottom-color: var(--kh-water-800, #073c60);
  background-color: var(--kh-rapid-100, #ddf5fd);
}

.header-actions {
  min-width: max-content;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.header-action-join.button.button-small {
  height: 48px;
  min-height: 48px;
  margin: 0;
  padding: 0 0.875rem;
  color: var(--kh-water-950, #04273e);
  background: var(--kh-race-yellow, #f2b92c);
  border: 1px solid var(--kh-race-yellow-dark, #c58e0b);
  border-bottom-width: 3px;
  border-radius: 2px;
  box-shadow: none;
  transform: none;
}

.header-action-join.button.button-small:hover {
  color: var(--kh-water-950, #04273e);
  background: #f6c84e;
  border-color: var(--kh-race-yellow-dark, #c58e0b);
  box-shadow: none;
  transform: none;
}

.header-action-join.button.button-small[aria-current="page"] {
  border-bottom-color: var(--kh-rapid-500, #2bbaf3);
}

.header-action-account {
  padding-inline: 0.625rem;
}

.menu-toggle {
  display: none;
}

@media (max-width: 1120px) {
  .site-header {
    height: 72px;
    min-height: 72px;
  }

  .header-inner {
    height: 72px;
    min-height: 72px;
    gap: 0.5rem;
  }

  .site-brand.brand {
    width: 110px;
    height: 72px;
    min-width: 110px;
    padding: 12px;
    flex-basis: 110px;
  }

  .site-brand .site-logo {
    max-width: min(86px, 100%);
    max-height: min(63px, 100%);
  }

  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    color: var(--kh-water-800, #073c60);
    background: transparent;
    border: 1px solid var(--kh-line);
    border-radius: 2px;
    font-family: var(--kh-font-body);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .menu-toggle:hover {
    background: var(--kh-rapid-100, #ddf5fd);
    border-color: var(--kh-line, rgba(7, 60, 96, 0.2));
  }

  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    width: 24px;
    height: 2px;
    display: block;
    background: currentColor;
    content: "";
    transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
  }

  .menu-toggle-lines {
    position: relative;
    flex: 0 0 24px;
  }

  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    position: absolute;
    left: 0;
  }

  .menu-toggle-lines::before {
    top: -7px;
  }

  .menu-toggle-lines::after {
    top: 7px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    width: auto;
    max-width: 100vw;
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    margin: 0;
    padding: 12px var(--kh-gutter) 16px;
    display: none;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--kh-foam);
    border: 0;
    border-bottom: 1px solid var(--kh-water-800, #073c60);
    border-radius: 0;
    box-shadow: 0 14px 28px rgba(4, 39, 62, 0.16);
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .primary-nav {
    order: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav-item {
    width: 100%;
    border-bottom: 1px solid var(--kh-line, rgba(7, 60, 96, 0.2));
  }

  .primary-nav-link,
  .header-action {
    width: 100%;
    min-height: 48px;
    padding: 0 0.75rem;
    justify-content: flex-start;
    border-bottom: 0;
    font-size: 1.125rem;
  }

  .primary-nav-link:hover,
  .header-action-account:hover {
    color: var(--kh-water-800, #073c60);
    background: var(--kh-rapid-100, #ddf5fd);
  }

  .primary-nav-link[aria-current="page"],
  .header-action-account[aria-current="page"] {
    background:
      linear-gradient(var(--kh-water-800, #073c60), var(--kh-water-800, #073c60))
      left center / 4px 70% no-repeat, var(--kh-rapid-100, #ddf5fd);
  }

  .header-actions {
    width: 100%; min-width: 0; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px; padding-bottom: 12px; margin-bottom: 4px;
    border-bottom: 1px solid var(--kh-line);
  }

  .header-action-join.button.button-small {
    width: 100%;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 0.75rem;
    justify-content: flex-start;
    border-width: 1px;
    border-radius: 0;
  }

  .header-action-join.button.button-small[aria-current="page"] {
    border-bottom: 3px solid var(--kh-rapid-500, #2bbaf3);
  }

  .header-action-account {
    border: 1px solid var(--kh-line);
    background: var(--kh-white);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-lines,
  .menu-toggle-lines::before,
  .menu-toggle-lines::after {
    transition: none;
  }
}

@media (max-width: 360px) {
  .header-inner {
    width: calc(100% - 24px);
  }

  .menu-toggle {
    padding-inline: 0.5rem;
    gap: 0.5rem;
  }
}

/* A blocked script still leaves every destination reachable on small screens. */
@media (max-width: 1120px) {
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .header-inner { height: auto; min-height: 72px; flex-wrap: wrap; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav { position: static; display: flex; flex-basis: 100%; max-height: none; padding: 0 0 1rem; border: 0; box-shadow: none; }
}

/* One outer grid aligns migrated sections with the navigation and footer.
 * Explicit shells prevent a broad [class*=inner] rule from changing editorial media.
 * The body prefix resolves existing Astro scoped shell rules without !important.
 */
:root body :is(
  .container,
  .native-calendar__inner,
  .slip-fest-rail__inner,
  .account-access__inner,
  .account-billing__inner,
  .account-intro__inner,
  .account-membership-status__inner,
  .account-resources__inner,
  .club-committees__inner,
  .club-contact-governance__inner,
  .club-intro__inner,
  .club-leadership__inner,
  .conservation-actions__inner,
  .impact__inner,
  .conservation-intro__inner,
  .conservation-projects__inner,
  .events-intro__inner,
  .events-calendar__inner,
  .roll-practice__inner,
  .home-archive__inner,
  .home-calendar__inner,
  .home-conditions__inner,
  .home-conservation__inner,
  .home-newsletter__inner,
  .home-forecast-shortcuts__inner,
  .home-documentary-hero__shell,
  .home-membership__inner,
  .home-practice__inner,
  .home-slip-fest__inner,
  .join-benefits__inner,
  .join-checkout-status__inner,
  .join-intro__inner,
  .join-policies__inner,
  .cheat-forecast__inner,
  .release-directory__inner,
  .equipment-directory__inner,
  .gauge-directory__inner,
  .map-permit-directory__inner,
  .new-river-forecast__inner,
  .paddle-intro__inner,
  .partner-resources__inner,
  .ratings-progression__inner,
  .upper-yough-planner__inner,
  .weather-directory__inner,
  .safety-intro__inner,
  .safety-planning__inner,
  .safety-principles__inner,
  .safety-training__inner,
  .gear-swap__inner,
  .merchandise__inner,
  .race-section__inner,
  .sponsors__inner,
  .vendors__inner,
  .volunteer-section__inner,
  .weekend-guide__masthead-inner,
  .weekend-guide__conflicts,
  .weekend-guide__directory-inner,
  .historic-photo-essay__inner,
  .history-timeline__inner,
  .journal-masthead__inner,
  .lead-story__inner,
  .modern-gallery__inner,
  .newsletter-archive__inner
) {
  width: var(--kh-content-width);
  min-width: 0;
  margin-inline: auto;
}

/* Consistent section spacing for shells that already own their vertical padding. */
:root body main :is(
  .native-calendar__inner,
  .account-access__inner,
  .account-billing__inner,
  .account-intro__inner,
  .account-membership-status__inner,
  .account-resources__inner,
  .club-committees__inner,
  .club-contact-governance__inner,
  .club-leadership__inner,
  .impact__inner,
  .conservation-projects__inner,
  .events-intro__inner,
  .events-calendar__inner,
  .roll-practice__inner,
  .home-archive__inner,
  .home-calendar__inner,
  .home-conditions__inner,
  .home-conservation__inner,
  .home-newsletter__inner,
  .home-forecast-shortcuts__inner,
  .home-documentary-hero__shell,
  .home-membership__inner,
  .home-practice__inner,
  .home-slip-fest__inner,
  .join-benefits__inner,
  .join-checkout-status__inner,
  .join-intro__inner,
  .join-policies__inner,
  .release-directory__inner,
  .equipment-directory__inner,
  .gauge-directory__inner,
  .map-permit-directory__inner,
  .new-river-forecast__inner,
  .paddle-intro__inner,
  .partner-resources__inner,
  .ratings-progression__inner,
  .upper-yough-planner__inner,
  .weather-directory__inner,
  .safety-planning__inner,
  .safety-principles__inner,
  .safety-training__inner,
  .gear-swap__inner,
  .merchandise__inner,
  .race-section__inner,
  .sponsors__inner,
  .vendors__inner,
  .volunteer-section__inner,
  .historic-photo-essay__inner,
  .history-timeline__inner,
  .journal-masthead__inner,
  .lead-story__inner,
  .modern-gallery__inner,
  .newsletter-archive__inner
) { padding-block: var(--kh-section-space); }

:root body main :is(section, article, header, h1, h2, h3)[id] {
  scroll-margin-top: var(--kh-header-offset);
}

:root body main :is(.home-documentary-hero__shell, .journal-masthead__inner) {
  min-height: 0;
  padding-block: var(--kh-section-space);
}

/* Bring page entrances to the same compact rhythm; keep their own content grids. */
:root body main :is(.paddle-intro__inner, .events-intro__inner, .join-intro__inner,
  .account-intro__inner, .club-intro__inner, .safety-intro__inner,
  .conservation-intro__inner, .weekend-guide__masthead-inner) {
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

:root body main :is(h1, h2, h3) { overflow-wrap: break-word; }
:root body main :is(p, li, dd, a) { overflow-wrap: anywhere; }
:root body main :is(dl, figure) { min-width: 0; }

/* Native hosted tools and compact tables can opt into the shared visual system. */
.site-shell { width: var(--kh-content-width); margin-inline: auto; }
.site-panel { padding: clamp(1rem, 3vw, 1.75rem); background: var(--kh-foam); border: 1px solid var(--kh-line); }
.site-tool-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.site-table-wrap { overflow-x: auto; max-width: 100%; }
.site-table-wrap table { width: 100%; border-collapse: collapse; }
.site-table-wrap :is(th, td) { padding: .75rem; text-align: left; border-bottom: 1px solid var(--kh-line); }

@media (max-width: 720px) {
  :root body main .home-documentary-hero__shell { gap: 2rem; }
}

/* Shared controls for public forms, river tools and the PHP service pages.
 * State colors, hidden fields, checkboxes and calendar cells retain their roles. */
:root body main :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]):not([type=submit]) {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: var(--kh-control-height);
  padding: .75rem;
  color: var(--kh-ink);
  background: var(--kh-white);
  border: 1px solid var(--kh-water-650);
  border-radius: var(--kh-radius);
  font: inherit;
}
:root body main :is(input[type=checkbox], input[type=radio]) { accent-color: var(--kh-water-800); }
:root body main :is(button, .button) { border-radius: var(--kh-radius); }
:root body main :is(.event-submission, .membership-payment, .native-tool, .service-content) button {
  min-height: var(--kh-control-height);
  padding: .7rem 1.2rem;
  border: 1px solid var(--kh-water-800);
  background: var(--kh-water-800);
  color: var(--kh-white);
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
}
:root body main :is(.native-tool, .service-content) :is(button.secondary, button.ghost, button[aria-pressed=false]) {
  color: var(--kh-water-800);
  background: var(--kh-white);
  border-color: var(--kh-line);
}
:root body main button:disabled { cursor: not-allowed; opacity: .6; }
:root body main :is(.membership-payment, .event-submission) label { display: block; margin-top: 1rem; font-weight: 700; }
:root body main :is(.membership-payment, .event-submission) :is(input, select, textarea):not([type=checkbox]):not([type=radio]):not([type=hidden]) {
  display: block; width: 100%; margin-block: .5rem 1rem;
}
:root body main :is(.membership-payment, .event-submission) fieldset {
  min-width: 0; padding: var(--kh-panel-space); margin-block: 1.5rem;
  border: 1px solid var(--kh-line); border-radius: var(--kh-radius); background: var(--kh-foam);
}
:root body .native-tool {
  --bg: var(--kh-foam); --ink: var(--kh-ink); --text: var(--kh-ink);
  --muted: var(--kh-muted); --line: var(--kh-line);
  --brand: var(--kh-water-800); --accent: var(--kh-water-650);
  --card: var(--kh-white); --surface: var(--kh-white);
  color: var(--kh-ink); background: var(--kh-foam);
  font-size: var(--kh-type-body);
}
:root body .native-tool.forecast-tool :is(.native-tool__content, .forecast-nav, .forecast-footer) {
  width: var(--kh-content-width);
}
:root body .native-tool.forecast-tool :is(.card, .summary, .result-box, .forecast-nav a) {
  border-radius: var(--kh-radius);
  border-color: var(--kh-line);
}
:root body .native-tool.forecast-tool :is(.forecast-result, .result-box) { background: var(--kh-rapid-100); }
:root body .native-tool.forecast-tool .forecast-result { border-top-color: var(--kh-water-650); }
:root body .native-tool.forecast-tool .forecast-nav a[aria-current] { background: var(--kh-water-800); color: var(--kh-white); }
:root body .native-tool__heading { padding-block: var(--kh-section-space) 1.5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

.site-footer {
    padding-block: 0 2rem;
    background: var(--kh-water-950, #04273e);
  }

  .footer-river-rule {
    display: grid;
    gap: 3px;
  }

  .footer-river-rule span {
    display: block;
    height: 2px;
    background: var(--kh-rapid-500, #2bbaf3);
  }

  .footer-river-rule span:last-child {
    background: rgba(255, 255, 255, 0.48);
  }

  .footer-grid {
    grid-template-columns: minmax(220px, 1.25fr) repeat(3, minmax(140px, 0.75fr));
    align-items: start;
    padding-block: 4rem 3rem;
  }

  .footer-brand,
  .footer-nav {
    min-width: 0;
  }

  .site-footer .footer-brand {
    margin: 0;
    padding: 0;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .footer-logo-link {
    display: inline-block;
    margin: 0;
  }

  .footer-logo-inset {
    display: inline-block;
    padding: 12px;
    background: var(--kh-white, #fff);
    border-radius: 4px;
  }

  .footer-logo {
    display: block;
    width: 180px;
    height: auto;
    opacity: 1;
    filter: none;
    object-fit: contain;
  }

  .footer-mission {
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
  }

  .footer-founded {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9375rem;
  }

  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .footer-nav h2 {
    margin: 0 0 0.5rem;
    color: var(--kh-rapid-500, #2bbaf3);
    font-family: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .footer-nav a {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.35;
    text-underline-offset: 0.2em;
  }

  .footer-connect a {
    display: grid;
    gap: 0.125rem;
  }

  .footer-address {
    font-style: normal;
  }

  .footer-connect small {
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .footer-contact-link small {
    overflow-wrap: anywhere;
  }

  .footer-safety-note {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.5rem 1rem;
    padding-block: 1rem;
    color: rgba(255, 255, 255, 0.78);
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    border-bottom: 1px solid rgba(255, 255, 255, 0.24);
    font-size: 0.9375rem;
  }

  .footer-safety-note strong {
    color: var(--kh-white, #fff);
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 0;
    border-top: 0;
  }

  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }

  @media (max-width: 900px) {
    .footer-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (max-width: 720px) {
    .footer-grid {
      grid-template-columns: 1fr;
      gap: 2.5rem;
      padding-block: 3rem 2.5rem;
    }

    .footer-safety-note {
      grid-template-columns: 1fr;
    }
  }

/* Layout adapter for server-rendered pages. Business markup and IDs stay intact. */
:root body.kh-service-page { color: var(--kh-ink); background: var(--kh-white); }
:root body.kh-service-page > main { max-width: none; width: 100%; margin: 0; padding: 0; }
:root body .service-hero {
  margin: 0; padding: clamp(2.5rem, 4.5vw, 4rem) 0;
  border: 0; border-radius: 0; color: var(--kh-white); background: var(--kh-water-950);
}
:root body .service-hero h1 { margin: 0; color: inherit; }
:root body .service-hero .eyebrow { margin: 0 0 1rem; color: var(--kh-rapid-200); }
:root body .service-hero__description { max-width: 65ch; margin: 1.25rem 0 0; font-size: var(--kh-type-lede); }
:root body .service-content { padding-block: var(--kh-section-space); min-height: 20rem; }
:root body .service-content > :is(p, section, form, article, fieldset, details, dl, nav) { max-width: 58rem; }
:root body .service-content :is(h2, h3) { color: var(--kh-water-800); margin-block: 1.5rem .75rem; }
:root body .service-content h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1.2; }
:root body .service-content :is(section, article, fieldset, dl),
:root body .service-content > form {
  min-width: 0; padding: var(--kh-panel-space); margin-block: 1.5rem;
  border: 1px solid var(--kh-line); border-radius: var(--kh-radius);
  background: var(--kh-foam);
}
:root body .service-content :is(section, article, fieldset) > :first-child { margin-top: 0; }
:root body .service-content form { min-width: 0; }
:root body .service-content form form { border: 0; }
:root body .service-content :is(label, legend) { color: var(--kh-ink); font-weight: 700; }
:root body .service-content label { display: block; margin-top: 1rem; }
:root body .service-content input:not([type=checkbox]):not([type=radio]):not([type=hidden]) { display: block; width: 100%; max-width: 36rem; margin-block: .5rem 1rem; }
:root body .service-content :is(input[type=checkbox], input[type=radio]) { width: auto; display: inline-block; }
:root body .service-content :is(button, .button) { margin: .4rem .5rem .4rem 0; }
:root body .service-content a { color: var(--kh-water-650); text-underline-offset: .2em; }
:root body .service-content #google-signin {
  display: inline-flex; align-items: center; min-height: var(--kh-control-height);
  padding: .65rem 1.2rem; border: 1px solid var(--kh-water-800); border-radius: var(--kh-radius);
  background: var(--kh-white); color: var(--kh-water-800); font-weight: 700; text-decoration: none;
}
:root body .service-content :is(#notice, #setup-status, .action-status, [role=status]):not(:empty) {
  padding: 1rem; background: var(--kh-rapid-100); border: 0; border-left: 4px solid var(--kh-water-650);
}
:root body .service-content nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--kh-line); }
:root body .service-content :is(pre, dd) { white-space: pre-wrap; overflow-wrap: anywhere; }
:root body .service-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
:root body .service-content :is(th, td) { padding: .75rem; border-bottom: 1px solid var(--kh-line); text-align: left; }
:root body .service-content :is(#email-management, #email-confirmation, #confirmation-sign-in, .merge-account-form) { padding: 0; border: 0; background: transparent; }
:root body.kh-service-page [hidden] { display: none !important; }
@media (max-width: 600px) {
  :root body .service-content :is(button, #google-signin) { width: 100%; margin-inline: 0; }
  :root body .service-content dl { grid-template-columns: minmax(0, 1fr); }
}

/* Final common presentation layer, compiled identically for public and PHP pages. */
:root body > .site-header { background: var(--kh-foam); isolation: isolate; }
:root body .site-nav { background: var(--kh-foam); }
:root body .site-header [hidden] { display: none !important; }
:root body .site-header .header-action-signout {
  margin: 0; border: 1px solid var(--kh-line); border-radius: 2px;
  background: var(--kh-white); color: var(--kh-water-800);
  font: inherit; font-size: 1.125rem; font-weight: 700;
}
:root body .site-header .header-action-signout:hover { background: var(--kh-rapid-100); }
:root body .site-header .header-action-signout:disabled { opacity: .6; cursor: wait; }
:root body .site-header .header-actions[data-authenticated="true"] .header-action-join { display: none; }
:root body .site-header .primary-nav-link { overflow-wrap: normal; }

/* Shared masthead and reading grid; content-specific imagery stays in place. */
:root body main :is(.visitor-guide__intro, .service-hero, .native-tool__heading, .page-hero) {
  color: var(--kh-white); background: var(--kh-water-950); border-radius: 0;
}
:root body main :is(.visitor-guide__intro, .service-hero, .native-tool__heading) {
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
}
:root body main .native-tool__heading { width: 100%; padding-inline: calc((100% - var(--kh-content-width)) / 2); }
:root body main :is(.visitor-guide__intro, .service-hero, .native-tool__heading, .page-hero) h1 {
  margin: 0; color: var(--kh-white); max-width: 24ch;
}
:root body main :is(.visitor-guide__eyebrow, .service-hero .eyebrow) {
  margin: 0 0 1rem; color: var(--kh-rapid-200); font-size: .875rem;
  font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
:root body main :is(.visitor-guide__deck, .service-hero__description, .native-tool__heading > p) {
  color: var(--kh-white); font-size: var(--kh-type-lede); line-height: 1.5;
  max-width: 65ch; margin: 1.25rem 0 0;
}
:root body main .page-hero-inner { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
:root body main .page-hero-inner > p:last-child { color: var(--kh-white); }
:root body main .page-hero::after { display: none; }
:root body main .visitor-guide__body { padding-block: var(--kh-section-space); }
:root body main .visitor-guide--embedded .visitor-guide__intro {
  background: var(--kh-foam); color: var(--kh-water-950);
}
:root body main .visitor-guide--embedded :is(.visitor-guide__eyebrow, .visitor-guide__deck) { color: var(--kh-water-800); }
:root body main .visitor-guide__section { scroll-margin-top: var(--kh-header-offset); }
:root body main :is(.visitor-guide__cards > li, .site-panel) { border-radius: var(--kh-radius); }
:root body main .service-content > :is(p, section, form, article, fieldset, dl, nav) { max-width: 100%; }
:root body main :is(.forecast-intro, .forecast-tool .hero-top, .membership-payment__intro) {
  padding: var(--kh-panel-space); margin-block: 0 1.5rem;
  background: var(--kh-water-950); color: var(--kh-white);
  border: 0; border-radius: var(--kh-radius);
}
:root body main :is(.forecast-intro, .forecast-tool .hero-top, .membership-payment__intro) :is(h1, p, .subtitle, .unit-guide) { color: var(--kh-white); }
:root body main :is(.forecast-intro, .forecast-tool .hero-top, .membership-payment__intro) :is(.eyebrow, .membership-payment__eyebrow) { color: var(--kh-rapid-200); }
:root body main .forecast-tool .hero .pill { background: var(--kh-rapid-100); color: var(--kh-water-950); }
:root body main .forecast-tool .hero button { background: var(--kh-race-yellow); color: var(--kh-water-950); border-color: var(--kh-race-yellow); }
@media (max-width: 1120px) {
  :root body .site-header .header-actions { order: 0; }
  :root body .site-header .header-action { justify-content: center; border-radius: var(--kh-radius); }
  :root body .site-header .header-action-signout { min-height: 48px; }
  :root body .site-header .primary-nav-link { border-radius: var(--kh-radius); }
}
@media (max-width: 600px) {
  :root { --kh-type-page-h1: clamp(2rem, 8vw, 2.75rem); --kh-type-section-h2: clamp(1.7rem, 6vw, 2.25rem); }
  :root body main :is(.visitor-guide__intro, .service-hero, .native-tool__heading, .page-hero-inner) { padding-block: 2rem; }
}

.member-skip{position:fixed;top:.75rem;left:.75rem;z-index:9999;padding:.7rem 1rem;background:var(--kh-water-950);color:white;transform:translateY(-180%)}.member-skip:focus{transform:translateY(0)}
