/* Venue guide template. Loaded after ../beta.css and ../advice/advice.css by every beta/venues/<venue>/ page. */

/* contents group labels (advice.js adds .toc-part for data-part sections) */
.toc-part { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-300); padding: 18px 0 6px 18px; }
.toc-part:first-child { padding-top: 0; }
@media (max-width: 900px) { .toc-part { padding: 14px 0 4px; } }

/* hero: sailors / parents split */
.v-jump { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 10px; margin-top: 26px; }
.v-jump-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 14px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); text-decoration: none; backdrop-filter: blur(8px); transition: background var(--dur), transform var(--dur-slow) var(--ease); }
@media (hover: hover) { .v-jump-card:hover { background: rgba(47, 109, 246, .35); transform: translateY(-2px); } }
.v-jump-k { grid-column: 1; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-300); }
.v-jump-card b { grid-column: 1; font-size: 15px; }
.v-jump-card .arrow { grid-column: 2; grid-row: 1 / 3; font-weight: 700; }
@media (max-width: 520px) { .v-jump { grid-template-columns: 1fr; } }

/* map with numbered pins */
.v-map { margin: 26px 0 8px; }
.v-map-img { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.v-map-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; opacity: .8; filter: saturate(.7); }
.v-pin { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 0 0 0 rgba(47, 109, 246, .6); transition: transform var(--dur) var(--ease), background var(--dur); }
.v-pin.is-on { transform: scale(1.18); background: #fff; color: var(--accent); box-shadow: 0 0 0 6px rgba(47, 109, 246, .35); }
@media (hover: hover) { .v-pin:hover { transform: scale(1.18); background: #fff; color: var(--accent); box-shadow: 0 0 0 6px rgba(47, 109, 246, .35); } }
.v-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: pin; }
.v-legend li { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; padding: 8px 10px; border-radius: var(--radius); font-size: 15px; color: var(--muted); counter-increment: pin; transition: background var(--dur); }
.v-legend li::before { content: counter(pin); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); color: var(--heading); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.v-legend b { color: var(--heading); display: block; }
.v-legend li.is-on { background: var(--surface); }
.v-legend li.is-on::before { background: var(--accent); color: #fff; }
.v-map figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* wind picker: 3x3 compass + panel */
.wind { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 22px; }
.wind-rose { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; aspect-ratio: 1; padding: 10px; border-radius: 50%; background: radial-gradient(circle, var(--surface-2) 0 38%, var(--surface) 39% 70%, transparent 71%); border: 1px solid var(--line); position: sticky; top: 110px; }
.wind-rose button { border: 1px solid var(--line-strong); background: var(--bg-2); color: var(--muted); border-radius: var(--radius-sm); font-weight: 800; font-size: 14px; cursor: pointer; transition: background var(--dur), color var(--dur), border-color var(--dur); }
.wind-rose button:hover { color: var(--heading); border-color: var(--blue-300); }
.wind-rose button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(36, 99, 235, .35); }
.wind-rose button.has-notes::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--t-no); margin: 3px auto 0; }
.wind-rose button[aria-selected="true"].has-notes::after { background: #fff; }
.wind-core { display: grid; place-items: center; position: relative; }
.wind-core b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* arrow shows where the wind blows FROM (points downwind) */
.wind-arrow { position: absolute; inset: 0; margin: auto; width: 6px; height: 96%; transform: rotate(var(--wa, 225deg)); transition: transform .6s var(--ease); }
.wind-arrow::before { content: ""; position: absolute; inset: 0 0 8px; border-radius: 2px; background: linear-gradient(transparent, var(--blue-300) 40%, var(--heading)); }
.wind-arrow::after { content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0; border: 9px solid transparent; border-top: 13px solid var(--heading); border-bottom: 0; }
.wind-panel { animation: panel-in .45s var(--ease); }
.wind-panel[hidden] { display: none; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.wind-head { font-weight: 700; color: var(--heading); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.area { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border-radius: 3px; padding: 3px 9px; background: var(--surface-2); color: var(--muted); }
.area-bay { background: var(--t-no); color: var(--t-no-tx); }
.area-harbour { background: var(--t-champ); color: var(--t-champ-tx); }
.wind-watch { font-size: 15px !important; color: var(--muted) !important; }
.wind-watch b { color: var(--heading); }

/* left/right bias bar: style="--left:70" */
.bias { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px; margin: 6px 0 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bias-bar { height: 10px; border-radius: 99px; background: var(--t-intl); overflow: hidden; }
.bias-bar i { display: block; height: 100%; width: calc(var(--left) * 1%); background: var(--t-no); border-right: 2px solid var(--bg); transition: width .6s var(--ease); }
.bias em { grid-column: 1 / -1; font-style: normal; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--heading); }
.bias em .verify { margin-left: 6px; }

@media (max-width: 700px) {
  .wind { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .wind-rose { position: static; width: min(240px, 72vw); margin: 0 auto; }
}

/* wind rose chart (venues.js draws SVG from data-rose) */
.rose-fig { margin: 20px 0; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; }
.rose svg { width: 100%; height: auto; display: block; }
.rose-fig figcaption { font-size: 14px; color: var(--muted); }
.rose-fig figcaption a { color: var(--blue-300); }
@media (max-width: 600px) { .rose-fig { grid-template-columns: minmax(0, 1fr); } .rose { max-width: 300px; margin: 0 auto; } }

/* parents' day timeline */
.timeline { list-style: none; margin: 18px 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent), var(--t-no)); }
.timeline li { display: grid; grid-template-columns: 50px 1fr; gap: 0 28px; padding: 10px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 57px; top: 16px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--blue-300); }
.timeline time { grid-row: span 2; font-weight: 800; color: var(--blue-300); font-variant-numeric: tabular-nums; font-size: 15px; padding-top: 1px; }
.timeline b { color: var(--heading); }
.timeline span { color: var(--muted); font-size: 15px; }

/* cost calculator */
.calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin: 18px 0 10px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.calc input { width: 100%; font: inherit; font-size: 16px; font-weight: 700; color: var(--heading); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 10px; }
.calc input:focus { outline: none; border-color: var(--blue-300); box-shadow: 0 0 0 3px rgba(143, 181, 255, .25); }
.calc-out { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.calc-total { font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 46px); font-weight: 800; color: var(--heading); letter-spacing: -.02em; }
.calc-break { font-size: 14px; color: var(--muted); }

/* events at this venue (from data/events.js) */
.v-events { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.v-events a { display: grid; grid-template-columns: 4px 96px 1fr auto; gap: 0 14px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none; transition: border-color var(--dur), transform var(--dur) var(--ease); }
@media (hover: hover) { .v-events a:hover { border-color: var(--bar); transform: translateX(3px); } }
.v-events .sw { align-self: stretch; border-radius: 2px; background: var(--bar); box-shadow: 0 0 8px var(--bar); }
.v-events .d { font-size: 13px; font-weight: 800; color: var(--bar); font-variant-numeric: tabular-nums; }
.v-events .n { font-weight: 700; color: var(--heading); line-height: 1.3; }
.v-events .n small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.v-events .go { color: var(--blue-300); font-weight: 700; }
.v-events .empty { color: var(--muted); }
@media (max-width: 520px) { .v-events a { grid-template-columns: 4px 1fr auto; } .v-events .d { grid-column: 2; } .v-events .n { grid-column: 2; } .v-events .go { grid-column: 3; grid-row: 1 / 3; } .v-events .sw { grid-row: 1 / 3; } }

/* 2-column technique tables fit a phone without side-scrolling */
.wind-panel .table-wrap table { min-width: 0; }
.wind-panel .table-wrap td:first-child { white-space: normal; width: 34%; }

/* POLISH-AUDIT #1: pressed states (hover is pointer-only above) */
.v-jump-card:active, .v-events a:active { transform: scale(.985); transition-duration: var(--dur-fast); }
.wind-rose button:active, .v-pin:active { transform: scale(.94); transition-duration: var(--dur-fast); }
/* #11: map pins look 30 px but take a 44 px tap */
.v-pin::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; }

/* ---- Writing + artwork placeholders (James 14 Nov) ----
   .draft  = words WE drafted (not from James/Kai): shown with a yellow edge until James writes his own.
   .todo   = an empty slot James fills in; its text says what goes there.
   .gfx-slot = a blank space for artwork James makes in his own design tool; data-prompt holds the brief. */
.draft { position: relative; box-shadow: inset 3px 0 0 #ffd66b; padding-left: 12px; }
.draft::before { content: "Draft · James to rewrite"; display: block; font: 700 10px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #b98a00; }
.mini-card.draft::before { margin-bottom: 4px; }
.todo { border: 1px dashed #e0b23c; background: rgba(255, 214, 107, .1); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.todo::before { content: "To add · James"; display: block; font: 700 10px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #b98a00; margin-bottom: 2px; }
.todo b { color: var(--heading); }
.gfx-slot { display: grid; place-items: center; text-align: center; gap: 8px; aspect-ratio: var(--ar, 16 / 9); border: 2px dashed #e0b23c; border-radius: var(--radius); background: rgba(255, 214, 107, .06); padding: 18px; color: var(--muted); font-size: 13px; }
.gfx-slot::before { content: "Artwork · James"; font: 700 10px/1.4 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #b98a00; }
.v-shot { margin: 18px 0 6px; }
.v-shot img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); display: block; }
.v-shot figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Nav hides while reading down, back on the first scroll up (venues.js) */
.venue-page .nav { transition: transform var(--dur-slow) var(--ease), background var(--dur-slow), box-shadow var(--dur-slow), color var(--dur); }
.venue-page.nav-hid .nav:not(.is-open) { transform: translateY(-100%); box-shadow: none; }
.venue-page .toc { transition: transform var(--dur-slow) var(--ease), opacity var(--dur) var(--ease), visibility var(--dur); }
.venue-page.nav-hid .toc:not(.is-open) { transform: translateY(calc(-1 * var(--nav-h))); }

/* windy.app stats widget: their own white theme, so it sits on a white card */
.v-windy { margin: 20px 0 8px; }
.v-windy-box { background: #fff; border-radius: var(--radius); padding: 10px; min-height: 220px; overflow: hidden; }
.v-windy figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* hero photo credit (15 Nov) */
.g-hero { position: relative; }
.hero-credit { position: absolute; right: 8px; bottom: 8px; z-index: 3; margin: 0; padding: 2px 8px; border-radius: 999px; background: rgba(3, 19, 46, .72); color: #dbe6f6; font-size: .62rem; letter-spacing: .02em; }
.hero-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
