/*
Theme Name: Throw Atlas
Description: Disc golf course directory theme with a trail-map look. Requires the Throw Atlas Courses plugin.
Version: 0.2.11
Requires PHP: 7.4
Text Domain: throwatlas
*/

/* ============ Fonts (self-hosted, SIL Open Font License, see assets/fonts/OFL.txt) ============ */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

/* ============ Tokens ============ */
:root {
	--paper: #F3EEE2; --paper-2: #E8E0CC; --card: #FBF8F1;
	--ink: #102018; --ink-2: #3B4A41; --ink-3: #5E6B62;
	--forest: #163B2A; --forest-2: #0E2A1E; --moss: #4F7A3A;
	--flight: #FF5B1F; --flight-text: #9a3412; --flight-ink: #102018; --flight-soft: #FFE1D3;
	--sky: #2563C9;
	--line: rgba(16, 32, 24, .14); --line-2: rgba(16, 32, 24, .28);
	--shadow: 0 1px 0 rgba(16, 32, 24, .06), 0 10px 30px -12px rgba(16, 32, 24, .25);
	--r: 16px; --r-l: 28px;
	--f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
	--f-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--ease-out: cubic-bezier(.16, 1, .3, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
	--t-fast: 160ms; --t: 280ms; --t-slow: 600ms;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0D1712; --paper-2: #14231B; --card: #15241C;
		--ink: #EEF1E9; --ink-2: #C2CCC4; --ink-3: #97A59B;
		--forest: #0A1510; --forest-2: #060E0A; --moss: #8DBB72;
		--flight-text: #FF7A45; --flight-soft: #3A1E12; --sky: #7FA8F0;
		--line: rgba(238, 241, 233, .12); --line-2: rgba(238, 241, 233, .24);
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #0D1712; --paper-2: #14231B; --card: #15241C;
	--ink: #EEF1E9; --ink-2: #C2CCC4; --ink-3: #97A59B;
	--forest: #0A1510; --forest-2: #060E0A; --moss: #8DBB72;
	--flight-text: #FF7A45; --flight-soft: #3A1E12; --sky: #7FA8F0;
	--line: rgba(238, 241, 233, .12); --line-2: rgba(238, 241, 233, .24);
	--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 12px 30px -12px rgba(0, 0, 0, .6);
	color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--f-body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--flight); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--flight); border-radius: 2px; }
.muted { color: var(--ink-2); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-2); max-width: 58ch; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============ Buttons & chips ============ */
.btn { --bg: var(--flight); --fg: var(--flight-ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: transform var(--t) var(--ease-spring), box-shadow var(--t); }
.btn::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), transparent 60%); opacity: 0; transition: opacity var(--t); z-index: -1; }
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(255, 91, 31, .7); color: var(--fg); }
.btn:active { transform: none; }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--moss); }
.btn.dark { --bg: var(--ink); --fg: var(--paper); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; font-weight: 600; font-size: .9rem; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.select { min-height: 44px; padding: 0 38px 0 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235E6B62' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font: inherit; color: var(--ink); }

/* ============ Header ============ */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 84%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t); }
.admin-bar .site-head { top: 32px; }
.site-head.scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(0, 0, 0, .5); }
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; min-height: 44px; }
.brand svg { width: 36px; height: 36px; transition: transform var(--t-slow) var(--ease-spring); }
.brand:hover svg { transform: rotate(-200deg); }
.brand img { max-height: 40px; width: auto; }
.nav { margin-left: 12px; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink-2); transition: color var(--t-fast), background var(--t-fast); }
.nav a:hover, .nav .current-menu-item a, .nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.search-trigger { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink-3); min-width: 250px; }
.search-trigger:hover { border-color: var(--ink); }
.search-trigger kbd { margin-left: auto; font-family: var(--f-mono); font-size: .72rem; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); }
.icon-btn:hover { border-color: var(--ink); }

/* ============ Topo ============ */
.topo { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.topo svg { position: absolute; width: 140%; height: 140%; left: -20%; top: -20%; max-width: none; color: var(--line-2); opacity: .5; }
.topo.drift svg { animation: drift 60s linear infinite alternate; }
.on-dark .topo svg { color: rgba(255, 255, 255, .1); opacity: 1; }
@keyframes drift { to { transform: translate3d(-6%, 4%, 0) rotate(3deg); } }

/* ============ Reveal ============ */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ============ Home ============ */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; }
.hero h1 .accent { color: var(--flight-text); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease-out) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.searchbox { display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); max-width: 560px; margin: 28px 0 14px; transition: box-shadow var(--t); }
.searchbox:focus-within { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.searchbox label { flex: 1; display: flex; align-items: center; gap: 10px; padding-left: 14px; color: var(--ink-3); min-width: 0; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); height: 48px; outline: none; }
.searchbox input::placeholder { color: var(--ink-3); }
.hero-sub { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.locate { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: transparent; border: 1.5px dashed var(--line-2); font-weight: 600; color: var(--ink); }
.locate:hover { border-style: solid; border-color: var(--ink); }
.locate .ping { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(37, 99, 201, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(37, 99, 201, 0); } }
.flight { position: relative; aspect-ratio: 1 / .92; border-radius: var(--r-l); background: var(--forest); overflow: hidden; box-shadow: var(--shadow); isolation: isolate; }
.flight svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.flight .arc { fill: none; stroke: var(--flight); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; }
.flight .arc-draw { fill: none; stroke: var(--flight); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 2.4s var(--ease-out) .4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.flight .disc { offset-path: path("M70 380 C 170 120, 390 70, 470 250"); offset-rotate: 0deg; animation: fly 2.4s var(--ease-out) .4s both; }
@keyframes fly { from { offset-distance: 0%; transform: scale(1.2); } to { offset-distance: 100%; transform: scale(.8); } }
.flight .chains { transform-origin: 470px 228px; animation: jingle .9s ease-in-out 2.7s 2; }
@keyframes jingle { 25% { transform: rotate(3deg); } 50% { transform: rotate(-3deg); } 75% { transform: rotate(1.5deg); } }
.flight .hud { position: absolute; left: 18px; right: 18px; bottom: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hud .pill { padding: 10px 14px; border-radius: 14px; background: rgba(10, 24, 17, .72); backdrop-filter: blur(8px); color: #F3EEE2; font-size: .88rem; border: 1px solid rgba(255, 255, 255, .12); opacity: 0; transform: translateY(10px); animation: pop .6s var(--ease-spring) forwards; }
.hud .pill:nth-child(2) { animation-delay: 2.95s; } .hud .pill:nth-child(1) { animation-delay: 2.8s; } .hud .pill:nth-child(3) { animation-delay: 3.1s; }
.hud .pill b { font-family: var(--f-mono); color: #FFB089; }
@keyframes pop { to { opacity: 1; transform: none; } }
.flight .hole-tag { position: absolute; top: 18px; left: 18px; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: rgba(243, 238, 226, .7); }

.scorecard { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--card); overflow: hidden; margin: 36px 0 0; }
.scorecard > div { padding: 18px 20px; border-left: 1.5px solid var(--ink); }
.scorecard > div:first-child { border-left: 0; }
.scorecard dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.scorecard dd { margin: 4px 0 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1; }

.marquee { overflow: hidden; border-block: 1.5px solid var(--ink); background: var(--flight); color: var(--flight-ink); }
.marquee-track { display: flex; width: max-content; padding: 14px 0; animation: marq 40s linear infinite; font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; white-space: nowrap; }
.marquee-track a { display: inline-flex; align-items: center; gap: 40px; min-height: 44px; padding-right: 40px; text-decoration: none; }
.marquee-track a::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--flight-ink); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

.section { padding: clamp(56px, 9vw, 110px) 0; position: relative; }
.section.alt { background: var(--paper-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.sec-head p { max-width: 52ch; margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.vcard { padding: 26px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); transition: transform var(--t) var(--ease-out), box-shadow var(--t); }
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vcard .viz { height: 120px; margin: -6px -6px 18px; border-radius: var(--r); background: var(--paper-2); display: grid; place-items: center; }
.vcard p { color: var(--ink-2); margin: 0; }
.needle { transform-origin: 48px 48px; animation: sway 4s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(30deg); } 50% { transform: rotate(58deg); } }
.walk-line { stroke-dasharray: 4 6; animation: march 1s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.timer-ring { transform: rotate(-90deg); transform-origin: 50% 50%; }
.timer-ring .prog { stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.6s var(--ease-out); }
.in .timer-ring .prog { stroke-dashoffset: 80; }

.explorer { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; align-items: start; }
.mapcard { position: relative; border-radius: var(--r-l); background: var(--forest); padding: 10px; overflow: hidden; }
.mapcard .ta-map { position: relative; border-radius: 20px; border: 0; }
.clist { list-style: none; margin: 14px 0 0; padding: 0 4px 0 0; display: grid; gap: 8px; max-height: 470px; overflow: auto; scrollbar-width: thin; }
.crow { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; transition: border-color var(--t-fast), transform var(--t-fast) var(--ease-out); }
.crow:hover, .crow.hot { border-color: var(--ink); transform: translateX(4px); }
.crow b { display: block; font-weight: 700; line-height: 1.25; }
.crow .meta { font-size: .85rem; color: var(--ink-2); }
li[hidden] { display: none; }
.holes-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--paper-2); font-family: var(--f-mono); font-weight: 700; line-height: 1; font-size: 1.05rem; flex: none; }
.holes-badge small { font-size: .55rem; letter-spacing: .1em; color: var(--ink-2); }
.diff { display: inline-flex; gap: 3px; vertical-align: middle; }
.diff i { width: 7px; height: 16px; border-radius: 2px; background: var(--line-2); }
.diff i.on { background: var(--flight); }

.state-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.state-grid a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; font-weight: 700; transition: border-color var(--t-fast), transform var(--t-fast); }
.state-grid a:hover { border-color: var(--ink); transform: translateY(-2px); }
.state-grid small { font-family: var(--f-mono); color: var(--ink-2); }

.pack { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checklist { padding: 22px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.checklist label { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 6px 10px; border-radius: 12px; cursor: pointer; transition: background var(--t-fast); }
.checklist label:hover { background: var(--paper-2); }
.checklist input { appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 7px; border: 2px solid var(--ink-2); display: grid; place-items: center; flex: none; transition: background var(--t-fast), border-color var(--t-fast); }
.checklist input::after { content: ""; width: 6px; height: 11px; border: solid var(--flight-ink); border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transition: transform var(--t) var(--ease-spring); margin-top: -2px; }
.checklist input:checked { background: var(--flight); border-color: var(--flight); }
.checklist input:checked::after { transform: rotate(45deg) scale(1); }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--flight); color: var(--ink-2); }
.progress { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin: 4px 10px 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--flight); border-radius: 99px; transition: width var(--t) var(--ease-out); }

/* ============ Listing pages ============ */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 24px 0 18px; font-size: .88rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line-2); display: inline-block; padding: 10px 0; margin: -10px 0; }
.page-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding-bottom: 24px; margin-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.page-head h1 { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.page-head .lede { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 18px 0 10px; }
.count-note { margin: 0 0 14px; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.scard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: transform var(--t) var(--ease-out), border-color var(--t-fast), box-shadow var(--t); }
.scard:hover { transform: translateY(-3px); border-color: var(--ink); box-shadow: var(--shadow); }
.scard[hidden] { display: none; }
.scard .top { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.scard h3 { font-size: 1.08rem; margin: 0; }
.scard h3 a { text-decoration: none; }
.scard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.scard .place { font-size: .88rem; color: var(--ink-2); }
.scard .row { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; gap: 8px; }
.scard-img { margin: -18px -18px 4px; border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.scard-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.tag.free { background: var(--flight-soft); color: var(--ink); }
.meter { height: 6px; border-radius: 99px; background: var(--paper-2); overflow: hidden; margin-top: auto; }
.meter i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--moss), var(--flight)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease-out); }
.in .meter i, .no-js .meter i { transform: scaleX(var(--w)); }
.meter-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.empty { padding: 40px; text-align: center; border: 1.5px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.city-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.city-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.city-list a:hover { border-color: var(--ink); }
.city-list small { font-family: var(--f-mono); color: var(--ink-2); }
.block { margin: 40px 0; }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--card); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============ Maps ============ */
.ta-map { height: 380px; border-radius: var(--r); border: 1px solid var(--line); background: var(--paper-2); z-index: 1; }
.map-region { height: 420px; margin: 18px 0 8px; }
.map-home { height: 470px; }
.map-single { height: 260px; }
.map-access { height: 340px; }
.leaflet-container { font-family: var(--f-body); }
.leaflet-popup-content a { font-weight: 700; }
.leaflet-container .leaflet-bar a { width: 40px; height: 40px; line-height: 40px;}
.leaflet-container .leaflet-control-attribution { font-size: 12px;}
.pin-label { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font: 800 13px/1 var(--f-mono); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.pin-park { background: #2563C9; }
.pin-tee { background: #4F7A3A; border-radius: 50%; }

/* ============ Course page ============ */
.on-dark { position: relative; background: var(--forest); color: #F3EEE2; overflow: hidden; }
.c-hero { padding: 6px 0 0; }
.c-hero .crumbs ol { color: rgba(243, 238, 226, .72); }
.c-hero .crumbs a { border-color: rgba(243, 238, 226, .3); }
.c-hero .eyebrow { color: rgba(243, 238, 226, .78); }
.c-hero-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end; padding-bottom: 28px; }
.c-hero-art { width: 100%; max-width: 380px; justify-self: end; }
.c-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.badge { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); font-size: .85rem; font-weight: 600; }
.badge.hot { background: var(--flight); color: var(--flight-ink); border-color: var(--flight); }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.c-actions .btn.ghost { --fg: #F3EEE2; box-shadow: inset 0 0 0 1.5px rgba(243, 238, 226, .35); }
.c-actions .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px #F3EEE2; }
.c-actions .btn.ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--flight); }
.action-msg { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; font-size: .92rem; }
.c-scores { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1.5px; background: #102018; border: 1.5px solid #102018; border-bottom: 0; color: #102018; border-radius: var(--r) var(--r) 0 0; overflow: hidden; margin: 0; }
.c-scores div { padding: 16px 18px; background: #F3EEE2; }
.c-scores dt { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #3B4A41; }
.c-scores dd { margin: 2px 0 0; font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; line-height: 1.15; }
.c-scores dd.sm { font-size: 1.1rem; line-height: 1.5; }
.c-body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 36px 0 60px; }
.c-main > section { margin-bottom: 44px; }
.c-main h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.c-side { position: sticky; top: 88px; align-self: start; display: grid; gap: 16px; }
.admin-bar .c-side { top: 120px; }
.panel { border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); padding: 22px; }
.panel h2 { font-size: 1.2rem; letter-spacing: -.01em; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--paper-2); border-radius: 999px; padding: 5px 13px; font-size: .9rem; font-weight: 600; }
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.compare li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.compare .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--flight-soft); flex: none; }
.route { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 12px); }
.steps li { position: relative; display: flex; gap: 14px; padding: 10px 0; }
.steps li p { margin: 2px 0 0; color: var(--ink-2); }
.steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none; font-weight: 800; font-family: var(--f-mono); color: #fff; z-index: 1; }
.n.p { background: #2563C9; } .n.t { background: #4F7A3A; } .n.c { background: var(--flight); color: var(--flight-ink); }
.route-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.fac-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.fac-list li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.fac-list li::before { content: "✓"; color: var(--moss); margin-right: 8px; font-weight: 800; }
.holes { border-collapse: collapse; width: 100%; max-width: 520px; background: var(--card); border-radius: 12px; overflow: hidden; }
.holes th, .holes td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; font-variant-numeric: tabular-nums; }
.holes tfoot th, .holes tfoot td { font-weight: 800; border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: transform var(--t) var(--ease-spring), background var(--t-fast); }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--ink); transform: translate(-50%, -50%); }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--t); }
.faq details[open] .plus { transform: rotate(180deg); background: var(--flight); border-color: var(--flight); }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans p { color: var(--ink-2); padding-bottom: 14px; margin: 0; max-width: 65ch; }
.faq details[open] .ans { animation: ansIn var(--t) var(--ease-out); }
@keyframes ansIn { from { opacity: 0; transform: translateY(-6px); } }
.sources p { color: var(--ink-2); font-size: .88rem; max-width: 70ch; }

.wx-top { display: flex; align-items: center; gap: 18px; }
.compass { width: 104px; height: 104px; flex: none; }
.compass .arrow { transform-origin: 52px 52px; transition: transform 1.4s var(--ease-spring); }
.wx-temp { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1; }
.wx-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
.wx-list div { padding: 10px 12px; border-radius: 12px; background: var(--paper-2); }
.wx-list dt { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.wx-list dd { margin: 2px 0 0; font-weight: 700; }
.wx-tip { padding: 10px 12px; border-radius: 12px; background: var(--flight-soft); font-size: .9rem; margin: 8px 0 0; }
.skeleton { display: inline-block; background: linear-gradient(90deg, var(--paper-2) 25%, var(--card) 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.plan dl { margin: 0; display: grid; gap: 12px; }
.plan dt { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.plan dd { margin: 0; font-weight: 700; }
.time-ring { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.time-ring b { font-family: var(--f-display); font-size: 1.5rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.link-list a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 600; border-bottom: 1px dashed var(--line); }
.link-list a:hover { color: var(--flight-text); }
.side-note { color: var(--ink-2); font-size: .88rem; margin: 6px 0 0; }
.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font-weight: 600; z-index: 80; transition: opacity var(--t), transform var(--t) var(--ease-spring); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Palette ============ */
.palette { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; background: rgba(6, 14, 10, .55); backdrop-filter: blur(4px); }
.palette.open { display: flex; animation: fadeIn var(--t) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } }
.palette-box { width: min(620px, 100%); border-radius: var(--r-l); background: var(--card); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); overflow: hidden; animation: boxIn var(--t) var(--ease-spring); }
@keyframes boxIn { from { transform: translateY(-12px) scale(.98); opacity: 0; } }
.palette-box .in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.palette-box input { flex: 1; height: 62px; border: 0; background: transparent; font: inherit; font-size: 1.1rem; color: var(--ink); outline: none; }
.palette-box ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.palette-box li a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; border-radius: 12px; text-decoration: none; }
.palette-box li a[aria-selected="true"], .palette-box li a:hover { background: var(--paper-2); }
.palette-box .hint { padding: 10px 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 14px; }
.palette-box .empty-row { padding: 20px; color: var(--ink-2); }
mark { background: var(--flight-soft); color: inherit; border-radius: 3px; }
.cursor-disc { position: fixed; top: 0; left: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 2px solid var(--flight); pointer-events: none; z-index: 120; opacity: 0; transition: opacity var(--t), width var(--t), height var(--t), margin var(--t); }
.cursor-disc.on { opacity: .8; }
.cursor-disc.big { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255, 91, 31, .12); }

/* ============ Footer ============ */
.site-foot { position: relative; background: var(--forest-2); color: #C9D4CC; padding: 64px 0 40px; margin-top: 40px; overflow: hidden; }
.site-foot .topo svg { color: rgba(255, 255, 255, .07); opacity: 1; }
.foot-grid { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-foot p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #8FB39C; margin: 0 0 12px; font-weight: 700; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; color: #E6EFE9; }
.site-foot li a:hover { color: var(--flight); }
.foot-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.4rem); color: #F3EEE2; line-height: 1; margin-bottom: 14px; }
.foot-base { position: relative; margin-top: 44px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.foot-base a { color: #E6EFE9; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
	.hero-grid, .explorer, .pack, .c-hero-grid, .route, .c-body { grid-template-columns: 1fr; }
	.c-side { position: static; }
	.values { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.search-trigger { min-width: 0; }
	.search-trigger .t, .search-trigger kbd { display: none; }
	.nav { display: none; }
	.c-hero-art { display: none; }
}
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }
@media (max-width: 640px) {
	.scorecard { grid-template-columns: 1fr 1fr; }
	.scorecard > div:nth-child(3) { border-left: 0; }
	.scorecard > div:nth-child(n+3) { border-top: 1.5px solid var(--ink); }
	.compare { grid-template-columns: 1fr; }
	.page-head { grid-template-columns: 1fr; }
	.c-actions { display: none; }
	.mobile-bar { display: flex; position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 55; gap: 8px; padding: 8px; border-radius: 999px; background: var(--card); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45); border: 1px solid var(--line); }
	.mobile-bar .btn { flex: 1; min-height: 48px; padding: 0 10px; }
	.single-course .site-foot { padding-bottom: 110px; }
	.foot-grid { grid-template-columns: 1fr; }
	.flight { aspect-ratio: 1 / 1; }
	.map-home, .map-region { height: 340px; }
}
@media (hover: none) { .cursor-disc { display: none; } }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.hero h1 .line > span { transform: none; }
	.flight .arc-draw { stroke-dashoffset: 0; }
	.hud .pill { opacity: 1; transform: none; }
	.js .reveal { opacity: 1; transform: none; }
	.marquee-track { animation: none; }
	.cursor-disc { display: none; }
}

/* Contact form */
.ta-form { margin: 28px 0 8px; padding: clamp(20px, 4vw, 32px); border-radius: var(--r-l); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line); }
.ta-form h2 { margin-top: 0; }
.ta-field { margin-bottom: 20px; }
.ta-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.ta-req { font: 500 .72rem var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-left: 6px; }
.ta-form input[type="text"], .ta-form input[type="email"], .ta-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.ta-form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.ta-form .select { width: 100%; border-radius: 12px; min-height: 48px; }
.ta-form input:focus, .ta-form textarea:focus, .ta-form .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--flight); }
.ta-form [aria-invalid="true"] { border-color: var(--flight-text); }
.ta-help { margin: 6px 0 0; font-size: .88rem; color: var(--ink-3); }
.ta-error { margin: 6px 0 0; font-size: .9rem; font-weight: 600; color: var(--flight-text); }
.ta-alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; background: var(--flight-soft); color: var(--ink); }
.ta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.ta-submit { margin: 4px 0 12px; }
.ta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ta-sent .btn { margin: 4px 8px 4px 0; }
@media (max-width: 640px) { .ta-row { grid-template-columns: 1fr; } }
/* Mobile menu */
.nav-toggle { display: none; }
@media (max-width: 1000px) { .nav-toggle { display: inline-flex; align-items: center;  justify-content: center; min-width: 44px;  min-height: 44px; padding: 0 12px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 1.25rem; cursor: pointer; } }
@media (max-width: 1000px) { .nav.open { display: block;  position: absolute; top: 100%; left: 0; right: 0; margin: 0; padding: 12px 16px 16px; background: var(--paper); border-bottom: 1px solid var(--line);  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .45);  z-index: 60; }}
@media (max-width: 1000px) { .nav.open ul { flex-direction: column; gap: 4px; }  .nav.open a { display: flex; width: 100%; } }
/* Course photos & reviews */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); }
.review-list { display: grid; gap: 16px; }
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.review-author { font-weight: 700; margin: 0 0 4px; }
.review-stars { color: var(--flight-text); margin: 0 0 8px; letter-spacing: .05em; }
.review-text { color: var(--ink-2); margin: 0 0 8px; }
.review-meta { font-size: .88rem; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr; } }
