:root {
  --ink: #1c2420;
  --ink-soft: #3d4a44;
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --sand: #e2d6bf;
  --water: #1b4f5e;
  --water-deep: #123843;
  --reed: #5c6b3d;
  --copper: #b85a2a;
  --copper-dark: #8c3f1c;
  --gold: #c9a227;
  --alert: #8a3b2c;
  --closed: #6b6b6b;
  --line: rgba(28, 36, 32, 0.14);
  --shadow: 0 10px 30px rgba(18, 32, 28, 0.12);
  --font: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --ui: "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1100px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--water); }
a:hover { color: var(--copper-dark); }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 6px 10px; z-index: 80; }

/* Header */
.site-header {
  background: var(--water-deep);
  color: #f3eee3;
  border-bottom: 4px solid var(--copper);
}
.site-header a { color: inherit; text-decoration: none; }
.brand-wrap {
  max-width: none;
  padding: 14px 20px 10px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  flex-wrap: wrap;
}
.brand .kicker {
  font-family: var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.75;
  margin: 0 0 2px;
}
.brand h1 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.55rem;
  margin: 0;
  letter-spacing: 0.01em;
}
.brand h1 a:hover { color: #fff; }
.byline { font-size: 13px; opacity: 0.8; margin: 0; }
nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
  padding: 0 12px 10px;
  border-top: 1px solid rgba(243, 238, 227, 0.12);
}
nav.site-nav a {
  padding: 8px 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
}
nav.site-nav a:hover,
nav.site-nav a[aria-current="page"] {
  background: rgba(243, 238, 227, 0.12);
}
nav.site-nav a[aria-current="page"] { color: #f3d3b0; }

/* Map page layout */
.map-page { display: flex; flex-direction: column; min-height: 100vh; }
.map-stage {
  position: relative;
  flex: 1;
  min-height: 68vh;
  background: #c5d0c4;
}
#map { position: absolute; inset: 0; }
.map-stage .leaflet-container { background: #c5d0c4; font-family: var(--ui); }

.panel {
  position: absolute;
  z-index: 500;
  background: rgba(244, 239, 228, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 8px;
  max-height: calc(100% - 24px);
  overflow: auto;
}
.panel h2 {
  font-family: var(--font);
  font-size: 1.05rem;
  margin: 0 0 8px;
}
.layers-panel {
  top: 12px; left: 12px;
  width: min(280px, calc(100% - 24px));
  padding: 12px 12px 8px;
}
.conditions-panel {
  top: 12px; right: 12px;
  width: min(320px, calc(100% - 24px));
  padding: 12px;
}
.panel-toggle {
  display: none;
  width: 100%;
  background: var(--water);
  color: #fff;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  font: inherit;
  cursor: pointer;
}
.layer-group { margin: 0 0 10px; }
.layer-group h3 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.layer-group label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px;
  padding: 3px 0;
  cursor: pointer;
}
.layer-group input { margin-top: 3px; }
.swatch {
  width: 10px; height: 10px; border-radius: 50%;
  display: inline-block; margin-right: 2px;
  flex: 0 0 10px; margin-top: 5px;
  border: 1px solid rgba(0,0,0,0.25);
}
.swatch.line { border-radius: 0; height: 3px; margin-top: 8px; }
.legend-note, .panel .muted, .fine {
  font-size: 12px; color: var(--ink-soft); line-height: 1.45;
}
.cond-block { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cond-block:last-child { border-bottom: 0; margin-bottom: 0; }
.cond-block h3 {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.levels-table, .page-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.levels-table th, .levels-table td, .page-table th, .page-table td {
  text-align: left;
  padding: 3px 4px;
  border-bottom: 1px solid var(--line);
}
.levels-table th { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.above { color: var(--reed); }
.below { color: var(--copper-dark); }
.pill {
  display: inline-block;
  background: var(--sand);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
}
.wind-row { display: flex; align-items: center; gap: 10px; }
.wind-arrow-demo {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--water);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
}

/* Content pages */
main.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 20px 60px;
}
main.wrap h1, main.wrap h2, main.wrap h3, .prose h1, .prose h2, .prose h3 {
  font-family: var(--font);
  line-height: 1.25;
  font-weight: 600;
}
main.wrap h1 { font-size: 2rem; margin: 0 0 8px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 22px; }
.source-line { font-size: 13px; color: var(--ink-soft); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.card h2, .card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.lake-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 0 0 18px;
}
.lake-section h2 { margin-top: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 12px; font-size: 14px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; }
.callout {
  background: var(--paper-2);
  border-left: 4px solid var(--copper);
  padding: 10px 14px;
  margin: 16px 0;
}
.callout.now { border-left-color: var(--water); }
.uncertain, .gap {
  background: #f7efe4;
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  margin: 16px 0;
}
footer.site-footer {
  background: var(--water-deep);
  color: #d9d3c6;
  padding: 28px 20px 40px;
  font-size: 13px;
}
footer.site-footer a { color: #f3d3b0; }
footer.site-footer .inner { max-width: var(--max); margin: 0 auto; }
footer.site-footer h2 { font-family: var(--font); color: #f4efe4; font-size: 1rem; margin: 0 0 8px; }

/* Forms */
label.field { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
label.field input, label.field select, label.field textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  font: inherit;
  font-weight: 400;
  padding: 8px 10px;
  border: 1px solid #c9c0ae;
  border-radius: 6px;
  background: #fff;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
button, .btn {
  font: inherit;
  background: var(--water);
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}
button.secondary, .btn.secondary { background: transparent; color: var(--water); border: 1px solid var(--water); }
button:hover, .btn:hover { background: var(--water-deep); color: #fff; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }

/* Leaflet tweaks */
.leaflet-popup-content-wrapper {
  border-radius: 8px;
  font-family: var(--ui);
}
.leaflet-popup-content { margin: 10px 12px; font-size: 13px; line-height: 1.45; max-width: 280px; }
.leaflet-popup-content h3 { font-family: var(--font); margin: 0 0 6px; font-size: 1.05rem; }
.lake-label {
  background: none; border: 0; box-shadow: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--water-deep);
  text-shadow: 0 0 4px #f4efe4, 0 0 8px #f4efe4, 1px 1px 0 #f4efe4;
  white-space: nowrap;
}
.flow-arrow, .wind-marker {
  background: none; border: 0;
}
.flow-arrow span, .wind-marker span {
  display: block;
  width: 28px; height: 28px;
  line-height: 28px;
  text-align: center;
  color: var(--water-deep);
  font-size: 22px;
  text-shadow: 0 0 4px #fff;
}
.pick-banner {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  z-index: 600;
  background: var(--copper);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

@media (max-width: 820px) {
  .brand-wrap { padding: 12px 14px 8px; }
  .brand h1 { font-size: 1.25rem; }
  .map-stage { min-height: 62vh; }
  .layers-panel, .conditions-panel {
    position: absolute;
    width: calc(100% - 16px);
    left: 8px; right: 8px;
    max-height: 42%;
  }
  .layers-panel { top: auto; bottom: 8px; }
  .conditions-panel { top: 8px; bottom: auto; }
  .panel-toggle { display: block; margin-bottom: 8px; }
  .panel.collapsed .panel-body { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  nav.site-nav a { padding: 8px 9px; font-size: 12px; }
}
@media (min-width: 821px) {
  .panel.collapsed .panel-body { display: block; }
}

.discharge-badge {
  background: rgba(20, 36, 44, 0.92);
  color: #f4efe4;
  border-radius: 6px;
  padding: 3px 7px 3px 5px;
  font-family: var(--ui);
  font-size: 11px;
  line-height: 1.25;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  pointer-events: auto;
}
.discharge-badge .arrow {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  color: #9ad7e0;
}
.discharge-badge strong { font-size: 12px; font-weight: 700; }
.discharge-badge .stage { display: block; font-size: 10px; opacity: 0.85; }
.leaflet-div-icon.discharge-icon { background: none; border: 0; }

.level-badge {
  background: rgba(244, 239, 228, 0.94);
  color: #14303a;
  border: 1px solid rgba(27, 79, 94, 0.5);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  text-align: center;
}
.level-badge.tracks {
  font-weight: 600;
  font-size: 11px;
  color: #3d4a44;
  background: rgba(244, 239, 228, 0.88);
}
.leaflet-div-icon.level-icon { background: none; border: 0; }
.leaflet-container.levels-zoomed-out .level-badge { display: none; }
.leaflet-container:not(.levels-detail) .level-badge.tracks { display: none; }
.leaflet-popup-content .chart-links { margin-top: 8px; line-height: 1.6; }
@media (max-width: 820px) {
  .level-badge { font-size: 11px; padding: 4px 8px; }
  .discharge-badge { font-size: 10px; padding: 3px 6px 3px 4px; }
  .discharge-badge strong { font-size: 11px; }
}
.bathy-label {
  background: none; border: 0; box-shadow: none;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  color: #12243c;
  text-shadow: 0 0 3px #fff, 0 0 5px #fff, 1px 1px 0 #fff;
  white-space: nowrap;
}
.bathy-scale { display: flex; gap: 0; margin: 4px 0 6px; font-size: 10px; }
.bathy-scale span {
  flex: 1;
  text-align: center;
  color: #fff;
  padding: 2px 0;
  text-shadow: 0 0 2px #000;
}
.bathy-scale span:first-child { color: #1a2a22; text-shadow: none; }
#bathy-legend { margin: 8px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }

/* ===== Trip planner, dock, sheet, mark-my-fish (phone-first, readable in sun) ===== */
.dock {
  position: absolute; z-index: 700; left: 50%; transform: translateX(-50%); bottom: 26px;
  display: flex; gap: 8px; padding: 8px; background: rgba(18, 56, 67, 0.96); border-radius: 18px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); max-width: calc(100% - 16px);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 108px; min-height: 58px; padding: 6px 14px; border-radius: 12px;
  background: #fff; color: var(--water-deep); font-weight: 700; font-size: 15px; line-height: 1.1; border: 2px solid transparent;
}
.dock-btn .ico { font-size: 22px; line-height: 1; }
.dock-btn:hover { background: #fff; color: var(--water-deep); border-color: var(--copper); }
.dock-btn[aria-pressed="true"] { border-color: var(--copper); background: #fff4e8; }
.dock-btn.dock-primary { background: var(--copper); color: #fff; }
.dock-btn.dock-primary:hover { background: var(--copper-dark); color: #fff; }
.dock-btn.dock-primary[aria-pressed="true"] { background: var(--copper-dark); border-color: #fff; }

.sheet {
  position: absolute; z-index: 650; top: 12px; right: 12px; bottom: 100px; width: 440px; max-width: calc(100% - 24px);
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden;
}
.sheet[hidden] { display: none; }
.sheet-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 14px; background: var(--water-deep); color: #fff; }
.sheet-head h2 { flex: 1; margin: 0; font-family: var(--font); font-size: 1.15rem; color: #fff; }
.sheet-head button { background: rgba(255,255,255,0.14); color: #fff; width: 44px; height: 40px; border-radius: 10px; font-size: 18px; padding: 0; }
.sheet-head button:hover { background: rgba(255,255,255,0.28); }
.sheet-body { flex: 1; overflow: auto; padding: 12px; font-size: 15px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet.peek { bottom: auto; }
.sheet.peek .sheet-body { display: none; }
.map-stage.sheet-open .conditions-panel { display: none; }

.zone-chip {
  position: absolute; z-index: 640; top: 12px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--water-deep); border: 2px solid var(--water); border-radius: 999px; padding: 4px 6px 4px 14px;
  font-weight: 700; font-size: 13px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
.zone-chip[hidden] { display: none; }
.zone-chip button { background: var(--water); width: 30px; height: 30px; border-radius: 50%; padding: 0; font-size: 14px; }

/* chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: thin; }
.chips.small { padding-bottom: 6px; flex-wrap: wrap; overflow: visible; }
.chip {
  flex: 0 0 auto; background: #fff; color: var(--water-deep); border: 2px solid #c9c0ae; border-radius: 999px;
  padding: 9px 14px; font-weight: 600; font-size: 14px; min-height: 40px; white-space: nowrap;
}
.chip:hover { background: #fff; color: var(--water-deep); border-color: var(--water); }
.chip.on { background: var(--water); color: #fff; border-color: var(--water); }
.chip.on:hover { background: var(--water-deep); color: #fff; }
.chip.weekend:not(.on) { border-color: var(--copper); }
.chips.big .chip { min-height: 48px; font-size: 16px; padding: 10px 16px; }
.chips.small .chip { min-height: 36px; padding: 6px 12px; font-size: 13px; }

/* cards in the sheet */
.trip .card, .mark .card, .catches .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin: 0 0 12px; box-shadow: none; }
.trip h3 { margin: 0 0 6px; font-family: var(--font); font-size: 1.05rem; }
.trip h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.trip .line { margin: 6px 0; line-height: 1.45; }
.trip .big { font-size: 1.7rem; font-weight: 800; font-family: var(--font); line-height: 1.15; margin: 4px 0; color: var(--water-deep); }
.trip .big small { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.trip .big.sm { font-size: 1.4rem; }
.trip .muted, .mark .muted, .catches .muted { color: var(--ink-soft); }
.trip .loading { padding: 24px 6px; text-align: center; color: var(--ink-soft); }
.sum-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 5px 11px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; }
.badge.lvl-ok { background: #1f7a3c; }
.badge.lvl-caution { background: #a55c00; }
.badge.lvl-avoid { background: #b3261e; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: #e7e0d0; color: var(--ink); }
.tag.major { background: #1b4f5e; color: #fff; }
.tag.minor { background: #7eb8c9; color: #0d2b33; }
.tag.run { background: #7b2cbf; color: #fff; }
.tag.quiet { background: #e7e0d0; }
.tag.front-pre { background: #f0c36a; }
.tag.front-frontal { background: #e07b00; color: #fff; }
.tag.front-post1, .tag.front-post2 { background: #6fa8dc; }
.tag.front-post3 { background: #cfe2f3; }
.tag.chop-calm { background: #cfe8d5; } .tag.chop-choppy { background: #f6dba0; } .tag.chop-rough { background: #f3b4ad; }
.alert-box { background: #fdecea; border: 2px solid #b3261e; border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; color: #6e1510; font-size: 14px; }
.alert-line { color: #b3261e; margin: 0 0 4px; }
.trip details { margin: 8px 0 0; }
.trip summary { cursor: pointer; font-weight: 600; padding: 6px 0; min-height: 32px; }
.trip ul.plain, .trip ol.plain, .catches ul.plain { margin: 0; padding-left: 18px; }
.trip ul.plain li, .trip ol.plain li { margin: 0 0 9px; line-height: 1.45; }
.catches ul.plain { padding-left: 0; list-style: none; }
.trip .why { color: var(--ink-soft); font-size: 13px; }
.trip .colors { color: var(--copper-dark); font-weight: 600; font-size: 13px; }
.suggest-flag { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.1em; font-weight: 800; color: var(--copper-dark); }
.headline { font-weight: 800; font-size: 1.05rem; margin: 4px 0 6px; padding: 8px 10px; border-radius: 8px; background: #e9f3ea; color: #174d2a; }
.headline.lvl-caution { background: #fbefd6; color: #6b3d00; }
.headline.lvl-avoid { background: #fbe0dd; color: #7a1a13; }
.lake-card { border: 1px solid var(--line); border-left: 5px solid var(--water); border-radius: 8px; padding: 8px 10px; margin: 0 0 8px; background: #fffdf8; }
.lake-card.cur { border-left-color: #7b2cbf; }
.lake-card p { margin: 4px 0 6px; font-size: 14px; line-height: 1.45; }
.lc-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
button.small { padding: 8px 12px; min-height: 38px; font-size: 13px; font-weight: 600; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; align-items: center; }
.btn-row.big button, .btn-row.big .btn { min-height: 48px; font-size: 15px; padding: 10px 16px; font-weight: 600; display: inline-flex; align-items: center; }
.zone-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; margin: 6px 0; }
.zone-legend .lg { display: inline-block; width: 22px; height: 6px; border-radius: 3px; margin-right: 5px; vertical-align: middle; }
.lg.sheltered { background: #1f8a4c; } .lg.windblown { background: #e07b00; } .lg.current { background: #7b2cbf; }
.lg.lake { background: none; border-top: 3px dashed #1b4f5e; height: 0; }
.safety li.s-caution { color: #6b3d00; } .safety li.s-avoid { color: #7a1a13; font-weight: 700; }
.trip .src { margin-top: 10px; }

/* hourly strip */
.hourly { display: flex; gap: 3px; overflow-x: auto; padding: 4px 0 8px; scrollbar-width: thin; }
.hr { flex: 0 0 50px; text-align: center; border-radius: 8px; padding: 4px 0 5px; background: #f4efe4; font-size: 12px; line-height: 1.25; opacity: 0.6; border-bottom: 5px solid #1f7a3c; }
.hr.in { opacity: 1; box-shadow: inset 0 0 0 2px var(--water); background: #fff; }
.hr.lvl-caution { border-bottom-color: #d98a00; } .hr.lvl-avoid { border-bottom-color: #b3261e; }
.hr .t { font-weight: 700; } .hr .w { font-weight: 800; font-size: 15px; } .hr .g { color: #8a3b2c; font-size: 11px; min-height: 14px; }
.hr .arrow { display: block; font-size: 20px; line-height: 22px; color: var(--water-deep); font-weight: 700; }
.hr .arrow.dim { color: #aaa; }
.hr .sk { font-size: 17px; line-height: 20px; } .hr .p { color: #3b6ea8; font-size: 11px; min-height: 14px; }
.hr.obs .t { text-decoration: underline; }
.solunar { list-style: none; margin: 6px 0; padding: 0; } .solunar li { margin: 3px 0; }
.moon-ico { font-size: 1.3em; }
.trip .levels-table th, .trip .levels-table td { padding: 5px 6px; }

/* mark my fish */
.mark .status { background: #fff; border: 2px solid var(--water); border-radius: 10px; padding: 10px 12px; font-size: 16px; margin: 0 0 10px; }
.mark .status.loc { border-color: #1f7a3c; }
.mark .err, .catches .msg.bad { color: #b3261e; font-weight: 600; }
.mark .field-group { margin: 0 0 12px; }
.mark .lbl { display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.mark .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepper { display: flex; align-items: stretch; gap: 4px; }
.stepper button { width: 52px; min-height: 52px; font-size: 26px; font-weight: 700; padding: 0; background: var(--water); }
.stepper input { flex: 1; min-width: 0; text-align: center; font-size: 22px; font-weight: 800; min-height: 52px; border: 2px solid #c9c0ae; border-radius: 8px; background: #fff; }
.mark input.wide, .mark select, .mark textarea { width: 100%; font: inherit; font-size: 17px; min-height: 50px; padding: 10px 12px; border: 2px solid #c9c0ae; border-radius: 8px; background: #fff; margin: 0 0 6px; }
.ctx-box { display: flex; flex-wrap: wrap; gap: 5px; }
.chipline { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.savebar { position: sticky; bottom: -12px; display: flex; gap: 8px; padding: 10px 0 4px; background: linear-gradient(to top, var(--paper) 78%, rgba(244,239,228,0)); }
.save-btn { flex: 2; min-height: 60px; font-size: 20px; font-weight: 800; background: var(--copper); color: #fff; border-radius: 12px; }
.save-btn:hover { background: var(--copper-dark); }
.save-btn:disabled { opacity: 0.6; }
.cancel-btn { flex: 1; min-height: 60px; font-size: 16px; border-radius: 12px; }
.mark.done { text-align: center; padding-top: 10px; }
.big-ok { font-size: 2.2rem; font-weight: 800; color: #1f7a3c; margin: 0; }
.new-pin, .catch-pin { background: none; border: 0; }
.new-pin span { display: block; width: 44px; height: 44px; line-height: 40px; text-align: center; font-size: 24px; background: var(--copper); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.catch-pin span { display: block; width: 30px; height: 30px; line-height: 26px; text-align: center; font-size: 16px; background: var(--copper); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.5); }
.catch-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 9px 11px; margin: 0 0 8px; }
.ci-top { display: flex; justify-content: space-between; gap: 8px; }
.catches .msg { min-height: 1.2em; margin: 4px 0; font-weight: 600; color: #1f7a3c; }
button.danger { color: #b3261e; border-color: #b3261e; }
button.danger:hover { background: #b3261e; color: #fff; }
.pick-banner { bottom: 100px; font-size: 15px; padding: 10px 18px; }

/* veg legend in layers panel */
#veg-legend { margin: 4px 0 6px 2px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.6); }
#veg-legend .veg-groups label { display: flex; gap: 6px; align-items: center; font-size: 12px; padding: 1px 0; }
.catches-note { font-size: 12px; }

@media (max-width: 820px) {
  .kicker { display: none; }
  .map-stage { height: calc(100dvh - var(--hdr, 128px)); min-height: 480px; flex: none; }
  .byline { font-size: 12px; } .by-more { display: none; }
  .brand-wrap { gap: 0; }
  nav.site-nav { padding-bottom: 6px; }
  nav.site-nav a { padding: 6px 7px; font-size: 11.5px; letter-spacing: 0; }
  .dock { left: 8px; right: 8px; transform: none; bottom: 22px; max-width: none; padding: 6px; gap: 6px; }
  .dock-btn { flex: 1; min-width: 0; min-height: 60px; font-size: 14px; padding: 4px 4px; }
  .dock-btn.dock-primary { flex: 1.3; font-size: 16px; }
  .sheet { left: 0; right: 0; top: auto; bottom: 94px; width: auto; max-width: none; max-height: 54%; border-radius: 16px 16px 0 0; }
  .sheet.tall { max-height: 84%; }
  .sheet.peek { max-height: none; }
  .map-stage.sheet-open .layers-panel, .map-stage.sheet-open .conditions-panel { display: none; }
  .layers-panel, .conditions-panel { top: 8px; bottom: auto; max-height: 62%; }
  .layers-panel { left: 8px; right: auto; width: calc(50% - 12px); }
  .conditions-panel { right: 8px; left: auto; width: calc(50% - 12px); }
  .panel:not(.collapsed) { z-index: 800; left: 8px; right: 8px; width: auto; }
  .panel-toggle { font-size: 15px; min-height: 44px; font-weight: 700; margin-bottom: 0; }
  .panel:not(.collapsed) .panel-toggle { margin-bottom: 8px; }
  .zone-chip { top: 58px; font-size: 12px; }
  .leaflet-control-zoom { display: none; }
  .pick-banner { bottom: 100px; }
  .mark .two { grid-template-columns: 1fr 1fr; }
  .sheet-body { padding: 10px; font-size: 15px; }
}
@media (min-width: 821px) {
  .map-stage { min-height: calc(100vh - 150px); }
}

.chips:first-child .chip { display: flex; flex-direction: column; align-items: center; line-height: 1.15; padding: 6px 14px; min-width: 70px; }
.chips:first-child .chip b { font-size: 14px; }
.chips:first-child .chip small { font-size: 11px; font-weight: 600; opacity: 0.85; }
.lvl-why.lvl-caution { color: #6b3d00; font-weight: 600; } .lvl-why.lvl-avoid { color: #7a1a13; font-weight: 700; } .lvl-why.lvl-ok { display: none; }
