/* Authored for how-to-fish.org. No imported framework or snapshot stylesheet.
   Keep the site's original Nunito and Underdog font asset URLs. */
@font-face {
  font-family: Nunito;
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('/fonts/Nunito-Variable.ttf') format('truetype');
}
@font-face {
  font-family: Underdog;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/Underdog-Regular.ttf') format('truetype');
}
:root {
  --font-body: Nunito, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Underdog, Georgia, "Times New Roman", serif;
  --navy-950: #031724;
  --navy-900: #09283d;
  --ocean-700: #086475;
  --ocean-600: #08798c;
  --ocean-ink: #076b7d;
  --orange-ink: #a94f00;
  --gold: #f5cc67;
  --paper: #fffcf2;
  --paper-2: #f1f5ed;
  --ink: #18323f;
  --muted: #50616a;
  --line: #d6dfd5;
  --max: 1220px;
  --shadow: 0 12px 35px #01162025;
  color-scheme: light;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--navy-950);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; min-width: 300px; background: linear-gradient(155deg, #143c4e 0%, #082a3d 42%, #031724 100%); line-height: 1.6; }
body:has(.site-nav.is-open) { overflow: hidden; }
main { display: block; min-height: 60vh; }
img, svg { max-width: 100%; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button, summary, select { cursor: pointer; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ocean-700); }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid #1386a0; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: #08283d; background: #f5cc67; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.15; letter-spacing: -.025em; text-wrap: pretty; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--line); }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.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; left: 18px; top: 12px; z-index: 1000; transform: translateY(-200%); padding: 12px 18px; border-radius: 8px; background: var(--gold); color: var(--navy-950); font-weight: 800; }
.skip-link:focus { transform: none; }

/* The compact site bar and accessible mobile navigation share the same DOM. */
.site-header { position: sticky; top: 0; z-index: 80; border-bottom: 1px solid #b7d7dc30; color: #f7faf6; background: #052033f5; box-shadow: 0 3px 18px #02172435; }
.site-header-inner { display: flex; align-items: center; gap: 22px; min-height: 82px; }
.site-brand { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: #fffaf0; font-size: 22px; font-weight: 850; letter-spacing: -.045em; white-space: nowrap; }
.site-brand:hover { text-decoration: none; }
.site-brand-icon { flex: 0 0 42px; width: 42px; height: 42px; }
.site-brand-icon img { width: 100%; height: 100%; }
.site-brand-accent { color: var(--gold); }
.site-nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 2px; min-width: 0; }
.site-nav-link { padding: 8px 7px; border-radius: 7px; color: #dbe9e9; font-size: 12px; font-weight: 750; white-space: nowrap; }
.site-nav-link:hover, .site-nav-link.is-current { color: #fff4c9; background: #ffffff12; text-decoration: none; }
.site-nav-link.is-current { box-shadow: inset 0 -2px 0 var(--gold); }
.site-header-actions { display: flex; align-items: center; gap: 8px; }
.site-search-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 40px; padding: 9px 12px; border: 1px solid #93b4c054; border-radius: 8px; color: #e8f0ee; background: #ffffff08; font-size: 12px; }
.site-icon-button { display: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #93b4c054; border-radius: 8px; color: #f6f9f2; background: #ffffff08; }
.site-search-button:hover, .site-icon-button:hover { background: #ffffff18; }

/* Headers use original CSS color fields with an optional background image. */
.page-hero, .article-hero { position: relative; overflow: hidden; isolation: isolate; color: #f9fbf5; background: radial-gradient(ellipse at 82% 25%, #2d756d70, transparent 58%), linear-gradient(125deg, #0b3347, #062033); }
.page-hero::after, .article-hero::after { content: ''; position: absolute; z-index: -1; width: 380px; height: 380px; right: -80px; bottom: -310px; border: 2px solid #8abcb64d; border-radius: 50%; box-shadow: 0 0 0 32px #92c5bc0c, 0 0 0 64px #92c5bc08; pointer-events: none; }
.page-hero-image, .article-hero-image { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.page-hero-shade, .article-hero-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, #052033e8, #05203375); pointer-events: none; }
.page-hero-inner { padding-block: 25px 64px; }
.page-hero-copy { max-width: 890px; padding-top: 26px; }
.page-hero h1 { max-width: 1000px; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.08; }
.page-hero-eyebrow, .article-eyebrow { margin: 0 0 13px; color: var(--gold); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.page-hero-description, .article-hero-copy > p:not(.article-eyebrow) { max-width: 850px; margin-top: 19px; color: #d8e5e3; font-size: 17px; line-height: 1.7; }
.page-hero-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-hero-summary > span, .article-tag { padding: 6px 11px; border: 1px solid #c6dfd738; border-radius: 6px; color: #e5efea; background: #ffffff08; font-size: 12px; }
.page-hero-summary strong { color: #fff3c6; font-weight: 800; }
.page-hero-summary small { font-size: inherit; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: 12px; line-height: 1.6; color: #c5dcd8; }
.breadcrumbs a:hover { color: #fff3c6; }
.breadcrumbs [aria-current="page"] { color: #eef4ea; }

/* Long-form content has independent paper panels and a small reading rail. */
.article-hero { padding-block: 25px 58px; }
.article-hero-inner { display: grid; gap: 34px; align-items: center; padding-top: 30px; }
.article-hero-with-image { grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); }
.article-hero-copy { max-width: 940px; }
.article-hero h1 { font-size: clamp(34px, 4vw, 53px); }
.article-hero-media { overflow: hidden; border: 1px solid #e7efe532; border-radius: 14px; background: #112d3c; box-shadow: 0 15px 34px #001b2833; }
.article-hero-media img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.article-page .page-content > .article-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 285px; align-items: start; gap: 22px; margin-top: -24px; }
.article-content { min-width: 0; padding: 20px; border: 1px solid #e9eee3; border-radius: 16px; background: var(--paper); box-shadow: var(--shadow); }
.article-aside { display: grid; gap: 14px; min-width: 0; }
.article-aside-panel { padding: 21px; border: 1px solid #e9eee3; border-radius: 13px; background: var(--paper); box-shadow: var(--shadow); }
.article-aside-panel h2 { margin: 0 0 15px; font-size: 22px; }
.article-aside-intro > p { margin-bottom: 10px; color: var(--orange-ink); font-size: 11px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.article-aside-intro > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.7; }
.article-aside-intro > div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.article-aside-intro b { padding: 4px 7px; border-radius: 5px; color: var(--ocean-ink); background: #e5f1e9; font-size: 11px; font-weight: 750; }
.article-toc { margin: 0; padding-left: 20px; color: var(--ocean-700); font-size: 13px; }
.article-toc li { padding-block: 5px; padding-left: 3px; }
.article-toc li::marker { color: var(--muted); }
.article-toc a:hover { color: var(--orange-ink); }
.article-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.article-facts > div { min-width: 0; padding: 14px 16px; border: 1px solid #ccdcd2; border-radius: 10px; background: #edf5ed; }
.article-facts dt { margin-bottom: 5px; color: var(--ocean-ink); font-size: 11px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.article-facts dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.guide-content .coverage-note { margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid #c09132; border-radius: 0 8px 8px 0; color: #655027; background: #fbf1d7; font-size: 13px; }
.article-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.article-table-scroll table { min-width: 450px; }
.guide-content .article-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-content .article-related li { margin: 0; }
.article-related a { display: block; height: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: #eef5ed; }

.site-footer { border-top: 1px solid #a2c7ca2e; color: #c6d8d8; background: #031724; }
.site-footer-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) 1fr 1fr; gap: 50px; padding-block: 46px 36px; }
.site-footer-brand p { max-width: 430px; margin-top: 20px; font-size: 14px; line-height: 1.8; }
.site-footer h2 { margin: 8px 0 16px; color: #fbf7e7; font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.site-footer-links a:hover { color: var(--gold); }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; padding-block: 22px; border-top: 1px solid #a2c7ca25; color: #adc3c4; font-size: 11px; }
.site-footer-bottom > span:last-of-type { max-width: 650px; }

@media (min-width: 1025px) and (max-width: 1190px) {
  .site-header-inner { gap: 10px; }
  .site-brand { font-size: 19px; gap: 6px; }
  .site-brand-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .site-nav-link { padding-inline: 5px; font-size: 11px; }
  .site-search-button span { display: none; }
  .site-search-button { justify-content: center; width: 40px; padding-inline: 0; }
}
@media (max-width: 1024px) {
  .site-header-inner { justify-content: space-between; min-height: 72px; }
  .site-icon-button { display: grid; }
  .site-search-button { display: none; }
  .site-nav { position: absolute; inset: 72px 0 auto; display: none; max-height: calc(100dvh - 72px); overflow: auto; align-content: start; padding: 14px 20px 22px; border-bottom: 1px solid #80b4b159; background: #08283d; box-shadow: 0 20px 30px #00152280; }
  .site-nav.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav-link { padding: 13px 15px; font-size: 15px; }
  .article-page .page-content > .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 17px; }
  .site-footer-grid { gap: 30px; grid-template-columns: 1.4fr 1fr 1fr; }
  .site-footer-links { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .article-page .page-content > .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-hero-with-image { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .article-hero-media { max-width: 440px; }
  .article-hero-media img { aspect-ratio: 2/1; }
  .article-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-aside-intro { display: none; }
  .site-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer-brand { grid-column: 1 / -1; }
  .site-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .site-header-inner { min-height: 68px; gap: 9px; }
  .site-brand { gap: 6px; font-size: 20px; }
  .site-brand-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .site-header-actions { gap: 6px; }
  .site-icon-button { width: 38px; height: 38px; }
  .site-nav { top: 68px; max-height: calc(100dvh - 68px); padding-inline: 14px; }
  .page-hero-inner { padding-block: 20px 55px; }
  .page-hero-copy { padding-top: 23px; }
  .page-hero h1 { font-size: clamp(32px, 9vw, 42px); }
  .page-hero-description, .article-hero-copy > p:not(.article-eyebrow) { margin-top: 16px; font-size: 15px; }
  .page-hero-summary { gap: 7px; }
  .article-hero { padding-block: 20px 46px; }
  .article-hero-inner { padding-top: 24px; }
  .article-hero h1 { font-size: 34px; }
  .article-page .page-content > .article-layout { margin-top: -20px; }
  .article-content { padding: 12px; border-radius: 13px; }
  .article-aside { grid-template-columns: minmax(0, 1fr); }
  .article-facts, .guide-content .article-related { grid-template-columns: minmax(0, 1fr); }
  .site-footer-grid { gap: 26px 20px; padding-block: 34px 28px; }
  .site-footer-links { grid-template-columns: 1fr; }
  .site-footer-bottom { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
