:root {
  --primary: #519CC8; --secondary: #3A7CA5; --accent: #BAE8E8;
  --petrol: #164E63; --bg: #F0F7FA; --surface: #FFFFFF;
  --surface-soft: #D9E9F2; --text: #164E63; --text-muted: #4E7A93;
  --line: #D9E9F2; --good: #1a8f5c; --fair: #c98a1b; --poor: #c0503f;
}
body.theme-ski {
  --primary: #819FF9; --secondary: #6C8EE8; --accent: #E0E7FF;
  --petrol: #2F3E75; --bg: #F8FAFF; --surface: #FFFFFF;
  --surface-soft: #EDF2FF; --text: #2F3E75; --text-muted: #5C6B9E;
  --line: #E0E7FF;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
.hero-band { background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 55%, transparent) 0%, color-mix(in srgb, var(--primary) 30%, transparent) 35%, color-mix(in srgb, var(--primary) 10%, transparent) 75%, var(--bg) 100%); padding-bottom: 1.2rem; }
header.site { display: flex; align-items: center; justify-content: space-between; max-width: 60rem; margin: 0 auto; padding: 1rem 1.25rem; flex-wrap: wrap; gap: 0.6rem; }
.logo { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--petrol); }
.logo span { color: #fff; text-shadow: 0 1px 6px rgba(22,78,99,0.35); }
nav.site a { color: var(--petrol); margin-left: 1.4rem; font-size: 0.9rem; font-weight: 600; }
nav.site a.current { text-decoration: underline; text-underline-offset: 3px; }
.wrap { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem 4rem; }
.hero-band .wrap { padding-bottom: 0; }
.breadcrumb { font-size: 0.8rem; color: var(--petrol); opacity: 0.85; margin: 0.6rem 0 1.2rem; }
.breadcrumb a { color: var(--petrol); }
h1 { font-size: 1.9rem; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.4rem; text-wrap: balance; color: var(--petrol); }
.subtitle { color: var(--petrol); opacity: 0.85; margin-bottom: 1.6rem; max-width: 42rem; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; }
@media (max-width: 700px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.4rem; box-shadow: 0 2px 8px rgba(22,78,99,0.06); min-width: 0; }
.card h2 { font-size: 1rem; margin-bottom: 0.8rem; color: var(--petrol); }
.span-2 { grid-column: 1 / -1; }
.verdict-card { display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap; }
.verdict-badge { width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); border: 3px solid var(--good); flex-shrink: 0; }
.verdict-badge.fair { border-color: var(--fair); }
.verdict-badge.poor { border-color: var(--poor); }
.verdict-badge .score { font-size: 1.6rem; font-weight: 800; color: var(--good); line-height: 1; }
.verdict-badge.fair .score { color: var(--fair); }
.verdict-badge.poor .score { color: var(--poor); }
.verdict-badge .out-of { font-size: 0.65rem; color: var(--text-muted); }
.verdict-main { flex: 1; min-width: 260px; }
@media (max-width: 600px) {
  .verdict-card { flex-direction: column; gap: 0.9rem; }
  .verdict-badge { width: 72px; height: 72px; }
  .verdict-badge .score { font-size: 1.35rem; }
  .verdict-main { min-width: 0; width: 100%; }
}
.verdict-main .headline { font-size: 1.25rem; font-weight: 700; color: var(--petrol); }
.verdict-main .headline .level-tag { font-weight: 400; font-size: 0.75rem; color: var(--text-muted); }
.verdict-main .detail { color: var(--text-muted); font-size: 0.92rem; }
.cta { display: inline-block; background: var(--primary); color: #fff; font-weight: 700; padding: 0.7rem 1.4rem; border-radius: 10px; font-size: 0.95rem; box-shadow: 0 3px 10px rgba(81,156,200,0.35); }
.cta:hover { text-decoration: none; background: var(--secondary); }
.cta-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; }
.stat-row { display: flex; gap: 1.6rem; margin: 0.7rem 0 1rem; flex-wrap: wrap; }
.stat-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); font-weight: 600; }
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--petrol); }
.level-grid-wrap { position: relative; overflow-x: auto; margin: 0.9rem 0 0.4rem; }
.level-grid-wrap.scrollable { -webkit-mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); }
table.level-grid { border-collapse: collapse; font-size: 0.74rem; width: 100%; }
table.level-grid caption { text-align: left; font-size: 1rem; font-weight: 700; color: var(--petrol); padding-bottom: 0.6rem; }
table.level-grid th, table.level-grid td { padding: 0.45rem 0.55rem; text-align: center; border-bottom: 1px solid var(--line); }
table.level-grid thead th { border-bottom: 1px solid var(--line); color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.03em; }
table.level-grid tbody tr:last-child th, table.level-grid tbody tr:last-child td { border-bottom: none; }
table.level-grid th[scope="row"] { text-align: left; font-weight: 700; color: var(--petrol); text-transform: uppercase; font-size: 0.66rem; white-space: nowrap; }
table.level-grid td.today, table.level-grid th.today { background: var(--accent); }
.grid-dot { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 10px; font-weight: 800; color: #fff; line-height: 1; }
.grid-dot.good { background: var(--good); }
.grid-dot.good::after { content: '✓'; }
.grid-dot.fair { background: var(--fair); }
.grid-dot.fair::after { content: '–'; }
.grid-dot.poor { background: var(--poor); }
.grid-dot.poor::after { content: '×'; }
.grid-dot.none { background: transparent; border: 1.5px dashed var(--text-muted); }
.grid-legend { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.72rem; color: var(--text-muted); margin: 0.7rem 0 1.1rem; }
.grid-legend span { display: inline-flex; align-items: center; gap: 0.35rem; }
.grid-legend .grid-dot { width: 14px; height: 14px; font-size: 8px; }
.grid-legend .grid-dot.none { width: 14px; height: 14px; }
dl.specs { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.2rem; font-size: 0.92rem; }
dl.specs dt { color: var(--text-muted); }
dl.specs dd { font-weight: 600; }
table.tides { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
table.tides td, table.tides th { padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--line); text-align: left; }
table.tides th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; }
.tide-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; }
#map { height: 260px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-soft); }
section.prose { margin-top: 2.2rem; max-width: 44rem; }
section.prose h2 { font-size: 1.2rem; margin: 1.6rem 0 0.5rem; color: var(--petrol); }
section.prose p { color: var(--text-muted); margin: 0.6rem 0; font-size: 0.95rem; }
section.prose strong { color: var(--petrol); }
.nearby { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.8rem; }
.nearby a { background: var(--surface); border: 1px solid var(--surface-soft); border-radius: 99px; padding: 0.35rem 0.9rem; font-size: 0.85rem; color: var(--secondary); font-weight: 600; }
.nearby a:hover { background: var(--accent); text-decoration: none; }
.spot-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.spot-list a { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1rem; font-weight: 600; }
.spot-list a:hover { border-color: var(--primary); text-decoration: none; }
.spot-list .city { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 400; }
.updated { font-size: 0.75rem; color: var(--text-muted); margin-top: 1.2rem; }
footer.site { border-top: 1px solid var(--line); background: var(--surface); margin-top: 3.5rem; padding: 1.6rem 1.25rem; font-size: 0.8rem; color: var(--text-muted); }
footer.site .inner { max-width: 60rem; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; }
footer.site a { color: var(--text-muted); margin-right: 1rem; }
footer.site .social a { margin-right: 0.8rem; }
footer.site .social-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.not-found { text-align: center; padding: 2rem 0 1rem; max-width: 30rem; margin: 0 auto; }
.not-found-art { width: 200px; margin: 0 auto 0.6rem; }
.not-found-art svg { width: 100%; height: auto; }
.not-found-code { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-muted); }
.not-found h1 { font-size: 1.7rem; margin: 0.3rem 0 0.4rem; }
.not-found .subtitle { margin-bottom: 1.4rem; }
.not-found-actions { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.not-found-home { margin-top: 1.1rem; font-size: 0.85rem; }