/*
Theme Name: Waterfall Flow
Theme URI: https://water-147-93-119-158.nip.io/
Author: The Waterfall Map
Description: Clean, animated theme for The Waterfall Map. Built for the Waterfall Map Core plugin: styles its explore, states and map output, and renders single waterfall and state pages from the plugin's data.
Version: 1.2.0
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: waterfall-flow
*/

/* Tokens. Light first; dark redefines tokens only. */
:root {
	--bg: #f5f8f7;
	--surface: #ffffff;
	--surface-2: #e9f0ee;
	--ink: #0d1b1e;
	--ink-2: #3b4d50;
	--ink-3: #6b7d7f;
	--pool: #127a7a;
	--pool-soft: #d6ecea;
	--sky: #3f95bd;
	--moss: #2f5d46;
	--rock: #24363a;
	--mist: #ffffff;
	--line: #d8e3e0;
	--on-pool: #ffffff;
	--warn-bg: #fff4e0;
	--warn-ink: #7a4b00;
	--deep: #0c2a2d;
	--deep-2: #133a3d;
	--on-deep: #eef6f4;
	--on-deep-2: #a9c4c1;
	--glass: rgba(255, 255, 255, .14);
	--head: #0e4f4a;
	--cream: #f6f2e8;
	--cream-2: #faf6ea;
	--cream-line: #e9dfc8;
	--cream-ink: #6b5f45;
	--clay: #b4552f;
	--on-clay: #ffffff;
	--sky-card: #eef3f6;
	--star: #b27c0e;
	--serif: "Fraunces", Georgia, "Times New Roman", serif;
	--prose: "Plus Jakarta Sans", "Figtree", system-ui, sans-serif;

	--display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
	--body: "Figtree", "Helvetica Neue", Arial, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

	--r-md: 10px;
	--r-lg: 16px;
	--r-xl: 28px;
	--shadow: 0 1px 2px rgba(13, 27, 30, .05), 0 8px 24px rgba(13, 27, 30, .06);
	--ease: cubic-bezier(.2, .7, .2, 1);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #081214;
		--surface: #0f1d20;
		--surface-2: #132629;
		--ink: #e8f1f0;
		--ink-2: #b4c4c4;
		--ink-3: #82979a;
		--pool: #3fc1b8;
		--pool-soft: #123331;
		--sky: #7cc4e4;
		--moss: #8fc4a6;
		--rock: #16262a;
		--mist: #cfe6ec;
		--line: #1f3539;
		--on-pool: #04201f;
		--warn-bg: #2b2210;
		--warn-ink: #f2c87a;
		--deep: #05171a;
		--deep-2: #0c2427;
		--on-deep: #e8f1f0;
		--on-deep-2: #93acaa;
		--glass: rgba(255, 255, 255, .1);
	--head: #8fd6cc;
	--cream: #141f1d;
	--cream-2: #192623;
	--cream-line: #2a3a36;
	--cream-ink: #cfc3a3;
	--clay: #e38b63;
	--on-clay: #1d0c04;
	--sky-card: #10202a;
	--star: #f0c25a;
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #081214;
	--surface: #0f1d20;
	--surface-2: #132629;
	--ink: #e8f1f0;
	--ink-2: #b4c4c4;
	--ink-3: #82979a;
	--pool: #3fc1b8;
	--pool-soft: #123331;
	--sky: #7cc4e4;
	--moss: #8fc4a6;
	--rock: #16262a;
	--mist: #cfe6ec;
	--line: #1f3539;
	--on-pool: #04201f;
	--warn-bg: #2b2210;
	--warn-ink: #f2c87a;
	--deep: #05171a;
	--deep-2: #0c2427;
	--on-deep: #e8f1f0;
	--on-deep-2: #93acaa;
	--glass: rgba(255, 255, 255, .1);
	--head: #8fd6cc;
	--cream: #141f1d;
	--cream-2: #192623;
	--cream-line: #2a3a36;
	--cream-ink: #cfc3a3;
	--clay: #e38b63;
	--on-clay: #1d0c04;
	--sky-card: #10202a;
	--star: #f0c25a;
	color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--pool); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
.sr-only, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-md); }
.skip:focus { top: 12px; }

.wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: max(20px, env(safe-area-inset-left, 0px));
	padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.wrap--narrow { max-width: 820px; }
.label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin: 0; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 0; position: relative; } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; border-radius: 8px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.nav-list, .foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.nav-list a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; display: inline-block; padding-block: 6px; }
.nav-list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pool); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-list a:hover, .nav-list a[aria-current="page"] { color: var(--ink); }

/* Buttons */
.btn, .wfm-filters button, .search-form .search-submit, .post-password-form input[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 0; border-radius: 999px; padding: 11px 20px;
	font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
	background: var(--pool); color: var(--on-pool);
	position: relative; overflow: hidden;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover, .wfm-filters button:hover, .search-form .search-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in srgb, var(--pool) 35%, transparent); color: var(--on-pool); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--pool); }
.btn--small { padding: 8px 16px; font-size: 0.9rem; }
.btn .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: wff-ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes wff-ripple { to { transform: scale(4); opacity: 0; } }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 64px 72px; }
.hero h1 { font-weight: 700; font-size: clamp(2.6rem, 1.5rem + 4.6vw, 4.8rem); line-height: 0.98; letter-spacing: -0.035em; margin: 18px 0 22px; }
.hero h1 .drop { color: var(--pool); display: inline-block; animation: wff-settle 1.1s var(--ease) both; }
@keyframes wff-settle { from { transform: translateY(-0.18em); } to { transform: none; } }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 30px; }

.search { display: flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; max-width: 560px; box-shadow: var(--shadow); transition: border-color .25s, box-shadow .25s; }
.search:focus-within { border-color: var(--pool); box-shadow: 0 0 0 4px var(--pool-soft); }
.search svg { flex: none; color: var(--ink-3); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 10px 4px; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.quick a { display: inline-block; font-size: 0.85rem; color: var(--ink-2); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); transition: border-color .2s, color .2s; }
.quick a:hover { border-color: var(--pool); color: var(--pool); }

.stats { display: flex; flex-wrap: wrap; gap: 28px 40px; margin: 40px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); }
.stats div { min-width: 0; }
.stats dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.9rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.fall { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--pool-soft)); box-shadow: var(--shadow); }
.fall canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fall-tag { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px; }
.fall-tag a { color: var(--ink); text-decoration: none; }
.fall-tag a:hover { text-decoration: underline; }
.fall-tag strong { font-family: var(--display); font-size: 1.05rem; font-weight: 600; display: block; line-height: 1.2; }
.fall-tag span { font-size: 0.85rem; color: var(--ink-3); }
.fall-tag .live { color: var(--pool); }
.live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pool); }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: wff-pulse 2s infinite; }
@keyframes wff-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pool) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }

/* Animated water line */
.waterline-stack { position: relative; height: 48px; margin-bottom: -1px; overflow: hidden; }
.waterline { position: absolute; inset: 0; color: var(--surface-2); }
.waterline svg { width: 200%; height: 100%; display: block; animation: wff-flow 14s linear infinite; }
.waterline--back { opacity: .55; }
.waterline--back svg { animation-duration: 22s; animation-direction: reverse; }
@keyframes wff-flow { to { transform: translateX(-50%); } }

/* Bands */
.band { background: var(--surface-2); }
.band > .wrap { padding-block: 40px 72px; }
.band-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 28px; }
.band-head h2 { font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); letter-spacing: -0.03em; margin: 8px 0 0; line-height: 1.05; }
.band-head p { margin: 10px 0 0; color: var(--ink-2); max-width: 52ch; }
.section > .wrap { padding-block: 72px; }

/* Map (plugin attaches Leaflet to #wfm-map) */
.wfm-map { width: 100%; height: clamp(320px, 55vh, 560px); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--pool-soft); box-shadow: var(--shadow); z-index: 0; }
.map-note { margin: 12px 0 0; font-size: 0.82rem; color: var(--ink-3); }

/* Gauges */
.gauge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gauge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; transition: transform .3s var(--ease), border-color .3s; }
.gauge:hover { transform: translateY(-3px); border-color: var(--pool); }
.gauge header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.gauge h3 { font-weight: 600; font-size: 1.15rem; margin: 0; line-height: 1.25; }
.gauge h3 a { color: var(--ink); text-decoration: none; }
.gauge h3 a:hover { color: var(--pool); }
.gauge .where { font-size: 0.85rem; color: var(--ink-3); margin: 2px 0 0; }
.chip { font-family: var(--mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip--live { background: var(--pool-soft); color: var(--pool); }
.chip--none { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.flow-meter { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; position: relative; }
.flow-meter span { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--pool) 0 12px, var(--sky) 12px 24px); background-size: 48px 100%; animation: wff-stream 1.6s linear infinite; }
@keyframes wff-stream { to { background-position: 48px 0; } }
.gauge .reading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.gauge .reading b { font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.gauge .reading small, .gauge .reading a { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.nogauge { display: grid; place-items: center; min-height: 64px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-3); font-size: 0.9rem; text-align: center; padding: 12px; }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principle { min-width: 0; }
.principle .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--pool-soft); color: var(--pool); display: grid; place-items: center; margin-bottom: 18px; }
.principle h3 { font-weight: 600; font-size: 1.3rem; margin: 0 0 8px; }
.principle p { margin: 0; color: var(--ink-2); }

/* State cards (theme) and the plugin's [states] list */
.state-grid, .wfm-states { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.state, .wfm-states li { position: relative; display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; color: var(--ink); text-decoration: none; overflow: hidden; min-width: 0; transition: transform .3s var(--ease), border-color .3s; }
.state::after, .wfm-states li::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: var(--pool-soft); transition: height .45s var(--ease); z-index: 0; }
.state:hover, .wfm-states li:hover { transform: translateY(-3px); border-color: var(--pool); }
.state:hover::after, .wfm-states li:hover::after { height: 100%; }
.state > *, .wfm-states li > * { position: relative; z-index: 1; }
.state header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.state h3 { font-weight: 600; font-size: 1.25rem; margin: 0; }
.state .count { font-family: var(--mono); font-size: 0.75rem; color: var(--pool); white-space: nowrap; }
.state p, .wfm-states li p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.state--more { background: transparent; border-style: dashed; }
.state--more .count { color: var(--ink-3); }
.wfm-states li a { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.wfm-states li a::before { content: ""; position: absolute; inset: 0; z-index: 2; }

/* Waterfall cards (theme + plugin share this markup) */
.wfm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 20px; margin: 0 0 32px; }
.wfm-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.wfm-card:hover { transform: translateY(-3px); border-color: var(--pool); box-shadow: var(--shadow); }
.wfm-card > a { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.wfm-card h3 { font-weight: 600; font-size: 1.1rem; margin: 14px 16px 4px; }
.wfm-card-meta { margin: 0 16px 16px; font-size: 0.88rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wfm-photo { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pool-soft); }
.wfm-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.wfm-card:hover .wfm-photo img { transform: scale(1.04); }
.wfm-no-photo { aspect-ratio: 4 / 3; display: grid; place-items: center; background: linear-gradient(180deg, var(--surface-2), var(--pool-soft)); color: var(--ink-3); font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; }

/* Explore page (plugin shortcode) */
.wfm-explore { display: grid; gap: 24px; }
.wfm-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.wfm-filters label { display: grid; gap: 6px; font-size: 0.85rem; font-weight: 500; color: var(--ink-2); min-width: 0; }
.wfm-filters label:has(input[type="checkbox"]) { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; }
.wfm-filters input[type="search"], .wfm-filters input[type="number"], .wfm-filters select { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; min-width: 0; max-width: 100%; }
.wfm-filters input[type="search"] { width: min(280px, 100%); }
.wfm-filters input[type="number"] { width: 120px; }
.wfm-filters input:focus, .wfm-filters select:focus { border-color: var(--pool); outline: none; box-shadow: 0 0 0 3px var(--pool-soft); }
.wfm-filters input[type="checkbox"] { accent-color: var(--pool); width: 18px; height: 18px; }
.wfm-filters > a { font-size: 0.9rem; padding-bottom: 10px; }
.wfm-note { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.wfm-count { font-family: var(--mono); font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 8px 0 0; }

/* Page and entry content */
.page-head { padding-block: 56px 28px; }
.page-head h1 { font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); letter-spacing: -0.035em; margin: 10px 0 12px; }
.page-head .intro { color: var(--ink-2); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.page-head .intro p { margin: 0 0 8px; }
.page-body { padding-block: 0 80px; }
.entry-content { font-size: 1.05rem; }
.entry-content > * { max-width: 72ch; }
.entry-content > .wfm-explore, .entry-content > .wfm-states, .entry-content > .wfm-grid, .entry-content > .alignwide, .entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: 1.7rem; margin: 2em 0 .5em; }
.entry-content h3 { font-size: 1.3rem; margin: 1.6em 0 .4em; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pool); color: var(--ink-2); }
.entry-content table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.entry-content pre { overflow-x: auto; background: var(--surface-2); padding: 16px; border-radius: var(--r-md); }
.entry-meta { font-family: var(--mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* Post list (blog, search) */
.post-list { display: grid; gap: 16px; }
.post-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; }
.post-item h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.post-item h2 a { color: var(--ink); text-decoration: none; }
.post-item h2 a:hover { color: var(--pool); }
.post-item p { margin: 0; color: var(--ink-2); }

/* Single waterfall */
.fall-head { padding-block: 48px 24px; }
.fall-head h1 { font-weight: 700; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem); letter-spacing: -0.035em; margin: 10px 0 14px; }
.fall-head .crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fall-head .crumbs a { color: var(--ink-3); text-decoration: none; }
.fall-head .crumbs a:hover { color: var(--pool); }
.fall-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fall-actions button[data-wfm-fav] { font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; padding: 10px 18px; background: transparent; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, color .2s; }
.fall-actions button[data-wfm-fav]:hover { border-color: var(--pool); color: var(--pool); }
.fall-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; padding-block: 0 56px; }
.fall-photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--pool-soft); aspect-ratio: 3 / 2; position: relative; }
.fall-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fall-photo figcaption { position: absolute; right: 12px; bottom: 12px; max-width: calc(100% - 24px); font-size: 0.75rem; background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--ink-2); padding: 4px 10px; border-radius: 999px; }
.fall-photo.wfm-no-photo { aspect-ratio: 3 / 2; border-radius: var(--r-xl); }
.facts-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 22px; position: sticky; top: 90px; }
.wfm-facts { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.wfm-facts dt, .wfm-facts dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.wfm-facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-right: 16px; align-self: center; }
.wfm-facts dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.wfm-facts dd span { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-3); }
.wfm-facts dt:last-of-type, .wfm-facts dd:last-of-type { border-bottom: 0; }
.wfm-safety { background: var(--warn-bg); color: var(--warn-ink); border-radius: var(--r-lg); padding: 16px 20px; font-size: 0.95rem; margin: 24px 0; }
.fall-section { margin-top: 48px; }
.fall-section h2 { font-size: 1.6rem; margin: 0 0 16px; }
.fall-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.fall-credit { font-size: 0.82rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 48px; }

/* Pagination */
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 0; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.pagination .page-numbers:hover { border-color: var(--pool); color: var(--pool); }
.pagination .page-numbers.current { background: var(--pool); border-color: var(--pool); color: var(--on-pool); }
.pagination .page-numbers.dots { border: 0; background: transparent; }

/* Search form (searchform.php) */
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-form .search-field { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 11px 18px; }
.search-form .search-field:focus { border-color: var(--pool); outline: none; box-shadow: 0 0 0 3px var(--pool-soft); }

/* Comments */
.comments-area { margin-top: 56px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { border-top: 1px solid var(--line); padding: 16px 0; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"] { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; }

/* 404 */
.not-found { padding-block: 96px; text-align: center; }
.not-found h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); margin: 10px 0 12px; }
.not-found p { color: var(--ink-2); }
.not-found .search-form { margin: 24px auto 0; }

/* Footer */
.site-foot { background: var(--ink); color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }
.site-foot .wrap { padding-block: 48px 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; font-size: 0.9rem; }
.site-foot .brand { color: var(--bg); }
.site-foot nav { margin-top: 16px; }
.site-foot .foot-list { gap: 6px 20px; }
.site-foot a { color: var(--bg); text-decoration: none; opacity: .85; }
.site-foot a:hover { opacity: 1; text-decoration: underline; }
.site-foot p { margin: 0 0 10px; }

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 0.85rem; color: var(--ink-3); }

/* Responsive */
@media (max-width: 960px) {
	.hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 44px 56px; }
	.fall { aspect-ratio: 4 / 3; }
	.gauge-grid { grid-template-columns: 1fr; }
	.principles { grid-template-columns: 1fr; gap: 28px; }
	.fall-layout { grid-template-columns: 1fr; gap: 24px; }
	.facts-card { position: static; }
	.site-foot .wrap { grid-template-columns: 1fr; }
	.section > .wrap { padding-block: 56px; }
}
@media (max-width: 520px) {
	.nav { gap: 2px 16px; }
	.nav .btn { display: none; }
	.nav-list { gap: 2px 16px; }
	.stats dd { font-size: 1.6rem; }
	.search button { padding: 10px 14px; }
	.wfm-filters label, .wfm-filters input[type="search"], .wfm-filters input[type="number"], .wfm-filters select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   1.1: finder homepage and place page
   ========================================================================== */

/* Header: Saved count and mobile menu */
.site-head .wrap { flex-wrap: wrap; }
.brand { margin-right: auto; }
.nav { order: 2; }
.head-actions { order: 3; display: flex; align-items: center; gap: 8px; }
.saved-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.saved-link:hover { border-color: var(--pool); color: var(--pool); }
.saved-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 0.72rem; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.saved-count.has-items { background: var(--pool); color: var(--on-pool); }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
@media (max-width: 860px) {
	.saved-label { display: none; }
	.menu-toggle { display: inline-grid; }
	.nav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: stretch; gap: 8px; padding-block: 8px 4px; }
	.nav.is-open { display: flex; }
	.nav .nav-list { flex-direction: column; gap: 0; }
	.nav .nav-list a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--line); }
	.nav .nav-list a::after { display: none; }
	.nav.is-open .btn { display: inline-flex; }
}

/* Dark finder hero */
.hero--dark { background: radial-gradient(1200px 500px at 85% 0%, var(--deep-2), var(--deep)); color: var(--on-deep); }
.hero--dark .wrap { display: block; padding-block: 0; }
.hero--dark .hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: 56px 28px; }
.hero--dark h1 { color: var(--on-deep); margin: 14px 0 18px; }
.hero--dark h1 .drop { color: var(--pool-soft); }
.hero--dark .lede { color: var(--on-deep-2); margin-bottom: 26px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--glass); color: var(--on-deep); font-size: 0.82rem; font-weight: 600; }
.hero--dark .fall { aspect-ratio: 4 / 5; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

.finder { display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface); border-radius: 22px; padding: 8px; box-shadow: 0 18px 40px rgba(0, 0, 0, .25); max-width: 720px; }
.finder-field { flex: 1 1 150px; min-width: 0; display: grid; gap: 2px; padding: 8px 14px; border-radius: 14px; cursor: text; transition: background .2s; }
.finder-field--wide { flex: 2 1 220px; }
.finder-field:hover, .finder-field:focus-within { background: var(--surface-2); }
.finder-label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.finder input, .finder select { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 0.98rem; padding: 2px 0; outline: none; }
.finder select { cursor: pointer; }
.finder-submit { flex: 0 0 auto; border-radius: 16px; padding: 14px 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips a, .chip-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 0.86rem; font-weight: 500; text-decoration: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.chips a:hover, .chip-btn:hover { border-color: var(--pool); color: var(--pool); }
.chips--dark a, .chips--dark .chip-btn { background: var(--glass); border-color: transparent; color: var(--on-deep); }
.chips--dark a:hover, .chips--dark .chip-btn:hover { background: var(--on-deep); color: var(--deep); }
.section .chips { margin: -8px 0 24px; }

.near-me { margin-top: 8px; padding: 22px; border-radius: var(--r-lg); background: var(--glass); }
.near-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 14px; }
.near-head h2 { margin: 0; font-size: 1.3rem; color: var(--on-deep); }
.near-status { margin: 0; color: var(--on-deep-2); font-size: 0.9rem; }
.near-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.near-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .25s var(--ease); }
.near-item:hover { transform: translateY(-2px); }
.near-item img, .near-item .near-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--pool-soft); display: block; }
.near-item strong { display: block; font-size: 0.95rem; line-height: 1.25; }
.near-item span { font-size: 0.8rem; color: var(--ink-3); }

.hero-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding-block: 24px 40px; }
.hero-stats div { min-width: 0; padding-left: 14px; border-left: 2px solid var(--glass); }
.hero-stats dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2); }
.hero-stats dd { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.02em; color: var(--on-deep); font-variant-numeric: tabular-nums; }
.hero--dark + .waterline-stack .waterline { color: var(--bg); }
.hero--dark + .waterline-stack { background: var(--deep); }

/* Sections */
.section--tint { background: var(--surface-2); }
.section--deep { background: var(--deep); color: var(--on-deep); }
.section--deep .label { color: var(--on-deep-2); }
.section--deep .band-head p { color: var(--on-deep-2); }
.section--deep .btn--ghost { color: var(--on-deep); box-shadow: inset 0 0 0 1px var(--glass); }
.saved .wfm-grid { margin-bottom: 0; }

/* Cards: Save button */
.wfm-card { position: relative; }
.card-save { position: absolute; top: 10px; right: 10px; z-index: 2; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: background .2s, color .2s; }
.card-save:hover { background: var(--surface); color: var(--pool); }
[data-wfm-fav][aria-pressed="true"] { background: var(--pool); color: var(--on-pool); }
.saved-remove { position: absolute; top: 10px; right: 10px; z-index: 2; font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }

/* Kinds */
.kind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kind { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; transition: transform .3s var(--ease), border-color .3s; }
.kind:hover { transform: translateY(-3px); border-color: var(--pool); }
.kind-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--pool-soft); color: var(--pool); }
.kind-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.kind-go { font-weight: 600; color: var(--pool); }

/* Regions */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.region { padding: 22px; border-radius: var(--r-lg); background: var(--deep-2); border: 1px solid var(--glass); min-width: 0; }
.region header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.region h3 { margin: 0; font-size: 1.2rem; color: var(--on-deep); }
.region .count { font-family: var(--mono); font-size: 0.72rem; color: var(--pool-soft); white-space: nowrap; }
.region p { margin: 8px 0 12px; color: var(--on-deep-2); font-size: 0.92rem; }
.region-states { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.region-states a { display: inline-block; font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--glass); color: var(--on-deep); text-decoration: none; }
.region-states a:hover { background: var(--on-deep); color: var(--deep); }

/* Tips */
.tip-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tip { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.tip .label { color: var(--pool); }
.tip h3 { font-size: 1.15rem; margin: 8px 0; }
.tip p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }

/* Save CTA */
.cta-band { background: var(--surface-2); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.cta-grid h2 { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); margin: 8px 0 10px; letter-spacing: -0.03em; }
.cta-grid p { color: var(--ink-2); max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pool); color: var(--on-pool); font-weight: 700; font-size: 0.85rem; }

/* Footer, 1.1 layout */
.site-foot .wrap { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 28px; }
.site-foot .foot-about p { margin-top: 14px; max-width: 42ch; }
.foot-col h2 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, var(--ink)); margin: 6px 0 12px; }
.foot-links, .foot-col .foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot .foot-legal { display: block; padding-block: 20px 36px; border-top: 1px solid color-mix(in srgb, var(--bg) 15%, var(--ink)); font-size: 0.82rem; }

/* Place page */
.place-hero { position: relative; min-height: clamp(380px, 56vh, 560px); display: flex; align-items: flex-end; background: var(--deep); color: var(--on-deep); overflow: hidden; }
.place-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 20, 22, .15) 0%, rgba(5, 20, 22, .45) 45%, rgba(5, 20, 22, .88) 100%); }
.place-hero--plain { min-height: 0; background: radial-gradient(900px 400px at 80% 0%, var(--deep-2), var(--deep)); }
.place-hero--plain::after { display: none; }
.place-hero-inner { position: relative; z-index: 1; width: 100%; padding-block: 96px 32px; }
.place-hero--plain .place-hero-inner { padding-block: 48px 32px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 0.85rem; color: rgba(255, 255, 255, .8); }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.place-hero h1 { color: #fff; font-weight: 700; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); letter-spacing: -0.035em; margin: 12px 0 10px; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.place-lead { color: rgba(255, 255, 255, .9); font-size: 1.1rem; max-width: 60ch; margin: 0 0 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; }
.pill { font-size: 0.82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pill--ok { background: rgba(255, 255, 255, .92); color: #0c2a2d; }
.place-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn--light { background: #fff; color: #0c2a2d; }
.btn--light:hover { color: #0c2a2d; }
.btn--glass { background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--glass:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.place-credit { position: absolute; right: 12px; bottom: 8px; z-index: 1; margin: 0; max-width: 60%; font-size: 0.72rem; color: rgba(255, 255, 255, .75); text-align: right; }


.place-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 40px; align-items: start; padding-block: 36px 72px; }
.place-section { scroll-margin-top: 130px; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.place-section:last-of-type { border-bottom: 0; }
.place-section h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin: 0 0 14px; }
.place-section > p { color: var(--ink-2); max-width: 68ch; }
.wfm-map--place { height: clamp(260px, 40vh, 380px); margin-top: 16px; }
.check-list, .bring-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--warn-bg); box-shadow: inset 0 0 0 5px var(--warn-ink); }
.bring-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.bring-list li { padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-weight: 500; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--pool); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--ink-2); }
.explore-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.explore-links a { display: grid; gap: 4px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s; }
.explore-links a:hover { border-color: var(--pool); }
.explore-links span { font-size: 0.88rem; color: var(--ink-3); }

.place-side { position: sticky; top: 130px; display: grid; gap: 14px; }
.side-card { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.side-card h2 { font-size: 1.15rem; margin: 0 0 12px; }
.plan-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.plan-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
.plan-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--pool-soft); color: var(--pool); }
.plan-list strong { display: block; font-size: 0.92rem; }
.plan-list p { margin: 2px 0 0; font-size: 0.86rem; color: var(--ink-3); }
.btn--block { width: 100%; }
.weather-temp { margin: 0; font-family: var(--display); font-size: 2.6rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.weather-desc { margin: 6px 0 10px; color: var(--ink-2); }
.weather-meta { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; color: var(--ink-3); }
.weather-rain { margin: 0 0 8px; padding: 10px 12px; border-radius: var(--r-md); background: var(--pool-soft); color: var(--ink); font-size: 0.88rem; }
.weather-rain:empty { display: none; }
.weather-note { margin: 0; font-size: 0.76rem; color: var(--ink-3); }
.coords { margin: 0 0 8px; font-family: var(--mono); font-size: 0.9rem; }
.side-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 0; font-size: 0.9rem; }
.link-btn { font: inherit; color: var(--pool); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow); }

@media (max-width: 1000px) {
	.tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
	.hero--dark .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 20px; }
	.hero--dark .fall { aspect-ratio: 16 / 10; }
	.hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.kind-grid { grid-template-columns: 1fr; }
	.cta-grid { grid-template-columns: 1fr; }
	.place-layout { grid-template-columns: 1fr; gap: 24px; }
	.place-side { position: static; order: -1; }
	.site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-foot .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.finder { border-radius: 18px; }
	.finder-field { flex-basis: 100%; }
	.finder-submit { width: 100%; justify-content: center; }
	.tip-grid { grid-template-columns: 1fr; }
	.place-hero-inner { padding-block: 72px 24px; }
	.place-credit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.near-item, .kind, .card-save { transition: none !important; }
}

/* ==========================================================================
   1.2 Guide-style place page
   ========================================================================== */
.place .place-hero h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; }
.pill a { color: inherit; text-decoration: none; }

.guide { font-family: var(--prose); color: var(--ink-2); }
.guide h2, .guide h3 { font-family: var(--serif); font-weight: 400; color: var(--head); letter-spacing: -0.01em; }
.guide .place-section { padding-bottom: 28px; margin-bottom: 28px; }
.guide .place-section h2 { font-size: clamp(1.45rem, 1.25rem + .7vw, 1.75rem); margin: 0 0 16px; }
.guide .place-section p, .guide .entry-content { font-size: 1.0625rem; line-height: 1.8; max-width: 70ch; }
.guide .place-section p { margin: 0 0 14px; }
.guide .entry-content p { color: var(--ink-2); }
.guide .text-link { font-weight: 600; }

.place-toc { padding: 18px 20px; margin-bottom: 36px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--cream-line); }
.toc-title { margin: 0 0 12px; font-size: 0.74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-ink); }
.toc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-chips a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--cream-line); color: var(--ink); font-size: 0.86rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color .2s, color .2s; }
.toc-chips a:hover, .toc-chips a.is-active { border-color: var(--head); color: var(--head); }

.table-scroll { overflow-x: auto; border-radius: var(--r-md); border: 1px solid var(--cream-line); }
.glance-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.glance-table th, .glance-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--cream-line); }
.glance-table tr:last-child th, .glance-table tr:last-child td { border-bottom: 0; }
.glance-table th { width: 34%; background: var(--cream-2); color: var(--cream-ink); font-weight: 600; }
.glance-table td { background: color-mix(in srgb, var(--cream-2) 40%, var(--surface)); color: var(--ink); overflow-wrap: anywhere; }
.glance-note { margin-left: 6px; font-size: 0.78rem; color: var(--moss); }

.btn--clay { gap: 10px; padding: 16px 26px; background: var(--clay); color: var(--on-clay); font-weight: 700; box-shadow: 0 10px 24px color-mix(in srgb, var(--clay) 30%, transparent); white-space: normal; text-align: left; }
.btn--clay:hover { color: var(--on-clay); box-shadow: 0 12px 28px color-mix(in srgb, var(--clay) 40%, transparent); }
.directions-cta { margin: 20px 0 12px; }

.tip-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tip-list li { position: relative; padding-left: 28px; font-size: 1.0625rem; line-height: 1.7; }
.tip-list li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 9px; height: 9px; border-radius: 50%; background: var(--head); }

.guide .faq { gap: 0; border: 1px solid var(--cream-line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.guide .faq details { border: 0; border-radius: 0; border-bottom: 1px solid var(--cream-line); background: none; }
.guide .faq details:last-child { border-bottom: 0; }
.guide .faq summary { padding: 20px 22px; color: var(--ink); font-weight: 700; align-items: center; }
.guide .faq summary::after { color: var(--ink); font-size: 1.2rem; }
.guide .faq details p { padding: 0 22px 20px; margin: 0; }

.cream-card { padding: 24px 26px; border-radius: var(--r-lg); background: var(--cream); border: 1px solid var(--cream-line); }
.explore-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.explore-list a { display: block; font-weight: 700; color: var(--ink); text-decoration: none; }
.explore-list a:hover { color: var(--head); text-decoration: underline; }
.explore-list span { display: block; font-size: 0.92rem; color: var(--ink-3); }

.review-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stars { color: var(--star); letter-spacing: .08em; }
.review-summary .stars { font-size: 1.25rem; }
.review-empty { padding: 18px 20px; border-radius: var(--r-lg); border: 1px dashed var(--cream-line); background: var(--cream); }
.review-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 12px; }
.review { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--cream-line); }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 6px; }
.review-head strong { color: var(--ink); }
.review-head time { margin-left: auto; font-size: 0.82rem; color: var(--ink-3); }
.review-body p { margin: 0 0 8px; font-size: 1rem; line-height: 1.7; }
.guide .review-pending { margin: 0 0 8px; padding: 8px 12px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-ink); font-size: 0.88rem; }

.review-form { margin-top: 20px; padding: 26px; border-radius: 22px; background: var(--cream); border: 1px solid var(--cream-line); }
.review-form .comment-reply-title { margin: 0 0 6px; font-size: 1.35rem; color: var(--ink); }
.guide .review-form p { margin: 0 0 14px; font-size: 0.92rem; line-height: 1.6; }
.review-form label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.review-form .required { color: var(--clay); }
.review-form select, .review-form textarea, .review-form input[type="text"], .review-form input[type="email"] { width: 100%; max-width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--cream-line); border-radius: 12px; padding: 12px 14px; }
.review-form select { max-width: 360px; }
.review-form textarea { min-height: 160px; resize: vertical; }
.review-form :is(select, textarea, input):focus-visible { outline: 3px solid color-mix(in srgb, var(--head) 40%, transparent); outline-offset: 1px; border-color: var(--head); }
.review-form .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.review-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.review-form .comment-form-cookies-consent input { width: auto; margin-top: 5px; }
.review-form .form-submit { margin: 4px 0 0; }
.wff-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.weather { background: var(--sky-card); }
.weather h2 { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-weight: 500; color: var(--ink); }
.weather h2 svg { color: var(--ink-3); }
.weather .weather-temp { font-family: var(--serif); font-weight: 500; color: var(--head); }
.weather .weather-meta { flex-direction: column; gap: 4px; font-size: 0.95rem; color: var(--ink); }
.place-side .side-card h2 { font-family: var(--serif); font-weight: 500; }

@media (max-width: 600px) {
	.place-toc { padding: 14px; }
	.toc-chips a { font-size: 0.8rem; padding: 7px 12px; }
	.glance-table th { width: 42%; }
	.glance-table th, .glance-table td { padding: 10px 12px; }
	.cream-card, .review-form { padding: 18px; }
	.btn--clay { width: 100%; justify-content: center; }
}
