/* Stocking Reports: one stylesheet for every page. Colors:
   ink #16201B, forest #173F31 / #1F5C45, accent #F08A4B, paper #F6F5F1.
   Species colors (never reuse for anything else):
   brook #2F7D5B, brown #8A5A2B, rainbow #C2410C, lake #4B5D6E, salmon #3B6EA8, splake #7A5BA6 */

:root {
  --ink: #16201B; --ink-2: #2F3A34; --muted: #4A544E; --faint: #5B655F;
  --forest: #173F31; --green: #1F5C45; --green-dark: #123A2B; --accent: #F08A4B;
  --paper: #F6F5F1; --card: #FFFFFF; --line: #E2DED4; --line-2: #EEEBE4; --field: #CFCBC0;
  --mint: #EAF1ED; --sand: #EAE7DE;
  --radius: 6px; --radius-lg: 8px;
  --head: "Space Grotesk", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--green); } a:hover { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.015em; line-height: 1.12; }
h1 { font-size: clamp(34px, 5vw, 52px); margin: 0; }
h2 { font-size: 26px; margin: 0; }
h3 { font-size: 20px; margin: 0; }
button, input, select { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { background: var(--forest); color: #F6F5F1; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #F6F5F1; text-decoration: none; }
.brand:hover { color: #FFFFFF; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 20px; }
.brand-state { font-size: 13px; color: #A9C7B8; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.site-nav a { color: #DCE7E0; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #FFFFFF; }
.site-nav .cta { background: var(--accent); color: var(--ink); font-weight: 600; padding: 9px 14px; border-radius: 5px; }
.site-footer { background: var(--ink); color: #B9C2BC; padding: 36px 0; margin-top: 64px; font-size: 14px; }
.site-footer a { color: #DCE7E0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

main { padding: 28px 0 24px; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.crumbs a { text-decoration: none; }
.lede { font-size: 18px; color: var(--muted); margin: 10px 0 0; max-width: 760px; }
.updated { font-size: 15px; color: var(--faint); margin-top: 8px; }
section { margin-top: 44px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }

/* Cards, tiles, buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { flex: 1 1 160px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.tile .label { font-size: 14px; font-weight: 600; color: var(--faint); }
.tile .value { font-family: var(--head); font-size: 28px; font-weight: 700; margin-top: 4px; }
.stats { display: flex; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-top: 24px; }
.stats > div { flex: 1 1 180px; padding: 18px 22px; border-right: 1px solid var(--line-2); }
.stats > div:last-child { border-right: 0; }
.stats .value { font-family: var(--head); font-size: 30px; font-weight: 700; }
.stats .label { font-size: 14px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 5px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--green); }
.btn-primary { background: var(--green); color: #FFFFFF; } .btn-primary:hover { background: var(--green-dark); color: #FFFFFF; }
.btn-secondary { background: var(--card); color: var(--green); }
.btn-accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 5px; background: #FFF1E7; color: #9A3A12; }
.badge.quiet { background: var(--sand); color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 999px; flex: none; }
.sp { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select { min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 5px; background: var(--card); color: var(--ink); }
.field.grow { flex: 1 1 260px; } .field.grow input { width: 100%; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--sand); padding: 4px; border-radius: var(--radius); }
.seg button, .seg a, .seg span { font-size: 14px; font-weight: 600; color: var(--ink); background: transparent; border: 0; border-radius: 4px; padding: 0 14px; min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--card); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { font-size: 14px; font-weight: 500; padding: 0 14px; min-height: 40px; border-radius: 5px; cursor: pointer; background: var(--card); color: var(--ink); border: 1px solid var(--field); display: inline-flex; align-items: center; gap: 8px; }
.pill[aria-pressed="true"] { background: var(--green); color: #FFFFFF; border-color: var(--green); }

/* Tables */
.table-box { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin-top: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 14px; font-weight: 600; color: var(--faint); padding: 10px 16px; white-space: nowrap; }
td { padding: 11px 16px; border-top: 1px solid var(--line-2); vertical-align: top; }
td.r, th.r { text-align: right; }
.sub { display: block; font-size: 14px; color: var(--faint); }
.water-link { font-weight: 600; text-decoration: none; }
th button.sort { font: inherit; font-size: 14px; font-weight: 600; color: var(--faint); background: transparent; border: 0; padding: 0; min-height: 32px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
th[aria-sort="ascending"] button.sort, th[aria-sort="descending"] button.sort { color: var(--ink); }
th[aria-sort="ascending"] button.sort::after { content: "↑"; } th[aria-sort="descending"] button.sort::after { content: "↓"; }
.expand { width: 36px; height: 36px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.expand:hover { background: var(--sand); color: var(--ink); }
.expand svg { transition: transform 150ms; } .expand[aria-expanded="true"] svg { transform: rotate(180deg); } .expand[aria-expanded="true"] { color: var(--ink); }
tr.open > td { background: var(--paper); }
tr.detail > td { background: var(--paper); padding-top: 4px; padding-bottom: 16px; }
.log { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.log table { font-size: 14px; } .log th, .log td { padding: 6px 8px; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--faint); }
.alert-btn { font-size: 14px; font-weight: 600; min-height: 38px; padding: 0 12px; border-radius: 5px; border: 1px solid var(--green); background: var(--card); color: var(--green); text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }

/* Alert picker */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #F6F5F1; color: var(--ink); font-size: 14px; font-weight: 600; padding: 6px 6px 6px 12px; border-radius: 5px; }
.chip button { border: 0; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: var(--muted); width: 28px; height: 28px; border-radius: 4px; }
.chip button:hover { background: var(--sand); }
.chip:only-child:not(:has(button)) { padding-right: 12px; }
.alert-box button[type=submit]:disabled { opacity: .55; cursor: not-allowed; }
.alert-btn.pick { cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; gap: 8px; }
.alert-btn.pick .box { width: 16px; height: 16px; border: 2px solid currentColor; border-radius: 3px; flex: none; position: relative; }
.alert-btn.pick[aria-pressed="true"] { background: var(--green); color: #FFFFFF; }
.alert-btn.pick[aria-pressed="true"] .box { background: #FFFFFF; border-color: #FFFFFF; }
.alert-btn.pick[aria-pressed="true"] .box::after { content: ""; position: absolute; left: 4px; top: 0; width: 4px; height: 9px; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.alert-btn.pick.on-dark { background: transparent; color: #FFFFFF; border-color: #A9C7B8; min-height: 44px; justify-content: flex-start; align-self: flex-start; }
.alert-btn.pick.on-dark[aria-pressed="true"] { background: #FFFFFF; color: var(--green); border-color: #FFFFFF; }
.alert-btn.pick.on-dark[aria-pressed="true"] .box { background: var(--green); border-color: var(--green); }
.alert-btn.pick.on-dark[aria-pressed="true"] .box::after { border-color: #FFFFFF; }
.near-row { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line-2); }
.near-row:first-child { border-top: 0; }
.near-row > a { flex: 1; display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; text-decoration: none; color: var(--ink); min-height: 44px; }
.pick-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; gap: 18px; align-items: center; justify-content: space-between; width: min(560px, calc(100% - 24px)); background: var(--ink); color: #FFFFFF; text-decoration: none; padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 15px; }
.pick-bar:hover { color: #FFFFFF; background: #0E1612; }
.pick-bar span:last-child { color: var(--accent); font-weight: 600; white-space: nowrap; }

.locator-card { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 12px; }
.locator { width: 150px; height: 230px; flex: none; }

/* Lake page top: sign-up box sits right of the facts on desktop, right after them on phones */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "head alert" "tiles alert" "loc alert"; gap: 0 24px; align-items: start; }
.hero > .h-head { grid-area: head; } .hero > .h-tiles { grid-area: tiles; } .hero > .h-loc { grid-area: loc; } .hero > .h-alert { grid-area: alert; }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tiles" "alert" "loc"; } .hero > .h-alert { margin-top: 16px; } }

.faq { border-top: 1px solid var(--line-2); }
.faq:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 16px 0; min-height: 44px; list-style-position: outside; }
.faq p { margin: 0 0 16px; color: var(--ink-2); max-width: 760px; }

/* Layout pieces */
.grid-2 { display: flex; flex-wrap: wrap; gap: 20px; }
.grid-2 > .main { flex: 999 1 560px; min-width: 0; }
.grid-2 > .side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 20px; }
.new-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.new-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.new-card .name { font-weight: 600; color: var(--green); }
.alert-box { background: var(--forest); color: #F6F5F1; border-radius: var(--radius-lg); padding: 24px; }
.alert-box h2 { font-size: 22px; }
.alert-box form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.alert-box input[type=email] { min-height: 48px; border: 0; border-radius: 5px; padding: 0 14px; }
.alert-box .note { font-size: 14px; color: #A9C7B8; margin: 0; }
.mint { background: var(--mint); border-radius: var(--radius-lg); padding: 24px; }
.steps { display: flex; flex-wrap: wrap; gap: 16px; }
.steps .card { flex: 1 1 240px; }
.step-n { width: 32px; height: 32px; border-radius: 999px; background: var(--green); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--head); }
.county-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.county-links a { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; min-height: 50px; display: flex; align-items: center; justify-content: space-between; text-decoration: none; color: var(--ink); font-weight: 500; }
.list-rows a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); text-decoration: none; color: var(--ink); min-height: 44px; }
.list-rows a:first-child { border-top: 0; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; border-bottom: 1px solid var(--field); margin-top: 18px; }
.bars .bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; }
.bars .bar span { font-size: 13px; font-weight: 600; }
.bars .bar i { display: block; width: 100%; max-width: 40px; background: var(--green); border-radius: 3px 3px 0 0; }
.bar-labels { display: flex; gap: 6px; margin-top: 6px; }
.bar-labels span { flex: 1 1 0; text-align: center; font-size: 13px; color: var(--faint); }
.what-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.what-row:first-of-type { border-top: 0; }
.kids { font-size: 12px; font-weight: 600; color: #6B3FA0; background: #F1EAFA; padding: 3px 8px; border-radius: 4px; }

/* Map */
.map-box { flex: 1 1 520px; max-width: 660px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; }
.map { position: relative; width: 100%; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pin { position: absolute; transform: translate(-50%, -50%); border-radius: 999px; padding: 0; cursor: pointer; box-sizing: border-box; }
.county-label { position: absolute; transform: translate(-50%, -50%); z-index: 6; font-size: 13px; font-weight: 600; color: var(--faint); background: transparent; border: 0; padding: 2px 4px; cursor: pointer; white-space: nowrap; text-shadow: 0 0 3px #FFF, 0 0 3px #FFF, 0 0 2px #FFF, 0 0 1px #FFF; }
.county-label[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; padding: 4px 0; }
.swatch { width: 12px; height: 12px; border-radius: 999px; display: inline-block; border: 1px solid; vertical-align: -1px; margin-right: 8px; }

#waters { min-width: 960px; }
@media (max-width: 640px) {
  #waters { min-width: 0; }
  #waters .c-town, #waters .c-sp, #waters .c-n, #waters .c-fish,
  table.sortable .c-town, table.sortable .c-sp, table.sortable .c-n, table.sortable .c-fish, .c-season { display: none; }
  table.sortable { min-width: 0; }
  .alert-btn.pick { padding: 0 10px; min-height: 40px; }
  #waters .alert-btn.pick .lbl, table.sortable .alert-btn.pick .lbl { display: none; }
  .alert-btn.pick .box { width: 18px; height: 18px; }
  #waters td, #waters th, table.sortable td, table.sortable th { padding-left: 8px; padding-right: 8px; }
  .expand { width: 32px; }
  .wrap { padding: 0 16px; }
  .site-nav { gap: 6px 16px; font-size: 14px; }
  .stats > div { border-right: 0; border-bottom: 1px solid var(--line-2); }
}
