:root {
  color-scheme: dark;
  --ink-950: #071917;
  --ink-900: #09211d;
  --ink-850: #0d2924;
  --ink-800: #12352f;
  --ink-700: #1f4b43;
  --paper-50: #f4f0e5;
  --paper-100: #ebe4d4;
  --paper-200: #d9cfb8;
  --paper-300: #c5b99e;
  --water-300: #7ed8d1;
  --water-400: #4fc5bd;
  --water-500: #2ba89f;
  --reed-300: #c5dc92;
  --reed-400: #a9c86e;
  --reed-600: #6f9140;
  --signal-300: #ffb084;
  --signal-400: #ff8f58;
  --signal-600: #d95f2b;
  --sky-200: #b7d8de;
  --danger: #f26f62;
  --white: #fffdf7;
  --text-on-paper: #10231f;
  --muted-on-paper: #52645d;
  --muted-on-dark: #a8c0b9;
  --line-dark: rgba(183, 216, 222, 0.18);
  --line-paper: rgba(16, 35, 31, 0.17);
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-data: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --header-height: 84px;
  --content-max: 1540px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink-950);
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--paper-50);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.is-sheet-open {
  overflow: hidden;
}

::selection {
  background: var(--signal-400);
  color: var(--ink-950);
}

* {
  scrollbar-color: var(--water-500) var(--ink-900);
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--ink-900);
}

*::-webkit-scrollbar-thumb {
  border: 2px solid var(--ink-900);
  border-radius: 8px;
  background: var(--water-500);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

input,
textarea,
select {
  caret-color: var(--signal-400);
}

:focus-visible {
  outline: 3px solid var(--signal-400);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 12px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--signal-400);
  color: var(--ink-950);
  font-weight: 800;
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  z-index: 70;
  top: 0;
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(260px, 1.1fr) auto auto;
  align-items: center;
  gap: 20px;
  min-height: var(--header-height);
  padding: 14px clamp(18px, 3vw, 52px);
  border-bottom: 1px solid var(--line-dark);
  background: rgba(7, 25, 23, 0.97);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(3, 12, 11, 0.23);
}

.brand {
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  align-items: center;
  width: max-content;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  color: var(--water-400);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-word {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  color: var(--muted-on-dark);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.global-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.global-search > svg {
  position: absolute;
  left: 15px;
  width: 19px;
  height: 19px;
  color: var(--water-300);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  pointer-events: none;
}

.global-search input {
  width: 100%;
  height: 48px;
  padding: 0 48px 0 45px;
  border: 1px solid rgba(183, 216, 222, 0.26);
  border-radius: 12px;
  background: var(--ink-850);
  color: var(--white);
  transition: border-color 180ms ease, background 180ms ease;
}

.global-search input::placeholder {
  color: #91aaa4;
}

.global-search input:hover {
  border-color: rgba(126, 216, 209, 0.48);
}

.global-search input:focus {
  border-color: var(--water-400);
  background: var(--ink-800);
}

.global-search kbd {
  position: absolute;
  right: 11px;
  min-width: 26px;
  padding: 3px 7px;
  border: 1px solid rgba(183, 216, 222, 0.25);
  border-radius: 6px;
  color: var(--muted-on-dark);
  background: rgba(255, 255, 255, 0.03);
  font: 12px/1.2 var(--font-data);
  text-align: center;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-on-dark);
  font-size: 13px;
  font-weight: 750;
  transition: background 160ms ease, color 160ms ease;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--ink-800);
  color: var(--water-300);
}

.account-wrap {
  position: relative;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 10px 4px 5px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: var(--ink-850);
  color: var(--white);
  font-size: 13px;
  font-weight: 750;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--water-400);
  color: var(--ink-950);
}

.account-avatar svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 24px));
  padding: 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: var(--ink-850);
  color: var(--white);
  box-shadow: 0 18px 48px rgba(3, 12, 11, 0.38);
}

.account-menu h3 {
  margin: 2px 4px 5px;
  font-size: 15px;
}

.account-menu p {
  margin: 0 4px 12px;
  color: var(--muted-on-dark);
  font-size: 13px;
}

.account-menu a,
.account-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--white);
  text-align: left;
  text-decoration: none;
}

.account-menu a:hover,
.account-menu button:hover {
  background: var(--ink-700);
}

.account-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

main {
  min-height: 70vh;
}

.atlas-intro,
.map-workspace,
.catalog-section,
.gear-section {
  width: min(var(--content-max), calc(100% - clamp(28px, 5vw, 84px)));
  margin-inline: auto;
}

.atlas-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(38px, 6vw, 78px) 0 clamp(26px, 4vw, 42px);
}

.atlas-intro h1 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 92px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.atlas-intro p {
  max-width: 69ch;
  margin-bottom: 0;
  color: var(--muted-on-paper);
  font-size: clamp(16px, 1.8vw, 20px);
}

.atlas-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 510px;
}

.stat-token {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--line-paper);
  border-radius: 10px;
  background: var(--paper-100);
  color: var(--muted-on-paper);
  font-size: 12px;
  font-weight: 700;
}

.stat-token strong {
  color: var(--text-on-paper);
  font: 800 16px/1 var(--font-data);
  font-variant-numeric: tabular-nums;
}

.map-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(310px, 0.78fr);
  gap: clamp(16px, 2.2vw, 30px);
  align-items: stretch;
  min-width: 0;
}

.map-board {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-900);
  color: var(--white);
  box-shadow: 0 24px 58px rgba(7, 25, 23, 0.22);
}

.map-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 25px 13px;
}

.map-board-head h2,
.region-notebook h2,
.catalog-heading h2,
.gear-intro h2 {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.map-board-head p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted-on-dark);
  font-size: 13px;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 5px;
  color: var(--muted-on-dark);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #31524b;
}

.legend-swatch.has-data {
  background: var(--reed-400);
}

.map-viewport {
  position: relative;
  min-height: clamp(390px, 51vw, 650px);
  overflow: hidden;
  border-top: 1px solid var(--line-dark);
  background: var(--ink-950);
  touch-action: none;
  cursor: grab;
}

.map-viewport.is-dragging {
  cursor: grabbing;
}

.map-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-origin: 50% 50%;
  transition: transform 420ms var(--ease-out), filter 420ms var(--ease-out);
  will-change: transform;
}

.map-viewport.is-dragging .map-stage {
  transition: none;
}

.map-host {
  width: 97%;
  height: 95%;
}

.map-host > svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map-host path,
.map-host polygon {
  vector-effect: non-scaling-stroke;
  fill: #31524b !important;
  stroke: rgba(244, 240, 229, 0.42) !important;
  stroke-width: 0.7 !important;
  cursor: pointer;
  transition: fill 170ms ease, filter 170ms ease, stroke-width 170ms ease;
}

.map-host [data-has-catalog="true"] {
  fill: #577c60 !important;
}

.map-host path:hover,
.map-host path:focus-visible,
.map-host polygon:hover,
.map-host polygon:focus-visible {
  fill: var(--reed-400) !important;
  stroke: var(--paper-50) !important;
  stroke-width: 1.4 !important;
  filter: drop-shadow(0 5px 6px rgba(3, 12, 11, 0.45));
}

.map-host .is-selected {
  fill: var(--signal-400) !important;
  stroke: var(--paper-50) !important;
  stroke-width: 1.7 !important;
  filter: drop-shadow(0 7px 8px rgba(3, 12, 11, 0.5));
}

.map-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted-on-dark);
  font-size: 13px;
}

.map-loading-pulse {
  width: 72px;
  height: 72px;
  border: 1px solid var(--water-400);
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(79, 197, 189, 0.18);
  animation: chart-pulse 1.5s ease-in-out infinite;
}

@keyframes chart-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.32; }
  50% { transform: scale(1); opacity: 0.85; }
}

.map-tools {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  background: rgba(13, 41, 36, 0.94);
  box-shadow: 0 10px 28px rgba(3, 12, 11, 0.34);
}

.map-tools button,
.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sky-200);
}

.map-tools button:hover,
.icon-button:hover {
  background: var(--ink-700);
  color: var(--white);
}

.map-tools svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 240px;
  padding: 9px 11px;
  border-radius: 9px;
  background: var(--paper-50);
  color: var(--text-on-paper);
  box-shadow: 0 12px 26px rgba(3, 12, 11, 0.28);
  font-size: 12px;
  pointer-events: none;
  transform: translate(12px, 12px);
}

.map-tooltip strong {
  display: block;
  margin-bottom: 1px;
  font-size: 13px;
}

.map-tooltip span {
  color: var(--muted-on-paper);
}

.region-notebook {
  position: relative;
  min-width: 0;
  min-height: 540px;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper-100);
  color: var(--text-on-paper);
  box-shadow: 0 18px 44px rgba(31, 49, 44, 0.13);
}

.region-notebook::after {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -58px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(43, 168, 159, 0.3);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(43, 168, 159, 0.08);
  pointer-events: none;
}

.region-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--muted-on-paper);
  font-size: 12px;
  font-weight: 800;
}

.region-kicker svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--water-500);
  stroke-width: 2;
}

.region-notebook h2 {
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.region-description {
  max-width: 47ch;
  margin-bottom: 20px;
  color: var(--muted-on-paper);
  font-size: 14px;
}

.region-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0;
  background: var(--line-paper);
}

.region-counts div {
  min-width: 0;
  padding: 14px 10px;
  background: var(--paper-100);
}

.region-counts strong {
  display: block;
  color: var(--text-on-paper);
  font: 800 clamp(20px, 2.2vw, 29px)/1 var(--font-data);
  font-variant-numeric: tabular-nums;
}

.region-counts span {
  display: block;
  margin-top: 5px;
  color: var(--muted-on-paper);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
}

.region-note {
  position: relative;
  z-index: 1;
  margin: 0 0 22px;
  padding: 15px 0;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
}

.primary-action,
.secondary-action,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.primary-action {
  border: 1px solid var(--signal-400);
  background: var(--signal-400);
  color: var(--ink-950);
}

.primary-action:hover {
  border-color: var(--signal-300);
  background: var(--signal-300);
}

.secondary-action {
  border: 1px solid var(--line-paper);
  background: transparent;
  color: var(--text-on-paper);
}

.secondary-action:hover {
  border-color: var(--water-500);
  background: rgba(79, 197, 189, 0.08);
}

.primary-action svg,
.secondary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.region-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-section {
  padding: clamp(50px, 7vw, 94px) 0 clamp(70px, 9vw, 120px);
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.catalog-heading p {
  margin-bottom: 0;
  color: var(--muted-on-paper);
}

.filter-deck {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 210px) minmax(160px, 210px);
  gap: 12px;
  align-items: end;
  margin-bottom: 28px;
  padding: 14px;
  border-top: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
}

.season-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-chip {
  min-height: 39px;
  padding: 0 13px;
  border: 1px solid var(--line-paper);
  border-radius: 9px;
  background: transparent;
  color: var(--muted-on-paper);
  font-size: 12px;
  font-weight: 800;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--ink-700);
  background: var(--ink-850);
  color: var(--water-300);
}

.select-field,
.field {
  display: grid;
  gap: 6px;
}

.select-field > span,
.field > span {
  color: var(--muted-on-paper);
  font-size: 11px;
  font-weight: 800;
}

.select-field select,
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-paper);
  border-radius: 9px;
  background: var(--white);
  color: var(--text-on-paper);
}

.field textarea {
  min-height: 116px;
  resize: vertical;
}

.select-field select:hover,
.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(43, 168, 159, 0.62);
}

.catalog-status {
  min-height: 28px;
  margin-bottom: 8px;
  color: var(--muted-on-paper);
  font-size: 13px;
}

.water-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.water-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 275px;
  padding: 23px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-md);
  background: var(--paper-50);
  color: var(--text-on-paper);
  text-align: left;
  transition: border-color 170ms ease, background 170ms ease, transform 220ms var(--ease-out);
}

.water-card-photo {
  position: relative;
  height: 158px;
  margin: -23px -23px 19px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-paper);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: var(--ink-800);
}

.water-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.water-card-photo figcaption,
.fish-photo-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(7, 25, 23, 0.82);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.water-card:nth-child(5n + 1) .water-card-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(34%, 420px);
  height: auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line-dark);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.water-card:nth-child(5n + 1) .water-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 41, 36, 0.58), transparent 42%);
}

.water-card:nth-child(5n + 1) {
  grid-column: span 2;
  min-height: 250px;
  padding-right: min(35%, 420px);
  background: var(--ink-850);
  color: var(--white);
}

.water-card:hover {
  border-color: var(--water-500);
  transform: translateY(-3px);
}

.water-card:nth-child(5n + 1):hover {
  background: var(--ink-800);
}

.water-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.water-location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted-on-paper);
  font-size: 11px;
  font-weight: 800;
}

.water-card:nth-child(5n + 1) .water-location {
  color: var(--muted-on-dark);
}

.water-location svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--water-500);
  stroke-width: 2;
}

.data-badge,
.paid-badge,
.winter-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-badge.editorial {
  background: rgba(43, 168, 159, 0.12);
  color: var(--water-500);
}

.data-badge.demo {
  background: rgba(255, 143, 88, 0.16);
  color: var(--signal-600);
}

.water-card:nth-child(5n + 1) .data-badge.editorial {
  color: var(--water-300);
}

.water-card:nth-child(5n + 1) .data-badge.demo {
  color: var(--signal-300);
}

.water-card h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: clamp(23px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.water-card > p {
  max-width: 65ch;
  margin-bottom: 18px;
  color: var(--muted-on-paper);
  font-size: 13px;
}

.water-card:nth-child(5n + 1) > p {
  color: var(--muted-on-dark);
}

.water-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.water-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  background: var(--paper-100);
  color: var(--muted-on-paper);
  font-size: 10px;
  font-weight: 800;
}

.water-card:nth-child(5n + 1) .water-meta span {
  background: var(--ink-700);
  color: var(--sky-200);
}

.water-meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.water-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line-paper);
}

.water-card:nth-child(5n + 1) .water-card-footer {
  border-color: var(--line-dark);
}

.rating-line,
.price-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.rating-line svg {
  width: 16px;
  height: 16px;
  fill: var(--signal-400);
  stroke: var(--signal-400);
  stroke-width: 1.6;
}

.rating-line small {
  color: var(--muted-on-paper);
  font-weight: 650;
}

.water-card:nth-child(5n + 1) .rating-line small {
  color: var(--muted-on-dark);
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--water-400);
  color: var(--ink-950);
}

.card-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.empty-state,
.error-state {
  grid-column: 1 / -1;
  padding: clamp(36px, 7vw, 76px);
  border: 1px dashed var(--paper-300);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state svg,
.error-state svg {
  width: 46px;
  height: 46px;
  margin: 0 auto 15px;
  fill: none;
  stroke: var(--water-500);
  stroke-width: 1.6;
}

.empty-state h3,
.error-state h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 28px;
}

.empty-state p,
.error-state p {
  max-width: 58ch;
  margin: 0 auto 20px;
  color: var(--muted-on-paper);
}

.water-card-skeleton {
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-md);
}

.skeleton-line,
.skeleton-block {
  display: inline-block;
  width: 95px;
  height: 14px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(82, 100, 93, 0.11), rgba(82, 100, 93, 0.2), rgba(82, 100, 93, 0.11));
  background-size: 200% 100%;
  animation: skeleton 1.2s linear infinite;
}

.skeleton-line.wide {
  width: 72%;
  height: 28px;
}

.skeleton-block {
  display: block;
  width: 100%;
  height: 165px;
  margin-top: 18px;
}

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.gear-section {
  padding: clamp(52px, 8vw, 100px) 0 clamp(74px, 10vw, 130px);
}

.gear-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 36px;
  align-items: center;
  margin-bottom: 45px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--ink-850);
  color: var(--white);
  box-shadow: 0 22px 52px rgba(7, 25, 23, 0.2);
}

.gear-intro h2 {
  font-size: clamp(35px, 5vw, 66px);
}

.gear-intro p {
  max-width: 67ch;
  margin-bottom: 0;
  color: var(--muted-on-dark);
}

.gear-hero-icon {
  width: 145px;
  height: 145px;
  color: var(--water-400);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gear-list {
  display: grid;
  gap: 0;
}

.gear-row {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(280px, 1.2fr) minmax(190px, 0.8fr);
  gap: 28px;
  padding: 28px 6px;
  border-top: 1px solid var(--line-paper);
}

.gear-row:last-child {
  border-bottom: 1px solid var(--line-paper);
}

.gear-row h3 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 25px;
}

.gear-scene {
  color: var(--muted-on-paper);
  font-size: 12px;
}

.gear-setup {
  margin-bottom: 0;
  font-size: 14px;
}

.gear-note {
  margin-bottom: 0;
  color: var(--muted-on-paper);
  font-size: 12px;
}

.detail-sheet {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  width: min(720px, 90vw);
  height: 100dvh;
  transform: translateX(105%);
  background: var(--paper-50);
  color: var(--text-on-paper);
  box-shadow: -24px 0 64px rgba(3, 12, 11, 0.35);
  transition: transform 460ms var(--ease-out);
}

.detail-sheet.is-open {
  transform: translateX(0);
}

.detail-toolbar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-paper);
  background: rgba(244, 240, 229, 0.97);
}

.detail-toolbar .icon-button {
  color: var(--text-on-paper);
}

.detail-toolbar .icon-button:hover {
  background: var(--paper-200);
}

.detail-toolbar-label {
  color: var(--muted-on-paper);
  font-size: 12px;
  font-weight: 800;
}

.favorite-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-paper);
  border-radius: 10px;
  background: transparent;
  color: var(--text-on-paper);
  font-size: 12px;
  font-weight: 800;
}

.favorite-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.favorite-button[aria-pressed="true"] {
  border-color: var(--signal-400);
  color: var(--signal-600);
  background: rgba(255, 143, 88, 0.1);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.detail-scroll {
  height: calc(100dvh - 70px);
  overflow-y: auto;
  padding-bottom: 90px;
}

.detail-hero {
  padding: clamp(30px, 6vw, 56px) clamp(24px, 5vw, 48px) 34px;
  background: var(--ink-850);
  color: var(--white);
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.detail-hero h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 66px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.detail-hero > p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted-on-dark);
}

.detail-body {
  padding: 0 clamp(24px, 5vw, 48px);
}

.weather-instrument {
  position: relative;
  margin: -18px 0 38px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--paper-100);
  box-shadow: 0 16px 34px rgba(24, 45, 39, 0.15);
}

.weather-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.weather-head h3 {
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 24px;
}

.weather-head p {
  margin-bottom: 0;
  color: var(--muted-on-paper);
  font-size: 11px;
}

.weather-score {
  text-align: right;
}

.weather-score strong {
  display: block;
  font: 800 32px/1 var(--font-data);
  font-variant-numeric: tabular-nums;
}

.weather-score span {
  color: var(--muted-on-paper);
  font-size: 10px;
  font-weight: 800;
}

.score-track {
  height: 8px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--paper-300);
}

.score-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--water-500);
  transition: width 700ms var(--ease-out);
}

.weather-readings {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-bottom: 18px;
  background: var(--line-paper);
}

.weather-reading {
  padding: 12px;
  background: var(--paper-100);
}

.weather-reading svg {
  width: 18px;
  height: 18px;
  margin-bottom: 7px;
  fill: none;
  stroke: var(--water-500);
  stroke-width: 1.8;
}

.weather-reading strong {
  display: block;
  font: 800 16px/1.1 var(--font-data);
  font-variant-numeric: tabular-nums;
}

.weather-reading span {
  color: var(--muted-on-paper);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.weather-factors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weather-factor {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--paper-200);
  color: var(--muted-on-paper);
  font-size: 10px;
  font-weight: 700;
}

.weather-factor.good {
  background: rgba(111, 145, 64, 0.16);
  color: #466622;
}

.weather-factor.warn,
.weather-factor.bad {
  background: rgba(255, 143, 88, 0.16);
  color: #a44720;
}

.weather-attribution {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 13px;
  color: var(--muted-on-paper);
  font-size: 10px;
}

.weather-attribution svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.weather-error {
  padding: 18px;
  border: 1px solid rgba(242, 111, 98, 0.35);
  border-radius: 10px;
  background: rgba(242, 111, 98, 0.07);
}

.weather-error p {
  margin-bottom: 12px;
  color: var(--muted-on-paper);
  font-size: 13px;
}

.detail-section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line-paper);
}

.detail-section h3 {
  margin-bottom: 13px;
  font-family: var(--font-display);
  font-size: 27px;
  letter-spacing: -0.02em;
}

.detail-section > p {
  max-width: 72ch;
  color: var(--muted-on-paper);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

.fact-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
}

.fact-item svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  fill: none;
  stroke: var(--water-500);
  stroke-width: 1.7;
}

.fact-item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.fact-item span {
  display: block;
  color: var(--muted-on-paper);
  font-size: 12px;
}

.fish-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.fish-photo-card,
.method-photo-card {
  position: relative;
  min-height: 145px;
  margin: 0;
  overflow: hidden;
  border-radius: 11px;
  background: var(--ink-800);
}

.fish-photo-card img,
.method-photo-card img {
  width: 100%;
  height: 100%;
  min-height: 145px;
  object-fit: cover;
}

.method-title {
  margin: 24px 0 12px;
  font-family: var(--font-display);
  font-size: 20px;
}

.method-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.method-photo-card {
  min-height: 128px;
}

.method-photo-card img {
  min-height: 128px;
}

.method-photo-card figcaption {
  position: absolute;
  inset: auto 10px 9px 10px;
  width: fit-content;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(7, 25, 23, 0.82);
  color: var(--white);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.location-notes {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-paper);
}

.location-notes strong {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
}

.location-notes p,
.detail-muted {
  color: var(--muted-on-paper);
  font-size: 12px;
}

.safety-callout {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: rgba(255, 143, 88, 0.1);
}

.safety-callout svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--signal-600);
  stroke-width: 1.8;
}

.safety-callout strong {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
}

.safety-callout p {
  margin-bottom: 0;
  color: var(--muted-on-paper);
  font-size: 12px;
}

.review-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.review-summary strong {
  font: 800 34px/1 var(--font-data);
}

.review-summary span {
  color: var(--muted-on-paper);
  font-size: 12px;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-card {
  padding: 18px 0;
  border-top: 1px solid var(--line-paper);
}

.review-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.review-person strong {
  display: block;
  font-size: 13px;
}

.review-person span {
  color: var(--muted-on-paper);
  font-size: 10px;
}

.review-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 800 13px/1 var(--font-data);
}

.review-score svg {
  width: 15px;
  height: 15px;
  fill: var(--signal-400);
  stroke: var(--signal-400);
}

.review-card p {
  margin-bottom: 11px;
  color: var(--muted-on-paper);
  font-size: 13px;
}

.review-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.review-metrics span {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--paper-100);
  color: var(--muted-on-paper);
  font-size: 9px;
  font-weight: 800;
}

.review-form-wrap {
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--paper-100);
}

.review-form-wrap h4 {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-size: 23px;
}

.review-form-wrap > p {
  margin-bottom: 17px;
  color: var(--muted-on-paper);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field.full {
  grid-column: 1 / -1;
}

.range-field {
  display: grid;
  gap: 6px;
}

.range-field-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted-on-paper);
  font-size: 11px;
  font-weight: 800;
}

.range-field output {
  color: var(--text-on-paper);
  font: 800 13px/1 var(--font-data);
}

.range-field input[type="range"] {
  width: 100%;
  accent-color: var(--water-500);
}

.form-message {
  min-height: 20px;
  margin-top: 10px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.auth-callout {
  padding: 17px;
  border-radius: 10px;
  background: var(--ink-850);
  color: var(--white);
}

.auth-callout p {
  margin-bottom: 12px;
  color: var(--muted-on-dark);
  font-size: 12px;
}

.sheet-scrim {
  position: fixed;
  z-index: 100;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 12, 11, 0.58);
  opacity: 0;
  transition: opacity 300ms ease;
}

.sheet-scrim.is-visible {
  opacity: 1;
}

.suggestion-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 28px));
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper-50);
  color: var(--text-on-paper);
  box-shadow: 0 26px 80px rgba(3, 12, 11, 0.42);
}

.suggestion-place-dialog {
  width: min(900px, calc(100vw - 28px));
}

.suggestion-place-dialog .dialog-shell {
  max-height: min(900px, calc(100dvh - 28px));
  overflow-y: auto;
}

.suggestion-map-field > p {
  margin: -1px 0 10px;
  color: var(--muted-on-paper);
  font-size: 11px;
}

.suggestion-map {
  position: relative;
  width: 100%;
  height: clamp(230px, 34vh, 310px);
  overflow: hidden;
  border: 1px solid rgba(43, 168, 159, 0.45);
  border-radius: 12px;
  background: var(--ink-950);
  cursor: crosshair;
  touch-action: none;
}

.suggestion-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted-on-dark);
  font-size: 12px;
}

.suggestion-map-svg {
  width: 100%;
  height: 100%;
}

.suggestion-map-svg [data-region-code] {
  vector-effect: non-scaling-stroke;
  fill: #486a5a !important;
  stroke: rgba(244, 240, 229, 0.55) !important;
  stroke-width: 0.75 !important;
  cursor: crosshair;
  transition: fill 150ms ease, stroke 150ms ease;
}

.suggestion-map-svg [data-region-code]:hover,
.suggestion-map-svg .is-suggestion-region {
  fill: var(--reed-400) !important;
  stroke: var(--white) !important;
  stroke-width: 1.5 !important;
}

.suggestion-marker {
  pointer-events: none;
}

.suggestion-marker-halo {
  fill: rgba(255, 143, 88, 0.24);
  stroke: var(--white);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.suggestion-marker-core {
  fill: var(--signal-400);
  stroke: var(--ink-950);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.suggestion-map-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: var(--paper-100);
  color: var(--muted-on-paper);
  font-size: 11px;
}

.suggestion-map-status svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--signal-600);
  stroke-width: 2;
}

.suggestion-map-status strong {
  color: var(--text-on-paper);
}

.suggestion-map-status span {
  margin-left: auto;
  font: 800 11px/1 var(--font-data);
}

.suggestion-dialog::backdrop {
  background: rgba(3, 12, 11, 0.68);
}

.dialog-shell {
  padding: clamp(22px, 5vw, 38px);
}

.dialog-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  margin-bottom: 24px;
}

.dialog-head h2 {
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 34px;
}

.dialog-head p {
  margin-bottom: 0;
  color: var(--muted-on-paper);
  font-size: 13px;
}

.dialog-head .icon-button {
  color: var(--text-on-paper);
}

.dialog-head .icon-button:hover {
  background: var(--paper-200);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted-on-paper);
}

.text-button:hover {
  background: var(--paper-200);
  color: var(--text-on-paper);
}

.toast-region {
  position: fixed;
  z-index: 180;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(380px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  padding: 14px 15px;
  border-radius: 11px;
  background: var(--ink-850);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(3, 12, 11, 0.35);
  animation: toast-in 360ms var(--ease-out) both;
}

.toast svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--water-300);
  stroke-width: 2;
}

.toast.error svg {
  stroke: var(--danger);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.toast span {
  color: var(--muted-on-dark);
  font-size: 11px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.site-footer {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 34px;
  padding: 35px clamp(20px, 5vw, 72px);
  background: var(--ink-950);
  color: var(--muted-on-dark);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 19px;
}

.footer-brand svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--water-400);
  stroke-width: 2;
}

.site-footer p {
  max-width: 70ch;
  margin-bottom: 0;
  font-size: 11px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-size: 11px;
}

.footer-links button,
.footer-links a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sky-200);
}

@media (max-width: 1260px) {
  .site-header {
    grid-template-columns: auto minmax(220px, 1fr) auto auto;
  }

  .brand-subtitle,
  .nav-item span,
  .account-label {
    display: none;
  }

  .brand {
    grid-template-columns: 40px auto;
  }

  .primary-nav {
    gap: 1px;
  }

  .nav-item {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .account-button {
    padding-right: 5px;
  }

  .map-workspace {
    grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.75fr);
  }
}

@media (max-width: 1120px) {
  .map-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .region-notebook {
    min-height: 0;
  }

  .region-description {
    max-width: 72ch;
  }
}

@media (max-width: 980px) {
  .map-workspace {
    grid-template-columns: 1fr;
  }

  .region-notebook {
    min-height: 0;
  }

  .region-counts {
    max-width: 520px;
  }

  .filter-deck {
    grid-template-columns: 1fr 1fr;
  }

  .season-switch {
    grid-column: 1 / -1;
  }

  .atlas-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .atlas-stats {
    justify-content: flex-start;
  }

  .gear-row {
    grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  }

  .gear-note {
    grid-column: 2;
  }

  .site-footer {
    grid-template-columns: auto 1fr;
  }

  .footer-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 132px;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: sticky;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 9px 12px;
    min-height: auto;
    padding: 10px 14px 11px;
  }

  .brand {
    grid-column: 1;
  }

  .brand-word {
    font-size: 24px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .global-search input {
    height: 44px;
  }

  .account-wrap {
    grid-column: 3;
    grid-row: 1;
  }

  .primary-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 6px 7px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line-dark);
    background: rgba(7, 25, 23, 0.98);
    box-shadow: 0 -12px 28px rgba(3, 12, 11, 0.22);
  }

  .nav-item {
    width: auto;
    min-height: 50px;
    flex-direction: column;
    gap: 2px;
    font-size: 9px;
  }

  .nav-item span {
    display: inline;
  }

  .atlas-intro,
  .map-workspace,
  .catalog-section,
  .gear-section {
    width: min(100% - 24px, var(--content-max));
  }

  .atlas-intro {
    gap: 20px;
    padding-top: 32px;
  }

  .atlas-intro h1 {
    font-size: clamp(43px, 14vw, 68px);
  }

  .atlas-intro p {
    font-size: 15px;
  }

  .map-board-head {
    display: block;
    padding: 19px 18px 12px;
  }

  .map-legend {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .map-viewport {
    min-height: 390px;
  }

  .map-host {
    width: 140%;
    height: 100%;
  }

  .region-notebook {
    padding: 23px 20px;
  }

  .catalog-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-deck {
    grid-template-columns: 1fr;
    padding-inline: 0;
  }

  .season-switch,
  .select-field {
    grid-column: auto;
  }

  .season-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .water-grid {
    grid-template-columns: 1fr;
  }

  .water-card:nth-child(5n + 1) {
    grid-column: auto;
    min-height: 290px;
    padding-right: 23px;
  }

  .water-card:nth-child(5n + 1) .water-card-photo {
    position: relative;
    inset: auto;
    width: auto;
    height: 158px;
    margin: -23px -23px 19px;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .water-card:nth-child(5n + 1) .water-card-photo::after {
    display: none;
  }

  .gear-intro {
    grid-template-columns: 1fr;
  }

  .gear-hero-icon {
    width: 100px;
    height: 100px;
  }

  .gear-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gear-note {
    grid-column: auto;
  }

  .detail-sheet {
    width: 100vw;
  }

  .detail-toolbar {
    padding-inline: 12px;
  }

  .detail-hero {
    padding-inline: 20px;
  }

  .detail-body {
    padding-inline: 18px;
  }

  .weather-readings {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-list,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .fish-photo-grid,
  .method-photo-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .favorite-button span {
    display: none;
  }

  .favorite-button {
    width: 42px;
    justify-content: center;
    padding: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-bottom: 34px;
  }

  .footer-links {
    grid-column: auto;
    justify-content: flex-start;
  }

  .toast-region {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .suggestion-map-status {
    flex-wrap: wrap;
  }

  .suggestion-map-status span {
    width: 100%;
    margin-left: 24px;
  }
}

@media (max-width: 460px) {
  .account-avatar {
    width: 32px;
    height: 32px;
  }

  .global-search kbd {
    display: none;
  }

  .global-search input {
    padding-right: 13px;
  }

  .stat-token {
    flex: 1 1 auto;
  }

  .region-counts {
    grid-template-columns: 1fr;
  }

  .region-counts div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
  }

  .region-counts span {
    text-align: right;
  }

  .season-switch {
    grid-template-columns: 1fr;
  }

  .water-card {
    padding: 19px;
  }

  .detail-hero h2 {
    font-size: 38px;
  }

  .weather-head {
    display: block;
  }

  .weather-score {
    margin-top: 12px;
    text-align: left;
  }

  .dialog-actions {
    flex-direction: column-reverse;
  }

  .dialog-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Five-day outlook is intentionally compact: it is context, not a promise of a catch. */
.forecast-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--line-paper);
}

.forecast-strip span {
  min-width: 0;
  padding: 10px 8px;
  background: var(--paper-100);
  color: var(--muted-on-paper);
  font: 650 10px/1.35 var(--font-body);
  text-align: center;
}

.forecast-strip strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-on-paper);
  font: 800 11px/1 var(--font-data);
  text-transform: uppercase;
}

.weather-disclaimer {
  max-width: 70ch;
  margin: 14px 0 0;
  color: var(--muted-on-paper);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 460px) {
  .forecast-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forecast-strip span:nth-child(n + 4) {
    display: none;
  }
}

/* Privacy ledger */
.privacy-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 96px) 24px 110px;
}

.privacy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-paper);
}

.privacy-hero h1 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.privacy-hero p {
  max-width: 68ch;
  margin: 0;
  color: var(--muted-on-paper);
  font-size: clamp(16px, 1.8vw, 21px);
}

.privacy-hero-icon {
  width: clamp(92px, 12vw, 150px);
  height: clamp(92px, 12vw, 150px);
  color: var(--water-400);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
}

.privacy-ledger {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 54px;
  border-top: 1px solid var(--line-paper);
  border-left: 1px solid var(--line-paper);
}

.privacy-ledger article {
  min-height: 230px;
  padding: 32px;
  border-right: 1px solid var(--line-paper);
  border-bottom: 1px solid var(--line-paper);
}

.privacy-ledger h2,
.privacy-control h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.05;
}

.privacy-ledger p,
.privacy-status {
  max-width: 62ch;
  margin: 0;
  color: var(--muted-on-paper);
}

.privacy-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 44px;
  padding: 34px;
  border-radius: 16px;
  background: var(--ink-850);
  color: var(--paper-50);
  box-shadow: 0 18px 42px rgba(3, 12, 11, 0.18);
}

.privacy-control .privacy-status {
  color: var(--muted-on-dark);
}

.privacy-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.privacy-summary span {
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(79, 197, 189, 0.12);
  color: var(--sky-200);
  font: 800 12px/1 var(--font-data);
}

.danger-action {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(255, 143, 88, 0.55);
  border-radius: 11px;
  background: var(--signal-400);
  color: var(--ink-950);
  font-weight: 850;
}

.danger-action:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.danger-action:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.data-delete-dialog .dialog-shell {
  max-width: 640px;
}

@media (max-width: 760px) {
  .privacy-section {
    padding: 36px 14px 92px;
  }

  .privacy-hero {
    grid-template-columns: 1fr;
  }

  .privacy-hero-icon {
    display: none;
  }

  .privacy-ledger {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .privacy-ledger article {
    min-height: 0;
    padding: 24px 20px;
  }

  .privacy-control {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .privacy-control .danger-action {
    width: 100%;
  }
}
