/* Colorado Fishing Guide — styles */
:root {
  --bg: #ffffff;
  --surface: #f4f7f9;
  --card: #ffffff;
  --text: #1c1f22;
  --muted: #5c6670;
  --line: #dfe5ea;
  --accent: #1667a8;
  --accent-hover: #0f5189;
  --accent-soft: #e2eef8;
  --accent-text: #125d99;
  --hero: #0c2032;
  --shadow: 0 1px 2px rgba(20, 40, 60, .14), 0 1px 3px 1px rgba(20, 40, 60, .08);
  --max: 1200px;
  --pad: 24px;
  --r-lg: 24px;
  --r-md: 16px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111416;
    --surface: #1a1e21;
    --card: #1a1e21;
    --text: #e6eaee;
    --muted: #9ea8b1;
    --line: #30373d;
    --accent: #2a7fc4;
    --accent-hover: #3b92d8;
    --accent-soft: #15283a;
    --accent-text: #79b8ec;
    --shadow: none;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); }
svg { display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.skip {
  position: absolute; left: -999px; top: 8px; z-index: 20;
  padding: 8px 16px; border-radius: 8px; background: var(--accent); color: #fff;
}
.skip:focus { left: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* App bar */
.appbar { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .appbar { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(12px); }
}
.appbar .wrap { display: flex; align-items: center; gap: 40px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.brand b { color: var(--text); font-weight: 600; }
.logo { width: 36px; height: 36px; flex: 0 0 auto; }
.tabs { display: flex; gap: 32px; height: 100%; }
.tabs a {
  display: flex; align-items: center; height: 100%; padding-top: 3px;
  border-bottom: 3px solid transparent; color: var(--muted);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--accent-text); border-color: var(--accent); }
.appbar .btn { margin-left: auto; white-space: nowrap; }
@media (max-width: 1100px) { .appbar .wrap { gap: 28px; } .tabs { gap: 22px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border: 0; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  cursor: pointer; transition: background-color .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-tonal { background: var(--accent-soft); color: var(--accent-text); }
.btn-tonal:hover { background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-end;
  min-height: 500px; margin-top: 24px; border-radius: var(--r-lg);
  background: var(--hero); color: #fff;
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--hero) 0%, rgba(12, 32, 50, .93) 30%, rgba(12, 32, 50, .42) 58%, rgba(12, 32, 50, 0) 78%);
}
.hero-body { position: relative; z-index: 1; max-width: 650px; padding: 48px; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 99px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 500; }
.hero h1 { margin: 16px 0 12px; font-size: clamp(34px, 5.2vw, 58px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.lead { margin: 0; font-size: 17px; color: rgba(255, 255, 255, .86); }
.stats { display: flex; margin: 28px 0; padding: 0; list-style: none; }
.stats li {
  display: flex; flex-direction: column; align-items: center; max-width: 124px;
  padding: 0 20px; border-left: 1px solid rgba(255, 255, 255, .22); text-align: center;
}
.stats li:first-child { padding-left: 0; border: 0; }
.stats strong { font-size: 17px; font-weight: 600; white-space: nowrap; }
.stats span { margin-top: 2px; font-size: 12px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); }

/* Sections */
.sec { margin-top: 64px; scroll-margin-top: 84px; }
.sec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.sec-head h2 { font-size: 24px; font-weight: 500; }
.sec-head a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--muted); }
.sec-head a:hover { background: var(--surface); color: var(--text); }
.sec-head svg { width: 22px; height: 22px; }
.sub { max-width: 760px; margin: 0 0 20px; color: var(--muted); }

/* Filter chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--pad) * -1); padding: 4px var(--pad) 18px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; height: 36px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.chip:hover { background: var(--surface); }
.chip[aria-pressed="true"] { border-color: transparent; background: var(--accent-soft); color: var(--accent-text); }

/* Species cards */
.cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(12.5% - 14px); gap: 16px;
  margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 8px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none;
}
.cards::-webkit-scrollbar { display: none; }
.card { min-width: 0; scroll-snap-align: start; }
.card[hidden] { display: none; }
.card h3 { margin: 12px 0 2px; font-size: 15px; font-weight: 500; }
.card p { margin: 0; font-size: 13px; color: var(--muted); }
.card .tag { margin-top: 2px; color: var(--accent-text); font-weight: 500; }
.empty { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.tile {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 22%;
  background: linear-gradient(145deg, var(--c1), var(--c2)); color: #fff; box-shadow: var(--shadow);
}
.tile svg { width: 60%; height: 60%; }
.t-rainbow  { --c1: #e58aa3; --c2: #4f7aa8; }
.t-brown    { --c1: #c99a55; --c2: #6e4a22; }
.t-cutthroat{ --c1: #e06a4e; --c2: #6f7f3a; }
.t-brook    { --c1: #6f9a52; --c2: #2f5233; }
.t-laker    { --c1: #7b8b9c; --c2: #39475a; }
.t-kokanee  { --c1: #e2573f; --c2: #8f2219; }
.t-walleye  { --c1: #c9b55a; --c2: #6d6a2a; }
.t-bass     { --c1: #76a65a; --c2: #2f5f35; }
.t-pike     { --c1: #8bae6a; --c2: #3e5c32; }
.t-crappie  { --c1: #9db0c4; --c2: #4d6077; }
.t-catfish  { --c1: #8a8f99; --c2: #3d4049; }
.t-muskie   { --c1: #a59a72; --c2: #54492c; }
.t-river    { --c1: #4f9bd0; --c2: #1d5a8a; }
.t-canyon   { --c1: #d0805a; --c2: #8a3e24; }
.t-lake     { --c1: #3fa5b4; --c2: #19636f; }
.t-alpine   { --c1: #7d92b5; --c2: #3a4d72; }

/* Seasons table */
.table { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { padding: 12px 20px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
tbody th, td { padding: 16px 20px; border-top: 1px solid var(--line); vertical-align: top; }
tbody th { background: none; color: var(--text); font-size: 15px; }
td span { display: block; }
td small { color: var(--muted); font-size: 13px; }
.sp { display: flex; align-items: center; gap: 12px; font-weight: 500; white-space: nowrap; }
.sp .tile { width: 36px; flex: 0 0 auto; border-radius: 10px; box-shadow: none; }
.sp .tile svg { width: 72%; height: 72%; }
.lim { width: 30%; }
.note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* Licenses */
.lic { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 16px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.panel h3 { font-size: 17px; font-weight: 500; }
.price { margin: 14px 0 2px; font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plabel { margin: 0; color: var(--muted); font-size: 14px; }
.ticks { margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.ticks li { display: flex; gap: 10px; margin: 10px 0; }
.ticks svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; color: var(--accent-text); }
.panel .btn { width: 100%; }
.check { margin: 8px 0 0; padding: 0; list-style: none; }
.check li { display: flex; gap: 14px; padding: 12px 0; }
.check li + li { border-top: 1px solid var(--line); }
.ico { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.ico svg { width: 20px; height: 20px; }
.check p { margin: 0; }
.check b { display: block; font-weight: 500; }
.check span { font-size: 14px; color: var(--muted); }

/* Waters chart */
.chart { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 24px; margin: 0; padding: 0; list-style: none; }
.chart li { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.rank { width: 18px; flex: 0 0 auto; color: var(--muted); text-align: center; }
.chart .tile { width: 64px; flex: 0 0 auto; border-radius: 16px; }
.chart h3 { font-size: 15px; font-weight: 500; }
.chart p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.gm { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: #f3e3a6; color: #6b5100; font-size: 11px; font-weight: 600; vertical-align: 2px; }
@media (prefers-color-scheme: dark) { .gm { background: #3d3415; color: #e8cf72; } }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cal li { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.cal .ico { margin-bottom: 14px; }
.cal h3 { font-size: 16px; font-weight: 500; }
.cal .when { margin: 2px 0 8px; font-size: 13px; color: var(--accent-text); font-weight: 500; }
.cal p { margin: 0; font-size: 14px; color: var(--muted); }

/* About */
.about p { max-width: 760px; margin: 0 0 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.tags li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 16px; font-weight: 500; line-height: 1.4; }
.faq summary svg { width: 24px; height: 24px; flex: 0 0 auto; color: var(--muted); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 4px 20px; color: var(--muted); }

/* Footer */
.foot { margin-top: 80px; padding: 40px 0 32px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.fcols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.fcols h2 { margin-bottom: 12px; font-size: 14px; font-weight: 500; color: var(--text); }
.fcols .brand { margin-bottom: 10px; font-size: 18px; }
.fcols p { margin: 0; max-width: 320px; }
.fcols ul { margin: 0; padding: 0; list-style: none; }
.fcols li { margin: 8px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.fbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }

/* Responsive */
@media (max-width: 1020px) {
  .cards { grid-auto-columns: 120px; }
  .lic { grid-template-columns: 1fr 1fr; }
  .lic .panel:last-child { grid-column: 1 / -1; }
  .chart, .cal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .appbar .wrap { flex-wrap: wrap; gap: 0 16px; height: auto; }
  .brand { height: 56px; }
  .tabs {
    order: 3; width: calc(100% + var(--pad) * 2); height: 44px; gap: 24px;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .sec { scroll-margin-top: 116px; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .hero { display: block; min-height: 0; margin-top: 16px; border-radius: 20px; }
  .hero-art { position: relative; height: 230px; }
  .hero::after { background: linear-gradient(180deg, rgba(12, 32, 50, 0) 100px, var(--hero) 230px); }
  .hero-body { margin-top: -56px; padding: 0 20px 24px; }
  .stats { flex-wrap: wrap; row-gap: 14px; }
  .stats li { padding: 0 12px; }
  .actions .btn { flex: 1 1 auto; }
  .sec { margin-top: 48px; }
  .sec-head h2 { font-size: 21px; }
  .lic, .chart, .cal, .fcols { grid-template-columns: 1fr; }
  .brand { font-size: 18px; }
}
@media (max-width: 480px) {
  .appbar .btn { display: none; }
}
@media (max-width: 640px) {
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table, tbody, tr, th, td { display: block; }
  tr { padding: 16px; }
  tr + tr { border-top: 1px solid var(--line); }
  tbody th, td { padding: 0; border: 0; }
  td { margin-top: 8px; padding-left: 48px; }
  td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
  .lim { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
