/* The Angler's Field Guide: dark stone, gilded frames, parchment pages and tooltip-style item cards.
   Every texture and ornament below is CSS or inline SVG drawn for this guide. */
/* Marcellus draws 1 and 0 like I and O, so digits are left out and fall through to the next font in each stack. */
@font-face { font-family: "Marcellus"; src: url("../assets/fonts/Marcellus-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-002F, U+003A-10FFFF; }
@font-face { font-family: "Marcellus SC"; src: url("../assets/fonts/MarcellusSC-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-002F, U+003A-10FFFF; }

:root {
  --parchment: #ead9b0;
  --parchment-2: #dfcb9a;
  --parchment-3: #c9b077;
  --card: #f6ecd2;
  --ink: #24180c;
  --ink-soft: #4d3d29;
  --deep: #111318;        /* stone: banner, menu bar, footer */
  --deep-2: #272b35;
  --deep-3: #3a4050;
  --gold: #d6b25a;        /* gilded borders */
  --gold-hi: #ffd100;     /* title yellow on dark surfaces */
  --gold-soft: #f0d894;   /* quieter gold text on dark surfaces */
  --gold-ink: #6a4c0a;    /* gold dark enough for text on parchment */
  --rust: #8a2a16;
  --rule: #8a6a2c;
  --focus: #1f6fb2;
  --head: #40200a;        /* headings and strong text on parchment */
  --link: #1b4567;
  --edge: #6b4a18;        /* strong borders, radio and checkbox accents */
  --btn-bg: #7c1712;
  --btn-hover: #9a2018;
  --surface-2: #fbf4e0;   /* panels inside cards */
  --chip-bg: #fbf2d8;
  --chip-hover: #f0dda6;
  --input-bg: #fffaf0;
  --input-border: #8a7448;
  --thead: #2b1d0e;
  --thead-ink: #f0d58a;
  --line: #dcc999;
  --line-2: #c4ac74;
  --wash: rgba(107,74,24,.12);
  --ghost-bg: linear-gradient(180deg, #fdf6e0, #e7d39c);
  --radius: 5px;
  /* A gilded frame: bronze border, gold band, dark outer line. */
  --shadow: 0 0 0 2px #d6b25a, 0 0 0 3px #1d1306, 0 10px 20px -10px rgba(20,12,4,.65);
  --glow: 0 0 14px 2px rgba(255,209,0,.5);
  --page-edge: 0 0 0 1px #000, 0 0 0 4px #7d5c1f, 0 0 0 5px #e3c36e, 0 0 0 7px #1d1306, 0 0 60px rgba(0,0,0,.8);
  --tex-grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2  0 0 0 0 .12  0 0 0 0 .03  0 0 0 .5 -.14'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-grain-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .3 -.09'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-blotch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='b' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5  0 0 0 0 .31  0 0 0 0 .08  0 0 0 .9 -.38'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23b)'/%3E%3C/svg%3E");
  --tex-page: var(--tex-grain-dark), var(--tex-blotch);
  --font-title: "Marcellus SC", "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-display: "Marcellus", "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", Georgia, serif;
  --font-body: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --font-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.25rem; scrollbar-color: #8a6a2c #0b0c10; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background-color: #0b0c10;
  background-image:
    var(--tex-grain-light),
    radial-gradient(ellipse 90rem 40rem at 50% 18rem, #20242e, transparent 70%),
    linear-gradient(180deg, #0b0c10, #13151b 40%, #0b0c10);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--rust); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; color: var(--head); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); letter-spacing: .01em; }
h3 { font-size: 1.2rem; letter-spacing: .015em; }
h4 { font-family: var(--font-display); color: var(--head); font-size: 1.06rem; letter-spacing: .015em; margin: 1rem 0 .45rem; }
p { margin: 0 0 .8rem; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 50;
  background: var(--deep); color: #fff; padding: .5rem .9rem; border-radius: 6px;
}
.skip-link:focus { top: .75rem; }

/* ---------- Page banners: one size on every page, only the picture changes ---------- */
.banner {
  --banner-img: none;
  --banner-h: clamp(15rem, 12rem + 6vw, 17rem);
  height: var(--banner-h); display: flex; align-items: center; overflow: hidden; position: relative;
  color: #f7efdc;
  background-color: var(--deep);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 22%, rgba(0,0,0,0) 70%, rgba(0,0,0,.6) 100%),
    linear-gradient(90deg, rgba(8,9,12,.94) 0%, rgba(8,9,12,.84) 38%, rgba(8,9,12,.3) 72%, rgba(8,9,12,.1) 100%),
    var(--banner-img);
  background-size: cover;
  background-position: center 55%;
  border-bottom: 1px solid #000;
  box-shadow: inset 0 0 90px rgba(0,0,0,.55);
}
/* Gilded rail along the bottom edge of the banner. */
.banner::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; pointer-events: none;
  background: linear-gradient(180deg, #1d1306 0 1px, #f3d98c 1px 2px, #b98d33 2px 4px, #6d4d14 4px 6px, #000 6px);
}
.banner-home       { --banner-img: url("../assets/img/web/hero-scene.jpg"); background-position: center 60%; }
.banner-zones      { --banner-img: url("../assets/img/web/scene-desert-port.jpg"); }
.banner-leveling   { --banner-img: url("../assets/img/web/scene-starting-lake.jpg"); }
.banner-natpagle   { --banner-img: url("../assets/img/web/scene-misty-swamp.jpg"); }
.banner-tackle     { --banner-img: url("../assets/img/web/tackle-flatlay.jpg"); }
.banner-camps      { --banner-img: url("../assets/img/web/scene-ancient-forest-river.jpg"); }
.banner-tournament { --banner-img: url("../assets/img/web/scene-jungle-coast.jpg"); }
.banner-reference  { --banner-img: url("../assets/img/web/compass-rose.jpg"); background-position: right center; }
.banner-sources    { --banner-img: url("../assets/img/web/scene-sources.jpg"); }
.banner-next       { --banner-img: url("../assets/img/web/scene-next-step.jpg"); }
.banner-finder     { --banner-img: url("../assets/img/web/scene-fish-finder.jpg"); }
.banner-inner { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
.banner .eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: #e8cf8c; margin-bottom: .5rem; text-shadow: 0 1px 2px #000; }
@media (max-width: 30rem) { .banner .eyebrow { font-size: .68rem; letter-spacing: .08em; } }
.banner .eyebrow a { color: #f1d78f; }
.banner .eyebrow a:hover { color: #fff; }
.banner h1 {
  font-family: var(--font-title); font-weight: 400; color: var(--gold-hi); letter-spacing: .02em;
  font-size: clamp(1.75rem, 1.2rem + 2.7vw, 3rem); max-width: 42rem; text-wrap: balance; margin: 0 0 .5rem;
  text-shadow: 0 2px 0 #1a0f02, 0 0 14px rgba(0,0,0,.8);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media screen and (forced-colors: none) {
    .banner h1 {
      background: linear-gradient(180deg, #fff4b8 8%, #ffd100 46%, #c98a14 92%);
      -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
      text-shadow: none; filter: drop-shadow(0 2px 0 #1a0f02) drop-shadow(0 0 8px rgba(0,0,0,.75));
    }
  }
}
.banner-lede { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 36rem; color: #efe4c9; margin: 0; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* ---------- Sticky menu bar ---------- */
.toc {
  position: sticky; top: 0; z-index: 20;
  background-color: #16181d;
  background-image: var(--tex-grain-light), linear-gradient(180deg, #2a2d36 0%, #17191f 45%, #0d0e12 100%);
  border-bottom: 2px solid #7d5c1f;
  box-shadow: inset 0 1px 0 rgba(255,225,150,.28), inset 0 -1px 0 #000, 0 1px 0 #e3c36e, 0 2px 0 #1d1306, 0 6px 14px -4px rgba(0,0,0,.8);
}
.toc ul {
  list-style: none; margin: 0 auto; padding: .35rem .5rem; max-width: 72rem;
  display: flex; gap: .15rem; overflow-x: auto; scrollbar-width: thin;
  font-family: var(--font-display); font-size: .97rem;
}
.toc a {
  display: block; white-space: nowrap; color: var(--gold-soft); text-decoration: none; text-shadow: 0 1px 0 #000;
  padding: .45rem .7rem; border-radius: 4px; min-height: 44px; line-height: 1.75; border: 1px solid transparent;
}
.toc a:hover, .toc a:focus-visible { background: rgba(255,209,0,.14); border-color: rgba(214,178,90,.55); color: #fff; }
.toc a[aria-current="page"] {
  background: linear-gradient(180deg, #f8e3a0, #d6ac48 55%, #b08326); color: #1c1203; font-weight: 700; text-shadow: 0 1px 0 rgba(255,255,255,.4);
  border-color: #3a2707; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 0 8px rgba(255,209,0,.35);
}
.toc::before, .toc::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 2.2rem; pointer-events: none; opacity: 0; transition: opacity .15s;
}
.toc::before { left: 0; background: linear-gradient(90deg, rgba(22,24,29,1) 15%, rgba(22,24,29,0)); }
.toc::after { right: 0; background: linear-gradient(270deg, rgba(22,24,29,1) 15%, rgba(22,24,29,0)); }
.toc.more-left::before, .toc.more-right::after { opacity: 1; }
.toc.has-toggle { display: flex; justify-content: center; align-items: center; }
.toc.has-toggle ul { flex: 1 1 auto; min-width: 0; max-width: 67.5rem; margin: 0; }
.toc.has-toggle::after { right: 6.4rem; }
.theme-switch {
  flex: none; display: inline-flex; align-items: center; justify-content: flex-end; gap: .45rem; width: 6.4rem; margin: 0; min-height: 44px; padding: 0 .75rem 0 .2rem; cursor: pointer;
  font-family: var(--font-display); font-size: .9rem; font-weight: 600; color: var(--gold-soft); text-shadow: 0 1px 0 #000; background: transparent; border: 0;
}
.ts-track {
  position: relative; display: block; width: 2.6rem; height: 1.4rem; border-radius: 999px;
  background: #050608; border: 1px solid #d6b25a; box-shadow: inset 0 2px 4px #000; transition: background .15s;
}
.ts-thumb {
  position: absolute; top: 50%; left: .15rem; width: 1rem; height: 1rem; margin-top: -.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, #d6ac48 60%, #8a6524); transition: transform .15s;
}
.theme-switch[aria-checked="true"] .ts-track { background: linear-gradient(180deg, #b08326, #f0d58a); }
.theme-switch[aria-checked="true"] .ts-thumb { transform: translateX(1.2rem); background: radial-gradient(circle at 35% 30%, #4a4f5c, #14161b 65%); }
.theme-switch:hover .ts-track { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .ts-track, .ts-thumb { transition: none; } }
@media (prefers-reduced-motion: reduce) { .toc::before, .toc::after { transition: none; } }

/* ---------- Layout: the page is a parchment sheet set in stone ---------- */
main {
  max-width: 72rem; margin: 0 auto; padding: 0 1rem 3rem; min-height: 60vh;
  background-color: var(--parchment);
  background-image: var(--tex-page);
  box-shadow: var(--page-edge);
}
.section { padding: clamp(2rem, 5vw, 3.25rem) 0 1rem; position: relative; border-style: solid; border-width: 0 0 2px; border-image: linear-gradient(90deg, transparent, var(--rule) 18%, var(--gold) 50%, var(--rule) 82%, transparent) 1; }
.section:last-child { border-width: 0; }
.section-head { margin-bottom: 1.25rem; max-width: 50rem; }
.section-head h2 { display: flex; align-items: center; gap: .75rem; font-family: var(--font-title); font-weight: 400; letter-spacing: .02em; font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem); }
/* A blue gem in a gold setting. */
.section-head h2::before {
  content: ""; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; margin-left: .25rem; transform: rotate(45deg); border-radius: 2px;
  background: linear-gradient(135deg, #b9e6ff 0%, #3d8fd1 38%, #123f73 100%);
  border: 2px solid #d6b25a;
  box-shadow: 0 0 0 1px #1d1306, inset 0 0 3px rgba(255,255,255,.7);
}
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem; max-width: none; }
.section-lede { color: var(--ink-soft); }
.lede-wide { max-width: 50rem; margin-bottom: 1.25rem; }
.card-title, .calc-title { font-size: 1.2rem; }
.feature h2, .alert h2 { font-size: 1.2rem; }

/* ---------- Legend box (zones page) ---------- */
.legend-box { margin-top: 1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .5rem 1rem; }
.legend-box summary { cursor: pointer; font-family: var(--font-ui); font-size: .9rem; font-weight: 600; color: var(--link); min-height: 32px; line-height: 2; }
.legend-box .legend { padding: .4rem 0 .5rem; }

/* ---------- Explore cards (home) ---------- */
.explore-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 40rem) { .explore-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .explore-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 39.99rem) { .explore-grid { gap: .8rem; } .explore-title { font-size: 1rem; padding: .55rem .7rem .15rem; } .explore-text { font-size: .85rem; padding: 0 .7rem .7rem; } }
.explore-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.explore-card::before {
  content: ""; display: block; aspect-ratio: 16 / 7; background: var(--deep) var(--card-img, none) center / cover no-repeat;
  border-bottom: 1px solid #1d1306; box-shadow: 0 2px 0 #d6b25a, 0 3px 0 #1d1306; margin-bottom: 3px; transition: filter .15s;
}
.explore-card:hover, .explore-card:focus-visible { color: var(--ink); box-shadow: var(--shadow), var(--glow); }
.explore-card:hover::before { filter: brightness(1.15) saturate(1.1); }
.explore-card:hover .explore-title { text-decoration: underline; }
.explore-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem; line-height: 1.25; letter-spacing: .015em; color: var(--head); padding: .7rem .9rem .25rem; }
.explore-text { display: block; font-size: .92rem; color: var(--ink-soft); padding: 0 .9rem .9rem; }
@media (prefers-reduced-motion: reduce) { .explore-card, .explore-card::before { transition: none; } }
.card-zones      { --card-img: url("../assets/img/web/scene-desert-port.jpg"); }
.card-leveling   { --card-img: url("../assets/img/web/scene-starting-lake.jpg"); }
.card-natpagle   { --card-img: url("../assets/img/web/scene-misty-swamp.jpg"); }
.card-tackle     { --card-img: url("../assets/img/web/tackle-flatlay.jpg"); }
.card-camps      { --card-img: url("../assets/img/web/scene-ancient-forest-river.jpg"); }
.card-tournament { --card-img: url("../assets/img/web/scene-jungle-coast.jpg"); }
.card-reference  { --card-img: url("../assets/img/web/compass-rose.jpg"); }
.card-sources    { --card-img: url("../assets/img/web/scene-sources.jpg"); }
.card-next       { --card-img: url("../assets/img/web/scene-next-step.jpg"); }
.card-finder     { --card-img: url("../assets/img/web/scene-fish-finder.jpg"); }
.two-col { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .two-col { grid-template-columns: 1.25fr 1fr; } }

/* ---------- Trust note ---------- */
.trust-note {
  margin: 1.75rem 0 0; padding: 1rem 1.15rem;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.trust-title { font-size: 1.15rem; }
.trust-note p { color: var(--ink-soft); margin-bottom: .5rem; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-size: .92rem; }

/* ---------- Tags & badges ---------- */
.tag {
  display: inline-block; vertical-align: .1em;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .08rem .45rem; border-radius: 3px; border: 1px solid; white-space: nowrap; line-height: 1.5;
}
.tag-live     { background: #dcefd9; color: #1e4d1f; border-color: #8fbf8a; }
.tag-db       { background: #dbe8f3; color: #173f61; border-color: #8fb2d2; }
.tag-beta     { background: #f6e6bd; color: #5e4307; border-color: #d5b468; }
.tag-classic  { background: #e7e1d6; color: #3f3a33; border-color: #b5aa98; }
.tag-conflict { background: #f5d9d1; color: #6e2414; border-color: #d5917f; }
.badge {
  display: inline-block; font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  padding: .2rem .55rem; border-radius: 999px; margin: .15rem .3rem .15rem 0;
}
.badge-train { background: var(--deep-2); color: #fff; }
.badge-cap { background: #f1e2b8; color: #4c3808; border: 1px solid var(--gold); }

/* ---------- Buttons & fields ---------- */
.btn {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700; letter-spacing: .02em;
  min-height: 44px; padding: .5rem 1.1rem; border-radius: 4px; cursor: pointer;
  background-color: var(--btn-bg); background-image: linear-gradient(180deg, #ab2a1e 0%, #7c1712 55%, #5b0e0a 100%);
  color: #ffe07a; text-shadow: 0 1px 0 #000; border: 1px solid #d6b25a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 1px #1a0503;
}
.btn:hover { background-color: var(--btn-hover); background-image: linear-gradient(180deg, #c8382a 0%, #9a2018 55%, #6d120e 100%); color: #fff; }
.btn:active { background-image: linear-gradient(180deg, #5b0e0a, #7c1712); }
.btn-ghost { background: var(--ghost-bg); color: var(--head); text-shadow: none; border-color: var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.btn-ghost:hover { background: var(--ghost-bg); color: var(--head); filter: brightness(1.07); border-color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 0 0 1px var(--edge); }
.btn-ghost:active { background: var(--ghost-bg); filter: brightness(.95); }
.field { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.field label, .zone-picker label { font-family: var(--font-ui); font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
input[type="search"], input[type="number"], select {
  font: inherit; font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  min-height: 44px; padding: .5rem .7rem; width: 100%;
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: 4px;
  box-shadow: inset 0 2px 3px rgba(40,25,5,.18);
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.hint { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); }

/* ---------- Your Next Step planner ---------- */
.section-next { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.next-form { display: grid; gap: .75rem; grid-template-columns: 1fr 1fr; align-items: start; max-width: 50rem; }
.next-form .field:first-child, .next-form .field-reset { grid-column: 1 / -1; }
@media (min-width: 40rem) { .next-form { grid-template-columns: 1.3fr 1fr 1fr auto; } .next-form .field:first-child, .next-form .field-reset { grid-column: auto; } .next-form .field-reset { align-self: start; padding-top: 1.45rem; } }
.next-form input, .next-form select { width: 100%; }
.next-form .field-reset .btn-ghost { color: var(--head); border-color: var(--edge); width: 100%; }
.next-form .field-reset .btn-ghost:hover { color: var(--head); }
.optional { font-weight: 400; }
.next-out { margin-top: 1.1rem; }
.next-empty { margin: 0 0 .5rem; font-family: var(--font-ui); font-size: .95rem; color: var(--ink-soft); }
.next-picks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.next-picks .btn-small { min-height: 44px; }
.next-summary {
  margin: 3px 3px 1rem; padding: .7rem 1rem; border-radius: var(--radius); font-size: 1.1rem;
  background-color: var(--deep); background-image: var(--tex-grain-light), linear-gradient(180deg, #262a33, #101216);
  color: #fbf3df; border: 1px solid #7d5c1f; box-shadow: var(--shadow);
}
.next-summary strong { color: var(--gold-hi); font-family: var(--font-display); letter-spacing: .02em; }
/* Profession-style skill bar: fill to the current skill, ticks at each rank cap. */
.skill-bar {
  position: relative; height: 1.7rem; max-width: 50rem; margin: 0 3px 1.2rem; overflow: hidden; border-radius: 4px;
  background: #06070b; border: 1px solid #d6b25a; box-shadow: 0 0 0 1px #1d1306, inset 0 2px 5px #000;
}
.skill-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(180deg, #6fb6ff 0%, #1f6fd0 45%, #0c3f8a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.skill-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent calc(25% - 1px), rgba(255,236,170,.75) calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), rgba(255,236,170,.75) calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), rgba(255,236,170,.75) calc(75% - 1px) 75%, transparent 75%); }
.skill-text { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .92rem; font-weight: 700; color: #fff; text-shadow: 0 1px 0 #000, 0 0 4px #000, 0 0 4px #000; letter-spacing: .03em; }
.next-steps { list-style: none; counter-reset: nstep; margin: 0; padding: 3px; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.next-steps > li {
  counter-increment: nstep; position: relative; margin: 0; padding: .9rem 1.1rem 1rem 3.4rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow);
}
.next-steps > li::before {
  content: counter(nstep); position: absolute; left: .8rem; top: .8rem; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #3a3f4c, #0d0e12 75%); color: #ffe07a; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #d6b25a, 0 0 0 3px #1d1306;
}
.next-steps h3 { margin: 0 0 .4rem; font-size: 1.15rem; }
.next-steps p { margin: 0 0 .5rem; }
.next-steps p:last-child, .next-coming li:last-child { margin-bottom: 0; }
.next-math { font-family: var(--font-ui); font-size: .92rem; }
.next-warn { border-left: 4px solid var(--rust); padding: .4rem .7rem; background: rgba(138,58,38,.1); border-radius: 0 4px 4px 0; }
.next-links { font-family: var(--font-ui); font-size: .92rem; font-weight: 600; }
.next-coming { margin: 0; padding-left: 1.1rem; }
.next-coming li { margin-bottom: .4rem; }
.next-foot { display: block; margin-top: .9rem; max-width: 50rem; }
.legend-inline { margin-top: .5rem; background: transparent; }

.noscript { background: var(--card); padding: .75rem 1rem; border: 1px solid var(--rule); border-radius: var(--radius); }

/* ---------- Finder ---------- */
.finder-controls {
  display: grid; gap: .9rem; align-items: end;
  grid-template-columns: 1fr;
  padding: 1rem; margin: 3px;
  background-color: var(--deep); background-image: var(--tex-grain-light), linear-gradient(180deg, #262a33, #0f1115);
  border-radius: var(--radius); border: 1px solid #7d5c1f; box-shadow: var(--shadow);
}
.finder-controls label { color: var(--gold-soft); font-family: var(--font-display); font-size: .95rem; font-weight: 400; letter-spacing: .02em; }
.finder-controls .hint { color: #c9ccd4; }
.finder-controls input, .finder-controls select { background: #f6ecd2; color: #24180c; border-color: #1d1306; box-shadow: inset 0 2px 4px rgba(0,0,0,.35), 0 0 0 1px #8a6a2c; }
@media (min-width: 40rem) { .finder-controls { grid-template-columns: 1fr 1fr; } .field-search { grid-column: 1 / -1; } }
@media (min-width: 62rem) { .finder-controls { grid-template-columns: 2fr 1.2fr 1fr 1fr auto; } .field-search { grid-column: auto; } }
.field-reset .btn-ghost { width: 100%; }
.finder-controls .btn-ghost { background: linear-gradient(180deg, #343844, #15171c); color: var(--gold-soft); text-shadow: 0 1px 0 #000; border-color: #d6b25a; box-shadow: inset 0 1px 0 rgba(255,225,150,.25); }
.finder-controls .btn-ghost:hover { background: linear-gradient(180deg, #434857, #1d2027); color: #fff; }

.result-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin: .9rem 0 .6rem; }
.result-count { font-family: var(--font-ui); font-size: .92rem; color: var(--ink-soft); margin: 0; }
.zone-page-link { font-family: var(--font-ui); font-size: .9rem; font-weight: 600; }
.zone-page-link[hidden] { display: none; }
.fish-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }

/* Fish cards read as item tooltips in both themes; the dark values are set near the end of this file. */
.fish-card {
  display: flex; flex-direction: column; gap: .55rem;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-2); border-radius: 7px;
  padding: 1rem; position: relative;
}
.fish-card-head { display: grid; grid-template-columns: 5rem 1fr; gap: .75rem; align-items: center; }
.fish-thumb {
  width: 5rem; height: 5rem; border-radius: 5px; object-fit: cover;
  background: var(--parchment-2); border: 2px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000;
}
.fish-card h3 { margin: 0; font-size: 1.22rem; font-weight: 400; letter-spacing: .01em; }
.fish-card h3 a { color: var(--head); text-decoration: none; }
.fish-card h3 a:hover { text-decoration: underline; color: var(--rust); }
.q-uncommon, a.q-uncommon { color: #156b00; }
.q-rare, a.q-rare { color: #0a4fa8; }
.fish-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .25rem; }
.water { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; padding: .08rem .45rem; border-radius: 3px; }
.water-fresh { background: #d7ebe6; color: #1c4a40; }
.water-salt { background: #d6e2f0; color: #183c5e; }
.water-school { background: #ece2f2; color: #4a2c5c; }
.water-unknown { background: #eee; color: #444; }
.fish-dl { margin: 0; display: grid; grid-template-columns: 5.2rem 1fr; gap: .3rem .6rem; font-size: .95rem; }
.fish-dl dt { font-family: var(--font-display); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-ink); padding-top: .2rem; }
.fish-dl dd { margin: 0; }
.fish-dl ul { margin: 0; padding-left: 1rem; }
.zone-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.zone-chip {
  font-family: var(--font-ui); font-size: .82rem; cursor: pointer;
  background: var(--chip-bg); color: var(--head); border: 1px solid var(--line-2); border-radius: 4px;
  padding: .3rem .7rem; min-height: 36px;
}
.zone-chip:hover { background: var(--chip-hover); }
.zone-chip.is-active { background: var(--btn-bg); color: #fff; border-color: #d6b25a; }
.zone-chip[hidden] { display: none; }
.zone-more {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--link); border: 1px dashed var(--edge); border-radius: 4px;
  padding: .3rem .7rem; min-height: 36px;
}
.zone-more:hover { background: var(--wash); }
.water-note { margin: .2rem 0 0; font-size: .88rem; color: var(--ink-soft); line-height: 1.35; }
.zone-chip small { color: inherit; opacity: .8; }
.where-notes { font-size: .88rem; color: var(--ink-soft); margin: .3rem 0 0; padding-left: 1rem; }
.restriction { font-size: .92rem; background: #fdf1d2; border: 1px dashed var(--gold); border-radius: 4px; padding: .35rem .55rem; }
.in-season { font-family: var(--font-ui); font-size: .75rem; font-weight: 700; color: #1e4d1f; }
.out-season { font-family: var(--font-ui); font-size: .75rem; font-weight: 700; color: #6e2414; }
.fish-sources { margin-top: auto; padding-top: .5rem; border-top: 1px dotted var(--rule); font-family: var(--font-ui); font-size: .78rem; color: var(--ink-soft); }
.fish-sources a { color: var(--link); }
.fish-note { font-size: .88rem; color: var(--ink-soft); font-style: italic; margin: 0; }

.empty-state {
  text-align: center; padding: 2rem 1rem; margin-top: .5rem;
  background: var(--card); border: 2px dashed var(--rule); border-radius: var(--radius);
}
.empty-art { margin: 0 auto 1rem; width: 160px; opacity: .85; border-radius: 6px; }
.empty-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: .75rem 0; }
.src-note, .src { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); margin-top: 1rem; }

/* ---------- Zone view ---------- */
.zone-picker { display: flex; flex-direction: column; gap: .3rem; max-width: 26rem; margin-bottom: 1rem; }
.zone-panel:empty { display: none; }
.zone-panel {
  position: relative; overflow: hidden; background: var(--card); margin: 3px;
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow);
}
.zone-panel::before {
  content: ""; position: absolute; right: -70px; top: -60px; width: 300px; height: 300px; pointer-events: none;
  background: url("../assets/img/web/compass-rose.jpg") center / 150% auto no-repeat;
  opacity: .28; border-radius: 50%;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.zone-panel > * { position: relative; }
.zone-panel h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem); }
.zone-panel h3 { margin-top: 1rem; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.zone-band { display: flex; flex-wrap: wrap; gap: .75rem; margin: .5rem 0 1rem; }
.band-box { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .55rem .8rem; min-width: 9rem; }
.band-num { font-family: var(--font-display); font-size: 1.7rem; color: var(--head); line-height: 1.1; display: block; }
.band-label { font-family: var(--font-ui); font-size: .78rem; color: var(--ink-soft); }
.zone-fish { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.zone-fish li { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .65rem; font-size: .95rem; }
.zone-fish .uses { display: block; font-size: .82rem; color: var(--ink-soft); }
.zone-trainers { padding-left: 1.1rem; }
.zone-trainers li { margin-bottom: .45rem; }

/* ---------- TomTom waypoints: shown the way a chat line looks ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn[hidden] { display: none; }
.btn-small { min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .9em; }
.way-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .25rem; }
code.way {
  display: inline-block; max-width: 100%; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all;
  background: #0a0b0f; border: 1px solid #5d626f; border-radius: 4px; padding: .2rem .5rem; color: #f6f1de;
}
.copy-btn {
  font-family: var(--font-display); font-size: .88rem; font-weight: 700; cursor: pointer;
  min-height: 40px; min-width: 4.5rem; padding: .2rem .8rem; border-radius: 4px;
  background: var(--ghost-bg); color: var(--head); border: 1px solid var(--edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
}
.copy-btn:hover { filter: brightness(1.07); border-color: var(--gold); }
td code.way { overflow-wrap: normal; word-break: keep-all; font-size: .8em; }
.way-filter { border: 0; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; font-family: var(--font-ui); font-size: .95rem; }
.way-filter legend { font-weight: 600; font-size: .85rem; color: var(--ink-soft); padding: 0; margin-bottom: .3rem; float: left; width: 100%; }
.way-filter label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding-right: .3rem; cursor: pointer; }
.way-filter input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--edge); }
.way-block {
  font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: .85rem; line-height: 1.55;
  background: #0a0b0f; color: #f6f1de; border: 1px solid #5d626f; border-radius: var(--radius);
  padding: .8rem 1rem; margin: 3px; max-height: 22rem; overflow: auto; white-space: pre; user-select: all; -webkit-user-select: all;
  box-shadow: var(--shadow); scrollbar-color: #8a6a2c #0a0b0f;
}
.way-block:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.way-actions { margin: .9rem 0 0; }
.print-only { display: none; }

/* ---------- Steps, cards ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 .9rem 2.8rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 3px; top: .1rem;
  width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 30%, #3a3f4c, #0d0e12 75%); color: #ffe07a; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  box-shadow: 0 0 0 2px #d6b25a, 0 0 0 3px #1d1306;
}
.aside-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.aside-card ul { padding-left: 1.1rem; margin: 0; }
.aside-card li { margin-bottom: .35rem; }
.aside-art { border-radius: 4px; margin-bottom: .9rem; border: 1px solid #1d1306; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 3px 3px 1.4rem; border-radius: var(--radius); border: 1px solid var(--rule); background: var(--card); box-shadow: var(--shadow); }
.data-table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.data-table caption { text-align: left; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--head); padding: .75rem .9rem .5rem; }
.data-table th, .data-table td { padding: .55rem .9rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.data-table thead th {
  font-family: var(--font-display); font-size: .86rem; font-weight: 400; text-transform: uppercase; letter-spacing: .07em; color: var(--thead-ink);
  background: var(--thead); border-top: 1px solid #000; border-bottom: 1px solid var(--gold); text-shadow: 0 1px 0 #000;
}
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table .num { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.data-table .note { display: block; font-size: .82rem; color: var(--ink-soft); }
/* Phones: one card per row. app.js adds .stack once every cell carries its column label. */
@media (max-width: 42rem) {
  .data-table.stack { display: block; }
  .data-table.stack caption { display: block; }
  .data-table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .data-table.stack tbody, .data-table.stack tr { display: block; }
  .data-table.stack tr { padding: .6rem .9rem .7rem; border-top: 1px solid var(--line); }
  .data-table.stack th[scope="row"] { display: block; padding: 0 0 .3rem; border: 0; font-size: 1.05rem; color: var(--head); }
  .data-table.stack td { display: block; padding: .2rem 0; border: 0; }
  .data-table.stack td::before { content: attr(data-label); display: block; font-family: var(--font-ui); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-ink); }
  .data-table.stack td:empty { display: none; }
  .data-table.stack .num { white-space: normal; }
  td code.way { font-size: .85em; }
}

/* ---------- Roadmap route ---------- */
.route { list-style: none; margin: 1.5rem 0 0; padding: 0 3px 0 .4rem; position: relative; }
.route::before { content: ""; position: absolute; left: 2.55rem; top: .5rem; bottom: .5rem; border-left: 3px dashed var(--gold); }
.waypoint { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; margin-bottom: 1.3rem; position: relative; }
.wp-skill {
  z-index: 1; align-self: start; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: #ffe07a; text-shadow: 0 1px 0 #000;
  background: linear-gradient(180deg, #2a2d36, #0d0e12); border: 1px solid #d6b25a; box-shadow: 0 0 0 1px #1d1306, inset 0 1px 0 rgba(255,225,150,.3); border-radius: 999px; padding: .5rem .2rem;
}
.wp-body { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem 1.05rem; box-shadow: var(--shadow); }
.wp-body p:last-child { margin-bottom: 0; }

/* ---------- Nat Pagle ---------- */
.np-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .np-layout { grid-template-columns: 1fr 1.2fr; } }
.facts { margin: 0; display: grid; grid-template-columns: 7rem 1fr; gap: .5rem .9rem; }
.facts dt { font-family: var(--font-display); font-weight: 700; font-size: .86rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-ink); padding-top: .2rem; }
.facts dd { margin: 0; }
.np-art { width: 12rem; margin: 1rem auto 0; border-radius: 6px; border: 2px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000; }
.np-fish { list-style: none; padding: 2px; margin: 1.1rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; max-width: 22rem; }
.np-fish li { margin: 0; text-align: center; font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.np-fish img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 5px; border: 2px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000; margin-bottom: .35rem; background: var(--parchment-2); }
.row-fish { display: inline-flex; align-items: center; gap: .6rem; }
.row-fish img { width: 3rem; height: 3rem; flex: none; margin: 2px; border-radius: 4px; border: 1px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000; object-fit: cover; background: var(--parchment-2); }
.tourney-fish { display: flex; align-items: center; gap: .9rem; margin: 1rem 2px; }
.tourney-fish img { width: 6.5rem; height: 6.5rem; flex: none; border-radius: 5px; border: 2px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000; object-fit: cover; background: var(--parchment-2); }
.tourney-fish figcaption { font-size: .95rem; }
.checklist { margin: 3px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.checklist legend { float: left; width: 100%; margin: 0 0 .3rem; padding: 0 0 .5rem; border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--head); }
.checklist legend + * { clear: both; }
/* A quest marker in front of the checklist title. */
.checklist legend::before {
  content: "!"; content: "!" / ""; display: inline-block; margin: 0 .5rem 0 .15rem; font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 1.6em; line-height: .8; vertical-align: -.1em;
  color: #ffd100; -webkit-text-stroke: 3px #2a1c08; paint-order: stroke fill; text-shadow: 0 0 7px rgba(255,209,0,.7);
}
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; align-items: start; min-height: 44px; padding: .6rem .2rem; border-bottom: 1px dotted var(--rule); cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: .2rem 0 0; accent-color: var(--edge); cursor: pointer; }
.check input:checked + span { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(84,70,58,.5); }
.check-progress { font-family: var(--font-ui); font-size: .9rem; margin: .8rem 0; font-weight: 600; color: var(--link); }

/* ---------- Calculator ---------- */
.calc { background: linear-gradient(180deg, #f9f0d8, #ecd9a6); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; margin: 3px 3px 1.5rem; box-shadow: var(--shadow); }
.calc-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .calc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 62rem) { .calc-grid { grid-template-columns: repeat(5, 1fr); } }
.calc-out { display: block; margin: 1rem 0 .4rem; font-size: 1.05rem; }
.calc-total { font-family: var(--font-display); font-size: 2.1rem; color: var(--head); font-weight: 700; margin-right: .4rem; }
.verdict-ok { color: #1e4d1f; font-weight: 700; }
.verdict-mid { color: #6a4a00; font-weight: 700; }
.verdict-bad { color: #7a2414; font-weight: 700; }

/* ---------- Features ---------- */
.feature-grid { display: grid; gap: 1.1rem; align-items: start; padding: 3px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.feature { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.feature ul { padding-left: 1.1rem; margin: 0 0 .6rem; }
.unknown { font-size: .92rem; background: #f3ece0; border-left: 3px solid #b5aa98; padding: .4rem .6rem; border-radius: 3px; }

/* ---------- Alert ---------- */
.alert { background: #fbe9e2; border: 1px solid #d5917f; border-left: 6px solid var(--rust); border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1.4rem; }
.alert h3 { color: var(--rust); }
.alert p { margin: 0; }

/* ---------- Quick reference ---------- */
.qr-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.qr-card { background: var(--surface-2); border: 2px solid var(--edge); border-radius: var(--radius); padding: .8rem .95rem; }
.qr-card h2 { font-size: 1.1rem; margin-top: .2rem; }
.qr-actions { margin-bottom: 1rem; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin-bottom: .4rem; }
.mini-table th, .mini-table td { text-align: left; padding: .2rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table thead th { font-family: var(--font-ui); font-size: .72rem; text-transform: uppercase; color: var(--gold-ink); }
.mini-list { margin: 0 0 .6rem; padding-left: 1rem; font-size: .9rem; }
.qr-foot { font-family: var(--font-ui); font-size: .78rem; color: var(--ink-soft); margin-top: .8rem; }

/* ---------- Sources ---------- */
.source-list { padding-left: 1.1rem; }
.source-list li { margin-bottom: .45rem; }
.source-list .meta { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); }
.gap-list li { margin-bottom: .3rem; }
.confirm-list li { margin-bottom: .6rem; }
.confirm-list .way-row { margin: .3rem 0; }
.section-sources h2 { font-size: clamp(1.3rem, 1.15rem + .8vw, 1.6rem); margin-top: 1.6rem; }

/* ---------- Home: welcome strip and shortcuts ---------- */
.home-next {
  margin: 1.5rem 3px 0; padding: .7rem 1rem; border-radius: var(--radius); font-size: 1.05rem;
  background-color: var(--deep); background-image: var(--tex-grain-light), linear-gradient(180deg, #262a33, #101216);
  color: #fbf3df; border: 1px solid #7d5c1f; box-shadow: var(--shadow);
}
.home-next[hidden] { display: none; }
.home-next a { color: #f1d78f; font-family: var(--font-ui); font-size: .92rem; font-weight: 600; white-space: nowrap; }
.home-next a:hover { color: #fff; }
.hn-label { font-weight: 700; color: var(--gold-hi); font-family: var(--font-display); }
.path-grid { display: grid; gap: 1.1rem; align-items: start; padding: 3px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.path-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.path-card h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
.path-card h3:not(:first-child) { margin-top: 1.1rem; }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.path-list a {
  display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .6rem; min-height: 44px; padding: .35rem .7rem; text-decoration: none;
  color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--gold); border-radius: 4px;
}
.path-list a:hover { border-color: var(--edge); background: var(--chip-hover); }
.path-list a:hover strong { text-decoration: underline; }
.path-list strong { font-family: var(--font-display); font-size: 1.05rem; color: var(--head); }
.path-list span { font-family: var(--font-ui); font-size: .84rem; color: var(--ink-soft); }
.path-emblems a { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .7rem; row-gap: 0; align-items: center; padding: .4rem .7rem .4rem .45rem; border-left-width: 1px; }
.path-emblems img { grid-row: 1 / span 2; }
.path-emblems strong { align-self: end; line-height: 1.2; }
.path-emblems span { align-self: start; }
.path-emblems img { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 4px; margin: 2px .2rem 2px 2px; border: 1px solid #17181c; box-shadow: 0 0 0 1px #a9adb8, 0 0 0 2px #000; }
.path-list a.path-alliance { border-left-color: #2f6fb5; }
.path-list a.path-horde { border-left-color: #a8392c; }
.legend-finder { margin: 0 0 1rem; }

/* ---------- Every zone by continent (zones.html) ---------- */
.browse-grid { display: grid; gap: 1.1rem; align-items: start; padding: 3px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.browse-col { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow); scroll-margin-top: 4.25rem; }
.browse-col h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.browse-list { list-style: none; margin: 0; padding: 0; }
.browse-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 .8rem; min-height: 40px; padding: .25rem 0; border-top: 1px solid var(--line); }
.browse-list li:first-child { border-top: 0; }
.browse-list a { font-weight: 600; padding: .3rem 0; }
.browse-meta { font-family: var(--font-ui); font-size: .8rem; color: var(--ink-soft); white-space: nowrap; }
.waypoint { scroll-margin-top: 4.25rem; }

/* ---------- Where next? ---------- */
.see-also { padding: clamp(1.5rem, 4vw, 2.25rem) 0 .5rem; }
.see-also h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.see-also ul { list-style: none; margin: 0; padding: 3px; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.see-also a {
  display: block; height: 100%; padding: .8rem 1rem; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .15s;
}
.see-also a:hover, .see-also a:focus-visible { box-shadow: var(--shadow), var(--glow); }
.see-also a:hover .sa-title { text-decoration: underline; }
.sa-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--head); }
.sa-title::after { content: " \2192"; }
.sa-text { display: block; font-size: .92rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .see-also a { transition: none; } }
.zone-me { font-family: var(--font-ui); font-size: .95rem; padding: .6rem .8rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line-2); }

.site-foot {
  position: relative; color: #d9cfb4; text-align: center; padding: 1.6rem 1rem 1.4rem; font-family: var(--font-ui); font-size: .85rem;
  background-color: var(--deep); background-image: var(--tex-grain-light), linear-gradient(180deg, #1c1f26, #0b0c10);
  border-top: 1px solid #000;
}
.site-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; pointer-events: none;
  background: linear-gradient(180deg, #000 0 1px, #6d4d14 1px 3px, #b98d33 3px 5px, #f3d98c 5px 6px, #1d1306 6px);
}
.site-foot a { color: #f1d78f; }
.site-foot p { margin: .2rem 0; }

/* ---------- Small screens ---------- */
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: .1rem; }
  .facts dd { margin-bottom: .5rem; }
  .fish-dl { grid-template-columns: 1fr; gap: .05rem; }
  .fish-dl dd { margin-bottom: .35rem; }
  .waypoint { grid-template-columns: 3.9rem 1fr; gap: .6rem; }
  .route::before { left: 2.2rem; }
  .data-table th, .data-table td { padding: .45rem .6rem; }
}

/* ---------- Dark values ----------
   js/theme.js sets data-theme="dark" on <html> from the saved choice or the system setting.
   Fish cards take the same values in both themes, so they always read as item tooltips.
   Screen only: printing always uses the light values above. */
@media screen {
  :root[data-theme="dark"], .fish-card {
    --parchment: #16181d; --parchment-2: #1d2027; --parchment-3: #4a4f5c;
    --card: #0b0d17; --ink: #ece6d6; --ink-soft: #b8b2a2;
    --gold-ink: #e8c45a; --rust: #ff9d80; --rule: #7a6026; --focus: #7cc0f5;
    --head: #ffd100; --link: #8fc7ee; --edge: #c9a24a;
    --surface-2: #141826; --chip-bg: #171b2a; --chip-hover: #252b40; --input-bg: #07080d; --input-border: #6d7285;
    --thead: #1a1408; --line: #262a3a; --line-2: #3a4056; --wash: rgba(255,209,0,.12);
    --ghost-bg: linear-gradient(180deg, #343844, #15171c);
    --shadow: 0 0 0 2px #a8873a, 0 0 0 3px #000, 0 10px 22px -10px #000;
    color-scheme: dark;
  }
  :root[data-theme="dark"] {
    --tex-page: var(--tex-grain-light);
    --page-edge: 0 0 0 1px #000, 0 0 0 4px #4d3a14, 0 0 0 5px #a8873a, 0 0 0 7px #000, 0 0 60px #000;
  }
  .fish-card {
    border-color: #8b90a0; box-shadow: 0 0 0 1px #000, 0 8px 18px -8px rgba(0,0,0,.75);
    background-image: linear-gradient(180deg, rgba(120,140,220,.07), transparent 5rem);
  }
  .fish-card h3 a { color: #fff; }
  :is([data-theme="dark"], .fish-card) :is(.q-uncommon, a.q-uncommon) { color: #1eff00; }
  :is([data-theme="dark"], .fish-card) :is(.q-rare, a.q-rare) { color: #4a9cf5; }
  .fish-card h3 a.q-uncommon { color: #1eff00; }
  .fish-card h3 a.q-rare { color: #4a9cf5; }
  .fish-card h3 a:hover { color: var(--gold-hi); }
  :is([data-theme="dark"], .fish-card) .tag-live     { background: #1b3a20; color: #a9e3a5; border-color: #3f7a44; }
  :is([data-theme="dark"], .fish-card) .tag-db       { background: #17324a; color: #a9d2f2; border-color: #3d6f99; }
  :is([data-theme="dark"], .fish-card) .tag-beta     { background: #3d3110; color: #f2d88e; border-color: #7d6524; }
  :is([data-theme="dark"], .fish-card) .tag-classic  { background: #33312c; color: #ddd6c8; border-color: #6b655a; }
  :is([data-theme="dark"], .fish-card) .tag-conflict { background: #4a2018; color: #f7bcab; border-color: #9a4a38; }
  :is([data-theme="dark"], .fish-card) .water-fresh  { background: #173a34; color: #a8e2d4; }
  :is([data-theme="dark"], .fish-card) .water-salt   { background: #17324a; color: #a9d2f2; }
  :is([data-theme="dark"], .fish-card) .water-school { background: #33244a; color: #dbc0f2; }
  :is([data-theme="dark"], .fish-card) .water-unknown { background: #333; color: #ddd; }
  :is([data-theme="dark"], .fish-card) .in-season { color: #9edd9a; }
  :is([data-theme="dark"], .fish-card) .out-season { color: #f7a892; }
  :is([data-theme="dark"], .fish-card) .restriction { background: #33290f; }
  [data-theme="dark"] .badge-cap    { background: #3d3110; color: #f2d88e; }
  [data-theme="dark"] .verdict-ok { color: #9edd9a; }
  [data-theme="dark"] .verdict-mid { color: #f2d88e; }
  [data-theme="dark"] .verdict-bad { color: #f7a892; }
  [data-theme="dark"] .alert { background: #3a1d17; border-color: #9a4a38; }
  [data-theme="dark"] .next-warn { background: rgba(238,156,130,.12); }
  [data-theme="dark"] .unknown { background: #1f2431; border-left-color: #6b7a88; }
  [data-theme="dark"] .btn-ghost, [data-theme="dark"] .copy-btn { box-shadow: inset 0 1px 0 rgba(255,225,150,.22); text-shadow: 0 1px 0 #000; }
  [data-theme="dark"] .calc { background: linear-gradient(180deg, #141826, #0b0d17); }
  [data-theme="dark"] .zone-panel::before { opacity: .07; }
  [data-theme="dark"] input[type="search"], [data-theme="dark"] input[type="number"], [data-theme="dark"] select { box-shadow: inset 0 2px 4px #000; }
  [data-theme="dark"] .finder-controls input, [data-theme="dark"] .finder-controls select { background: var(--input-bg); color: var(--ink); border-color: var(--input-border); box-shadow: inset 0 2px 4px #000; }
  [data-theme="dark"] .section-head h2, [data-theme="dark"] .zone-panel h2 { text-shadow: 0 2px 0 #000; }
  [data-theme="dark"] .np-fish img, [data-theme="dark"] .row-fish img, [data-theme="dark"] .tourney-fish img,
  [data-theme="dark"] .aside-art, [data-theme="dark"] .empty-art { filter: brightness(.9); }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 12mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  main { background: none; box-shadow: none; min-height: 0; }
  * { box-shadow: none !important; text-shadow: none !important; }
  .banner { background: none; color: #000; border-bottom: 2px solid #000; height: auto; display: block; overflow: visible; }
  .banner::after, .site-foot::before, .checklist legend::before, .skill-bar { display: none !important; }
  .banner-inner { padding: 0 0 .5rem; }
  .banner h1, .banner-lede, .banner .eyebrow, .banner .eyebrow a { color: #000; }
  .banner h1 { background: none; -webkit-text-fill-color: #000; filter: none; }
  .site-foot { background: none; color: #000; border-top: 1px solid #999; }
  .toc, .skip-link, .finder-controls, .empty-state, .zone-picker, .btn, .calc, .np-art, .np-fish, .row-fish img, .tourney-fish, .aside-art, .empty-art, .fish-thumb,
  .site-foot a, noscript, .explore-card::before, .zone-page-link, .legend-box summary, .qr-actions,
  .see-also, .next-form, .next-picks, .next-empty, .next-foot, .section-next.is-empty, .zone-me a, .theme-switch, .home-next a, .path-emblems img { display: none !important; }
  .legend-box { border: 0; padding: 0; }
  .section { page-break-inside: auto; border-image: none; border-bottom: 1px solid #999; padding-top: 1rem; }
  .section-head h2::before { display: none; }
  .fish-card, .feature, .wp-body, .qr-card, .table-wrap, .aside-card { break-inside: avoid; background: #fff; }
  .next-summary, .home-next, .wp-skill, .steps li::before, .next-steps > li::before { background: #fff; color: #000; border: 1px solid #000; }
  .data-table thead th { background: none; color: #000; border-top: 0; border-bottom: 1px solid #000; }
  .fish-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .zone-panel { background: #fff; }
  a { color: #000; text-decoration: none; }
  .src a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .fish-card-head { grid-template-columns: 1fr; }
  .zone-chip[hidden] { display: inline-block !important; }
  .zone-more { display: none !important; }
  .zone-chip { min-height: 0; padding: .1rem .45rem; background: #fff; }
  .fish-card { padding: .6rem .7rem; gap: .3rem; }
  .table-wrap { overflow: visible; }
  .copy-btn, .way-filter, .way-actions { display: none !important; }
  code.way, .way-block { border: 0; background: none; padding: 0; color: #000; max-height: none; overflow: visible; }

  /* Fish finder: a compact table instead of the cards. */
  #fish-results, .result-bar, #db-note { display: none !important; }
  .print-only { display: block; }
  .print-table { width: 100%; border-collapse: collapse; font-size: 8pt; line-height: 1.3; }
  .print-table caption { text-align: left; font-family: var(--font-ui); font-size: 8.5pt; padding-bottom: .3rem; }
  .print-table th, .print-table td { border-bottom: .5pt solid #888; padding: .15rem .3rem; vertical-align: top; text-align: left; }
  .print-table thead th { border-bottom: 1pt solid #000; }
  .print-table tr { break-inside: avoid; }
  .print-table tbody th { width: 17%; }
  .print-table td:nth-child(2) { width: 10%; }
  .print-table td:nth-child(3) { width: 33%; }
  .banner h1 { font-size: 20pt; max-width: none; margin: 0; }
  .banner-lede { font-size: 10pt; margin: .2rem 0; }
  .trust-note { padding: .5rem .7rem; margin: .5rem 0; font-size: 9pt; }
  .section-finder .section-lede { font-size: 9.5pt; }
  .pt-status, .pt-when { display: block; font-weight: normal; font-size: 7pt; color: #333; }

  /* Quick reference: fit one sheet. */
  .page-reference { font-size: 9.5pt; }
  .page-reference .banner-lede, .page-reference .banner .eyebrow, .page-reference .site-foot { display: none; }
  .page-reference .banner h1 { font-size: 16pt; margin: 0; }
  .page-reference #quickref { border: 0; padding: .4rem 0 0; }
  .page-reference .qr-foot { margin-top: .4rem; }
  .page-reference .qr-grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .page-reference .qr-card { border: 1.5px solid #000; padding: .5rem .7rem; break-inside: avoid; }
  .page-reference .qr-card h2 { font-size: 11pt; }
  .page-reference .mini-table { font-size: 8.5pt; }
  .page-reference .mini-table th, .page-reference .mini-table td { padding: .12rem .25rem; }
  .page-reference .mini-list { font-size: 8.5pt; }
}
