/* The Carp Zone V2 — green countryside with gold accents.
 * Fonts are self-hosted (assets/fonts/): Bitter for headings, Source Sans 3
 * for body. No Google Fonts hotlink. Palette colours come from CSS variables
 * set inline by the layout (Admin > Settings > Colour palette). */
@font-face {
  font-family: 'Bitter';
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/fonts/bitter.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/sourcesans3.woff2') format('woff2');
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
:root { --gold: #c9a227; --gold-light: #e3c766; --gold-dark: #8a6d1b; }
body {
  margin: 0; font-family: 'Source Sans 3', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent_dark); }
a:hover { text-decoration: none; }
h1, h2, h3 { font-family: 'Bitter', Georgia, 'Times New Roman', serif; line-height: 1.25; color: var(--ink); }
h1 { font-size: 2rem; margin: 0 0 .5em; }
h2 { font-size: 1.45rem; margin: 1.4em 0 .5em; }
h3 { font-size: 1.15rem; margin: 1em 0 .4em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { font-size: 1.15rem; color: var(--muted); }
.small { font-size: .85rem; color: var(--muted); }
.caption { font-size: .85rem; color: var(--muted); margin-top: 6px; }
.section { padding: 34px 0; }
.section-intro { color: var(--muted); max-width: 720px; }
.btn {
  display: inline-block; background: var(--gold); color: #1d3a1a; text-decoration: none;
  padding: 11px 20px; border-radius: 6px; font-weight: 700; border: 1px solid var(--gold);
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-ghost { background: transparent; color: var(--accent_dark); border-color: var(--accent_dark); }
.btn-ghost:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Header — sticky, dark green */
.site-header { background: var(--dark); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-name { font-family: 'Bitter', Georgia, serif; font-weight: 700; font-size: 1.5rem; line-height: 1.2; }
.brand-name .brand-zone { color: #cfe0c2; }
.brand-name small { display: block; font-family: 'Source Sans 3', system-ui, sans-serif; font-weight: 400; font-size: .8rem; color: #cfe0c2; }
.main-nav { display: flex; flex-wrap: nowrap; gap: 2px; margin-left: auto; }
.main-nav a { color: #eaf2e2; text-decoration: none; padding: 8px 9px; border-radius: 5px; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover { background: rgba(255,255,255,.14); }
.main-nav a[aria-current="page"] { background: rgba(201,162,39,.25); color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
.nav-toggle { display: none; background: transparent; border: 1px solid #8aa87e; color: #fff; border-radius: 6px; padding: 8px 12px; font-size: 1rem; font-weight: 700; cursor: pointer; margin-left: auto; }
.nav-toggle:hover { background: rgba(255,255,255,.14); }

/* Hero — photographic, misty lake at dawn */
.hero { position: relative; background: var(--dark) url('/assets/img/hero-lake.jpg') center/cover no-repeat; color: #fff; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,47,19,.72), rgba(18,47,19,.55) 55%, rgba(18,47,19,.82)); }
.hero-inner { position: relative; padding: 0 20px; }
.hero h1 { font-size: 2.6rem; color: #fff; margin-bottom: .35em; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.hero .lede { color: #eaf2e2; max-width: 720px; font-size: 1.2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero-cta .btn { border-color: var(--gold); }
.hero-cta .btn-ghost { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.hero-cta .btn-ghost:hover { background: #fff; color: #1d3a1a; }
.hero-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 30px 0 0; }
.hero-stats li { background: rgba(255,255,255,.96); border-top: 4px solid var(--gold); border-radius: 8px; padding: 14px 10px; text-align: center; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.hero-stats strong { display: block; font-family: 'Bitter', Georgia, serif; font-size: 1.7rem; line-height: 1.1; color: var(--accent_dark); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero .caption { color: #d8e4cf; margin-top: 16px; }
.hero-search { display: flex; gap: 8px; max-width: 520px; margin-top: 22px; }
.hero-search input { flex: 1; padding: 11px 12px; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; background: #fff; font-size: 16px; min-width: 0; }
.hero-search button { background: var(--gold); color: #1d3a1a; border: 1px solid var(--gold); border-radius: 6px; padding: 11px 18px; font-weight: 700; cursor: pointer; font-size: 16px; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(29,58,26,.08); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(29,58,26,.16); }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 16px 18px 18px; }
.card-body h2, .card-body h3 { margin-top: 0; }
.card-body h2 a, .card-body h3 a { color: var(--dark); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--accent_dark); }
.card-meta { font-size: .85rem; color: var(--gold-dark); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 6px; font-weight: 700; }
/* Pill wrapper on listing cards — the pill itself carries the colour, so the
   text stays sentence case exactly as the preview shows it, and the pale pill
   reads fine on the dark-green Legends band too. */
.card-pill { margin: 0 0 8px; }
.search-results { list-style: none; padding: 0; }
.search-results li { margin-bottom: 14px; }
.search-results li .pill { margin-right: 4px; }

/* Band + teasers */
.band { background: var(--dark); color: #eaf2e2; padding: 36px 0; }
.band h2 { color: #fff; }
.band h2::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 2px; margin-top: 10px; }
.band .section-intro { color: #cfe0c2; }
.band .card { background: #24401f; border-color: #3a5a33; }
.band .card-body h3 a { color: #fff; }
.band .card-body p { color: #dce8d2; }
.band .card-meta { color: var(--gold-light); }
.band .btn-ghost { color: #fff; border-color: var(--gold); }
.band .btn-ghost:hover { background: var(--gold); color: #1d3a1a; }
.tools-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.teaser-box { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.teaser-img img { border-radius: 10px; border: 1px solid var(--line); }

/* Tables — stacked cards on phones, never horizontal scroll */
table { width: 100%; border-collapse: collapse; margin: 14px 0; background: var(--surface); }
th, td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; }
th { background: var(--dark); color: #fff; }
.spec-table { max-width: 640px; }
.spec-table th { background: var(--surface); color: var(--ink); width: 180px; }

/* FAQ */
.faq-list details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; padding: 12px 16px; }
.faq-list summary { font-weight: 700; cursor: pointer; color: var(--dark); }
.faq-list summary:hover { color: var(--accent_dark); }

/* Tools */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.tool-card h2 { margin-top: 0; }
.tool-card label { display: block; font-weight: 600; margin: 12px 0; }
.tool-card input, .tool-card select { width: 100%; padding: 10px; margin-top: 4px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; background: #fff; }
.tool-result { background: #e9f2e2; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-top: 14px; }
.tool-result strong { font-size: 1.2rem; color: var(--accent_dark); }

.filter-row a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; margin: 0 6px 6px 0; text-decoration: none; background: var(--surface); }
.filter-row a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.video-card.featured { border-color: var(--accent); }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.empty-state { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 28px; text-align: center; }

/* Pages */
.page-head { padding-bottom: 0; }
.back-link { display: inline-block; color: var(--accent_dark); font-weight: 600; text-decoration: none; margin-bottom: 14px; }
.back-link:hover { text-decoration: underline; }

/* Article card — the preview's detail-page design: white rounded card on the
   pale page background, photo across the top, pill, bold lede, fact boxes. */
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(29,58,26,.08); }
.article-card-img { width: 100%; height: 360px; object-fit: cover; }
.article-card-body { padding: 24px 30px 30px; }
.article-card-body .guide-body { max-width: none; }
.article-card h1 { font-size: 2.3rem; margin: .3em 0 .45em; }
.pill { display: inline-block; background: #f1f4e8; color: #1e4324; font-size: .85rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.lede-strong { color: var(--ink); font-weight: 700; }
.fact-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.fact-box { background: #eaeee0; border-radius: 10px; padding: 16px 20px; }
.fact-box span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact-box strong { color: var(--ink); font-size: 1.05rem; }
@media (max-width: 760px) {
  .article-card-img { height: 220px; }
  .article-card-body { padding: 18px 20px 22px; }
  .article-card h1 { font-size: 1.9rem; }
  .fact-boxes { grid-template-columns: 1fr; }
}
.page-img { border-radius: 10px; border: 1px solid var(--line); margin: 18px 0 6px; max-height: 420px; width: 100%; object-fit: cover; }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.guide-body { max-width: 760px; }
.guide-body img { border-radius: 8px; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input { flex: 1; padding: 11px; border: 1px solid var(--line); border-radius: 6px; font-size: 16px; }

/* Footer */
.site-footer { background: var(--dark); color: #cfe0c2; margin-top: 30px; padding: 36px 0 20px; border-top: 4px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.site-footer strong { color: #fff; font-family: 'Bitter', Georgia, serif; }
.site-footer ul { list-style: none; padding: 0; margin: 8px 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { color: #e2eedb; }
.footer-note { border-top: 1px solid #3a5a33; margin-top: 20px; padding-top: 14px; font-size: .85rem; }

@media (max-width: 1020px) {
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  /* Hamburger nav: the nav never wraps into tall rows on phones. */
  .nav-toggle { display: block; }
  .main-nav { display: none; order: 3; flex-basis: 100%; flex-direction: column; margin-left: 0; padding: 6px 0 4px; border-top: 1px solid #3a5a33; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .hero { padding: 44px 0 30px; }
  .hero h1 { font-size: 2rem; }
  .hero-inner, .tools-teaser, .tool-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .brand-name small { display: none; }
  /* Records + catch-log tables become stacked cards — no horizontal scroll. */
  table.records-table, table.records-table thead, table.records-table tbody,
  table.records-table th, table.records-table td, table.records-table tr { display: block; width: 100%; }
  table.records-table { background: transparent; border: 0; }
  table.records-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.records-table tr { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px 0; }
  table.records-table td { border: 0; border-bottom: 1px solid var(--line); padding: 8px 14px 8px 46%; position: relative; min-height: 38px; }
  table.records-table td:last-child { border-bottom: 0; }
  table.records-table td::before { content: attr(data-label); position: absolute; left: 14px; top: 8px; font-weight: 700; color: var(--dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }
  table.records-table td[data-label="Weight"] strong { font-size: 1.1rem; }
}

/* Carp Zone extras */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; text-align: center; }
.stat strong { display: block; font-family: 'Bitter', Georgia, serif; font-size: 1.7rem; color: var(--accent_dark); }
.stat span { font-size: .85rem; color: var(--muted); }
.fact-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin: 18px 0; }
.fact-panel dl { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; margin: 0; }
.fact-panel dt { font-weight: 700; color: var(--dark); }
.fact-panel dd { margin: 0; }
.tag { display: inline-block; background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-right: 6px; }
.tag.reported { background: var(--gold-dark); }
.tag.ratified { background: var(--accent_dark); }
.timeline { border-left: 3px solid var(--gold); padding-left: 18px; margin: 18px 0; }
.timeline p { margin: 8px 0; }
.timeline strong { color: var(--accent_dark); }
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 8px 0; }
.checklist input { width: auto; margin-top: 4px; }
.log-table { font-size: .95rem; }
.amazon-box { background: #fdf6e3; border: 1px solid #e8d9a0; border-radius: 10px; padding: 16px 18px; margin: 18px 0; }
.amazon-box h3 { margin-top: 0; }
@media (max-width: 760px) { .fact-panel dl { grid-template-columns: 1fr; } .fact-panel dt { margin-top: 8px; } }
