/* Muldae Note — coastal field journal. Original JS-facing tokens are retained. */
:root {
  color-scheme: light;
  --paper: #F5F4EF; --surface: #FFFEFB; --ink: #17353A; --ink-2: #586D6E; --line: #D8E1DA;
  --tide: #176B68; --tide-soft: #E1EDE7; --float: #B84B2E; --float-soft: #F8E9DF;
  --kelp: #49755D; --sand: #92713B;
  --font-display: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1168px; --radius: 16px;
  --on-tide: #FFFFFF; --on-float: #FFFFFF; --raised: #FFFFFF; --map-tiles-filter: none;
  --placeholder: #E9EEE6; --sand-soft: #EEEBDD;
  --hero-bg: #123E46; --hero-ink: #F7F6EC; --hero-muted: #C0D5D0; --hero-line: #365D62; --hero-accent: #EFA77C;
  --shadow: 0 10px 28px rgb(18 55 52 / 6%);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0D1B20; --surface: #15292E; --ink: #E5EEE8; --ink-2: #ADC0BC; --line: #30484B;
    --tide: #8BD1C2; --tide-soft: #203F3D; --float: #F1A079; --float-soft: #433027;
    --kelp: #A4CBA6; --sand: #D5BA83;
    --on-tide: #123532; --on-float: #322017; --raised: #1C3439; --map-tiles-filter: invert(1) hue-rotate(180deg) saturate(.45) brightness(.8) contrast(.9);
    --placeholder: #203937; --sand-soft: #333A2D;
    --hero-bg: #102F37; --hero-ink: #F0F4EB; --hero-muted: #B7CFC7; --hero-line: #33545A; --hero-accent: #F1AC83;
    --shadow: 0 10px 28px rgb(0 0 0 / 16%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0D1B20; --surface: #15292E; --ink: #E5EEE8; --ink-2: #ADC0BC; --line: #30484B;
  --tide: #8BD1C2; --tide-soft: #203F3D; --float: #F1A079; --float-soft: #433027;
  --kelp: #A4CBA6; --sand: #D5BA83;
  --on-tide: #123532; --on-float: #322017; --raised: #1C3439; --map-tiles-filter: invert(1) hue-rotate(180deg) saturate(.45) brightness(.8) contrast(.9);
  --placeholder: #203937; --sand-soft: #333A2D;
  --hero-bg: #102F37; --hero-ink: #F0F4EB; --hero-muted: #B7CFC7; --hero-line: #33545A; --hero-accent: #F1AC83;
  --shadow: 0 10px 28px rgb(0 0 0 / 16%);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.75;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--tide); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--float); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; line-height: 1.35; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark { width: 14px; height: 34px; }
.logo-text { font-family: var(--font-display); font-size: 26px; letter-spacing: 0.01em; line-height: 1; }
.logo-sub { display: block; font-family: var(--font-body); font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; margin-top: 3px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 8px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--tide-soft); }
.nav a[aria-current="page"] { color: var(--tide); box-shadow: inset 0 -2px 0 var(--tide); border-radius: 0; }
.header-tools { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav.open { display: flex; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--tide); }
}

/* Search */
.search-panel { border-bottom: 1px solid var(--line); background: var(--surface); padding-block: 14px; }
.search-panel input { width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.search-results a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.search-results a:hover { background: var(--tide-soft); }
.search-results small { color: var(--ink-2); display: block; font-size: 13px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--surface); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding-block: 56px 88px; align-items: center; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tide); margin: 0 0 12px; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.15; margin: 0 0 18px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--float); }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; margin: 0 0 24px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid var(--tide); color: var(--tide); background: transparent; }
.btn.primary { background: var(--tide); color: var(--surface); }
.tide-curve { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72px; pointer-events: none; }
.tide-curve path.wave { fill: var(--tide-soft); }
.tide-curve path.line { fill: none; stroke: var(--tide); stroke-width: 1.5; }
.tide-curve text { font-family: var(--font-mono); font-size: 11px; fill: var(--ink-2); }

.month-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.month-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }
.month-card .sub { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.fish-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fish-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.fish-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fish-list span.memo { color: var(--ink-2); font-size: 13px; text-align: right; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: 2px; }
.pill.peak { background: var(--tide); color: var(--surface); }
.pill.ok { background: var(--tide-soft); color: var(--tide); }
.pill.closed { background: var(--float-soft); color: var(--float); }
.month-card .more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; }

/* Sections */
main { display: block; }
.section { padding-block: 48px; }
.section + .section { padding-top: 8px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; }
.section-head a { font-size: 14px; font-weight: 600; }

.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cat-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); min-height: 148px; }
.cat-card:hover { border-color: var(--tide); }
.cat-card .count { font-family: var(--font-mono); font-size: 12px; color: var(--tide); }
.cat-card strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.cat-card span.d { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 920px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.post-item { display: grid; gap: 6px; padding-block: 18px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-item:hover h3 { color: var(--tide); }
.post-item h3 { margin: 0; font-size: 19px; font-weight: 600; }
.post-item p { margin: 0; color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meta .cat { color: var(--tide); font-weight: 600; }
.meta .lvl { font-family: var(--font-mono); font-size: 11.5px; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; }

/* Page head */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 40px 32px; }
.page-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 8px; }
.page-head p { margin: 0; color: var(--ink-2); max-width: 40em; }
.crumbs { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }

/* Article */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 56px; padding-block: 40px 64px; }
.article-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 46px); margin: 0 0 14px; }
.article-head .summary { font-size: 18px; color: var(--ink-2); margin: 0 0 16px; }
.prose { max-width: 42em; font-size: 17px; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 2.2em 0 0.6em; padding-top: 0.6em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.prose h3 { font-size: 19px; margin: 1.8em 0 0.4em; scroll-margin-top: 90px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: 0.35em; }
.prose li::marker { color: var(--tide); }
.prose strong { font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-weight: 600; background: var(--tide-soft); color: var(--ink); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }

.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); align-self: start; font-size: 14px; }
.toc h2 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 10px; font-weight: 500; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; line-height: 1.45; }
.toc a:hover, .toc a.on { color: var(--tide); border-left-color: var(--tide); }
@media (max-width: 920px) { .article-grid { grid-template-columns: minmax(0, 1fr); gap: 0; } .toc { display: none; } }

/* Product boxes */
.gear { margin: 2.6em 0 0; }
.gear > h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.gear > p { color: var(--ink-2); margin: 0 0 16px; font-size: 15px; }
.gear-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gear-card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.gear-card .type { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--tide); }
.gear-card h3 { margin: 0; font-size: 17px; }
.gear-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.65; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 13.5px; }
.pc ul { margin: 0; padding-left: 1.1em; }
.pc b { display: block; font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.pc .pro b { color: var(--tide); }
.pc .con b { color: var(--float); }
.buy { margin-top: auto; display: inline-flex; justify-content: center; padding: 11px 14px; border-radius: 8px; background: var(--float); color: #fff; font-weight: 700; text-decoration: none; }
.buy.pending { background: var(--line); color: var(--ink-2); cursor: default; }
@media (max-width: 640px) { .gear-grid { grid-template-columns: minmax(0, 1fr); } }
.disclosure { margin: 20px 0 0; padding: 12px 14px; background: var(--tide-soft); border-radius: 8px; font-size: 13.5px; color: var(--ink-2); }

.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.tags span { font-size: 13px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }

.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 40px; }
.related h2 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 0 0 4px; }

/* Season calendar */
.cal-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cal { border-collapse: collapse; width: 100%; min-width: 760px; font-size: 14px; }
.cal th, .cal td { border-bottom: 1px solid var(--line); padding: 0; text-align: center; }
.cal thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 10px 0; }
.cal thead th.now { color: var(--float); font-weight: 700; }
.cal tbody th { text-align: left; padding: 10px 14px; font-weight: 600; white-space: nowrap; }
.cal td.memo { text-align: left; padding: 10px 14px; color: var(--ink-2); font-size: 13px; min-width: 180px; }
.cal td.m { width: 44px; height: 42px; position: relative; }
.cal td.m i { position: absolute; inset: 9px 3px; border-radius: 4px; }
.cal td.m.v1 i { background: var(--tide-soft); }
.cal td.m.v2 i { background: var(--tide); }
.cal td.m.vx i { background: repeating-linear-gradient(135deg, var(--float-soft) 0 4px, transparent 4px 8px); border: 1px solid var(--float); }
.cal td.m.now { background: color-mix(in srgb, var(--float) 7%, transparent); }
.cal tr:last-child th, .cal tr:last-child td { border-bottom: 0; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }

/* Rules */
.notice { border-left: 3px solid var(--float); background: var(--surface); padding: 14px 16px; border-radius: 0 8px 8px 0; margin: 0 0 20px; font-size: 15px; }
.num { font-variant-numeric: tabular-nums; }

/* Ads */
.ad-slot { margin: 28px 0; min-height: 100px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; }
.ad-real { margin: 28px 0; }

/* Plain pages */
.plain { padding-block: 40px 64px; }
.plain .prose h2 { border-top: 0; padding-top: 0; margin-top: 1.6em; font-size: 24px; }
.copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.copy-row code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 36px 40px; font-size: 14px; color: var(--ink-2); }
.foot-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-2); }
.site-footer p { margin: 8px 0 0; max-width: 46em; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 36px 84px; gap: 28px; }
  .post-list { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Month tabs */
.mtabs { display: flex; gap: 4px; overflow-x: auto; margin: 0 -4px 14px; padding: 0 4px 6px; scrollbar-width: thin; }
.mtab { flex: 0 0 auto; font: inherit; font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; font-variant-numeric: tabular-nums; position: relative; }
.mtab:hover { border-color: var(--tide); color: var(--tide); }
.mtab[aria-selected="true"] { background: var(--tide); border-color: var(--tide); color: var(--surface); }
.mtab.today::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--float); }
.fish-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--tide); }

/* Images */
.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--tide-soft); margin-bottom: 6px; }
.post-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.post-item { border-top: 0; padding-block: 12px 22px; }
.cover { margin: 8px 0 28px; max-width: 46em; }
.cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--tide-soft); }
@media (max-width: 920px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .post-list { grid-template-columns: minmax(0, 1fr); } }
.related .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .related .post-list { grid-template-columns: minmax(0, 1fr); } }

/* Empty thumbnail (until real images are added) */
.thumb-empty { display: flex; align-items: flex-end; padding: 12px 14px; font-family: var(--font-display); font-size: 18px; color: var(--tide); background: var(--tide-soft); border: 1px solid var(--line); box-sizing: border-box; }

/* Fishing map */
.map-filters { display: flex; gap: 8px 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.map-filters select { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); }
.map-count { margin-left: auto; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.map-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.map { position: relative; height: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--tide-soft); z-index: 0; }
.map-warn { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.spot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 560px; overflow-y: auto; }
.spot { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.spot.on { border-color: var(--tide); box-shadow: inset 3px 0 0 var(--tide); }
.spot-btn { display: grid; gap: 4px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; padding: 12px 14px 6px; cursor: pointer; }
.spot-top { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.spot-top .pill { margin-left: 6px; }
.spot-meta { font-size: 13px; color: var(--ink-2); }
.spot-note { font-size: 14px; line-height: 1.55; }
.spot-links { display: flex; gap: 12px; padding: 0 14px 10px; font-size: 13px; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-popup-content { font-size: 13.5px; line-height: 1.6; }
@media (max-width: 900px) { .map-grid { grid-template-columns: minmax(0, 1fr); } .map { height: 420px; } .spot-list { max-height: none; } }

/* Map filters (tabs) */
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.fgroup { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.flabel { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-2); width: 40px; flex-shrink: 0; }
.ftab { font: inherit; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ftab span { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); }
.ftab[data-group="type"][data-value]:not([data-value=""])::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--tide)); }
.ftab:hover { border-color: var(--tide); }
.ftab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.ftab[aria-pressed="true"] span { color: var(--surface); opacity: 0.75; }
.fgroup select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.type-desc { margin: 2px 0 0; display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.type-desc b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.tbadge { display: inline-block; font-size: 11.5px; font-weight: 700; color: #fff; padding: 1px 8px; border-radius: 4px; margin-right: 8px; background: var(--tide); }
.spot-top .pill { margin-left: 0; }
.unv { color: var(--float); font-weight: 600; }
.spot-fish { display: flex; gap: 4px; flex-wrap: wrap; }
.spot-fish span { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--tide-soft); color: var(--tide); }
.spot-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; padding: 4px 14px 8px; font-size: 13px; }
.spot-info dt { color: var(--ink-2); font-size: 11.5px; }
.spot-info dd { margin: 0; line-height: 1.45; }
.spot-caution { margin: 0; padding: 0 14px 8px; font-size: 13px; color: var(--float); }
.map { background: var(--tide-soft); }
.leaflet-container { background: var(--tide-soft); }
.spot-list { max-height: 620px; }
.map { height: 620px; }
@media (max-width: 900px) { .map { height: 440px; } .spot-list { max-height: none; } }

.ftab.zero { opacity: 0.45; }

.off { color: var(--tide); font-weight: 600; }

/* Fish */
.spot-fish span.lk, .chip-demo.lk { background: transparent; border: 1px dashed var(--tide); color: var(--ink-2); }
.chip-demo { display: inline-block; width: 22px; height: 12px; border-radius: 999px; background: var(--tide-soft); vertical-align: -1px; margin: 0 4px; }
.fish-h { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin: 28px 0 12px; }
.fish-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fish-card { display: grid; gap: 4px; align-content: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.fish-card:hover { border-color: var(--tide); }
.fish-card strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.alias { font-size: 12.5px; color: var(--ink-2); }
.fish-meta { font-size: 13px; color: var(--ink-2); }
.fish-regions { display: flex; gap: 4px; flex-wrap: wrap; }
.fish-regions i { font-style: normal; font-size: 11.5px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); }
.fish-now { font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.fish-now.peak { color: var(--tide); } .fish-now.ok { color: var(--ink); } .fish-now.closed { color: var(--float); } .fish-now.off { color: var(--ink-2); font-weight: 400; }
.alias-h { font-family: var(--font-body); font-size: 16px; color: var(--ink-2); font-weight: 400; }
.fish-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.fish-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.fish-facts dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.06em; }
.fish-facts dd { margin: 4px 0 0; font-weight: 500; line-height: 1.5; }
.fish-tip { max-width: 42em; font-size: 16.5px; margin: 0; }
.cal th a { color: var(--ink); text-decoration: none; }
.cal th a:hover { color: var(--tide); }
@media (max-width: 920px) { .fish-grid, .fish-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Tide panel */
.tide-panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding-block: 20px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.tide-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.tide-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin: 0; }
.tide-sub { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.tide-date { display: flex; gap: 6px; align-items: center; }
.tide-date input { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.tide-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.tday { font: inherit; display: grid; gap: 3px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); cursor: pointer; text-align: center; min-width: 0; }
.tday.on { border-color: var(--tide); box-shadow: inset 0 0 0 1px var(--tide); background: var(--tide-soft); }
.td-d { font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.td-m { font-weight: 700; font-size: 15px; }
.td-bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.td-bar i, .tide-meter i { display: block; height: 100%; background: var(--tide); }
.tide-body { display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.tide-facts { display: grid; gap: 10px; margin: 0; }
.tide-facts dt { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); letter-spacing: 0.06em; }
.tide-facts dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.tide-facts b { font-size: 22px; font-family: var(--font-display); font-weight: 400; }
.tide-facts small { color: var(--ink-2); }
.tide-meter { display: block; height: 6px; margin-top: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.tide-chart-wrap { min-width: 0; }
#tide-chart svg { width: 100%; height: auto; display: block; }
.tc-night { fill: var(--ink); opacity: 0.06; }
.tc-best { fill: var(--float); opacity: 0.16; }
.tc-bl { fill: var(--float); font: 700 12px var(--font-mono); }
.tc-grid { stroke: var(--line); stroke-width: 1; }
.tc-ax, .tc-sun { fill: var(--ink-2); font: 11px var(--font-mono); }
.tc-area { fill: var(--tide); opacity: 0.12; }
.tc-line { fill: none; stroke: var(--tide); stroke-width: 2.5; }
.tc-pt { fill: var(--surface); stroke: var(--tide); stroke-width: 2; }
.tc-lbl { fill: var(--ink); font: 600 11.5px var(--font-body); }
.tc-empty { fill: var(--ink-2); font: 13px var(--font-body); }
.tide-note { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 0; }
.tide-best h3 { margin: 0 0 8px; font-size: 15px; }
.tide-best ol { margin: 0; padding: 0; list-style: none; counter-reset: b; display: grid; gap: 8px; }
.tide-best li { counter-increment: b; display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; font-size: 14px; }
.tide-best li::before { content: counter(b); grid-row: span 3; width: 22px; height: 22px; border-radius: 50%; background: var(--float); color: #fff; font: 700 12px/22px var(--font-mono); text-align: center; }
.tide-best li b { font-variant-numeric: tabular-nums; }
.tide-best li span { color: var(--ink-2); font-size: 13px; }
.tide-best li em { font-style: normal; font-size: 12px; color: var(--float); font-weight: 600; }
.tide-advice { margin: 12px 0 0; font-size: 14px; padding: 10px 12px; background: var(--tide-soft); border-radius: 8px; }
@media (max-width: 1000px) { .tide-body { grid-template-columns: minmax(0, 1fr); } .tide-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tide-week { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; } }

/* Sub tabs & sub cards */
.subtabs { display: grid; gap: 8px; margin-top: 18px; }
.subtabs a.ftab { text-decoration: none; }
.subtabs a.ftab[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.subtabs a.ftab[aria-current="page"] span { color: var(--surface); opacity: 0.75; }
.sub-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sub-card { display: grid; gap: 6px; align-content: start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.sub-card:hover { border-color: var(--tide); }
.sub-card strong { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.sub-card span { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.empty-note { color: var(--ink-2); margin-top: 28px; }
.rtabs-home { display: flex; gap: 4px; margin: 0 0 10px; }
.hrt { font: inherit; font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.hrt[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
@media (max-width: 920px) { .sub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Image slots */
.gear-img, .fish-img, .fish-hero { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; overflow: hidden; background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--tide-soft) 10px 20px); border: 1px dashed var(--line); color: var(--ink-2); font-size: 13px; }
.gear-img img, .fish-img img, .fish-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gear-img span, .fish-img span, .fish-hero span { background: var(--surface); padding: 2px 10px; border-radius: 999px; }
.fish-img { aspect-ratio: 3 / 2; margin-bottom: 6px; }
.fish-hero { aspect-ratio: 16 / 7; margin: 0 0 18px; max-width: 900px; }
.gear-spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin: 2px 0; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: 13px; }
.gear-spec div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding-bottom: 3px; min-width: 0; }
.gear-spec dt { color: var(--ink-2); }
.gear-spec dd { margin: 0; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.gear-price { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid var(--line); }
.gear-price strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.gear-price strong.tbd { font-size: 15px; color: var(--ink-2); font-weight: 500; }
.gear-price small { font-size: 12px; color: var(--ink-2); }
.gear-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 920px) { .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gear-grid { grid-template-columns: minmax(0, 1fr); } }
.sub-desc { margin: 0 0 18px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; max-width: 52em; }

/* Map list & zones */
.spot-col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.list-note { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.list-empty { padding: 16px; color: var(--ink-2); font-size: 14px; background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; }
.zone-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; }
.zone-x, .zone-marker { color: #fff; background: var(--float); border-radius: 50%; font-weight: 700; text-align: center; }
.zone-x { display: inline-block; width: 18px; height: 18px; line-height: 18px; font-size: 11px; }
.zone-marker { width: 20px; height: 20px; line-height: 20px; font-size: 12px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.zone-warn { font-weight: 600; }
.zones { margin-top: 28px; }
.zone-go { font: inherit; background: none; border: 0; padding: 0; color: var(--tide); text-decoration: underline; cursor: pointer; text-align: left; }

/* Multi-select filters */
.fish-chips { row-gap: 6px; }
.fish-chips .ftab { padding: 4px 10px; font-size: 13px; }
.multi-hint { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.multi-hint .map-count { margin-left: auto; }
.link-btn { font: inherit; background: none; border: 0; padding: 0; color: var(--tide); text-decoration: underline; cursor: pointer; }

/* Spot photos */
.spot-photos { display: grid; gap: 4px; padding: 0 14px 8px; }
.spot-photos.multi { grid-template-columns: 2fr 1fr; }
.spot-photos button { padding: 0; border: 0; background: var(--tide-soft); border-radius: 6px; overflow: hidden; cursor: zoom-in; position: relative; }
.spot-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-main { aspect-ratio: 4 / 3; }
.ph-thumbs { display: grid; gap: 4px; grid-auto-rows: 1fr; }
.ph-th span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; }
.spot-photos.empty { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 14px 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 6px; font-size: 13px; color: var(--ink-2); background: repeating-linear-gradient(135deg, var(--paper) 0 8px, var(--tide-soft) 8px 16px); }
.spot-photos.empty span { background: var(--surface); padding: 1px 8px; border-radius: 999px; }
.spot-photos.empty a { background: var(--surface); padding: 1px 8px; border-radius: 999px; }
.pop-img { display: block; width: 220px; max-width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8, 18, 22, .9); display: flex; align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #E2ECEB; text-align: center; margin-top: 8px; font-size: 14px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 22px; cursor: pointer; }
.lb-close { top: max(16px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
.lb-prev { left: max(16px, env(safe-area-inset-left, 0px)); } .lb-next { right: max(16px, env(safe-area-inset-right, 0px)); }

.ph-credit { grid-column: 1 / -1; font-size: 11.5px; color: var(--ink-2); }
.spot-links .link-btn { font-size: 13px; }

/* ========================================================================
   Coastal field journal · shared presentation layer
   Keep the specialized map/chart styles above and all JS selector contracts.
   No document-wide overflow clipping: tables own their horizontal scrolling.
   ======================================================================== */
html { scroll-padding-top: 100px; }
body { line-height: 1.8; letter-spacing: -.015em; }
button, input, select, summary { font: inherit; }
button, input, select { max-width: 100%; }
button, summary, label[for="month-expand"] { -webkit-tap-highlight-color: transparent; }
a, button, input, select, summary { touch-action: manipulation; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--float); outline-offset: 4px;
}
::selection { background: var(--tide); color: var(--on-tide); }
h1, h2, h3 { letter-spacing: -.045em; }
.wrap { width: 100%; padding-inline: max(24px, env(safe-area-inset-left, 0px)) max(24px, env(safe-area-inset-right, 0px)); }
.hero-grid > *, .article-grid > *, .map-grid > *, .tide-body > *, .foot-grid > *, .gear-card > *, .post-list > *, .plain, .prose, .section .wrap, .cal-wrap, .table-wrap { min-width: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.when-open { display: none; }

/* Navigation: a compact masthead with an unmistakable active destination. */
.site-header { background: var(--surface); box-shadow: 0 1px 0 var(--line); border: 0; }
.header-row { min-height: 82px; gap: 30px; }
.logo { gap: 12px; }
.logo-mark { width: 17px; height: 40px; }
.logo-text { font-size: 27px; font-weight: 700; letter-spacing: -.065em; }
.logo-sub { margin-top: 7px; font-size: 10px; letter-spacing: .025em; }
.nav { justify-content: flex-end; gap: 2px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 10px; font-size: 14px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.nav a[aria-current="page"] { color: var(--tide); background: var(--tide-soft); box-shadow: none; border-radius: 8px; }
.header-tools { gap: 8px; }
.icon-btn { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: transparent; }
.icon-btn:hover { background: var(--tide-soft); border-color: var(--tide); }
.icon-btn[aria-expanded="true"] { color: var(--on-tide); background: var(--tide); border-color: var(--tide); }
.search-panel { padding-block: 22px; box-shadow: var(--shadow); }
.search-panel input { border-radius: 12px; min-height: 52px; background: var(--paper); padding: 12px 18px; }
.search-results { max-height: min(480px, 60dvh); overflow-y: auto; }
.search-results a { min-height: 48px; padding: 12px; }

/* Home: deep water, warm paper and a short, expandable seasonal notebook. */
.hero { background: var(--hero-bg); border-bottom: 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; border: 1px solid var(--hero-line); left: -300px; top: -300px; box-shadow: 0 0 0 70px var(--hero-bg), 0 0 0 71px var(--hero-line), 0 0 0 145px var(--hero-bg), 0 0 0 146px var(--hero-line); opacity: .45; pointer-events: none; }
.hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; padding-block: 52px 72px; align-items: center; }
.hero-copy { padding-block: 24px; }
.hero .eyebrow { color: var(--hero-muted); display: flex; align-items: center; gap: 10px; font: 500 13px var(--font-body); letter-spacing: .14em; margin-bottom: 25px; }
.hero .eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hero-accent); }
.hero h1 { color: var(--hero-ink); font-size: clamp(36px, 4.6vw, 57px); font-weight: 600; line-height: 1.29; letter-spacing: -.06em; margin-bottom: 26px; }
.hero h1 em { color: var(--hero-accent); }
.hero p.lead { color: var(--hero-muted); font-size: 17px; line-height: 1.95; max-width: 29em; margin-bottom: 32px; }
.btn { min-height: 48px; padding: 11px 19px; justify-content: center; border-radius: 10px; font-size: 15px; line-height: 1.6; gap: 10px; cursor: pointer; }
.btn.primary { background: var(--tide); color: var(--on-tide); }
.btn:hover { background: var(--tide-soft); color: var(--tide); }
.btn.primary:hover { background: color-mix(in srgb, var(--tide) 88%, var(--ink)); color: var(--on-tide); }
.hero .btn { color: var(--hero-ink); border-color: var(--hero-line); background: transparent; }
.hero .btn.primary { background: var(--hero-accent); border-color: var(--hero-accent); color: #243D3E; }
.hero .btn.primary::after { content: "↗"; font-size: 19px; }
.hero .btn:hover { border-color: var(--hero-ink); background: var(--hero-line); }
.hero .btn.primary:hover { background: #F5BE99; border-color: #F5BE99; color: #243D3E; }
.tide-curve { height: 38px; opacity: .7; }
.tide-curve path.wave { fill: var(--hero-line); }
.tide-curve path.line { stroke: var(--hero-muted); stroke-width: 1; }
.month-card { position: relative; background: var(--surface); border: 0; border-radius: 18px; padding: 24px; box-shadow: 0 20px 50px rgb(0 0 0 / 12%); }
.month-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.month-card h2 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.06em; }
#month-region { font-size: 15px; font-weight: 500; margin-left: 3px; color: var(--ink-2); }
.rtabs-home { margin: 0; gap: 2px; padding: 3px; background: var(--paper); border-radius: 9px; }
.hrt { border: 0; background: transparent; border-radius: 6px; min-height: 40px; min-width: 40px; padding: 5px 7px; font-size: 12px; }
.hrt[aria-pressed="true"] { color: var(--on-tide); background: var(--tide); }
.month-card .sub { margin: 12px 0; font-size: 13px; }
.mtabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; overflow: visible; margin: 0 0 12px; padding: 0; }
.mtab { min-width: 0; min-height: 40px; padding: 6px 2px; border-color: transparent; border-radius: 7px; background: var(--paper); font-size: 12px; }
.mtab[aria-selected="true"] { background: var(--tide); color: var(--on-tide); border-color: var(--tide); }
.mtab.today::after { width: 5px; height: 5px; top: 5px; right: 5px; background: var(--float); box-shadow: 0 0 0 1px var(--surface); }
.fish-list { gap: 0; }
.fish-list li { align-items: center; gap: 12px; min-height: 49px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fish-list li:last-child { padding-bottom: 9px; }
.fish-list li > span:first-child { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fish-list a { color: var(--ink); text-decoration: none; font-size: 14px; }
.fish-list a:hover { color: var(--tide); text-decoration: underline; }
.fish-list span.memo { font-size: 11px; max-width: 43%; line-height: 1.5; }
.pill { font-size: 10px; padding: 2px 7px; line-height: 1.6; margin-left: 0; white-space: nowrap; }
.pill.peak { color: var(--on-tide); background: var(--tide); }
.pill.closed { color: var(--float); background: var(--float-soft); border: 1px solid color-mix(in srgb, var(--float) 30%, transparent); }
.month-switch:not(:checked) ~ .fish-list li:nth-child(n+5) { display: none; }
.month-switch:checked ~ .month-toggle .when-closed { display: none; }
.month-switch:checked ~ .month-toggle .when-open { display: inline; }
.month-switch:checked ~ .month-toggle > [aria-hidden] { transform: rotate(45deg); }
.month-switch:focus-visible ~ .month-toggle { outline: 3px solid var(--float); outline-offset: 3px; }
.month-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; min-height: 44px; padding: 8px 0; font-size: 12px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.month-toggle:hover { color: var(--tide); }
.month-toggle > [aria-hidden] { font-size: 20px; color: var(--tide); }
.month-card .more { display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin: 10px 0 -5px; font-size: 13px; text-decoration: none; }
.month-card .more::after { content: "↗"; font-size: 20px; }

/* Clear page hierarchy and editorial cards, with deliberate empty artwork. */
.section { padding-block: 44px; }
.section + .section { padding-top: 12px; }
.section-head { margin-bottom: 24px; align-items: center; }
.section-head h2 { font-weight: 700; font-size: 27px; }
.section-head a { min-height: 40px; display: inline-flex; align-items: center; }
.cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: category; }
.cat-card { position: relative; padding: 23px; min-height: 174px; border-radius: 14px; gap: 8px; transition: border-color .15s, transform .15s; counter-increment: category; }
.cat-card::after { content: "↗"; position: absolute; right: 20px; top: 17px; font-size: 22px; color: var(--tide); }
.cat-card .count { font-size: 11px; letter-spacing: .02em; }
.cat-card .count::before { content: "0" counter(category) " / "; opacity: .7; }
.cat-card strong { font-weight: 700; font-size: 21px; }
.cat-card span.d { font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: 18em; }
.cat-card:hover, .sub-card:hover { border-color: var(--tide); transform: translateY(-2px); }
.post-list { gap: 28px 22px; }
.post-item { gap: 12px; padding: 0 0 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; align-content: start; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.post-item:hover { border-color: var(--tide); box-shadow: var(--shadow); }
.post-item > :not(.thumb) { margin-inline: 20px; }
.post-item h3 { font-size: 19px; line-height: 1.55; letter-spacing: -.03em; font-weight: 600; }
.post-item p { font-size: 16px; line-height: 1.7; }
.meta { font-size: 12px; gap: 8px; line-height: 1.7; }
.meta .cat { font-weight: 600; }
.meta .lvl { font-size: 10px; border-color: var(--line); border-radius: 4px; padding-inline: 5px; }
.thumb { margin: 0 0 3px; border-radius: 13px 13px 0 0; width: 100%; aspect-ratio: 16 / 9; }
.thumb-empty { position: relative; isolation: isolate; overflow: hidden; align-items: flex-end; border: 0; padding: 20px; font-size: 13px; font-weight: 600; color: var(--tide); background-color: var(--placeholder); background-image: radial-gradient(ellipse at 100% 110%, transparent 44%, color-mix(in srgb, var(--tide) 15%, transparent) 44.5%, transparent 45.2%, transparent 56%, color-mix(in srgb, var(--tide) 15%, transparent) 56.5%, transparent 57.2%, transparent 68%, color-mix(in srgb, var(--tide) 15%, transparent) 68.5%, transparent 69.2%); }
.thumb-empty::before { content: ""; position: absolute; right: 24%; top: 29%; width: 9px; height: 35px; border-radius: 6px; background: linear-gradient(var(--float) 0 28%, var(--surface) 28% 43%, var(--tide) 43% 100%); transform: rotate(16deg); box-shadow: 0 16px 0 -3px var(--tide); }
.post-item[data-category="gear"] .thumb-empty { background-color: var(--sand-soft); }
.post-item[data-category="situation"] .thumb-empty { background-color: var(--tide-soft); }
.post-item[data-category="season"] .thumb-empty { background-color: var(--placeholder); }
.page-head { position: relative; background: var(--surface); padding-block: 32px 36px; border-bottom: 1px solid var(--line); }
.page-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: min(24vw, 300px); height: 3px; background: var(--tide); }
.page-head h1 { font-size: clamp(30px, 4vw, 43px); font-weight: 700; line-height: 1.4; margin-bottom: 12px; }
.page-head p { font-size: 16px; max-width: 48em; line-height: 1.85; }
.crumbs { font-size: 12px; gap: 9px; margin-bottom: 16px; }
.crumbs a { text-decoration: none; min-height: 24px; }
.crumbs a:hover { text-decoration: underline; }
.sub-grid { gap: 14px; }
.sub-card { padding: 22px; border-radius: 14px; gap: 10px; transition: border-color .15s, transform .15s; }
.sub-card strong { font-size: 21px; font-weight: 700; }
.sub-card span { font-size: 14px; line-height: 1.7; }
.sub-desc { font-size: 16px; padding: 16px 20px; border-radius: 12px; border-left: 3px solid var(--tide); }

/* Tabs and chips use the same selected, hover, focus and zero-count states. */
.subtabs { margin-top: 24px; gap: 10px; }
.fgroup { gap: 7px; }
.ftab, .fish-chips .ftab { min-height: 40px; font-size: 13px; line-height: 1.5; padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.ftab span { font-size: 10px; }
.ftab[aria-pressed="true"], .subtabs a.ftab[aria-current="page"] { background: var(--tide); color: var(--on-tide); border-color: var(--tide); }
.ftab[aria-pressed="true"] span, .subtabs a.ftab[aria-current="page"] span { color: var(--on-tide); opacity: .85; }
.ftab.zero { opacity: .65; border-style: dashed; }
.ftab.zero span { text-decoration: line-through; }
.flabel { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0; width: 36px; }

/* Articles: measured line length, distinct section starts, quiet tables. */
.article-grid { grid-template-columns: minmax(0, 780px) minmax(0, 220px); gap: 48px; padding-block: 42px 64px; justify-content: space-between; }
.article-grid > article { padding: 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.article-head h1 { font-weight: 700; font-size: clamp(29px, 3.35vw, 41px); line-height: 1.5; letter-spacing: -.05em; margin: 0 0 18px; }
.article-head .summary { font-size: 18px; line-height: 1.85; margin-bottom: 20px; }
.article-head .meta { padding-bottom: 24px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.cover { margin: 0 0 32px; }
.cover img { border-radius: 10px; }
.prose { font-size: 17px; line-height: 1.95; max-width: 42em; }
.prose h2 { font-weight: 700; font-size: 26px; margin: 2.2em 0 .8em; padding-top: 1.15em; border-color: var(--line); line-height: 1.5; }
.prose h3 { font-size: 19px; line-height: 1.6; margin: 1.6em 0 .65em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.25em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: .55em; }
.prose a { text-decoration-thickness: 1px; }
.prose blockquote { margin: 24px 0; border-left: 3px solid var(--tide); background: var(--tide-soft); padding: 18px 22px; border-radius: 0 10px 10px 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.table-wrap { width: 100%; max-width: 100%; border-radius: 10px; margin-block: 12px 28px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--tide) var(--paper); }
.table-wrap table { font-size: 15px; line-height: 1.7; }
.table-wrap th { background: var(--tide-soft); color: var(--ink); font-weight: 600; font-size: 13px; padding: 14px 16px; }
.table-wrap td { padding: 14px 16px; }
.table-wrap tbody tr:nth-child(even) { background: color-mix(in srgb, var(--paper) 60%, var(--surface)); }
.table-wrap tbody tr:hover { background: var(--tide-soft); }
.toc { top: 108px; padding: 20px 0 20px 20px; border-left: 1px solid var(--line); font-size: 13px; }
.toc h2 { font: 600 13px var(--font-body); color: var(--tide); letter-spacing: 0; margin-bottom: 14px; }
.toc ol { border-left: 0; }
.toc a { min-height: 40px; display: flex; align-items: center; padding: 8px 12px; margin-left: -21px; padding-left: 20px; line-height: 1.65; }
.toc a.on { background: var(--tide-soft); border-left: 3px solid var(--tide); font-weight: 600; border-radius: 0 7px 7px 0; }
.tags { gap: 7px; }
.tags span { border: 0; background: var(--paper); padding: 5px 10px; font-size: 12px; }
.related { margin-top: 32px; padding-top: 24px; }
.related h2 { font-weight: 700; font-size: 23px; margin-bottom: 20px; }
.related .post-list { gap: 18px; }
.related .post-item h3 { font-size: 17px; }
.related .post-item > :not(.thumb) { margin-inline: 14px; }
.related .post-item p { font-size: 15px; }

/* Gear: photo, name and price first; detailed specifications stay available. */
.gear > h2 { font-size: 25px; font-weight: 700; }
.gear > p { font-size: 16px; margin-bottom: 22px; }
.gear-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.gear-card { border-radius: 16px; padding: 22px; gap: 14px; }
.gear-card .gear-img { order: 0; }
.gear-card .type { order: 1; font-family: var(--font-body); font-weight: 600; letter-spacing: .05em; font-size: 12px; }
.gear-card h3 { order: 2; font-weight: 700; font-size: 20px; line-height: 1.6; }
.gear-card .gear-price { order: 3; }
.gear-card .gear-spec { order: 4; }
.gear-card > p { order: 5; font-size: 16px; line-height: 1.85; }
.gear-card .pc { order: 6; }
.gear-card .buy { order: 7; }
.gear-img, .fish-img, .fish-hero { position: relative; isolation: isolate; background: var(--placeholder); border: 1px solid var(--line); border-radius: 10px; background-image: radial-gradient(ellipse at 50% 100%, transparent 40%, color-mix(in srgb, var(--tide) 12%, transparent) 40.6%, transparent 41.4%, transparent 59%, color-mix(in srgb, var(--tide) 12%, transparent) 59.6%, transparent 60.4%); }
.gear-img { aspect-ratio: 4 / 3; }
.gear-img span, .fish-img span, .fish-hero span { border-radius: 6px; font-size: 12px; padding: 6px 13px; border: 1px solid var(--line); background: var(--surface); }
.gear-img img { object-fit: contain; padding: 10px; background: var(--raised); }
.gear-price { border: 0; padding: 0 0 4px; gap: 4px; }
.gear-price strong { font: 600 28px/1.4 var(--font-body); color: var(--tide); letter-spacing: -.04em; }
.gear-price strong.tbd { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.gear-price small { font-size: 11px; }
.gear-spec { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; border-radius: 9px; background: var(--paper); gap: 0; }
.gear-spec div { gap: 16px; padding-block: 7px; border-bottom: 1px solid var(--line); font-size: 13px; }
.gear-spec div:last-child { border-bottom: 0; }
.gear-spec dt { flex: 0 1 48%; }
.gear-spec dd { flex: 1; }
.pc { font-size: 13px; line-height: 1.75; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 4px 10px; }
.pc b { font-size: 12px; }
.buy { min-height: 48px; align-items: center; gap: 8px; border-radius: 9px; font-size: 15px; background: var(--float); color: var(--on-float); text-align: center; }
.buy:hover { filter: brightness(.96); }
.buy.pending { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.article-grid .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.article-grid .gear-card { padding: 16px; }
.article-grid .gear-card h3 { font-size: 18px; }
.disclosure { border: 1px solid var(--line); background: var(--paper); font-size: 13px; line-height: 1.9; padding: 16px 18px; }

/* Species and season tables: an index, not fabricated species photography. */
.fish-h { font-weight: 700; font-size: 25px; margin: 32px 0 20px; }
.fish-grid { gap: 18px; }
.fish-card { border-radius: 14px; padding: 14px; gap: 7px; }
.fish-card:hover { box-shadow: var(--shadow); }
.fish-img { width: 100%; aspect-ratio: 3 / 2; margin-bottom: 6px; }
.fish-card strong { font-weight: 700; font-size: 21px; }
.fish-card .alias { font-size: 12px; }
.fish-meta { font-size: 13px; line-height: 1.7; }
.fish-regions i { font-size: 11px; border: 0; background: var(--paper); padding: 3px 7px; }
.fish-now { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 5px; font-size: 12px; }
.fish-hero { aspect-ratio: 16 / 7; max-width: 100%; margin-bottom: 24px; }
.fish-facts { gap: 14px; }
.fish-facts div { border-radius: 12px; padding: 20px; }
.fish-facts dt { font: 500 12px var(--font-body); color: var(--tide); }
.fish-facts dd { font-size: 16px; margin-top: 12px; }
.fish-tip { font-size: 17px; line-height: 1.9; }
.cal-wrap { max-width: 100%; border-radius: 12px; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--tide) var(--paper); }
.cal { font-size: 14px; min-width: 850px; }
.cal thead th { padding-block: 16px; background: var(--paper); }
.cal tbody th { padding-block: 14px; position: sticky; left: 0; z-index: 1; background: var(--surface); border-right: 1px solid var(--line); }
.cal tbody th a { display: inline-flex; min-height: 28px; align-items: center; }
.cal td.m { height: 48px; }
.cal td.m i { inset: 12px 3px; border-radius: 3px; }
.cal td.m.now { box-shadow: inset 1px 0 var(--float), inset -1px 0 var(--float); }
.cal thead th.now { color: var(--float); background: var(--float-soft); box-shadow: inset 0 3px var(--float); }
.legend { font-size: 12px; gap: 16px; }
.notice { padding: 18px 20px; border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.85; }

/* Map: native filter disclosure; selected cards reveal their full detail. */
.filter-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; margin-bottom: 20px; }
.filter-panel > summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 60px; list-style: none; cursor: pointer; padding: 14px 20px; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-title { font-size: 15px; font-weight: 600; }
.filter-action { display: inline-flex; align-items: center; gap: 12px; color: var(--tide); font-size: 12px; white-space: nowrap; }
.filter-action > [aria-hidden] { font-size: 22px; }
.filter-panel[open] .filter-action > [aria-hidden] { transform: rotate(45deg); }
.filter-panel[open] .when-closed { display: none; }
.filter-panel[open] .when-open { display: inline; }
.filters { padding: 6px 20px 20px; margin: 0; gap: 16px; }
.filters .fgroup { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filters .multi-hint { font-size: 13px; line-height: 1.8; }
.type-desc { font-size: 12px; line-height: 1.8; gap: 10px 18px; }
.type-desc > span { max-width: 42em; }
.link-btn, .zone-go { min-height: 40px; }
.map-count { font-size: 12px; color: var(--tide); font-weight: 600; white-space: nowrap; }
.zone-toggle { min-height: 44px; align-items: center; font-size: 13px; line-height: 1.7; }
.zone-toggle input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--tide); }
.zone-x { flex: 0 0 18px; }
.map-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; }
.map { height: 620px; border-radius: 14px; border-color: var(--line); background: var(--tide-soft); }
.spot-col { gap: 10px; }
.list-note { font-size: 12px; line-height: 1.8; padding: 0 4px; }
.spot-list { max-height: 588px; gap: 10px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.spot { border-radius: 12px; }
.spot.on { border-color: var(--tide); box-shadow: inset 3px 0 var(--tide), var(--shadow); }
.spot-btn { gap: 8px; padding: 16px 16px 8px; }
.spot-top { gap: 5px; font-size: 16px; line-height: 1.6; }
.spot-top strong { font-weight: 600; }
.tbadge { color: var(--on-tide); margin-right: 2px; padding: 3px 7px; font-size: 10px; }
.spot-meta { font-size: 11px; line-height: 1.7; }
.spot-note { font-size: 14px; }
.spot-fish { gap: 5px; }
.spot-fish span { font-size: 11px; padding: 3px 7px; }
.spot:not(.on) .spot-fish span:nth-child(n+5) { display: none; }
.spot:not(.on) .spot-note { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.spot:not(.on) .spot-info, .spot:not(.on) .spot-photos.empty { display: none; }
.spot-info { font-size: 13px; padding: 8px 16px 16px; gap: 12px; }
.spot-info dt { font-size: 11px; }
.spot-info dd { margin-top: 4px; line-height: 1.6; }
.spot-caution { font-size: 12px; padding: 0 16px 8px; }
.spot-links { padding: 0 16px 10px; gap: 12px; align-items: center; flex-wrap: wrap; }
.spot-links a { display: inline-flex; align-items: center; min-height: 40px; }
.spot-photos { padding-inline: 16px; }
.spot-photos.empty { margin-inline: 16px; background: var(--paper); padding: 8px 10px; border-style: solid; }
.spot-photos.empty a { min-height: 40px; display: inline-flex; align-items: center; }
.ph-credit { font-size: 11px; line-height: 1.7; }
.zones { margin-top: 36px; }
.leaflet-container { font-family: var(--font-body); background: var(--tide-soft); }
.map .leaflet-tile-pane { filter: var(--map-tiles-filter); }
.map .leaflet-bar { border: 1px solid var(--line); box-shadow: var(--shadow); }
.map .leaflet-bar a { color: var(--ink); background: var(--surface); width: 40px; height: 40px; line-height: 40px; }
.map .leaflet-control-attribution { background: var(--surface); color: var(--ink-2); font-size: 10px; }
.map .leaflet-control-attribution a { color: var(--tide); }
.map .leaflet-popup-content-wrapper, .map .leaflet-popup-tip { background: var(--surface); color: var(--ink); }
.map .leaflet-popup-content a { color: var(--tide); }
.map .leaflet-popup-close-button { width: 40px; height: 40px; color: var(--ink); }
.map .leaflet-popup-content { margin: 20px; font-size: 14px; }

/* Tide data and charts use the same tokens in both themes. */
.tide-panel { padding: 26px; margin-top: 24px; border-radius: 16px; }
.tide-head { align-items: center; }
.tide-head > div:first-child { flex: 1 1 320px; }
.tide-head .eyebrow { font: 600 11px var(--font-body); letter-spacing: .08em; margin-bottom: 8px; }
.tide-head h2 { font-size: 27px; font-weight: 700; }
.tide-sub { font-size: 13px; line-height: 1.8; }
.tide-date { min-width: 0; max-width: 100%; }
.tide-date input { min-width: 0; min-height: 44px; font-size: 14px; padding: 8px 10px; background: var(--paper); }
.tide-week { margin-block: 22px; gap: 8px; }
.tday { padding: 12px 6px; gap: 6px; border-radius: 9px; }
.tday.on { box-shadow: inset 0 0 0 1px var(--tide); }
.td-d { font-size: 11px; }
.td-m { font-size: 14px; }
.tide-body { grid-template-columns: 150px minmax(0, 1fr) 220px; gap: 24px; }
.tide-facts { gap: 16px; }
.tide-facts dt { font: 500 11px var(--font-body); }
.tide-facts dd { font-size: 14px; }
.tide-facts b { font: 600 24px/1.5 var(--font-body); }
.tide-best h3 { font-size: 16px; }
.tide-best li { line-height: 1.65; }
.tide-best li::before { background: var(--float); color: var(--on-float); }
.tide-advice { padding: 14px; font-size: 13px; line-height: 1.8; }
.tide-note { line-height: 1.7; }
.tc-line { stroke-width: 3; }

/* Utility pages, unobtrusive ad space and an honest footer. */
.ad-slot { margin-block: 32px; min-height: 104px; border-radius: 10px; background: color-mix(in srgb, var(--paper) 60%, transparent); font-size: 10px; letter-spacing: .12em; border-color: var(--line); }
.plain { padding-block: 44px 64px; }
.plain .prose { max-width: 780px; padding: 30px 34px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.plain .prose h2 { font-weight: 700; }
.copy-row code { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.site-footer { padding-block: 40px; background: var(--surface); font-size: 13px; }
.foot-grid { gap: 32px; }
.foot-grid > div { max-width: 610px; }
.site-footer p { font-size: 12px; line-height: 1.9; margin-top: 14px; }
.foot-links { gap: 20px; align-items: start; }
.foot-links a { min-height: 40px; display: inline-flex; align-items: center; text-decoration: none; }
.foot-links a:hover { color: var(--tide); text-decoration: underline; }

/* Responsive composition: preserve real widths rather than hiding overflow. */
@media (min-width: 921px) and (max-width: 1100px) {
  .header-row { gap: 16px; }
  .logo-sub { display: none; }
  .nav a { padding-inline: 8px; font-size: 13px; }
  .hero-grid { gap: 32px; }
  .month-card { padding: 20px; }
  .month-heading { gap: 8px; }
  .article-grid { gap: 28px; grid-template-columns: minmax(0, 1fr) 190px; }
}
@media (max-width: 1000px) {
  .tide-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .tide-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .header-row { min-height: 74px; }
  .nav { padding: 16px 24px 22px; box-shadow: var(--shadow); gap: 5px; }
  .nav a { display: flex; min-height: 46px; padding: 10px 14px; font-size: 15px; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); max-width: 840px; gap: 0; }
  .toc { display: none; }
  .gear-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .map-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .map { height: 440px; }
  .spot-list { max-height: 520px; padding: 0 3px 3px 0; }
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-block: 28px 64px; }
  .hero-copy { padding-block: 8px 0; }
  .hero h1 { font-size: clamp(35px, 7vw, 48px); margin-bottom: 22px; }
  .hero p.lead { max-width: 34em; margin-bottom: 24px; }
  .hero .eyebrow { margin-bottom: 19px; }
  .month-card { padding: 22px; }
  .month-heading { flex-wrap: nowrap; }
  .fish-list li { min-height: 48px; }
  .fish-list span.memo { font-size: 12px; }
  .fish-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid > article { padding: 26px; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
  .header-row { min-height: 74px; gap: 12px; }
  .logo { gap: 9px; }
  .logo-text { font-size: 24px; }
  .logo-mark { width: 13px; height: 32px; }
  .logo-sub { font-size: 9px; margin-top: 5px; letter-spacing: 0; }
  .header-tools { gap: 6px; }
  .icon-btn { width: 42px; height: 42px; flex-basis: 42px; }
  .nav { padding-inline: 20px; }
  .hero-grid { padding-block: 28px 58px; gap: 28px; }
  .hero h1 { font-size: 37px; line-height: 1.32; }
  .hero p.lead { font-size: 16px; line-height: 1.85; }
  .hero .btn { font-size: 13px; padding: 12px 13px; }
  .hero .btn.primary::after { font-size: 17px; }
  .btn-row { gap: 8px; }
  .month-card { padding: 20px 18px; border-radius: 14px; }
  .month-card h2 { font-size: 22px; }
  #month-region { font-size: 13px; }
  .rtabs-home { gap: 0; padding: 2px; }
  .hrt { min-width: 40px; padding-inline: 5px; }
  .month-heading { gap: 5px; }
  .fish-list li { gap: 6px; }
  .fish-list li > span:first-child { gap: 4px; }
  .fish-list a { font-size: 13px; }
  .fish-list span.memo { font-size: 10px; max-width: 38%; }
  .pill { font-size: 9px; padding-inline: 5px; }
  .section { padding-block: 32px; }
  .section-head { margin-bottom: 20px; }
  .section-head h2 { font-size: 24px; }
  .cat-grid { gap: 10px; }
  .cat-card { padding: 18px 16px; min-height: 178px; gap: 7px; }
  .cat-card::after { right: 12px; top: 13px; font-size: 18px; }
  .cat-card .count { font-size: 10px; }
  .cat-card .count::before { display: none; }
  .cat-card strong { font-size: 19px; }
  .cat-card span.d { font-size: 13px; line-height: 1.7; }
  .post-list, .related .post-list { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .post-item { gap: 12px; padding-bottom: 20px; }
  .post-item h3 { font-size: 20px; }
  .post-item p { font-size: 16px; }
  .post-item > :not(.thumb) { margin-inline: 18px; }
  .page-head { padding-block: 25px 28px; }
  .page-head h1 { font-size: 30px; line-height: 1.5; margin-bottom: 12px; }
  .page-head p { font-size: 16px; }
  .crumbs { font-size: 11px; margin-bottom: 13px; }
  .subtabs { margin-top: 22px; gap: 14px; }
  .subtabs .flabel { flex-basis: 100%; }
  .sub-grid { gap: 10px; }
  .sub-card { padding: 18px 16px; }
  .sub-card strong { font-size: 19px; }
  .sub-card span { font-size: 13px; }
  .article-grid { padding-block: 28px 40px; }
  .article-grid > article { background: transparent; padding: 0; border: 0; border-radius: 0; }
  .article-head h1 { font-size: 29px; line-height: 1.5; }
  .article-head .summary { font-size: 17px; line-height: 1.85; }
  .article-head .meta { gap: 7px; padding-bottom: 20px; margin-bottom: 24px; font-size: 11px; }
  .prose { font-size: 16px; line-height: 1.95; }
  .prose h2 { font-size: 23px; margin-top: 1.8em; padding-top: 1em; }
  .prose h3 { font-size: 18px; }
  .prose ul, .prose ol { padding-left: 1.2em; }
  .table-wrap table { font-size: 14px; }
  .table-wrap th, .table-wrap td { padding: 12px 14px; }
  .gear-grid, .article-grid .gear-grid { grid-template-columns: minmax(0, 1fr); }
  .gear-card, .article-grid .gear-card { padding: 20px; }
  .gear-card h3, .article-grid .gear-card h3 { font-size: 21px; }
  .gear > h2 { font-size: 23px; }
  .pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .fish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fish-card { padding: 10px; gap: 6px; }
  .fish-card strong { font-size: 19px; }
  .fish-card .fish-img { border-radius: 6px; }
  .fish-img span { font-size: 10px; padding: 4px 6px; }
  .fish-meta { font-size: 12px; }
  .fish-now { font-size: 11px; }
  .fish-facts { gap: 10px; }
  .fish-facts div { padding: 16px; }
  .fish-facts dd { font-size: 15px; }
  .fish-h { font-size: 23px; }
  .fish-tip { font-size: 16px; }
  .notice { font-size: 14px; padding: 16px; }
  .filter-panel { margin-bottom: 16px; }
  .filter-panel > summary { padding: 12px 15px; min-height: 56px; }
  .filter-title { font-size: 14px; }
  .filter-action { gap: 6px; font-size: 11px; }
  .filters { padding: 6px 15px 18px; gap: 16px; }
  .filters .flabel { flex-basis: 100%; }
  .filters .fgroup { gap: 6px; }
  .filters .ftab { font-size: 12px; padding: 8px 10px; }
  .map { height: 390px; border-radius: 12px; }
  .spot-list { max-height: 500px; }
  .spot-photos.empty { flex-wrap: wrap; }
  .map .leaflet-control-attribution { font-size: 9px; max-width: 290px; }
  .tide-panel { padding: 18px 14px; border-radius: 12px; }
  .tide-head { gap: 16px; }
  .tide-head h2 { font-size: 24px; }
  .tide-date { width: 100%; }
  .tide-date input { flex: 1; width: 0; text-align: center; }
  .tide-week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; overflow: visible; margin-block: 18px; }
  .tday { padding: 9px 2px; gap: 5px; border-radius: 6px; }
  .td-d { font-size: 9px; white-space: nowrap; letter-spacing: -.05em; }
  .td-m { font-size: 11px; }
  .tide-facts { gap: 12px; }
  .tide-body { gap: 18px; }
  .plain { padding-block: 30px 40px; }
  .plain .prose { padding: 0; border: 0; background: transparent; }
  .site-footer { padding-block: 30px; }
  .foot-grid { gap: 18px; }
  .foot-links { gap: 18px; }
  .ad-slot { margin-block: 26px; }
}
@media (max-width: 359px) {
  .wrap { padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
  .logo-sub { display: none; }
  .hero h1 { font-size: 32px; }
  .hero .btn-row { flex-direction: column; }
  .month-heading { flex-wrap: wrap; }
  .month-heading .rtabs-home { margin-left: auto; }
  .pc { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Requested artwork policy: future missing covers use text-only cards. */
.thumb-empty { display: none; }
.post-item:has(.thumb-empty) { padding-top: 18px; }
.gear-img, .fish-img, .fish-hero { background-image: none; }

/* Keep unprovided catalog photos compact; real images retain their required ratios. */
.gear-img:not(:has(img)) { aspect-ratio: auto; min-height: 120px; }
.fish-img:not(:has(img)) { aspect-ratio: auto; min-height: 90px; }
.fish-hero:not(:has(img)) { aspect-ratio: auto; min-height: 140px; }

/* 장비 리뷰 상품 종류 칩 */
.gtabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.gtab { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gtab span { font-size: 12px; color: var(--ink-2); }
.gtab[aria-pressed="true"] { background: var(--tide); border-color: var(--tide); color: #fff; }
.gtab[aria-pressed="true"] span { color: inherit; opacity: .8; }
.gear-img img { object-fit: contain; background: #fff; }

/* 어종 도감 그림: 배경 없는 PNG/WebP를 잘리지 않게 밝은 판 위에 */
.fish-img:has(img), .fish-hero:has(img) { background: #fff; border-color: var(--line); }
.fish-img img, .fish-hero img { object-fit: contain; padding: 4%; }
.fish-hero:has(img) { aspect-ratio: 16 / 7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fish-img:has(img), :root:not([data-theme="light"]) .fish-hero:has(img) { background: #EEF2F1; } }
:root[data-theme="dark"] .fish-img:has(img), :root[data-theme="dark"] .fish-hero:has(img) { background: #EEF2F1; }
.gear-more { display: block; margin: 20px auto 0; font: inherit; font-size: 15px; min-height: 44px; padding: 10px 28px; border-radius: 999px; border: 1px solid var(--tide); background: var(--surface); color: var(--tide); cursor: pointer; }
.gear-more[hidden] { display: none; }
.gear-img .sprite { width: 100%; height: 100%; background-repeat: no-repeat; background-color: #fff; }
/* 에기 용도 칩: 에기를 고르면 아래 줄에 나타남 */
.gtabs-sub { margin-top: -6px; padding: 10px 12px; border-radius: 12px; background: var(--tide-soft); }
.gtabs-sub[hidden] { display: none; }
.gtab2 { font: inherit; font-size: 14px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.gtab2 span { font-size: 12px; color: var(--ink-2); }
.gtab2[aria-pressed="true"] { background: var(--float); border-color: var(--float); color: #fff; }
.gtab2[aria-pressed="true"] span { color: inherit; opacity: .85; }
