/* CSTA preview. Brand colours from csta-logo.svg; Teko for display (the journal's face), Open Sans for text. */

:root {
  --ink: #3c3c3b;
  --ink-900: #1f201f;
  --ink-800: #2a2b2a;
  --ink-700: #343534;
  --muted: #62625f;
  --line: #e3e5e7;
  --line-strong: #d3d6d9;
  --mist: #f3f4f5;
  --paper: #ffffff;

  --red: #e7343f;
  --green: #009f46;
  --blue: #54aadf;
  --gold: #e6a81b;
  /* Darker cuts of the brand colours, for text and for white-on-colour fills. */
  --red-ink: #c62631;
  --green-ink: #007d37;
  --blue-ink: #1d6fa5;
  --gold-ink: #8a6100;
  --blue-box: #3a93d1;

  --edge: linear-gradient(90deg, var(--red) 0 25%, var(--green) 25% 50%, var(--blue) 50% 75%, var(--gold) 75% 100%);
  --ribs: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.17) 0 2px, rgba(255, 255, 255, 0.1) 2px 4px, transparent 4px 12px);

  --display: "Teko", "Arial Narrow", sans-serif;
  --text: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(20, 22, 24, 0.06), 0 1px 1px rgba(20, 22, 24, 0.04);
  --shadow: 0 14px 34px -16px rgba(20, 22, 24, 0.28), 0 2px 6px rgba(20, 22, 24, 0.05);
  --shadow-lg: 0 34px 70px -26px rgba(20, 22, 24, 0.45);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(84, 170, 223, 0.3); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(780px + 2 * var(--gutter)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.display {
  font-family: var(--display);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: 0.005em;
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  padding-top: 0.08em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-ink);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.82); }
.eyebrow-gold { color: var(--gold); }

.edge { height: 5px; background: var(--edge); }

/* Skip link, preview bar */
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; }
.skip:focus { top: 0.75rem; }
.preview-bar {
  display: block;
  background: var(--ink-900); color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem; padding: 0.45rem var(--gutter); text-align: center;
}
.preview-bar a { color: #fff; font-weight: 700; text-underline-offset: 2px; }
.preview-dot { display: inline-block; vertical-align: 1px; margin-right: 0.5rem; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(230, 168, 27, 0.25); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.7rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 0.95rem/1.2 var(--text); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
}
.btn .icon { width: 1.05em; height: 1.05em; transition: transform 0.2s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-lg { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-green { background: var(--green-ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(0, 125, 55, 0.7); }
.btn-green:hover { background: #006a2f; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-900); }
.btn-gold { background: var(--gold); color: var(--ink-900); box-shadow: 0 10px 24px -12px rgba(230, 168, 27, 0.9); }
.btn-gold:hover { background: #f2b52a; }
.btn-white { background: #fff; color: var(--ink-900); }
.btn-white:hover { background: #f1f1f1; }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.55); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); border-color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 700; color: var(--green-ink); text-decoration: none;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.35); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { flex: none; }
.brand img { width: 152px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.site-nav > a {
  position: relative; padding: 0.5rem 0.75rem;
  font-weight: 600; font-size: 0.93rem; text-decoration: none; color: var(--ink);
  border-radius: 8px;
}
.site-nav > a::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 3px; border-radius: 2px;
  background: var(--edge); background-size: 100% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.site-nav > a:hover::after, .site-nav > a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.75rem; }
.nav-login {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; font-weight: 600; font-size: 0.88rem; text-decoration: none; color: var(--muted);
}
.nav-login:hover, .nav-login[aria-current="page"] { color: var(--ink); }
.nav-login .icon { width: 1rem; height: 1rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: var(--mist); color: var(--ink); border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* Reveal on scroll (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Home: hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h) - 40px), 760px);
  display: flex; align-items: center;
  color: #fff; background: #20324f;
  overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 60% 62%; animation: hero-drift 24s ease-out both; }
@keyframes hero-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 22, 34, 0.9) 0%, rgba(14, 22, 34, 0.74) 34%, rgba(14, 22, 34, 0.25) 62%, rgba(14, 22, 34, 0) 80%),
    linear-gradient(0deg, rgba(14, 22, 34, 0.55) 0%, rgba(14, 22, 34, 0) 32%);
}
.hero-inner { padding-top: 4.5rem; padding-bottom: 7.5rem; }
.kicker {
  display: flex; align-items: center; gap: 0.85rem; margin: 0 0 1.1rem;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.9);
}
.tiles { display: inline-grid; grid-template-columns: repeat(2, 11px); gap: 3px; }
.tiles i { width: 11px; height: 11px; display: block; }
.tiles i:nth-child(1) { background: var(--red); }
.tiles i:nth-child(2) { background: var(--green); }
.tiles i:nth-child(3) { background: var(--blue); }
.tiles i:nth-child(4) { background: var(--gold); }
.hero-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(3.2rem, 8.2vw, 6.6rem); line-height: 0.86; letter-spacing: 0.002em;
  max-width: 11.5em; margin: 0 0 1.4rem; padding-top: 0.08em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero-title span { display: block; color: var(--gold); }
.hero-lede { max-width: 36rem; font-size: clamp(1.02rem, 1.4vw, 1.17rem); line-height: 1.65; color: rgba(255, 255, 255, 0.88); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-find { position: relative; display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem; min-height: 54px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.hero-find > .icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.hero-find input { width: min(15rem, 46vw); height: 44px; padding: 0 0.5rem 0 2.6rem; border: 0; background: none; font: 600 1rem var(--text); color: var(--ink); outline: none; }
.hero-find input::placeholder { color: #84847f; font-weight: 500; }
.hero-find:focus-within { box-shadow: 0 0 0 4px rgba(84, 170, 223, 0.45), 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.hero-find .btn { min-height: 44px; white-space: nowrap; }
.js .hero-inner > * { animation: rise 0.9s var(--ease) both; }
.js .hero-inner > *:nth-child(2) { animation-delay: 0.08s; }
.js .hero-inner > *:nth-child(3) { animation-delay: 0.16s; }
.js .hero-inner > *:nth-child(4) { animation-delay: 0.24s; }
.js .hero-inner > *:nth-child(5) { animation-delay: 0.4s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.film-chip {
  display: inline-flex; align-items: center; gap: 0.9rem;
  margin-top: 2.2rem; padding: 0.45rem 1.2rem 0.45rem 0.45rem;
  color: #fff; text-decoration: none;
  background: rgba(15, 20, 28, 0.42); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.film-chip:hover { background: rgba(15, 20, 28, 0.6); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }
.film-chip-thumb { position: relative; width: 96px; height: 54px; border-radius: 9px; overflow: hidden; flex: none; }
.film-chip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.film-chip-play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0, 0, 0, 0.3); color: #fff;
}
.film-chip-play .icon { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.film-chip-text { display: flex; flex-direction: column; line-height: 1.3; }
.film-chip-text strong { font-size: 0.95rem; }
.film-chip-text small { color: rgba(255, 255, 255, 0.72); font-size: 0.8rem; }

/* ---------- Home: census stats ---------- */
.stats-wrap { position: relative; z-index: 2; margin-top: -5.5rem; }
.stats {
  display: grid; grid-template-columns: minmax(200px, 0.8fr) 3fr; gap: 1.5rem 2.5rem; align-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1.4rem, 3vw, 2.6rem);
  position: relative; overflow: hidden;
}
.stats::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--edge); }
.stats-head .display { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
.stats-head .eyebrow { margin-bottom: 0.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { display: flex; flex-direction: column; padding-left: 1rem; border-left: 4px solid var(--c); }
.stat-red { --c: var(--red); }
.stat-green { --c: var(--green); }
.stat-blue { --c: var(--blue); }
.stat-gold { --c: var(--gold); }
.stat-num {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.5rem, 3.8vw, 3.4rem); line-height: 0.9;
  padding-top: 0.1em; font-variant-numeric: tabular-nums; color: var(--ink-900);
}
.stat-label { font-weight: 700; font-size: 0.9rem; line-height: 1.3; margin-top: 0.3rem; }
.stat-note { font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; line-height: 1.35; }
.stats-source { grid-column: 1 / -1; margin: 0.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.stats-source a { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--green-ink); font-weight: 700; text-decoration: none; }
.stats-source a:hover { text-decoration: underline; }
.stats-source .icon { width: 0.95em; height: 0.95em; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-mist { background: var(--mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.section-head-tight { margin-bottom: 1.4rem; align-items: center; }
.section-head-tight .display { font-size: clamp(2rem, 3vw, 2.6rem); }
.section-intro { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin: 0.6rem 0 0; }

/* Sectors and the container stack */
.sectors-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.sectors-copy .display { margin-bottom: 1.6rem; max-width: 12em; }
.sector-list { list-style: none; padding: 0; margin: 0 0 1.3rem; display: grid; gap: 0.9rem; }
.sector-list li { position: relative; padding-left: 1.6rem; line-height: 1.55; }
.sector-list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; background: var(--c); }
.sector-green { --c: var(--green); }
.sector-blue { --c: var(--blue); }
.sector-gold { --c: var(--gold); }
.sectors-copy .muted { font-size: 0.95rem; }

.stack { position: relative; display: grid; gap: 7px; padding-bottom: 14px; }
.container {
  --fill: var(--green-ink);
  position: relative; display: flex; flex-direction: column; justify-content: center;
  min-height: 112px; padding: 1rem 5.5rem 1rem 1.6rem;
  color: #fff; text-decoration: none;
  background-color: var(--fill);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 18%, rgba(0, 0, 0, 0) 82%, rgba(0, 0, 0, 0.18)),
    var(--ribs);
  border-radius: 3px;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.14), 0 14px 22px -16px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
/* Door end: two vertical locking bars, and the corner castings. */
.container::before {
  content: ""; position: absolute; top: 8px; bottom: 8px; right: 14px; width: 54px;
  border-left: 3px solid rgba(0, 0, 0, 0.22);
  background:
    linear-gradient(90deg, transparent 12px, rgba(255, 255, 255, 0.55) 12px 15px, transparent 15px 34px, rgba(255, 255, 255, 0.55) 34px 37px, transparent 37px),
    linear-gradient(0deg, transparent 46%, rgba(0, 0, 0, 0.18) 46% 54%, transparent 54%);
}
.container::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) left 3px top 3px / 12px 9px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) right 3px top 3px / 12px 9px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) left 3px bottom 3px / 12px 9px no-repeat,
    linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)) right 3px bottom 3px / 12px 9px no-repeat;
}
.container-label { font-family: var(--display); font-weight: 600; font-size: clamp(1.55rem, 2.6vw, 2.15rem); line-height: 1; padding-top: 0.12em; letter-spacing: 0.02em; text-transform: uppercase; }
.container-count { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; opacity: 0.9; margin-top: 0.3rem; }
.container-count .icon { width: 1em; height: 1em; transition: transform 0.25s var(--ease); }
.container:hover { transform: translateX(-10px); box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.14), 0 22px 30px -18px rgba(0, 0, 0, 0.6); }
.container:hover .container-count .icon { transform: translateX(4px); }
.container-green { --fill: var(--green); }
.container-blue { --fill: var(--blue-box); margin-left: 6%; margin-right: -2%; }
.container-gold { --fill: var(--gold); color: var(--ink-900); margin-left: 12%; margin-right: 4%; }
.container-gold::before { background: linear-gradient(90deg, transparent 12px, rgba(0, 0, 0, 0.3) 12px 15px, transparent 15px 34px, rgba(0, 0, 0, 0.3) 34px 37px, transparent 37px), linear-gradient(0deg, transparent 46%, rgba(0, 0, 0, 0.14) 46% 54%, transparent 54%); }
.stack-ground { position: absolute; left: -4%; right: -4%; bottom: 0; height: 8px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.25), transparent); }
.js [data-reveal="stack"] { opacity: 1; transform: none; }
.js [data-reveal="stack"] .container { opacity: 0; transform: translateY(-60px); transition: opacity 0.5s var(--ease), transform 0.75s cubic-bezier(0.3, 1.25, 0.5, 1); }
.js [data-reveal="stack"].is-in .container { opacity: 1; transform: none; }
.js [data-reveal="stack"].is-in .container:hover { transform: translateX(-10px); }
.js [data-reveal="stack"] .container-green { transition-delay: 0s; }
.js [data-reveal="stack"] .container-blue { transition-delay: 0.22s; }
.js [data-reveal="stack"] .container-gold { transition-delay: 0.44s; }
.js [data-reveal="stack"].is-in .container { transition-delay: 0s; }

/* ---------- Film ---------- */
.film-band {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(4rem, 8vw, 6rem);
  background:
    radial-gradient(1200px 500px at 85% 0%, rgba(84, 170, 223, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(0, 159, 70, 0.16), transparent 60%),
    var(--ink-900);
}
.film-band::before { content: ""; position: absolute; inset: 0; background: var(--ribs); opacity: 0.18; pointer-events: none; }
.film-head { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2.4rem; }
.film-head p { color: rgba(255, 255, 255, 0.75); margin: 0; max-width: 32rem; justify-self: end; }
.player {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.player::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); pointer-events: none; transition: opacity 0.3s; }
.player.is-playing::after { opacity: 0; }
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-play {
  position: absolute; inset: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: 1.2rem;
  border: 0; cursor: pointer; color: #fff; font: inherit;
  background: radial-gradient(closest-side, rgba(10, 12, 14, 0.78), rgba(10, 12, 14, 0.42));
  transition: background 0.3s;
}
.player-play:hover { background: radial-gradient(closest-side, rgba(10, 12, 14, 0.85), rgba(10, 12, 14, 0.5)); }
.player-ring {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--green-ink); box-shadow: 0 0 0 10px rgba(0, 159, 70, 0.25), 0 20px 40px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.player-ring .icon { width: 36px; height: 36px; margin-left: 5px; }
.player-play:hover .player-ring { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(0, 159, 70, 0.2), 0 20px 40px -10px rgba(0, 0, 0, 0.6); }
.player-text { display: flex; flex-direction: column; align-items: flex-start; font-family: var(--display); font-size: 2.2rem; font-weight: 600; line-height: 0.95; padding-top: 0.15em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.player-text small { font-family: var(--text); font-size: 0.85rem; font-weight: 600; opacity: 0.85; margin-top: 0.3rem; }
.player.is-playing .player-play { opacity: 0; pointer-events: none; }
.player-compact { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.player-compact .player-ring { width: 72px; height: 72px; }
.player-compact .player-ring .icon { width: 28px; height: 28px; }
.player-compact .player-text { font-size: 1.8rem; }

/* ---------- What the CSTA does ---------- */
.does-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.does-card {
  --c: var(--green); --c-ink: var(--green-ink);
  position: relative; display: block; padding: 1.7rem 1.6rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.does-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); transform-origin: left; transition: height 0.3s var(--ease); }
.does-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.does-card .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--c-ink); background: color-mix(in srgb, var(--c) 13%, white); margin-bottom: 1.1rem; stroke-width: 1.7; box-sizing: content-box; }
.does-card h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.does-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.does-red { --c: var(--red); --c-ink: var(--red-ink); }
.does-green { --c: var(--green); --c-ink: var(--green-ink); }
.does-blue { --c: var(--blue); --c-ink: var(--blue-ink); }
.does-gold { --c: var(--gold); --c-ink: var(--gold-ink); }

/* ---------- Logo boxes (member yard, directory, profile) ---------- */
.box {
  --fill: #7d8287;
  position: relative; display: block; aspect-ratio: 2.25 / 1; padding: 9% 7%;
  background-color: var(--fill);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.16)), var(--ribs);
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15);
}
.box-green { --fill: var(--green); }
.box-blue { --fill: var(--blue-box); }
.box-gold { --fill: var(--gold); }
.box-red { --fill: var(--red); }
.box-ink { --fill: var(--ink); }
.box-grey { --fill: #8a9097; }
.plate {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%;
  background: #fff; border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.plate img { position: absolute; inset: 9% 8%; width: 84%; height: 82%; max-width: none; object-fit: contain; }
.plate-initials { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; padding-top: 0.15em; color: var(--ink); letter-spacing: 0.04em; }
.box-lg { width: 100%; }
.box-lg .plate-initials { font-size: 3.4rem; }

/* Member yard marquee */
.yard { padding: clamp(4rem, 8vw, 6.5rem) 0; background: var(--mist); overflow: hidden; }
.yard-rows { display: grid; gap: 12px; }
.yard-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.yard-track { display: flex; gap: 12px; width: max-content; animation: yard calc(var(--n) * 3.2s) linear infinite; }
.yard-row-reverse .yard-track { animation-direction: reverse; }
.yard-rows:hover .yard-track, .yard-rows:focus-within .yard-track { animation-play-state: paused; }
.yard-item { display: block; width: 168px; flex: none; transition: transform 0.25s var(--ease); }
.yard-item:hover, .yard-item:focus-visible { transform: translateY(-4px); }
@keyframes yard { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Container Innovator ---------- */
.innovator {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 0;
  background:
    radial-gradient(800px 400px at 80% 50%, rgba(255, 255, 255, 0.12), transparent 70%),
    linear-gradient(135deg, #00843b, #006a30);
}
.innovator::before { content: ""; position: absolute; inset: 0; background: var(--ribs); opacity: 0.35; }
.innovator::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); }
.innovator-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: center; }
.innovator-title { font-family: var(--display); font-weight: 500; font-size: clamp(3.6rem, 8vw, 6.4rem); line-height: 0.82; text-transform: uppercase; margin: 0 0 1.4rem; padding-top: 0.1em; letter-spacing: 0.01em; }
.innovator-title span { display: block; font-weight: 600; }
.innovator-copy p { font-size: 1.08rem; color: rgba(255, 255, 255, 0.88); max-width: 28rem; margin-bottom: 1.8rem; }
.fan { position: relative; display: block; height: clamp(320px, 38vw, 470px); }
.fan-page {
  position: absolute; top: 50%; left: 50%; width: clamp(190px, 21vw, 290px); aspect-ratio: 640 / 905; object-fit: cover;
  border-radius: 4px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: translate(-50%, -50%) rotate(var(--r)) translateX(var(--x));
  transition: transform 0.6s var(--ease);
}
.fan-1 { --r: -14deg; --x: -42%; }
.fan-2 { --r: -5deg; --x: -14%; }
.fan-3 { --r: 7deg; --x: 26%; }
.fan-cover { --r: 0deg; --x: 0%; z-index: 2; }
.fan:hover .fan-1 { --r: -18deg; --x: -58%; }
.fan:hover .fan-2 { --r: -7deg; --x: -24%; }
.fan:hover .fan-3 { --r: 10deg; --x: 40%; }
.fan:hover .fan-cover { transform: translate(-50%, -52%) scale(1.03); }
.js [data-reveal="fan"] .fan-page:not(.fan-cover) { transform: translate(-50%, -50%) rotate(0deg) translateX(0); }
.js [data-reveal="fan"].is-in .fan-page:not(.fan-cover) { transform: translate(-50%, -50%) rotate(var(--r)) translateX(var(--x)); transition-delay: 0.2s; }

/* ---------- Events and news ---------- */
.whatson-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event { display: grid; grid-template-columns: 76px 1fr; gap: 1.1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.event-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 82px; border-radius: 10px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.event-date::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--edge); }
.event:nth-child(2) .event-date { background: var(--green-ink); }
.event:nth-child(3) .event-date { background: var(--blue-ink); }
.event-month { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.event-day { font-family: var(--display); font-weight: 600; font-size: 2.3rem; line-height: 0.9; padding-top: 0.12em; white-space: nowrap; }
.event-day small { font-size: 1.3rem; opacity: 0.85; }
.event .meta { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.3rem; }
.event h3 { font-size: 1.05rem; margin-bottom: 0.35rem; line-height: 1.3; }
.event h3 a { text-decoration: none; }
.event h3 a:hover { color: var(--green-ink); text-decoration: underline; }
.event p:last-child { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

.news-stack { display: grid; gap: 1rem; }
.news-card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 1.35rem 1.4rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.news-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.news-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.7rem; }
.tag {
  display: inline-block; padding: 0.18rem 0.55rem; border-radius: 6px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  background: var(--mist); color: var(--ink);
}
.tag-news { background: #e5f3fb; color: var(--blue-ink); }
.tag-events { background: #e3f4ea; color: var(--green-ink); }
.tag-container-innovator { background: #fdf2dc; color: var(--gold-ink); }
.tag-newsletters { background: #fde8e9; color: var(--red-ink); }
.news-title { font-weight: 700; font-size: 1.08rem; line-height: 1.35; margin-bottom: 0.45rem; }
.news-excerpt { color: var(--muted); font-size: 0.93rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.9rem; }
.news-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.news-foot .icon { color: var(--green-ink); transition: transform 0.25s var(--ease); }
.news-card a:hover .news-foot .icon { transform: translateX(4px); }
.news-card-featured a {
  background: var(--ink-900); color: #fff; border-color: transparent; padding: clamp(1.6rem, 3vw, 2.4rem);
  background-image: radial-gradient(600px 300px at 100% 0%, rgba(84, 170, 223, 0.2), transparent 70%);
  position: relative; overflow: hidden; justify-content: flex-end; min-height: 300px;
}
.news-card-featured a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); }
.news-card-featured .news-title { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 0.95; padding-top: 0.08em; margin-bottom: 0.8rem; }
.news-card-featured .news-excerpt { color: rgba(255, 255, 255, 0.78); -webkit-line-clamp: 3; font-size: 1rem; max-width: 40rem; }
.news-card-featured .news-foot { color: rgba(255, 255, 255, 0.7); }
.news-card-featured .news-foot .icon { color: var(--gold); }
.news-card-featured .tag { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- Join call to action ---------- */
.cta { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; isolation: isolate; }
.cta-media { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; z-index: -1; }
.cta-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.cta-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink-900) 0%, rgba(31, 32, 31, 0.55) 35%, rgba(31, 32, 31, 0) 70%); }
.cta-inner { padding-top: clamp(4rem, 8vw, 6.5rem); padding-bottom: clamp(4rem, 8vw, 6.5rem); }
.cta-copy { max-width: 36rem; }
.cta-copy .display { margin-bottom: 1.2rem; }
.cta-copy > p { color: rgba(255, 255, 255, 0.8); }
.fee { font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 1; margin: 1.4rem 0 1.6rem; padding-top: 0.1em; color: #fff; }
.fee span { font-family: var(--text); font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); margin-left: 0.4rem; }

/* ---------- Page heads ---------- */
.page-head { position: relative; padding: clamp(3rem, 6vw, 4.8rem) 0 clamp(2.4rem, 5vw, 3.4rem); background: var(--mist); overflow: hidden; }
.page-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--edge); }
.page-head-pattern { background-color: var(--mist); background-image: url("img/pattern.bbdcf17239bf.svg"); background-size: 132px 132px; background-position: right -10px top -10px; }
.page-head .wrap { position: relative; }
.page-head .display { max-width: 16em; text-wrap: balance; }
.page-intro { font-size: 1.12rem; color: var(--muted); max-width: 42rem; margin: 1rem 0 0; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-bottom: 1.4rem; font-size: 0.88rem; font-weight: 700; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 1em; height: 1em; transition: transform 0.2s var(--ease); }
.back-link:hover .icon { transform: translateX(-3px); }

.filter-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.filter-row a {
  padding: 0.45rem 0.95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong);
  font-size: 0.86rem; font-weight: 700; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-row a:hover { border-color: var(--ink); }
.filter-row a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.photo-head { position: relative; color: #fff; isolation: isolate; overflow: hidden; background: #20324f; }
.photo-head-media, .photo-head-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-head-media { z-index: -1; }
.photo-head-media img { object-fit: cover; object-position: 50% 30%; }
.photo-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 22, 34, 0.82), rgba(14, 22, 34, 0.45) 55%, rgba(14, 22, 34, 0.05)), linear-gradient(0deg, rgba(14, 22, 34, 0.35), transparent 40%); }
.photo-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); }
.photo-head-inner { padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4rem, 9vw, 7rem); }
.photo-head .display { font-size: clamp(2.8rem, 6vw, 4.8rem); max-width: 12em; }
.photo-head .page-intro { color: rgba(255, 255, 255, 0.85); }

/* ---------- Directory ---------- */
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; padding: 0; margin: 1.6rem 0 0; font-size: 0.88rem; font-weight: 600; }
.legend li { display: inline-flex; align-items: center; gap: 0.5rem; }
.legend-count { color: var(--muted); font-weight: 600; }
.swatch { width: 18px; height: 12px; border-radius: 2px; background-color: var(--fill); background-image: var(--ribs); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15); }
.swatch-green { --fill: var(--green); }
.swatch-blue { --fill: var(--blue-box); }
.swatch-gold { --fill: var(--gold); }
.swatch-red { --fill: var(--red); }
.swatch-ink { --fill: var(--ink); }

.directory { padding-top: 2rem; padding-bottom: 4rem; }
.finder {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20;
  background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 0.9rem; margin-bottom: 1.4rem;
}
.finder-fields { display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 0.6rem; }
.field { position: relative; display: block; }
.field .icon { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); color: var(--muted); width: 1.1rem; height: 1.1rem; pointer-events: none; }
.field input {
  width: 100%; height: 50px; padding: 0 1rem 0 2.75rem;
  font: 500 1rem var(--text); color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #8a8a87; }
.field input:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 159, 70, 0.12); }
.finder-fields { grid-template-columns: 1.35fr 1fr auto; }
.finder-submit { height: 50px; padding-inline: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; border: 0; padding: 0; margin: 0.75rem 0 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.42rem 0.85rem 0.42rem 0.65rem;
  border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff;
  font-size: 0.85rem; font-weight: 700; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip span::before { content: ""; width: 14px; height: 10px; border-radius: 2px; background-color: var(--fill); background-image: var(--ribs); }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip-green { --fill: var(--green); }
.chip-blue { --fill: var(--blue-box); }
.chip-gold { --fill: var(--gold); }
.chip-red { --fill: var(--red); }
.chip-ink { --fill: var(--ink); }
.chip-ink input:checked + span::before { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6); }
.chip-clear { margin-left: auto; font-size: 0.85rem; font-weight: 700; color: var(--muted); padding: 0.4rem 0.6rem; }
.chip-clear:hover { color: var(--ink); }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.2rem; }
.result-count strong { color: var(--ink); }

.member-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 1rem; }
.member-card[hidden] { display: none; }
.member-card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 0.75rem 0.75rem 0.9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.member-card a:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.member-card .box { margin-bottom: 0.85rem; transition: transform 0.4s var(--ease); }
.member-card a:hover .box { transform: scale(1.02); }
.member-name { font-weight: 700; font-size: 0.97rem; line-height: 1.3; padding: 0 0.15rem; }
.member-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: auto; padding: 0.45rem 0.15rem 0; }
.member-city { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.82rem; color: var(--muted); min-width: 0; }
.member-city .icon { width: 0.95rem; height: 0.95rem; }
.member-city-none { visibility: hidden; }
.dots { display: inline-flex; gap: 3px; flex: none; }
.dot { width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.dot-green { --c: var(--green); }
.dot-blue { --c: var(--blue-box); }
.dot-gold { --c: var(--gold); }
.dot-red { --c: var(--red); }
.dot-ink { --c: var(--ink); }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty strong { color: var(--ink); font-size: 1.1rem; }

.band-join { background: var(--mist); padding: 3rem 0; border-top: 1px solid var(--line); }
.band-join-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.band-join .display { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.band-join p { margin: 0.4rem 0 0; color: var(--muted); }

/* ---------- Member profile ---------- */
.profile-head {
  --fill: #8a9097;
  position: relative; color: #fff; padding: 2rem 0 3rem;
  background-color: var(--fill);
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28)), var(--ribs);
}
.profile-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--edge); }
.profile-green { --fill: #008a3c; }
.profile-blue { --fill: #2f7fb8; }
.profile-gold { --fill: #b98300; }
.profile-red { --fill: #c62631; }
.profile-ink { --fill: var(--ink); }
.profile-grey { --fill: #5f656b; }
.profile-head .back-link { color: rgba(255, 255, 255, 0.85); }
.profile-head .back-link:hover { color: #fff; }
.profile-head-grid { display: grid; grid-template-columns: 340px 1fr; gap: 2.5rem; align-items: center; }
.profile-logo .box { box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.15), 0 30px 50px -24px rgba(0, 0, 0, 0.6); }
.profile-logo .box { background-color: rgba(255, 255, 255, 0.16); }
.profile-title .display { font-size: clamp(2.6rem, 5.5vw, 4.4rem); text-wrap: balance; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.2); }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; margin: 1rem 0 0; font-weight: 600; color: rgba(255, 255, 255, 0.9); }
.profile-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.profile-body { display: grid; grid-template-columns: 1fr 320px; gap: clamp(2rem, 5vw, 4rem); padding-top: 3rem; padding-bottom: 3rem; align-items: start; }
.description p { font-size: 1.06rem; line-height: 1.75; white-space: pre-line; }
.profile-side { position: sticky; top: calc(var(--header-h) + 20px); padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.profile-side h2 { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.type-tags { list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.type-tag { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem 0.35rem 0.55rem; border-radius: 999px; border: 1.5px solid var(--line-strong); font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.type-tag::before { content: ""; width: 14px; height: 10px; border-radius: 2px; background-color: var(--fill); background-image: var(--ribs); }
.type-tag:hover { border-color: var(--ink); }
.type-tag-green { --fill: var(--green); }
.type-tag-blue { --fill: var(--blue-box); }
.type-tag-gold { --fill: var(--gold); }
.type-tag-red { --fill: var(--red); }
.type-tag-ink { --fill: var(--ink); }
.profile-side .btn { margin-bottom: 1rem; }
.profile-side .fine { margin: 0; }
.related { padding-bottom: 4.5rem; }
.related .display { font-size: clamp(1.9rem, 3vw, 2.4rem); margin-bottom: 1.3rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.member-grid-compact { grid-template-columns: repeat(4, 1fr); }

/* ---------- News ---------- */
.news-page { padding-top: 2.5rem; padding-bottom: 4.5rem; }
.news-lead { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.innovator-mini a {
  display: grid; grid-template-columns: 110px 1fr; gap: 1.1rem; align-items: center; height: 100%;
  padding: 1.2rem; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(135deg, #00843b, #006a30); color: #fff; position: relative; overflow: hidden;
}
.innovator-mini a::before { content: ""; position: absolute; inset: 0; background: var(--ribs); opacity: 0.3; }
.innovator-mini img { position: relative; border-radius: 3px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.6); transform: rotate(-4deg); transition: transform 0.4s var(--ease); }
.innovator-mini a:hover img { transform: rotate(0deg) scale(1.04); }
.innovator-mini span { position: relative; display: flex; flex-direction: column; gap: 0.3rem; }
.innovator-mini .eyebrow { color: rgba(255, 255, 255, 0.8); margin: 0; }
.innovator-mini strong { font-family: var(--display); font-size: 1.8rem; font-weight: 600; line-height: 0.95; padding-top: 0.1em; }
.innovator-mini .muted { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; display: inline-flex; flex-direction: row; align-items: center; gap: 0.3rem; }
.innovator-mini .muted .icon { width: 0.95em; height: 0.95em; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pager-count { color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.article-head .display { font-size: clamp(2.4rem, 5vw, 3.8rem); max-width: none; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); font-weight: 600; }
.article-body { padding-top: 2.5rem; }
.article-source { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2rem 0 4.5rem; }
.article-nav-link { display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.article-nav-link:hover { border-color: transparent; box-shadow: var(--shadow); }
.article-nav-link span { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); }
.article-nav-link span .icon { width: 1em; height: 1em; }
.article-nav-link strong { font-size: 0.98rem; line-height: 1.35; }
.article-nav-next { text-align: right; align-items: flex-end; grid-column: 2; }

/* Prose */
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1; margin: 2.2rem 0 0.9rem; padding-top: 0.1em; }
.prose h3 { font-size: 1.15rem; margin: 1.8rem 0 0.6rem; }
.prose > :first-child, .prose > :first-child > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose a.btn { text-decoration: none; }
.prose a.btn-green, .prose a.btn-ink { color: #fff; }
.prose strong { color: var(--ink-900); }
.article-body p { overflow-wrap: anywhere; }
.page-prose { padding-top: 2.5rem; padding-bottom: 4.5rem; }

.check-list { list-style: none; padding: 0 !important; margin: 0 0 1.8rem; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0; line-height: 1.5; }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #e3f4ea; color: var(--green-ink); stroke-width: 2.6; margin-top: 0.1em; box-sizing: border-box; }
.check-list-2 { grid-template-columns: 1fr 1fr; gap: 0.8rem 1.6rem; }

/* ---------- Resources ---------- */
.resources { padding-top: 2.2rem; padding-bottom: 4.5rem; }
.resource-year { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.resource-year-title { font-family: var(--display); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--line-strong); padding-top: 0.1em; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.resource-list a {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center;
  padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.resource-list a:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateX(3px); }
.resource-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--mist); color: var(--ink); }
.resource-icon .icon { width: 20px; height: 20px; }
.resource-text { display: flex; flex-direction: column; min-width: 0; }
.resource-title { font-weight: 700; font-size: 0.97rem; line-height: 1.35; }
.resource-meta { font-size: 0.82rem; color: var(--muted); }
.resource-gate { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.resource-gate .icon { width: 0.95rem; height: 0.95rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-main h2 { margin-top: 0; font-size: 2.4rem; }
.about-facts { padding: 1.6rem; border-radius: var(--radius); background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.about-facts::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--edge); }
.about-facts dl { margin: 0 0 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.about-facts dt { font-family: var(--display); font-weight: 600; font-size: 3rem; line-height: 0.9; padding-top: 0.1em; }
.about-facts dd { margin: 0.2rem 0 0; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); line-height: 1.35; }
.about-facts .link-arrow { color: var(--gold); }
.sector-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.sector-card { --fill: var(--green); display: flex; flex-direction: column; padding: 0 0 1.5rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.sector-card-box { display: block; height: 76px; background-color: var(--fill); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 30%, rgba(0, 0, 0, 0.18)), var(--ribs); margin-bottom: 1.3rem; }
.sector-card h3 { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1; padding: 0.1em 1.5rem 0; margin-bottom: 0.6rem; }
.sector-card p { padding: 0 1.5rem; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.sector-card .link-arrow { margin: auto 1.5rem 0; font-size: 0.92rem; }
.sector-card-green { --fill: var(--green); }
.sector-card-blue { --fill: var(--blue-box); }
.sector-card-gold { --fill: var(--gold); }
.about-film { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-film .display { margin-bottom: 1.4rem; }

/* ---------- Join ---------- */
.join-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(2rem, 5vw, 4rem); padding-top: 3rem; padding-bottom: 4.5rem; align-items: start; }
.join-main { display: grid; gap: 1.2rem; }
.join-main h2 { margin-top: 0; }
.join-steps-title { font-size: 2.1rem; margin-bottom: 1rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1; padding-top: 0.15em; }
.steps li:nth-child(2) .step-num { background: var(--green-ink); }
.steps li:nth-child(3) .step-num { background: var(--blue-ink); }
.steps h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.steps p { margin: 0; font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.fee-card {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 2rem 1.8rem; border-radius: 18px; background: var(--ink-900); color: #fff; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.fee-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--edge); }
.fee-card .eyebrow { color: var(--gold); }
.fee-main { font-family: var(--display); font-weight: 600; font-size: 5.4rem; line-height: 0.85; margin: 0.3rem 0 0.3rem; padding-top: 0.1em; }
.fee-alt { font-size: 1.05rem; font-weight: 600; color: rgba(255, 255, 255, 0.8); margin-bottom: 0.4rem; }
.fee-card .fine { color: rgba(255, 255, 255, 0.6); }
.fee-card .btn { margin: 0.6rem 0 1rem; }
.fee-tiles { position: absolute; right: -14px; bottom: -14px; display: grid; grid-template-columns: repeat(2, 44px); gap: 6px; opacity: 0.16; transform: rotate(-8deg); }
.fee-tiles i { width: 44px; height: 44px; display: block; }
.fee-tiles i:nth-child(1) { background: var(--red); }
.fee-tiles i:nth-child(2) { background: var(--green); }
.fee-tiles i:nth-child(3) { background: var(--blue); }
.fee-tiles i:nth-child(4) { background: var(--gold); }

/* ---------- Contact, login ---------- */
.card-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; padding-top: 3rem; padding-bottom: 4.5rem; }
.card-row-single { grid-template-columns: minmax(0, 620px); }
.action-card { display: flex; flex-direction: column; padding: 1.8rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: #fff; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; }
a.action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.action-card > .icon { width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--mist); margin-bottom: 1.2rem; box-sizing: border-box; }
.action-card h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.action-card p { color: var(--muted); font-size: 0.97rem; }
.action-card .link-arrow { margin-top: auto; }
.action-card-static .btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- 404 ---------- */
.missing { padding: clamp(4rem, 10vw, 7rem) 0; text-align: center; }
.missing .wrap { display: flex; flex-direction: column; align-items: center; }
.missing-box {
  width: 260px; aspect-ratio: 2.25 / 1; display: grid; place-items: center; margin-bottom: 2rem;
  background-color: var(--blue-box); background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.16)), var(--ribs);
  border-radius: 3px; box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.15), var(--shadow);
  color: #fff; font-family: var(--display); font-size: 4rem; font-weight: 600; line-height: 1;
}
.missing-box span { padding-top: 0.15em; }
.missing .display { margin-bottom: 1rem; }
.missing p { color: var(--muted); max-width: 32rem; }
.missing p a { color: var(--green-ink); }
.missing .btn { margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.78); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 2.5rem; }
.footer-brand img { width: 170px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; line-height: 1.6; max-width: 22rem; }
.site-footer nav { display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer nav h2 { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 0.4rem; }
.site-footer nav a { font-size: 0.92rem; text-decoration: none; color: rgba(255, 255, 255, 0.72); transition: color 0.2s; width: fit-content; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-base { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-top: 1.4rem; padding-bottom: 1.8rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(255, 255, 255, 0.12); }
.footer-base p { margin: 0; }
.footer-base a { color: rgba(255, 255, 255, 0.8); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stats { grid-template-columns: 1fr; }
  .site-nav > a { padding: 0.5rem 0.55rem; font-size: 0.9rem; }
  .nav-login { display: none; }
  .member-grid-compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 66px; }
  /* A backdrop filter would make the header the containing block of the fixed menu. */
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1rem var(--gutter) 2rem; background: #fff; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0s 0.25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .site-nav > a { padding: 1rem 0.25rem; font-family: var(--display); font-size: 2rem; font-weight: 600; line-height: 1; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav > a::after { display: none; }
  .site-nav > a[aria-current="page"] { color: var(--green-ink); }
  .nav-actions { flex-direction: column; align-items: stretch; margin: 1.5rem 0 0; gap: 0.75rem; }
  .nav-login { display: inline-flex; justify-content: center; border: 1.5px solid var(--line-strong); border-radius: 999px; min-height: 48px; }
  .nav-actions .btn { min-height: 52px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }
  .brand img { width: 136px; }

  .sectors-grid, .innovator-grid, .whatson-grid, .about-grid, .about-film, .join-grid, .profile-body { grid-template-columns: 1fr; }
  .film-head { grid-template-columns: 1fr; }
  .film-head p { justify-self: start; }
  .does-grid, .news-grid, .sector-cards, .card-row { grid-template-columns: repeat(2, 1fr); }
  .news-lead { grid-template-columns: 1fr; }
  .fan { height: 360px; margin-top: 1rem; }
  .cta-media { width: 100%; opacity: 0.35; }
  .cta-media::after { background: linear-gradient(90deg, var(--ink-900), rgba(31, 32, 31, 0.6)); }
  .profile-head-grid { grid-template-columns: 240px 1fr; gap: 1.5rem; }
  .profile-side { position: static; }
  .fee-card { position: relative; top: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; }
  .hero-media img { object-position: 78% 60%; }
  .hero-shade { background: linear-gradient(0deg, rgba(14, 22, 34, 0.92) 0%, rgba(14, 22, 34, 0.7) 50%, rgba(14, 22, 34, 0.35) 100%); }
  .hero-inner { padding-top: 3.5rem; padding-bottom: 6.5rem; }
  .hero-actions .btn { width: 100%; }
  .hero-find { width: 100%; flex-wrap: wrap; border-radius: 18px; padding: 0.4rem; }
  .hero-find > .icon { top: calc(0.4rem + 22px); }
  .hero-find input { flex: 1; width: auto; }
  .hero-find .btn { width: 100%; }
  .film-chip { width: 100%; }
  .stats-wrap { margin-top: -4rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .stat { padding-left: 0.8rem; }
  .container { min-height: 92px; padding: 0.8rem 4.5rem 0.8rem 1.1rem; }
  .container::before { width: 44px; right: 10px; }
  .container-blue { margin-left: 4%; margin-right: 0; }
  .container-gold { margin-left: 8%; margin-right: 2%; }
  .does-grid, .news-grid, .sector-cards, .card-row, .check-list-2 { grid-template-columns: 1fr; }
  .does-grid { gap: 0.7rem; }
  .does-card { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; padding: 1.2rem 1.1rem; }
  .does-card .icon { grid-row: span 2; margin: 0; width: 36px; height: 36px; padding: 8px; }
  .does-card h3 { align-self: end; }
  .yard-item { width: 128px; }
  .player { border-radius: 12px; }
  .player-ring { width: 64px; height: 64px; }
  .player-ring .icon { width: 26px; height: 26px; }
  .player-text { font-size: 1.5rem; }
  .player-text small { font-size: 0.75rem; }
  .fan { height: 300px; }
  .fan-page { width: 170px; }
  .event { grid-template-columns: 64px 1fr; padding: 1rem; gap: 0.9rem; }
  .event-date { height: 72px; }
  .event-day { font-size: 1.9rem; }
  .finder { position: static; padding: 0.7rem; }
  .finder-fields, .js .finder-fields { grid-template-columns: 1fr; }
  .chip-clear { margin-left: 0; }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .member-card a { padding: 0.55rem 0.55rem 0.7rem; }
  .member-name { font-size: 0.88rem; }
  .member-city { font-size: 0.76rem; }
  .member-city .icon { display: none; }
  .profile-head-grid { grid-template-columns: 1fr; }
  .profile-logo { max-width: 260px; }
  .resource-year { grid-template-columns: 1fr; gap: 0.6rem; }
  .resource-year-title { position: static; font-size: 2rem; }
  .resource-list a { grid-template-columns: auto 1fr; }
  .resource-gate { grid-column: 2; }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav-next { grid-column: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .fee { font-size: 2.8rem; }
  .fee span { display: block; margin: 0.4rem 0 0; }
  .band-join-inner .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js [data-reveal], .js [data-reveal="stack"] .container { opacity: 1 !important; transform: none; }
  .js [data-reveal="fan"] .fan-page:not(.fan-cover) { transform: translate(-50%, -50%) rotate(var(--r)) translateX(var(--x)); }
  .yard-row { overflow-x: auto; }
  .yard-track { animation: none !important; }
}

/* ---------- Forms (join, contact, members' area) ---------- */
.form { display: grid; gap: 1.2rem; }
.form-card { padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.form-wide { grid-column: 1 / -1; }
.form-section { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-top: 0.6rem; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.form-field > label, .form-field legend { font-weight: 700; font-size: 0.9rem; }
.form-field .opt { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.form-field .req { color: var(--red-ink); }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="url"], .form-field input[type="password"],
.form-field input[type="tel"], .form-field input[type="number"], .form-field select, .form-field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: 500 1rem/1.4 var(--text); color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(0, 159, 70, 0.12); }
.form-field input[type="color"] { width: 64px; height: 44px; padding: 3px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; }
.form-field input[type="file"] { font: inherit; font-size: 0.9rem; }
.form-field fieldset { border: 0; margin: 0; padding: 0; }
.form-field legend { margin-bottom: 0.5rem; padding: 0; }
.form-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.form-chips .chip span::before { display: none; }
.form-chips .chip input:checked + span::before { display: block; content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-1px); background: none; border-radius: 0; }
.form-check { display: flex; align-items: flex-start; gap: 0.7rem; font-weight: 600; cursor: pointer; }
.form-check input { width: 20px; height: 20px; margin-top: 0.15em; accent-color: var(--green-ink); flex: none; }
.form-help { margin: 0; font-size: 0.82rem; color: var(--muted); }
.form-error { margin: 0; font-size: 0.85rem; font-weight: 700; color: var(--red-ink); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--red) !important; background: #fff; }
.form-alert { padding: 0.9rem 1.1rem; border-radius: 12px; background: #fde8e9; color: var(--red-ink); font-weight: 600; }
.form-alert p { margin: 0; }
.form .btn { justify-self: start; }
.form .btn-block { justify-self: stretch; }
.form .fine { margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notes { padding-top: 1.2rem; }
.note { margin: 0 0 0.6rem; padding: 0.85rem 1.1rem; border-radius: 12px; font-weight: 600; background: #e5f3fb; color: var(--blue-ink); }
.note-success { background: #e3f4ea; color: var(--green-ink); }
.note-warning, .note-error { background: #fde8e9; color: var(--red-ink); }

.apply { scroll-margin-top: calc(var(--header-h) + 16px); }
.apply .display { font-size: clamp(2.1rem, 3.4vw, 2.7rem); margin-bottom: 0.6rem; }
.apply > .muted { margin-bottom: 1.2rem; }
.apply .muted a { color: var(--green-ink); }

.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); padding-top: 3rem; padding-bottom: 4.5rem; align-items: start; }
.contact-side { display: grid; gap: 1rem; }

.contact-member { margin-top: 2.5rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.contact-member details { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.contact-member summary { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; list-style: none; }
.contact-member summary::-webkit-details-marker { display: none; }
.contact-member summary > span:first-child { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e3f4ea; color: var(--green-ink); flex: none; }
.contact-member summary strong { display: block; font-size: 1.05rem; }
.contact-member summary small { display: block; color: var(--muted); font-size: 0.86rem; }
.contact-member details[open] summary { border-bottom: 1px solid var(--line); }
.contact-member .form { padding: 1.4rem; }
.profile-side .btn-outline { margin-bottom: 1rem; }

.auth-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: clamp(1.5rem, 5vw, 4rem); padding-top: 3rem; padding-bottom: 4.5rem; align-items: start; }
.auth-card .btn-block { margin-top: 0.3rem; }
.auth-card .fine a { color: var(--green-ink); font-weight: 700; }
.auth-side { padding: 1.6rem; border-radius: var(--radius); background: var(--mist); }
.auth-side h2 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.auth-side .box { max-width: 280px; margin: 0.6rem 0 1rem; }

.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.account-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.1rem; padding-top: 2.5rem; padding-bottom: 4.5rem; align-items: start; }
.account-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; gap: 1rem; }
.account-card h2 { font-size: 1.3rem; }
.account-card p { margin: 0; }
.account-company { display: grid; grid-template-columns: 170px 1fr; gap: 1.2rem; align-items: center; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.mini-list a { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.5rem 0; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.92rem; line-height: 1.35; }
.mini-list a:hover { color: var(--green-ink); }
.mini-list .icon { color: var(--muted); margin-top: 0.1em; }
.mini-list small { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; }

.member-callout { display: flex; align-items: flex-start; gap: 0.9rem; padding: 1rem 1.2rem; margin-bottom: 1.4rem; border-radius: 14px; background: #fdf2dc; color: var(--ink); }
.member-callout .icon { color: var(--gold-ink); margin-top: 0.2em; }
.member-callout p { margin: 0; }
.member-callout a { color: var(--green-ink); font-weight: 700; }
.resource-open { color: var(--green-ink); }

.thanks-box { background-color: var(--green); }
.thanks-box .icon { width: 64px; height: 64px; stroke-width: 2.4; }

@media (max-width: 920px) {
  .contact-grid, .auth-grid, .account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .account-company { grid-template-columns: 120px 1fr; }
  .form .btn { justify-self: stretch; }
}

/* Membership fee choice and renewals */
.fee-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.fee-option { position: relative; cursor: pointer; }
.fee-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fee-option span { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.9rem 1rem; border: 2px solid var(--line-strong); border-radius: 14px; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.fee-option strong { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1; padding-top: 0.1em; }
.fee-option small { color: var(--muted); font-size: 0.82rem; }
.fee-option:hover span { border-color: var(--ink); }
.fee-option input:checked + span { border-color: var(--green-ink); background: #f1faf4; box-shadow: 0 0 0 4px rgba(0, 159, 70, 0.12); }
.fee-option input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.member-callout > div { display: grid; gap: 0.6rem; }
.member-callout form { margin: 0; }
.renew-box { padding: 1rem 1.1rem; border-radius: 12px; background: #fdf2dc; display: grid; gap: 0.7rem; }
.renew-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; }
.paid-list summary { cursor: pointer; font-weight: 700; font-size: 0.9rem; color: var(--muted); }
.paid-list ul { margin: 0.5rem 0 0; padding-left: 1.1rem; font-size: 0.9rem; }
.thanks .actions { margin: 1rem 0; }
@media (max-width: 640px) { .fee-options { grid-template-columns: 1fr; } }

/* Without JavaScript: the film keeps its own controls, and the menu stays visible on phones. */
.no-js .player-play { display: none; }
@media (max-width: 920px) {
  .no-js .nav-toggle { display: none; }
  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .no-js .site-nav {
    position: static; opacity: 1; visibility: visible; transform: none; width: 100%;
    flex-direction: row; flex-wrap: wrap; gap: 0.2rem 0.4rem; padding: 0.4rem 0 0; overflow: visible; background: none;
  }
  .no-js .site-nav > a { font-family: var(--text); font-size: 0.9rem; padding: 0.35rem 0.4rem; border: 0; }
  .no-js .nav-actions { flex-direction: row; margin: 0; }
  .no-js .nav-actions .btn { min-height: 36px; }
}
.quote-note { margin: -0.4rem 0 0.2rem; color: var(--muted); font-size: 0.92rem; }
.cta-note { color: rgba(255, 255, 255, 0.75); margin: -0.8rem 0 1.4rem; font-size: 0.95rem; }

/* ---------- Directory map ----------
   Drawn by static/map/directory-map.js from Natural Earth outlines served by
   this site: no map provider, nothing loaded from anyone else. Pins are the
   brand's own shape, a container in the member type's colour. */
/* The finder scrolls away with the page here: stuck over the map, it hid the map's own controls. */
.directory .finder { position: relative; top: auto; }
.stage { display: grid; grid-template-areas: "map" "list"; gap: 1.6rem; }
.stage > .map-card { grid-area: map; }
.stage > .stage-list { grid-area: list; min-width: 0; }
.directory.is-near .stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: "list map"; align-items: start; }
.directory.is-near .map-card { position: sticky; top: calc(var(--header-h) + 16px); }

.map-card { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #dfe9f2; }
.map-card::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 4px; background: var(--edge); pointer-events: none; }
.dmap { position: relative; height: clamp(380px, 60vh, 620px); user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.directory.is-near .dmap { height: calc(100vh - var(--header-h) - 40px); min-height: 460px; max-height: 820px; }
.dmap-canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.dmap.is-dragging .dmap-canvas { cursor: grabbing; }
.dmap-canvas:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.dmap-noscript { padding: 2rem; color: var(--muted); }

.dmap-grid path { fill: none; stroke: rgba(29, 111, 165, 0.09); stroke-width: 0.7; }
.dmap-coast path { fill: none; stroke: rgba(29, 111, 165, 0.12); stroke-width: 5; stroke-linejoin: round; }
.dmap-land path { fill: #fcfbf8; stroke: rgba(60, 60, 59, 0.3); stroke-width: 0.7; stroke-linejoin: round; }
.dmap:not(.show-detail) .dmap-detail, .dmap:not(.show-context) .dmap-context { display: none; }
.dmap-urban path { fill: #eeebe4; stroke: rgba(60, 60, 59, 0.06); stroke-width: 0.6; }
.dmap-lakes path { fill: #dce9f3; stroke: rgba(29, 111, 165, 0.22); stroke-width: 0.6; }
.dmap-rivers path { fill: none; stroke: #b5d0e4; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.dmap.show-detail.has-detail-loaded .has-detail { display: none; }

.dmap-place { font: 600 11px var(--text); fill: #73777c; stroke: rgba(252, 251, 248, 0.92); stroke-width: 3.2px; stroke-linejoin: round; paint-order: stroke; letter-spacing: 0.01em; }
.dmap-place.r1 { font-size: 12px; font-weight: 700; fill: #55595e; }
.dmap-place-dot { fill: #a3a8ad; stroke: #fff; stroke-width: 1; }

.dmap-pin { cursor: pointer; outline: none; }
.dmap-pin-body { transition: transform 0.18s var(--ease); }
.dmap-pin:hover .dmap-pin-body, .dmap-pin:focus-visible .dmap-pin-body, .dmap-pin.is-focus .dmap-pin-body, .dmap-pin.is-selected .dmap-pin-body { transform: scale(1.22); }
.dmap-shadow { fill: rgba(20, 22, 24, 0.2); }
.dmap-box { stroke: #fff; stroke-width: 1.7; }
.dmap-ribs { stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.1; stroke-linecap: round; fill: none; }
.dmap-pin.is-focus .dmap-box, .dmap-pin.is-selected .dmap-box, .dmap-pin:focus-visible .dmap-box { stroke: var(--ink-900); stroke-width: 2; }
.dmap-sponsor-ring { fill: rgba(230, 168, 27, 0.16); stroke: var(--gold); stroke-width: 2; }
.dmap-badge { fill: var(--ink-900); stroke: #fff; stroke-width: 1.5; }
.dmap-badge-text { font: 700 9px var(--text); fill: #fff; text-anchor: middle; pointer-events: none; }
.dmap-cluster-halo { fill: rgba(255, 255, 255, 0.5); }
.dmap-cluster { fill: #fff; filter: drop-shadow(0 2px 3px rgba(20, 22, 24, 0.22)); }
.dmap-ring { fill: none; stroke-width: 4.2; }
.dmap-count { font: 800 12.5px var(--text); fill: var(--ink-900); text-anchor: middle; pointer-events: none; }
.dmap-pin.is-focus .dmap-cluster, .dmap-pin.is-selected .dmap-cluster, .dmap-pin:focus-visible .dmap-cluster { fill: var(--ink-900); }
.dmap-pin.is-focus .dmap-count, .dmap-pin.is-selected .dmap-count, .dmap-pin:focus-visible .dmap-count { fill: #fff; }

.dmap-origin-dot { fill: var(--ink-900); stroke: #fff; stroke-width: 2.5; }
.dmap-origin-halo { fill: rgba(31, 32, 31, 0.14); }
.dmap-origin-pulse { fill: none; stroke: var(--ink-900); stroke-width: 2; transform-origin: 0 0; animation: dmap-pulse 2.2s ease-out infinite; }
.dmap-origin-label { font: 800 12.5px var(--text); fill: var(--ink-900); stroke: rgba(255, 255, 255, 0.95); stroke-width: 4px; paint-order: stroke; stroke-linejoin: round; }
@keyframes dmap-pulse { from { transform: scale(0.8); opacity: 0.6; } to { transform: scale(3.2); opacity: 0; } }

.dmap-chrome > * { position: absolute; z-index: 2; }
.dmap-views { top: 16px; left: 14px; display: flex; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow-sm), 0 0 0 1px rgba(20, 22, 24, 0.08); }
.dmap-views button { border: 0; background: none; font: 700 0.8rem var(--text); color: var(--ink); padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; }
.dmap-views button:hover { background: var(--mist); }
.dmap-views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.dmap-zoom { top: 16px; right: 14px; display: grid; gap: 6px; }
.dmap-zoom button { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, 0.95); color: var(--ink); font: 600 1.25rem/1 var(--text); cursor: pointer; box-shadow: var(--shadow-sm), 0 0 0 1px rgba(20, 22, 24, 0.08); }
.dmap-zoom button:hover { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm), 0 0 0 1.5px var(--ink); }
.dmap-status { left: 14px; bottom: 12px; margin: 0; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.88); font-size: 0.78rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.dmap-status:empty { display: none; }
@media (max-width: 640px) { .dmap.has-away .dmap-status { display: none; } }
.dmap-hint { left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 0.6rem 1rem; border-radius: 999px; background: rgba(31, 32, 31, 0.84); color: #fff; font-size: 0.88rem; font-weight: 600; pointer-events: none; white-space: nowrap; }
.dmap-away { right: 14px; bottom: 12px; border: 0; border-radius: 999px; padding: 0.5rem 1rem; background: var(--ink-900); color: #fff; font: 700 0.82rem var(--text); cursor: pointer; box-shadow: var(--shadow); white-space: nowrap; }
.dmap.is-failed .dmap-canvas, .dmap.is-failed .dmap-views, .dmap.is-failed .dmap-zoom { display: none; }
.dmap.is-failed .dmap-status { position: static; display: block; margin: 2rem; }

/* The card for a pin */
.dmap-card {
  position: absolute; z-index: 4; width: 320px; padding: 1rem 1.05rem 1.05rem;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20, 22, 24, 0.06);
  font-size: 0.9rem; line-height: 1.45;
}
.dmap-card::after { content: ""; position: absolute; left: var(--arrow, 50%); bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: #fff; transform: rotate(45deg); box-shadow: 3px 3px 4px -2px rgba(20, 22, 24, 0.12); }
.dmap-card.is-below::after { bottom: auto; top: -7px; box-shadow: -2px -2px 3px -2px rgba(20, 22, 24, 0.12); }
.dmap-card.is-sheet { left: 10px !important; right: 10px; bottom: 10px; top: auto !important; width: auto; max-height: 72%; overflow: auto; }
.dmap-card.is-sheet::after { display: none; }
.dmap-card-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dmap-card-close:hover { background: var(--mist); color: var(--ink); }
.dmap-card-back { border: 0; background: none; padding: 0; margin: 0 0 0.6rem; font: 700 0.8rem var(--text); color: var(--muted); cursor: pointer; }
.dmap-card-back:hover { color: var(--ink); }
.dmap-card-head { display: grid; grid-template-columns: 92px 1fr; gap: 0.85rem; align-items: center; padding-right: 1.4rem; }
.dmap-card h3 { font-size: 1.02rem; line-height: 1.25; margin: 0.15rem 0 0.25rem; }
.dmap-card h3 a { text-decoration: none; }
.dmap-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dmap-card-kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); }
.dmap-card-types { display: flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.78rem; color: var(--muted); }
.dmap-card-where { margin: 0.75rem 0 0; color: var(--ink); }
.dmap-card-where + .dmap-card-where { margin-top: 0.15rem; }
.dmap-approx, .approx { display: inline-block; font-style: normal; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); background: var(--mist); border-radius: 4px; padding: 0 0.4rem; vertical-align: 1px; }
.dmap-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin-top: 0.85rem; }
.dmap-card-actions .btn { min-height: 36px; padding: 0.35rem 0.95rem; }
.dmap-card-link { font-weight: 700; font-size: 0.85rem; text-underline-offset: 3px; }
.dmap-card-list { list-style: none; padding: 0; margin: 0.5rem 0 0; max-height: 300px; overflow: auto; }
.dmap-card-list button { display: grid; grid-template-columns: 64px 1fr; gap: 0.7rem; align-items: center; width: 100%; padding: 0.45rem 0.35rem; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dmap-card-list button:hover, .dmap-card-list button:focus-visible { background: var(--mist); }
.dmap-card-list strong { display: block; font-size: 0.88rem; line-height: 1.25; }
.dmap-card-list small { color: var(--muted); font-size: 0.76rem; }
.box-xs { width: 100%; padding: 8% 6%; }
.box-xs .plate-initials { font-size: 1rem; }
.box-sm .plate-initials { font-size: 1.3rem; }

.sponsor-tag { display: inline-block; padding: 0.05rem 0.4rem; border-radius: 4px; background: #fdf3d9; border: 1px solid #efd38b; color: #7a5600; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; vertical-align: 1px; }

/* Directory partner */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0.8rem; margin: 0 0 1rem; }
.partner { display: grid; grid-template-columns: 116px 1fr auto; gap: 1rem; align-items: center; padding: 0.75rem 1.1rem 0.75rem 0.8rem; border: 1px solid #f0dfb2; border-radius: 16px; background: linear-gradient(100deg, #fff9ea, #fff 70%); text-decoration: none; transition: box-shadow 0.25s, transform 0.25s var(--ease); }
.partner:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-text { display: grid; gap: 0.1rem; min-width: 0; }
.partner-kicker { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.partner-text strong { font-size: 1.05rem; line-height: 1.25; }
.partner-text small { color: var(--muted); font-size: 0.86rem; }
.partner-arrow { color: var(--gold-ink); }

/* "Use my location" */
.field-near input { padding-right: 3rem; }
.locate-me { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.locate-me:hover { background: #fff; color: var(--ink); }
.locate-me.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.locate-me .icon { position: static; transform: none; }

/* Nearest members */
.near[aria-busy="true"], .directory.is-loading .near { opacity: 0.55; transition: opacity 0.2s; }
.near-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.near-head .eyebrow { margin-bottom: 0.2rem; }
.near-title { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1; padding-top: 0.08em; }
.near-clear { display: inline-flex; align-items: center; gap: 0.3rem; flex: none; padding: 0.4rem 0.8rem; border: 1.5px solid var(--line-strong); border-radius: 999px; font-size: 0.84rem; font-weight: 700; text-decoration: none; }
.near-clear:hover { border-color: var(--ink); }
.near-clear .icon { width: 0.95rem; height: 0.95rem; }
.near-list { list-style: none; padding: 0; margin: 0; }
.near-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 0.85rem 0.7rem; border-bottom: 1px solid var(--line); border-radius: 12px; transition: background 0.2s; }
.near-row:hover, .near-row.is-focus { background: var(--mist); }
.near-row.is-picked { background: #eef6fb; box-shadow: inset 3px 0 0 var(--blue-box); }
.near-logo { display: block; }
.near-name { font-size: 1.02rem; line-height: 1.3; margin: 0; }
.near-name a { text-decoration: none; }
.near-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.near-where { display: flex; gap: 0.3rem; margin: 0.2rem 0 0; font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
.near-where .icon { width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; }
.near-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted); }
.near-extra a { font-weight: 700; color: var(--ink); text-underline-offset: 3px; }
.near-dist { margin: 0; text-align: right; line-height: 1; }
.near-dist strong { display: block; font-family: var(--display); font-weight: 600; font-size: 2rem; color: var(--ink-900); }
.near-dist span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.near-featured { margin-bottom: 0.9rem; padding: 0.25rem 0.4rem; border: 1px solid #f0dfb2; border-radius: 16px; background: linear-gradient(100deg, #fff9ea, #fffdf8 70%); }
.near-featured .near-row { border-bottom: 0; }
.near-featured .near-row:hover { background: rgba(255, 255, 255, 0.7); }
.near-sponsor { margin: 0 0 0.2rem; font-size: 0.8rem; color: var(--gold-ink); font-weight: 600; }
.near-more { margin-top: 1rem; }
.near-fine { margin: 1rem 0 0; }
.near-problem { display: flex; gap: 0.5rem; align-items: center; margin: 0 0 1.2rem; padding: 0.8rem 1rem; border-radius: 12px; background: #fff4f4; border: 1px solid #f5c6c9; color: var(--red-ink); font-weight: 600; }

.accredited-note { display: flex; gap: 0.6rem; align-items: flex-start; max-width: 62rem; margin: 2rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); }
.accredited-note .icon { color: var(--green-ink); margin-top: 0.1rem; }
.accredited-note a { color: var(--ink); text-underline-offset: 3px; }

/* A member's own sites, on its profile */
.profile-where { margin-top: 2.4rem; }
.profile-where-title { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.8rem; }
.dmap-mini { height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: #dfe9f2; }
.site-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.6rem; }
.site-list-many { max-height: 26rem; overflow: auto; }
.site-list li { display: grid; gap: 0.15rem; padding: 0.8rem 0.95rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.88rem; }
.site-list span { color: var(--muted); }
.site-links { display: flex; flex-wrap: wrap; gap: 0.2rem 0.8rem; margin-top: 0.25rem; }
.site-links a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

@media (max-width: 920px) {
  .directory.is-near .stage { grid-template-columns: 1fr; grid-template-areas: "map" "list"; }
  .directory.is-near .map-card { position: relative; top: auto; }
  .directory.is-near .dmap, .dmap { height: min(56vh, 440px); min-height: 320px; }
  .finder-fields { grid-template-columns: 1fr; }
  .finder-submit { width: 100%; }
}
@media (max-width: 640px) {
  .dmap-views button { padding: 0.35rem 0.6rem; font-size: 0.74rem; }
  .dmap-zoom button { width: 34px; height: 34px; }
  .near-row { grid-template-columns: 74px minmax(0, 1fr) auto; gap: 0.7rem; padding: 0.75rem 0.3rem; }
  .near-dist strong { font-size: 1.6rem; }
  .partner { grid-template-columns: 86px 1fr; }
  .partner-arrow { display: none; }
  .dmap-mini { height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
  .dmap-pin-body, .partner { transition: none; }
}

/* Members' area: your sites */
.sites-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3rem); padding-top: 3rem; padding-bottom: 4.5rem; align-items: start; }
.sites-side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 0.8rem; }
.sites-side .eyebrow { margin: 0; }
.sites-side .dmap-mini { height: 280px; }
.my-sites { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.my-site { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.my-site > div:first-child { display: grid; gap: 0.1rem; min-width: 0; }
.my-site span { color: var(--muted); font-size: 0.92rem; }
.my-site small { color: var(--green-ink); font-weight: 700; font-size: 0.78rem; }
.my-site.is-hidden small { color: var(--muted); }
.my-site-actions { display: flex; align-items: center; gap: 0.8rem; flex: none; }
.btn-link { border: 0; background: none; padding: 0; font: 700 0.85rem var(--text); color: var(--red-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.form-card-title { font-size: 1.25rem; margin-bottom: 1rem; }
@media (max-width: 920px) {
  .sites-grid { grid-template-columns: 1fr; }
  .sites-side { position: static; }
}

/* Onboarding: pay by card or invoice, the Code of Conduct declaration, the setup checklist. */
.invoice-details { margin: 0.4rem 0 0.2rem; border: 1px solid var(--line); border-radius: 14px; padding: 0.2rem 1rem; }
.invoice-details summary { cursor: pointer; padding: 0.7rem 0; font-weight: 600; color: var(--ink); }
.invoice-details[open] summary { margin-bottom: 0.6rem; }
.invoice-details .form-grid { padding-bottom: 1rem; }
.pay-choice { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.form-check a { color: var(--green-ink); }

.account-wide { grid-column: 1 / -1; }
.setup-card { grid-template-columns: minmax(180px, 0.6fr) 2fr; align-items: center; background: #f1faf4; border-color: #cfe9d8; }
.setup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.6rem; }
.setup-list a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.3; height: 100%; }
.setup-list a:hover { border-color: var(--green-ink); }
.setup-list a > .icon { margin-left: auto; color: var(--green-ink); flex: none; }
.setup-tick { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); color: #fff; }
.setup-tick .icon { width: 14px; height: 14px; }
.setup-list .is-done a { color: var(--muted); }
.setup-list .is-done .setup-tick { background: var(--green-ink); border-color: var(--green-ink); }
.renew-form { display: grid; gap: 0.7rem; }
.renew-form .form-check { font-weight: 500; font-size: 0.92rem; }
.renew-currency { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.renew-currency .chip span::before { display: none; }

.code-text ol { list-style-type: lower-alpha; }
.code-sign { margin: 2rem 0 1rem; padding: 1rem 1.2rem; border-radius: 14px; background: var(--mist); }
.code-sign p { margin: 0; }
.code-declaration { padding-top: 2.5rem; padding-bottom: 4.5rem; display: grid; gap: 1.4rem; }
.declaration-sheet { border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; background: #fff; }
.declaration-sheet header { display: grid; gap: 0.4rem; margin-bottom: 1.2rem; }
.declaration-sheet h2 { font-size: 1.4rem; }
.declaration-logo { height: 36px; width: auto; margin-bottom: 0.6rem; }
.declaration-block { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 2px solid var(--ink); display: grid; gap: 0.5rem; }
.declaration-block p { margin: 0 0 0.4rem; font-weight: 700; }
.declaration-block div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); }
.declaration-block dt { font-weight: 700; }
.declaration-block dd { margin: 0; min-height: 1.4em; }
@media (max-width: 900px) {
  .setup-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .declaration-sheet { padding: 1.2rem; }
  .declaration-block div { grid-template-columns: 1fr; gap: 0.1rem; }
  .pay-choice .btn { width: 100%; justify-content: center; }
}
@media print {
  .site-header, .site-footer, .no-print, .messages, header[data-header], footer { display: none !important; }
  body:has(.declaration-sheet) .page-head { display: none !important; }
  .declaration-sheet { border: 0; padding: 0; }
  .code-declaration { padding: 0; }
}
.setup-list .is-extra .setup-tick { border-color: transparent; color: var(--muted); }

/* "CSTA news by email" in the footer: adds to the CSTA list on Mailchimp. */
.footer-signup { margin-top: 1.6rem; display: grid; gap: 0.45rem; max-width: 22rem; }
.footer-signup label { font-weight: 700; font-size: 0.9rem; color: #fff; }
.footer-signup-row { display: flex; gap: 0.5rem; }
.footer-signup input[type="email"] { flex: 1; min-width: 0; padding: 0.55rem 0.8rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 0.9rem; }
.footer-signup input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.footer-signup input[type="email"]:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.footer-signup p { margin: 0; font-size: 0.8rem !important; opacity: 0.75; }
.btn-outline-light { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--ink); }

/* Cookie choice for analytics. */
.consent { position: fixed; z-index: 60; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin-left: auto; display: grid; gap: 0.7rem; padding: 1rem 1.2rem; border-radius: 16px; background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.35); }
.consent p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
.consent a { color: var(--green-ink); font-weight: 700; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
@media print { .consent { display: none !important; } }

/* Questions people ask, under the directory. */
.faq { margin: 2.5rem 0 0; display: grid; gap: 0.6rem; max-width: 52rem; }
.faq h2 { font-size: 2rem; margin-bottom: 0.4rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 0.9rem 0; font-weight: 700; }
.faq details p { margin: 0 0 1rem; color: var(--muted); line-height: 1.6; }

/* Regional directories and aggregate usage reports. */
.area-links { margin: 2.5rem 0; }
.area-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .8rem; }
.area-grid a { display: grid; gap: .5rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
.area-grid a:hover { border-color: var(--green-ink); }
.area-grid span { font-size: .9rem; color: var(--muted); }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.usage-totals { display: flex; gap: 2rem; flex-wrap: wrap; }
.usage-totals strong { display: block; font-size: 2.5rem; }
.usage-table { overflow-x: auto; }
.usage-table table { border-collapse: collapse; width: 100%; }
.usage-table th, .usage-table td { padding: .6rem; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
@media (max-width: 700px) { .usage-grid { grid-template-columns: 1fr; } }
.profile-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding-top: 2rem; padding-bottom: 4rem; }
.profile-guide-intro { border-radius: 20px; padding: 2rem; background: var(--ink); color: #fff; }
.profile-guide-intro h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.profile-guide-intro p { line-height: 1.6; }
.profile-guide-intro .eyebrow { color: #b5e5ca; }
.profile-guide-icon { display: inline-flex; padding: .8rem; border-radius: 50%; background: #ffffff15; margin-bottom: 1rem; }
.profile-guide-icon svg { width: 2rem; height: 2rem; }
.profile-guide-details { align-self: center; }
.profile-guide-details h3 { margin: 1.2rem 0 .5rem; }
.profile-guide-details p { color: var(--muted); line-height: 1.7; }
@media (max-width: 700px) { .profile-guide { grid-template-columns: 1fr; gap: 1rem; } }
.area-guide { margin-top: 2rem; }
