/* Dream Big Sports Club - design prototype
   Target: WCAG 2.2 Level AAA. Text contrast 7:1 or better, 44px targets,
   visible focus, resizable text to 200%+, no horizontal scroll at 320px. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }

/* Palette taken from the Dream Big Sports Club logo: navy, sky blue, orange */
:root {
  --sky: #2aaae2;
  --ink: #111111;
  --paper: #ffffff;
  --cream: #eef5fb;
  --soft: #3b3b3b;
  --brand: #27236a;
  --brand-deep: #181550;
  --accent: #ff8a4c;
  --link: #0a3f9e;
  --visited: #4b1c7a;
  --line: #111111;
  --focus-in: #111111;
  --focus-out: #ff8a4c;
  --font: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --measure: 66ch;
  --radius: 6px;
}

/* User-selectable themes and sizes (set by the accessibility panel) */
html[data-contrast="high"] {
  --paper: #000000; --cream: #000000; --ink: #ffffff; --soft: #ffffff;
  --brand: #000000; --brand-deep: #000000; --accent: #ffe14d; --link: #9fd0ff;
  --visited: #e3b8ff; --line: #ffffff; --focus-in: #ffffff; --focus-out: #ffe14d;
}
html[data-size="large"] { font-size: 125%; }
html[data-size="xlarge"] { font-size: 150%; }
html[data-spacing="wide"] body { letter-spacing: 0.06em; word-spacing: 0.16em; line-height: 1.9; }
html[data-spacing="wide"] p, html[data-spacing="wide"] li { line-height: 1.9; }

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 1rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.25rem/1.6 var(--font);
  text-align: left; overflow-wrap: break-word;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html[data-motion="reduce"] { scroll-behavior: auto !important; }
html[data-motion="reduce"] * { transition: none !important; animation: none !important; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p, ul, ol, dl, table, figure { margin: 0 0 1.5rem; }
ul, ol { padding-left: 1.5rem; }
li { margin-bottom: 0.5rem; }
.prose { max-width: var(--measure); }
.lead { font-size: 1.5rem; line-height: 1.5; max-width: 56ch; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; margin: 0 0 0.75rem; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }

/* Links: always underlined, never colour alone */
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 4px; }

/* Focus: two rings (dark + gold) so it is visible on every background */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus-in); outline-offset: 0;
  box-shadow: 0 0 0 6px var(--focus-out); border-radius: 2px;
}
main:focus { outline: none; box-shadow: none; }

/* Skip links */
.skip { position: absolute; left: 0.5rem; top: -6rem; z-index: 100; background: var(--accent); color: var(--ink);
  padding: 0.9rem 1.25rem; font-weight: 700; border: 3px solid var(--ink); }
.skip:focus { top: 0.5rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: min(100% - 2rem, 76rem); margin-inline: auto; }

/* Buttons (all at least 44px tall) */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.25rem; min-width: 3.25rem; padding: 0.6rem 1.5rem; font: 700 1.125rem/1.3 var(--font);
  border: 3px solid var(--ink); border-radius: var(--radius); text-decoration: none; cursor: pointer;
  background: var(--accent); color: var(--ink); text-align: center; }
.btn:visited { color: var(--ink); }
.btn:hover { background: var(--ink); color: var(--accent); }
.btn--brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn--brand:visited { color: #fff; }
.btn--brand:hover { background: #fff; color: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.on-dark .btn { border-color: #fff; }
.on-dark .btn--ghost { color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--brand-deep); }
html[data-contrast="high"] .btn--brand { border-color: #fff; color: #fff; background: #000; }
html[data-contrast="high"] .btn { border-color: #fff; }
html[data-contrast="high"] .btn:hover, html[data-contrast="high"] .btn--brand:hover { background: #fff; color: #000; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Utility bar */
.utility { background: var(--brand-deep); color: #fff; font-size: 1rem; }
.utility .container { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; align-items: center; justify-content: space-between; padding-block: 0.25rem; }
.utility a { color: #fff; display: inline-flex; align-items: center; min-height: 2.75rem; }
.utility a:visited { color: #fff; }
.utility ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: 0; padding: 0; }
.utility li { margin: 0; }
.utility .a11y-toggle { background: transparent; color: #fff; border: 2px solid #fff; border-radius: var(--radius);
  min-height: 2.75rem; padding: 0.25rem 1rem; font: 700 1rem var(--font); cursor: pointer; }
.utility .a11y-toggle:hover, .utility .a11y-toggle[aria-expanded="true"] { background: #fff; color: var(--brand-deep); }
html[data-contrast="high"] .utility { border-bottom: 2px solid #fff; }

/* Accessibility panel */
.a11y-panel { background: var(--cream); color: var(--ink); border-bottom: 4px solid var(--ink); }
.a11y-panel[hidden] { display: none; }
.a11y-panel .container { padding-block: 1.5rem; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.a11y-panel h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.a11y-panel .group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.a11y-panel button { min-height: 2.75rem; min-width: 2.75rem; padding: 0.4rem 1rem; font: 700 1.0625rem var(--font);
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.a11y-panel .note { font-size: 1rem; margin: 0.5rem 0 0; }

/* Header and navigation */
.site-header { background: var(--paper); border-bottom: 6px solid var(--brand); }
html[data-contrast="high"] .site-header { border-bottom-color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.75rem; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--ink); text-decoration: none; min-height: 3.25rem; }
.brand:visited { color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand img { flex: none; width: 5.5rem; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--brand); }
html[data-contrast="high"] .brand-name { color: #fff; }
.brand-sub { font-size: 0.95rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

button.menu-toggle { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem; }
.nav-list > li { margin: 0; position: relative; }
.nav-list a, .nav-list button.sub-toggle { display: flex; align-items: center; gap: 0.4rem; min-height: 3.25rem; padding: 0.5rem 0.9rem;
  font: 700 1.125rem/1.2 var(--font); color: var(--ink); background: transparent; border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; }
.nav-list a:visited { color: var(--ink); }
.nav-list a:hover, .nav-list button.sub-toggle:hover { background: var(--accent); color: var(--ink); }
.nav-list > li > a[aria-current="page"], .nav-list > .current-section > .sub-toggle { position: relative; border-radius: 0; }
.nav-list > li > a[aria-current="page"]::after, .nav-list > .current-section > .sub-toggle::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--brand); }
html[data-contrast="high"] .nav-list > li > a[aria-current="page"]::after, html[data-contrast="high"] .nav-list > .current-section > .sub-toggle::after { background: var(--accent); }
.nav-list a.nav-cta { background: var(--accent); border: 3px solid var(--ink); }
.nav-list a.nav-cta:hover { background: var(--ink); color: var(--accent); }
html[data-contrast="high"] .nav-list a.nav-cta { border-color: #fff; }
.chev { width: 0.8rem; height: 0.8rem; flex: none; transition: transform 0.15s; }
.sub-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sub-list { list-style: none; margin: 0; padding: 0.5rem; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius);
  min-width: 17rem; position: absolute; left: 0; top: 100%; z-index: 50; box-shadow: 6px 6px 0 var(--brand); }
.sub-list li { margin: 0; }
.sub-list a { width: 100%; }
.sub-list .sub-desc { display: block; font-weight: 400; font-size: 0.95rem; }
.sub-list a { flex-direction: column; align-items: flex-start; gap: 0; }
.nav-list li:last-child .sub-list, .nav-list li:nth-last-child(2) .sub-list { left: auto; right: 0; }
.js .sub-list[hidden] { display: none; }

@media (max-width: 62rem) {
  .js button.menu-toggle { display: inline-flex; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; border-top: 3px solid var(--ink); padding-top: 0.5rem; }
  .nav-list a, .nav-list button.sub-toggle { width: 100%; justify-content: space-between; }
  .sub-list { position: static; box-shadow: none; border-width: 0 0 0 6px; border-color: var(--brand); margin-left: 0.75rem; min-width: 0; }
  .nav-list a.nav-cta { justify-content: center; }
  .site-nav { width: 100%; }
}

/* Breadcrumbs */
.crumbs { background: var(--cream); border-bottom: 2px solid var(--ink); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 0.5rem; padding: 0.4rem 0; margin: 0; font-size: 1.0625rem; }
.crumbs li { margin: 0; display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; font-weight: 700; }
.crumbs a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Page hero */
.hero { background: var(--brand-deep); color: #fff; position: relative; overflow: hidden; }
.hero a { color: #fff; }
.hero a.btn { color: var(--ink); }
.hero a.btn:hover { color: var(--accent); }
.hero a.btn--ghost { color: #fff; }
.hero a.btn--ghost:hover { color: var(--brand-deep); }
.hero .container { position: relative; z-index: 2; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(5rem, 10vw, 8rem); }
.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 .hl { color: var(--accent); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); align-items: start; }
.hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(4rem, 9vw, 8rem); z-index: 1; display: block; }
.hero--page .container { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(4rem, 8vw, 6rem); }
.hero--page h1 { max-width: 22ch; }
html[data-contrast="high"] .hero { border-bottom: 4px solid #fff; }
html[data-contrast="high"] .hills { display: none; }

.next-card { background: var(--paper); color: var(--ink); border: 4px solid var(--accent); border-radius: var(--radius); padding: 1.5rem; }
.next-card h2 { font-size: 1.5rem; }
.next-card dl { margin: 0 0 1rem; }
.next-card dt { font-weight: 700; margin-top: 0.75rem; }
.next-card dd { margin: 0; }
.next-card a { color: var(--link); }
.next-card a:visited { color: var(--visited); }
html[data-contrast="high"] .next-card { border-color: #fff; }

/* Sections */
section.band { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.band--cream { background: var(--cream); }
.band--brand { background: var(--brand-deep); color: #fff; }
.band--brand a:not(.btn) { color: #fff; }
.band--brand a:not(.btn):visited { color: #fff; }
.band--brand .btn { color: var(--ink); }
.band--brand .btn:hover { color: var(--accent); }
.band--brand .btn--ghost { color: #fff; }
.band--brand .btn--ghost:hover { color: var(--brand-deep); }
.band--accent { background: var(--accent); color: var(--ink); }
.band--accent a:not(.btn) { color: var(--ink); }
.band--accent a:not(.btn):visited { color: var(--ink); }
.band--accent .btn { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.band--accent .btn:hover { background: var(--paper); color: var(--ink); }
html[data-contrast="high"] .band--accent { background: #000; color: #fff; border-block: 4px solid #fff; }
html[data-contrast="high"] .band--accent a:not(.btn) { color: #fff; }
html[data-contrast="high"] .band--brand { border-block: 2px solid #fff; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.75rem; }

/* Cards */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.card { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: 8px 8px 0 var(--brand); display: flex; flex-direction: column; }
html[data-contrast="high"] .card { box-shadow: 8px 8px 0 #fff; }
.band--cream .card { background: var(--paper); }
.card h3 { margin-bottom: 0.75rem; }
.card > :last-child { margin-bottom: 0; }
.card .btn-row { margin-top: auto; padding-top: 1.25rem; }
.card--link-stretch { position: relative; }
.card .art { width: 100%; height: auto; margin-bottom: 1rem; border: 3px solid var(--ink); border-radius: var(--radius); display: block; }
.card--soon { border-style: dashed; box-shadow: none; background: var(--cream); }
.icon { width: 3.5rem; height: 3.5rem; margin-bottom: 1rem; color: var(--brand); flex: none; }
html[data-contrast="high"] .icon { color: #fff; }
.tag { display: inline-block; align-self: flex-start; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 1rem; padding: 0.15rem 0.75rem; border-radius: 99px; margin-bottom: 0.75rem; }
.tag--accent { background: var(--accent); color: var(--ink); border: 2px solid var(--ink); }

/* Facts strip */
.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); margin: 0 0 2rem; }
.facts div { border: 3px solid currentColor; border-radius: var(--radius); padding: 1rem 1.25rem; }
.facts dt { font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1rem; }
.facts dd { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.2; }

/* Lists with structure */
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
.event-list li { margin: 0; }
.event { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: 1.5rem; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); padding: 1.25rem; }
.event .when { font-weight: 700; font-size: 1.5rem; line-height: 1.2; border-right: 4px solid var(--accent); padding-right: 1rem; }
.event .when small { display: block; font-size: 1rem; font-weight: 400; margin-top: 0.25rem; }
.event h3 { margin-bottom: 0.5rem; }
.event p:last-child { margin-bottom: 0; }
@media (max-width: 40rem) { .event { grid-template-columns: 1fr; } .event .when { border-right: 0; border-bottom: 4px solid var(--accent); padding: 0 0 0.75rem; } }
html[data-contrast="high"] .event .when { border-color: #fff; }

.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 2.25rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 1.25rem; height: 0.7rem; border-left: 5px solid currentColor; border-bottom: 5px solid currentColor; transform: rotate(-45deg) scale(0.9); }
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 4rem; margin: 0; min-height: 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 3rem; height: 3rem; display: grid; place-items: center;
  background: var(--accent); color: var(--ink); border: 3px solid var(--ink); border-radius: 50%; font-weight: 700; font-size: 1.5rem; }
.steps strong { display: block; font-size: 1.25rem; }
html[data-contrast="high"] .steps li::before { border-color: #fff; }

dl.glossary dt { font-weight: 700; margin-top: 1rem; }
dl.glossary dd { margin: 0.25rem 0 0; max-width: var(--measure); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--paper); color: var(--ink); }
caption { text-align: left; font-weight: 700; font-size: 1.25rem; padding-bottom: 0.75rem; }
th, td { border: 2px solid var(--ink); padding: 0.75rem 1rem; text-align: left; vertical-align: top; }
thead th { background: var(--brand); color: #fff; }
html[data-contrast="high"] thead th { background: #000; color: #fff; border-color: #fff; }
html[data-contrast="high"] th, html[data-contrast="high"] td { border-color: #fff; }

/* Sponsor tiers */
.tier .price { font-size: 2.25rem; font-weight: 700; line-height: 1; margin-bottom: 0.75rem; color: var(--brand); }
html[data-contrast="high"] .tier .price { color: var(--accent); }
.tier h3 { margin-bottom: 0.5rem; }
.tier h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 1rem 0 0.5rem; }

/* Partners / supporters */
.logo-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.logo-row li { margin: 0; }
.logo-row .chip { display: flex; align-items: center; justify-content: center; min-height: 4rem; padding: 0.75rem 1.25rem; border: 3px solid var(--ink);
  border-radius: var(--radius); background: var(--paper); color: var(--ink); font-weight: 700; text-align: center; }
.placeholder { border: 3px dashed var(--ink); border-radius: var(--radius); padding: 1rem 1.25rem; background: var(--paper); color: var(--ink); max-width: var(--measure); }
.placeholder strong { text-transform: uppercase; letter-spacing: 0.08em; font-size: 1rem; display: block; margin-bottom: 0.25rem; }

/* In-page nav */
.toc { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.5rem; background: var(--paper); color: var(--ink); max-width: 40rem; margin-bottom: 2rem; }
.toc h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.toc li { margin: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Callout */
.callout { border-left: 10px solid var(--accent); background: var(--cream); color: var(--ink); padding: 1.25rem 1.5rem; max-width: var(--measure); margin-bottom: 1.5rem; }
.callout > :last-child { margin-bottom: 0; }
html[data-contrast="high"] .callout { border: 3px solid #fff; border-left-width: 10px; }

/* Forms */
form { max-width: 42rem; }
.field { margin-bottom: 1.75rem; }
label, legend { display: block; font-weight: 700; margin-bottom: 0.4rem; padding: 0; }
.hint { display: block; font-weight: 400; font-size: 1.0625rem; margin-bottom: 0.4rem; color: var(--soft); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 3.25rem; padding: 0.6rem 0.9rem; font: 400 1.25rem/1.4 var(--font); color: var(--ink); background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--radius); }
textarea { min-height: 9rem; }
fieldset { border: 3px solid var(--ink); border-radius: var(--radius); padding: 1rem 1.25rem 0.5rem; margin: 0 0 1.75rem; }
fieldset legend { padding: 0 0.5rem; }
.choice { display: flex; align-items: flex-start; gap: 0.75rem; min-height: 2.75rem; margin-bottom: 0.5rem; }
.choice input { width: 1.75rem; height: 1.75rem; flex: none; margin: 0.45rem 0 0; accent-color: var(--brand); }
.choice label { font-weight: 400; margin: 0; padding: 0.35rem 0; flex: 1; }
.error-text { color: #8a0000; font-weight: 700; display: block; margin-top: 0.4rem; }
html[data-contrast="high"] .error-text { color: #ffb3b3; }
.is-invalid { border-color: #8a0000; border-width: 5px; }
html[data-contrast="high"] .is-invalid { border-color: #ffb3b3; }
.error-summary { border: 4px solid #8a0000; background: #fff; color: #111; padding: 1rem 1.5rem; margin-bottom: 1.5rem; max-width: 42rem; border-radius: var(--radius); }
.error-summary h2 { font-size: 1.5rem; }
html[data-contrast="high"] .error-summary { background: #000; color: #fff; border-color: #ffb3b3; }
.form-status { border: 4px solid var(--brand); background: var(--cream); color: var(--ink); padding: 1rem 1.5rem; max-width: 42rem; border-radius: var(--radius); }
html[data-contrast="high"] .form-status { border-color: #fff; background: #000; }

/* Footer */
.site-footer { background: var(--brand-deep); color: #fff; padding-block: 3rem 1.5rem; border-top: 8px solid var(--accent); }
.site-footer a { color: #fff; }
.site-footer a:visited { color: #fff; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.site-footer h2 { font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
html[data-contrast="high"] .site-footer h2 { color: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.site-footer address { font-style: normal; }
.legal { border-top: 2px solid #fff; margin-top: 2rem; padding-top: 1.25rem; font-size: 1.0625rem; }
.to-top { display: inline-flex; align-items: center; min-height: 2.75rem; }
html[data-contrast="high"] .site-footer { border-top-color: #fff; }

/* Sitemap page */
.tree, .tree ul { list-style: none; padding-left: 0; }
.tree ul { padding-left: 1.75rem; border-left: 4px solid var(--brand); margin: 0.5rem 0 1rem 0.5rem; }
.tree li { margin-bottom: 0.25rem; }
.tree a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.tree .what { display: block; font-weight: 400; font-size: 1.0625rem; margin-top: -0.4rem; max-width: var(--measure); }

@media print { .utility, .site-nav, .menu-toggle, .a11y-panel, .skip, .hills { display: none !important; } body { font-size: 12pt; } }

/* ---- High-contrast theme: yellow controls always carry black text ---- */
html[data-contrast="high"] .btn,
html[data-contrast="high"] .hero a.btn,
html[data-contrast="high"] .band--brand .btn,
html[data-contrast="high"] .band--accent .btn,
html[data-contrast="high"] .nav-list a.nav-cta,
html[data-contrast="high"] .tag--accent,
html[data-contrast="high"] .skip,
html[data-contrast="high"] .nav-list a:hover,
html[data-contrast="high"] .nav-list button.sub-toggle:hover,
html[data-contrast="high"] .steps li::before { background: #ffe14d !important; color: #000 !important; border-color: #fff !important; }
html[data-contrast="high"] .btn:hover,
html[data-contrast="high"] .hero a.btn:hover,
html[data-contrast="high"] .band--brand .btn:hover,
html[data-contrast="high"] .band--accent .btn:hover,
html[data-contrast="high"] .nav-list a.nav-cta:hover { background: #000 !important; color: #ffe14d !important; border-color: #ffe14d !important; }
html[data-contrast="high"] .btn--brand, html[data-contrast="high"] .hero a.btn--brand { background: #000 !important; color: #fff !important; border-color: #fff !important; }
html[data-contrast="high"] .btn--brand:hover { background: #fff !important; color: #000 !important; }
html[data-contrast="high"] .btn--ghost, html[data-contrast="high"] .hero a.btn--ghost, html[data-contrast="high"] .band--brand .btn--ghost { background: transparent !important; color: #fff !important; border-color: #fff !important; }
html[data-contrast="high"] .btn--ghost:hover, html[data-contrast="high"] .hero a.btn--ghost:hover, html[data-contrast="high"] .band--brand .btn--ghost:hover { background: #fff !important; color: #000 !important; }
html[data-contrast="high"] .a11y-panel button[aria-pressed="true"] { background: #ffe14d; color: #000; }
html[data-contrast="high"] .utility .a11y-toggle:hover, html[data-contrast="high"] .utility .a11y-toggle[aria-expanded="true"] { background: #fff; color: #000; }
html[data-contrast="high"] .tier .price { color: #ffe14d; }
.site-footer a.btn, .site-footer a.btn:visited { color: var(--ink); border-color: #fff; }
.site-footer a.btn:hover { color: var(--accent); }
html:not(.js) .sub-toggle .chev { display: none; }

/* Simplified dropdowns with one level of indented children */
.sub-list { min-width: 15rem; }
.sub-list a { flex-direction: row; align-items: center; }
.sub-list .sub-sub { list-style: none; margin: 0 0 0.25rem 1rem; padding: 0 0 0 0.5rem; border-left: 4px solid var(--brand); }
.sub-list .sub-sub a { font-weight: 400; min-height: 2.75rem; padding-block: 0.25rem; }
.sub-list .sub-sub a[aria-current="page"] { font-weight: 700; }
html[data-contrast="high"] .sub-list .sub-sub { border-left-color: #fff; }
.sub-list a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--brand); }
html[data-contrast="high"] .sub-list a[aria-current="page"] { box-shadow: inset 6px 0 0 var(--accent); }
.sub-list { min-width: 17rem; }
.sub-list .sub-sub a[aria-current="page"] { box-shadow: none; text-decoration: underline; text-decoration-thickness: 3px; }

/* Honeypot field for spam protection (kept off-screen, hidden from assistive tech) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Content added in the WordPress editor outside the starter sections stays readable */
main > :not(section):not(.container):not(script):not(style) { width: min(100% - 2rem, 76rem); margin-inline: auto; max-width: 66ch; }
.page-title { padding-top: 2rem; }
.tree .children { list-style: none; padding-left: 1.75rem; border-left: 4px solid var(--brand); margin: 0.5rem 0 1rem 0.5rem; }
.tree li a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.entry { margin-bottom: 2rem; }

/* Partner and sponsor logos and links */
a.chip { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; color: var(--link); }
a.chip:visited { color: var(--visited); }
a.chip:hover { background: var(--accent); color: var(--ink); text-decoration-thickness: 4px; }
.chip--logo, html[data-contrast="high"] .chip--logo { background: #fff; border-color: var(--line); }
a.chip--logo:hover { background: #fff; }
.chip--logo img { display: block; height: auto; width: auto; max-height: 5rem; max-width: 13rem; }
.chip--photo img { max-height: 6rem; border-radius: 4px; }
html[data-contrast="high"] a.chip:not(.chip--logo):hover { background: #ffe14d; color: #000; }
/* Collapsible lists */
details { border: 3px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; background: var(--paper); color: var(--ink); margin-bottom: 1.5rem; }
summary { font-weight: 700; font-size: 1.25rem; cursor: pointer; min-height: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
.sum-hint { display: inline-flex; align-items: center; gap: 0.5rem; flex: none; padding: 0.35rem 0.8rem; border: 2px solid var(--line); border-radius: 999px; background: var(--cream); font-size: 1rem; }
summary:hover .sum-hint { background: var(--accent); color: var(--ink); }
.sum-chev { width: 1rem; height: 1rem; transition: transform .15s; }
.sum-hide { display: none; }
details[open] .sum-show { display: none; }
details[open] .sum-hide { display: inline; }
details[open] .sum-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .sum-chev { transition: none; } }
@media (max-width: 30rem) { summary { flex-wrap: wrap; } }
details[open] > summary { border-bottom: 2px solid var(--line); margin-bottom: 1rem; }
details .table-wrap { margin-bottom: 1.25rem; }
td .hint { margin: 0.25rem 0 0; }
th[scope="row"] { background: var(--cream); font-weight: 700; }
html[data-contrast="high"] th[scope="row"] { background: #000; }
input[type="file"] { width: 100%; min-height: 3.25rem; padding: 0.6rem 0.9rem; font: 400 1.125rem/1.4 var(--font); color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); }
.card h4 { margin-bottom: 0.75rem; }

/* Mountain ridge edges: peaks rise into the section above (Green Mountains) */
section.band--cream, section.band--brand, .site-footer { position: relative; }
section.band--cream::before, section.band--brand::before, .site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: clamp(1.75rem, 4vw, 3.5rem); background-size: 100% 100%; background-repeat: no-repeat; pointer-events: none; }
section.band--cream::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V38L120 14 200 34 330 4 440 32 560 18 690 42 820 10 930 36 1060 8 1180 36 1300 16 1440 40V60z' fill='%23eef5fb'/%3E%3C/svg%3E"); }
section.band--brand::before, .site-footer::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 60V38L120 14 200 34 330 4 440 32 560 18 690 42 820 10 930 36 1060 8 1180 36 1300 16 1440 40V60z' fill='%23181550'/%3E%3C/svg%3E"); }
.site-footer { border-top: 0; }
html[data-contrast="high"] section.band--cream::before, html[data-contrast="high"] section.band--brand::before, html[data-contrast="high"] .site-footer::before { display: none; }
html[data-contrast="high"] .site-footer { border-top: 4px solid #fff; }
@media (forced-colors: active) { section.band--cream::before, section.band--brand::before, .site-footer::before, .hills { display: none; } }
/* The hero's front ridge matches the section that follows it */
.hero:has(+ section.band--cream) .hills path:last-child { fill: var(--cream) !important; }
.hero + section.band--cream::before, .hero + section.band--brand::before { display: none; }
/* Older pages may still use the earlier class name "band--green": treat it as the navy band */
.band--green { background: var(--brand-deep); color: #fff; }
.band--green a:not(.btn), .band--green a:not(.btn):visited { color: #fff; }
.band--green .btn { color: var(--ink); }
.band--green .btn:hover { color: var(--accent); }
.band--green .btn--ghost { color: #fff; }
.band--green .btn--ghost:hover { color: var(--brand-deep); }
