/*
Theme Name: Ceylon Aquatics
Theme URI: https://ceylonaquatics.com
Author: Ceylon Aquatics
Author URI: https://ceylonaquatics.com
Description: Aquascaping & nano fish journal theme — blackwater palette, field-guide typography, custom Guide and Species post types.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ceylon-aquatics
*/

:root{
  --ink:        #05080f;
  --tank:       #0a111f;
  --tank-2:     #0d1526;
  --leaf:       #cfe0ff;
  --leaf-dim:   #8b98ad;
  --amber:      #14b8a6;
  --amber-dim:  #0d9488;
  --sand:       #eef3fb;
  --sand-2:     #0b1220;
  --line:       rgba(207,224,255,0.16);
  --line-soft:  rgba(207,224,255,0.09);
  /* Alias for the Tank Journal plugin, which reads --line-2. Without it the
     plugin falls back to its own default and borders drift out of step. */
  --line-2:     rgba(148,180,255,.16);

  --blue:       #3b82f6;
  --blue-light: #60a5fa;
  --green:      #22c55e;
  --green-light:#4ade80;
  --teal:       #14b8a6;
  --red:        #ef4444;

  --panel:      #0a111f;
  --panel-2:    #0d1526;
  --card:       #0b1220;
  --border:     rgba(148,180,255,.09);
  --border-2:   rgba(148,180,255,.16);
  --muted:      #8b98ad;
  --muted-2:    #66738a;

  --display: 'Inter', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'Inter', sans-serif;
}

*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background: var(--ink); color: var(--leaf); font-family: var(--body);
  font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
table{ border-collapse: collapse; width:100%; }

.wrap{ max-width: 1240px; margin: 0 auto; padding: 0 28px; }

a:focus-visible, button:focus-visible{ outline: 2px solid var(--amber); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============== STRATA DIVIDER (signature element) ============== */
.strata{ display: none; }
.strata svg{ position:absolute; inset:0; width:100%; height:100%; }

/* ============== NAV ============== */
header.site-header{
  position: sticky; top: 0; z-index: 60; background: var(--tank);
  border-bottom: 1px solid var(--line);
}
.nav{ display:flex; align-items:center; gap:20px; justify-content:space-between; padding: 14px 28px; max-width: 1240px; margin: 0 auto; }
.brand{ display:flex; align-items:center; gap:10px; font-family: var(--display); font-size: 1.3rem; font-weight:800; color: var(--sand); letter-spacing: -0.01em; flex-shrink:0; white-space:nowrap; }
.brand .mark{ width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, #123049, #060a13); display:flex; align-items:center; justify-content:center; border: 1px solid var(--line); flex-shrink:0; }
.brand .brand-text{ line-height:1; }
.brand .sub{ font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf-dim); font-weight:400; margin-left:2px; align-self:center; }
nav.links{ display:flex; gap: 20px; font-size: 0.88rem; color: var(--leaf); flex:1; justify-content:center; }
nav.links a{ white-space:nowrap; }
nav.links a{ position:relative; padding: 4px 0; transition: color 0.2s; }
nav.links a:hover, nav.links a.current{ color: var(--sand); }
nav.links a::after{ content:''; position:absolute; left:0; right:0; bottom:-2px; height:1px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
nav.links a:hover::after, nav.links a.current::after{ transform: scaleX(1); }
.nav-cta{ font-family: var(--body); font-size: 0.85rem; font-weight:600; letter-spacing: 0; color: var(--ink); background: var(--green); padding: 10px 18px; border-radius: 10px; transition: background 0.2s, transform 0.2s; white-space:nowrap; flex-shrink:0; }
.nav-cta:hover{ background: var(--sand); }
.menu-toggle{ display:none; background:none; border:none; color: var(--sand); font-size: 1.4rem; cursor:pointer; }

.progress-track{ height: 2px; background: var(--line); }
.progress-fill{ height: 100%; width: 0%; background: var(--amber); transition: width 0.1s linear; }

/* ============== BREADCRUMB ============== */
.crumb-bar{ background: var(--ink); padding: 16px 0 0; }
.crumb{ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--leaf-dim); display:flex; align-items:center; gap: 8px; padding-bottom: 22px; flex-wrap: wrap; }
.crumb a{ color: var(--leaf-dim); transition: color 0.2s; }
.crumb a:hover{ color: var(--amber); }
.crumb .sep{ opacity:0.5; }
.crumb .current{ color: var(--leaf); }

/* ============== HERO (homepage) ============== */
.hero{ background: var(--ink); position: relative; padding: 86px 0 0; overflow: hidden; }
.hero-grid{ max-width: 1180px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eyebrow{ font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); display:flex; align-items:center; gap: 10px; margin-bottom: 22px; }
.eyebrow::before{ content:''; width: 22px; height:1px; background: var(--amber); }
.hero h1{ font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 3.7rem); line-height: 1.05; color: var(--sand); letter-spacing: -0.01em; margin-bottom: 24px; }
.hero h1 em{ font-style: italic; font-weight:500; color: var(--amber); }
.hero p.lede{ font-size: 1.08rem; color: var(--leaf); max-width: 480px; margin-bottom: 36px; }
.hero-actions{ display:flex; gap: 18px; align-items:center; flex-wrap: wrap; }
.btn-primary{ font-family: var(--body); font-size: 0.92rem; font-weight:600; letter-spacing: 0; background: var(--green); color: var(--ink); padding: 14px 26px; border-radius: 11px; transition: transform 0.2s, background 0.2s, box-shadow .2s; display:inline-block; border:none; cursor:pointer; }
.btn-primary:hover{ background: var(--sand); transform: translateY(-1px); }
.btn-ghost{ font-size: 0.88rem; color: var(--leaf); border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: color 0.2s, border-color 0.2s; }
.btn-ghost:hover{ color: var(--sand); border-color: var(--leaf); }
.hero-stats{ display:flex; gap: 36px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); flex-wrap:wrap; }
.hero-stats div{ display:flex; flex-direction:column; gap:4px; }
.hero-stats .num{ font-family: var(--display); font-size: 1.5rem; color: var(--sand); font-weight:600; }
.hero-stats .label{ font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--leaf-dim); }
.tank-visual{ position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #0d1526 0%, #05080f 100%); border: 1px solid var(--line); }
.tank-visual svg{ position:absolute; inset:0; width:100%; height:100%; }
.tank-caption{ position:absolute; bottom: 16px; left: 16px; right:16px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--leaf-dim); display:flex; justify-content: space-between; }

/* ============== TICKER ============== */
.ticker-row{ background: var(--tank); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.ticker-track{ display: inline-flex; gap: 48px; animation: scroll-left 38s linear infinite; font-family: var(--mono); font-size: 0.78rem; color: var(--leaf-dim); letter-spacing: 0.02em; }
.ticker-track span{ color: var(--amber); }
@keyframes scroll-left{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }

/* ============== SECTION SHELL ============== */
section{ padding: 54px 0; }
.section-head{ max-width: 720px; margin-bottom: 26px; }
.section-head .eyebrow{ color: var(--amber-dim); margin-bottom:10px; }
.section-head .eyebrow::before{ background: var(--amber-dim); }
.section-head h2{ font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.2; letter-spacing: -0.015em; }
.section-head p{ margin-top: 10px; color: #8b98ad; font-size: 0.92rem; max-width: 560px; line-height:1.6; }
.species-section .section-head .eyebrow, .related-section .section-head .eyebrow{ color: var(--amber); }
.species-section .section-head .eyebrow::before, .related-section .section-head .eyebrow::before{ background: var(--amber); }
.species-section .section-head p{ color: var(--leaf-dim); }

/* ============== GUIDE CARDS ============== */
/* auto-fit collapses unused tracks, so 1 or 2 published guides don't
   leave empty grey grid cells beside them the way a fixed
   repeat(3,1fr) would — same fix pattern as .gallery-strip. Capping the
   track at 420px (not just minmax's lower bound) stops a single
   surviving card from stretching to the full row width via the
   trailing 1fr, which would otherwise produce uncomfortably long text
   line lengths in the card's heading/paragraph. Reaches the original
   3-column look naturally once 3+ guides exist. */
.guides-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(320px, 420px)); justify-content: center; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.guide-card{ background: var(--tank-2); transition: background 0.25s; position: relative; display:block; overflow:hidden; }
.guide-card:hover{ background: var(--sand-2); }
.guide-card-thumb{ aspect-ratio: 16/10; position:relative; background: var(--tank-2); overflow:hidden; }
.guide-card-thumb svg, .guide-card-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.guide-card-body{ padding: 28px 32px 32px; }
.guide-tag{ font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber-dim); margin-bottom: 18px; display:block; }
.guide-card h3{ font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.25; margin-bottom: 14px; }
.guide-card p{ color: #8b98ad; font-size: 0.94rem; margin-bottom: 22px; }
.guide-meta{ display:flex; justify-content: space-between; align-items:center; font-family: var(--mono); font-size: 0.7rem; color: var(--leaf-dim); border-top: 1px solid var(--line-soft); padding-top: 16px; }
.guide-meta .read{ color: var(--leaf); display:flex; align-items:center; gap:6px; }
.guide-card:hover .read{ color: var(--amber-dim); }
.arrow{ transition: transform 0.2s; }
.guide-card:hover .arrow{ transform: translateX(3px); }

/* ============== SPECIES GRID (homepage + archive) ============== */
.species-section{ background: var(--ink); color: var(--leaf); }
.species-grid{ display:flex; flex-wrap:wrap; gap: 14px; }
.species-grid > *{ flex:1 1 210px; max-width:284px; }
.species-card{ border: 1px solid var(--line); border-radius: 9px; padding: 0; overflow:hidden; transition: border-color 0.25s, transform 0.25s; display:block; background: var(--ink); }
.species-card:hover{ border-color: var(--amber-dim); transform: translateY(-3px); }
.species-card.no-thumb{ padding: 22px 20px; }
.species-card .thumb{ aspect-ratio: 16/10; position:relative; background: var(--tank-2); overflow:hidden; }
.species-card .thumb svg, .species-card .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.species-card .body{ padding: 18px 20px; }
.species-card .latin{ font-family: var(--mono); font-style: italic; font-size: 0.68rem; color: var(--leaf-dim); display:block; margin-bottom: 8px; }
.species-card h4{ font-family: var(--display); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; color: var(--sand); }
.species-card .stat-row{ display:flex; gap: 14px; font-family: var(--mono); font-size: 0.66rem; color: var(--leaf-dim); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.species-card .stat-row b{ color: var(--leaf); font-weight:500; }
.endemic-flag{ display:inline-flex; align-items:center; gap:5px; font-family: var(--mono); font-size: 0.6rem; color: var(--amber); margin-top: 12px; letter-spacing: 0.04em; }
.endemic-flag::before{ content:'●'; font-size:0.5rem; }

/* Type badge for the homepage's mixed "From Sri Lanka" feed
   (.sl-feed-card) — sits over the photo since the card otherwise looks
   identical for a fish, a plant, or a piece of driftwood, and the
   whole point of a mixed feed is knowing which is which at a glance. */
.sl-feed-type{ position:absolute; top:10px; left:10px; font-family: var(--mono); font-size: 0.6rem; text-transform:uppercase; letter-spacing:0.05em; color: var(--ink); background: var(--amber); padding: 4px 9px; border-radius: 7px; }

/* ============== GEAR / BUY BOX ============== */
.equipment-row{ display:grid; grid-template-columns: 220px 1fr auto auto; align-items:center; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.equipment-row:first-of-type{ border-top: 1px solid var(--line-soft); }
.equipment-thumb{ width: 100%; height: 130px; background: var(--tank-2); border-radius: 9px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.equipment-thumb img{ width:100%; height:100%; object-fit:cover; }
.equipment-info .cat{ font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-dim); margin-bottom: 8px; display:block; }
.equipment-info h4{ font-family: var(--display); font-size: 1.18rem; font-weight: 600; margin-bottom: 6px; }
.equipment-info p{ color:#8b98ad; font-size: 0.9rem; max-width: 420px; }
.equipment-rating{ font-family: var(--mono); font-size: 0.82rem; color: var(--leaf); text-align: right; white-space: nowrap; }
.equipment-rating .stars{ color: var(--amber-dim); letter-spacing: 1px; }
.equipment-rating .note{ font-size: 0.66rem; color: var(--leaf-dim); margin-top: 4px; }
.equipment-cta{ font-family: var(--body); font-weight:600; font-size: 0.82rem; border: 1px solid var(--leaf-dim); color: var(--leaf); padding: 10px 18px; border-radius: 10px; white-space: nowrap; transition: background 0.2s, color 0.2s, border-color .2s; }
.equipment-cta:hover{ background: var(--amber); color: var(--ink); border-color: var(--amber); }

/* ============== ORIGIN BLOCK ============== */
.origin-section{ display:grid; grid-template-columns: 0.85fr 1.15fr; gap: 0; align-items: stretch; }
.origin-visual{ background: linear-gradient(160deg, #13233a 0%, #0a111f 100%); position:relative; min-height: 480px; overflow:hidden; }
.origin-visual svg{ position:absolute; inset:0; width:100%; height:100%; }
.origin-text{ padding: 0 0 0 64px; display:flex; flex-direction:column; justify-content:center; }
.origin-text .eyebrow{ color: var(--amber-dim); }
.origin-text .eyebrow::before{ background: var(--amber-dim); }
.origin-text h2{ font-family: var(--display); font-weight:600; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height:1.2; margin-bottom: 22px; max-width: 480px; }
.origin-text p{ color: #8b98ad; font-size: 1rem; max-width: 480px; margin-bottom: 18px; }
.origin-text p:last-of-type{ margin-bottom: 28px; }
.origin-facts{ display:flex; gap: 40px; flex-wrap:wrap; }
.origin-facts div{ display:flex; flex-direction:column; gap:4px; }
.origin-facts .num{ font-family: var(--display); font-size:1.4rem; font-weight:600; }
.origin-facts .label{ font-family: var(--mono); font-size: 0.64rem; text-transform:uppercase; letter-spacing:0.05em; color: #66738a; }

/* New, real-data showcase rows under the existing map+text columns —
   span the full grid width rather than squeezing into either column. */
/* auto-fit avoids the empty-grid-cell issue already fixed elsewhere on
   this site (.guides-grid, .related-grid.cols-3) when there are fewer
   than 3 endemic species tagged — reaches the original 3-column look
   naturally once 3+ exist. */
.origin-species-strip{ grid-column: 1 / -1; display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.origin-empty{ grid-column: 1 / -1; padding: 32px 64px; border-top: 1px solid var(--line-soft); }
.origin-empty p{ font-size: 0.92rem; color: #66738a; max-width: 720px; line-height:1.7; }
.origin-empty strong{ color: var(--leaf); }

/* ============== CTA / NEWSLETTER ============== */
.cta-section{ background: var(--tank); color: var(--sand); text-align:center; padding: 56px 0; }
.cta-section .eyebrow{ justify-content:center; color: var(--amber); }
.cta-section .eyebrow::before{ display:none; }
.cta-section h2{ font-family: var(--display); font-weight:600; font-size: clamp(2rem, 3.6vw, 2.8rem); max-width: 640px; margin: 0 auto 18px; line-height: 1.15; }
.cta-section p{ color: var(--leaf-dim); max-width: 460px; margin: 0 auto 36px; }
.cta-form{ display:flex; justify-content:center; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap:wrap; }
.cta-form input{ flex:1; background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--sand); padding: 14px 18px; border-radius: 11px; font-family: var(--body); font-size: 0.92rem; min-width: 200px; }
.cta-form input::placeholder{ color: var(--leaf-dim); }
.cta-form input:focus{ outline:none; border-color: var(--amber); }
.cta-note{ font-family: var(--mono); font-size: 0.68rem; color: var(--leaf-dim); margin-top: 16px; }

/* ============== ARTICLE / GUIDE SINGLE ============== */
.article-hero{ background: var(--ink); padding-bottom: 0; }
.hero-inner{ padding-bottom: 36px; }
.guide-tag-top{ display:inline-flex; align-items:center; gap: 8px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.guide-tag-top::before{ content:''; width: 22px; height:1px; background: var(--amber); }
.article-hero h1{ font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.1; color: var(--sand); letter-spacing: -0.01em; margin-bottom: 20px; }
.article-hero .dek{ font-size: 1.08rem; color: var(--leaf); margin-bottom: 28px; }
.byline-row{ display:flex; align-items:center; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap:wrap; }
.avatar{ width: 38px; height: 38px; border-radius: 50%; background: var(--amber); display:flex; align-items:center; justify-content:center; font-family: var(--display); font-weight:600; color: var(--ink); font-size: 0.95rem; flex-shrink:0; overflow:hidden; }
.avatar img{ width:100%; height:100%; object-fit:cover; }
.byline-text{ display:flex; flex-direction: column; gap: 2px; }
.byline-text .name{ font-size: 0.9rem; color: var(--sand); font-weight: 500; }
.byline-meta{ font-family: var(--mono); font-size: 0.7rem; color: var(--leaf-dim); display:flex; gap: 14px; flex-wrap:wrap; }

.hero-figure{ position: relative; aspect-ratio: 16/7; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #13233a 0%, #070c16 100%); border: 1px solid var(--line); margin-top: 8px; }
.hero-figure svg, .hero-figure img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-figure .cap{ position:absolute; bottom: 14px; left: 18px; font-family: var(--mono); font-size: 0.66rem; color: var(--leaf-dim); background: rgba(4,8,16,0.7); padding: 5px 10px; border-radius: 7px; }

.content-shell{ display:grid; grid-template-columns: 1fr 300px; gap: 64px; padding: 64px 0 96px; align-items:start; }

.article-body{ max-width: 680px; }
.article-body .intro{ font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.55; color: var(--leaf); margin-bottom: 8px; }
.article-body h2{ font-family: var(--display); font-weight:600; font-size: 1.55rem; margin: 52px 0 18px; letter-spacing: -0.005em; scroll-margin-top: 100px; display:flex; align-items: baseline; gap: 14px; }
.article-body h2 .step-num{ font-family: var(--mono); font-size: 0.85rem; color: var(--amber-dim); font-weight: 500; white-space: nowrap; }
.article-body h2:first-of-type{ margin-top: 40px; }
.article-body h3{ font-family: var(--display); font-weight:600; font-size: 1.18rem; margin: 28px 0 12px; }
.article-body p{ color: #cfd9ea; font-size: 1rem; margin-bottom: 18px; }
.article-body ul, .article-body ol{ margin: 0 0 18px 0; padding-left: 22px; color: #cfd9ea; }
.article-body li{ margin-bottom: 8px; }
.article-body strong{ color: var(--leaf); font-weight: 600; }
.article-body img{ border-radius: 14px; margin: 24px 0; }

.field-note{ border-left: 2px solid var(--amber); padding: 4px 0 4px 24px; margin: 32px 0; }
.field-note .tag{ font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-dim); display:block; margin-bottom: 8px; }
.field-note p{ font-family: var(--display); font-style: italic; font-size: 1.08rem; color: var(--leaf); line-height: 1.5; margin-bottom: 0; }

.inline-figure{ margin: 32px 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); }
.inline-figure .img-area{ aspect-ratio: 16/9; position: relative; background: linear-gradient(160deg, var(--tank-2) 0%, var(--ink) 100%); }
.inline-figure .img-area svg, .inline-figure .img-area img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.inline-figure figcaption{ font-family: var(--mono); font-size: 0.74rem; color: #66738a; padding: 12px 18px; background: var(--sand-2); }

.figure-pair{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0; }
.figure-pair .pane{ border-radius: 14px; overflow:hidden; border: 1px solid var(--line-soft); }
.figure-pair .img-area{ aspect-ratio: 4/3; position: relative; background: linear-gradient(160deg, var(--tank-2) 0%, var(--ink) 100%); }
.figure-pair .img-area svg, .figure-pair .img-area img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.figure-pair figcaption{ font-family: var(--mono); font-size: 0.7rem; color: #66738a; padding: 10px 14px; background: var(--sand-2); }

.checklist{ list-style:none; padding:0; margin: 0 0 18px 0; border: 1px solid var(--line-soft); border-radius: 14px; overflow:hidden; }
.checklist li{ display:flex; align-items: baseline; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.94rem; color: var(--leaf); margin-bottom:0; }
.checklist li:last-child{ border-bottom: none; }
.checklist li::before{ content:'—'; color: var(--amber-dim); font-family: var(--mono); }
.checklist .qty{ font-family: var(--mono); font-size: 0.78rem; color: #66738a; margin-left: auto; white-space:nowrap; }

.description-note{ font-size: 0.88rem; color: #66738a; margin: -8px 0 16px; }

.named-species-list{ list-style:none; padding:0; margin: 0 0 24px 0; display:flex; flex-wrap:wrap; gap: 10px; }
.named-species-list li{ display:flex; align-items:baseline; gap: 6px; padding: 8px 14px; border: 1px solid var(--line-soft); border-radius: 20px; font-size: 0.88rem; margin-bottom:0; background: var(--sand-2); }
.named-species-list a{ color: var(--leaf); font-weight: 600; text-decoration:none; border-bottom: 1px solid var(--amber-dim); }
.named-species-list a:hover{ color: var(--amber-dim); }
.named-species-list .unlinked{ color: var(--leaf); font-weight: 500; }
.named-species-list .fish-latin-inline{ font-family: var(--mono); font-style: italic; font-size: 0.72rem; color: #8b98ad; }

.data-table{ width:100%; border-collapse: collapse; margin: 8px 0 24px; border: 1px solid var(--line-soft); }
.data-table tr{ border-bottom: 1px solid var(--line-soft); }
.data-table tr:last-child{ border-bottom: none; }
.data-table td{ padding: 13px 18px; font-size: 0.92rem; vertical-align: top; }
.data-table td:first-child{ font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber-dim); width: 160px; white-space: nowrap; }
.data-table tr:nth-child(even){ background: rgba(207,224,255,0.03); }

.ca-safety-note{ border-left: 3px solid var(--amber); background: rgba(20,184,166,0.08); padding: 14px 18px; margin: 0 0 24px; font-size: 0.92rem; color: var(--leaf); border-radius: 0 10px 10px 0; }
.ca-safety-note strong{ color: var(--amber-dim); }

/* ---- affiliate gear box: built to read as editorial, not an ad unit.
   Same border-radius/line-color language as .checklist and .side-card,
   same type system as the rest of the article — the only thing that
   marks it as a product mention rather than prose is the small
   "Gear Note" label, matching how the homepage's own Gear section
   labels itself, not a banner treatment. ---- */
.gear-note{ border:1px solid var(--line-soft); border-radius:14px; margin: 8px 0 32px; overflow:hidden; background: var(--tank-2); }
.gear-note-label{ font-family: var(--mono); font-size:0.66rem; text-transform:uppercase; letter-spacing:0.07em; color: var(--amber-dim); padding:14px 20px 0; }
.gear-note-body{ display:flex; gap:20px; padding: 14px 20px 20px; align-items:flex-start; }
.gear-note-thumb{ width:84px; height:84px; flex-shrink:0; border-radius: 14px; background: var(--sand-2); border:1px solid var(--line-soft); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.gear-note-thumb svg{ width:60%; height:60%; opacity:0.55; }
.gear-note-thumb img{ width:100%; height:100%; object-fit:cover; }
.gear-note-info h4{ font-family: var(--display); font-size:1.02rem; font-weight:600; margin-bottom:4px; }
.gear-note-info p{ font-size:0.88rem; color:#7d8ca3; margin-bottom:10px; }
.gear-note-meta{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.gear-note-stars{ color: var(--amber-dim); font-size:0.82rem; letter-spacing:1px; }
.gear-note-used{ font-family: var(--mono); font-size:0.72rem; color:#8b98ad; }
.gear-note-cta{ font-family: var(--mono); font-size:0.74rem; color: var(--amber-dim); border-bottom:1px solid var(--amber-dim); padding-bottom:1px; white-space:nowrap; }
.gear-note-cta:hover{ color: var(--ink); border-color: var(--amber); background: var(--amber); }
.gear-note-disclosure{ font-size:0.7rem; color:#8b98ad; padding: 0 20px 14px; }

/* sidebar gear card — same content as the in-article note, condensed,
   for anyone who scrolled past the in-article one or jumped via TOC */
.side-gear .gear-thumb-sm{ width:100%; height:120px; border-radius: 14px; background: var(--tank-2); border:1px solid var(--line-soft); margin-bottom:14px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.side-gear .gear-thumb-sm svg{ width:40%; opacity:0.5; }
.side-gear .gear-thumb-sm img{ width:100%; height:100%; object-fit:cover; }
.side-gear h4{ font-family: var(--display); font-size:0.98rem; margin-bottom:6px; }
.side-gear p{ font-size:0.84rem; color:#7d8ca3; margin-bottom:12px; }
.side-gear .btn{ display:block; font-family: var(--body); font-weight:600; font-size: 0.85rem; background: var(--green); color: var(--ink); padding: 11px 0; border-radius: 10px; text-align: center; transition: background 0.2s; border:none; width:100%; cursor:pointer; }
.side-gear .btn:hover{ background: var(--sand); }

@media (max-width: 900px){
  .gear-note-body{ flex-direction:column; }
  .gear-note-thumb{ width:100%; height:140px; }
}

.summary-box{ background: var(--tank-2); color: var(--leaf); border-radius: 14px; padding: 32px 36px; margin: 48px 0 0; }
.summary-box .tag{ font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); margin-bottom: 14px; display:block; }
.summary-box h3{ font-family: var(--display); font-size: 1.3rem; font-weight:600; margin-bottom: 14px; color: var(--sand); }
.summary-box p{ color: var(--leaf-dim); font-size: 0.94rem; margin-bottom: 0; }
.summary-box ul{ margin: 14px 0 0; padding-left: 20px; color: var(--leaf); }
.summary-box li{ margin-bottom: 6px; font-size: 0.92rem; }

.author-footer{ display:flex; gap: 18px; align-items:flex-start; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.author-footer .avatar{ background: var(--amber-dim); flex-shrink:0; }
.author-footer .name{ font-weight: 600; font-size: 0.96rem; margin-bottom: 4px; }
.author-footer p{ font-size: 0.88rem; color: #66738a; margin-bottom:0; }

/* ============== SPECIES SINGLE ============== */
.fish-hero{ background: var(--ink); padding-bottom: 0; }
.fish-hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; padding-bottom: 44px; }
.fish-latin{ font-family: var(--mono); font-style: italic; font-size: 0.95rem; color: var(--leaf-dim); display:block; margin-bottom: 10px; }
.fish-hero h1{ font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.05; color: var(--sand); letter-spacing: -0.01em; margin-bottom: 18px; }
.fish-hero .dek{ font-size: 1.02rem; color: var(--leaf); max-width: 460px; margin-bottom: 28px; }
.fish-badges{ display:flex; gap: 10px; flex-wrap: wrap; }
.badge{ font-family: var(--mono); font-size: 0.7rem; color: var(--leaf); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; display:flex; align-items:center; gap:6px; }
.badge b{ color: var(--sand); font-weight:500; }
.fish-photo{ position: relative; aspect-ratio: 5/4; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #13233a 0%, #070c16 100%); border: 1px solid var(--line); }
.fish-photo svg, .fish-photo img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.photo-tag{ position:absolute; bottom: 14px; left: 14px; font-family: var(--mono); font-size: 0.64rem; color: var(--leaf-dim); background: rgba(4,8,16,0.7); padding: 5px 10px; border-radius: 7px; letter-spacing: 0.03em; }

/* auto-fit collapses unused tracks, so 1-3 images size themselves
   sensibly instead of stretching into a lone quarter-width slot with
   empty gaps beside it (common for hardscape items with just 1 photo,
   or plants with a partial gallery) — capping the track at 220px (not
   just the thumb inside it) is what stops a single surviving track from
   still stretching to fill the whole row via the trailing 1fr. Naturally
   reaches 4+ even columns once 4+ images exist, matching the
   array_slice(...,0,4) limit in the templates. */
/* Lightbox-row pattern: every image in the row shares the same HEIGHT
   (not the same fixed aspect ratio), and flex:1 lets each one's width
   expand or shrink to fill the full row regardless of count — 1 photo
   becomes one wide strip spanning the entire width, 4 photos divide
   into narrower columns that still meet edge-to-edge with no gaps or
   leftover space. This replaces an earlier grid-based version that
   couldn't avoid leaving empty space at low image counts, since a grid
   track's WIDTH was fixed independent of how many images existed. */
.gallery-strip{ display:flex; height: 220px; gap: 1px; background: var(--line); border-top: 1px solid var(--line); overflow: hidden; }
.gallery-strip .thumb{ flex: 1 1 0; min-width: 0; height: 100%; background: var(--tank-2); position:relative; overflow:hidden; cursor: pointer; transition: opacity 0.2s; }
.gallery-strip .thumb:focus-visible{ outline: 2px solid var(--amber); outline-offset: -2px; z-index: 1; }
.gallery-strip .thumb:hover{ opacity: 0.82; }
.gallery-strip .thumb svg, .gallery-strip .thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gallery-strip .thumb .cap{ position:absolute; bottom:8px; left:10px; right:10px; font-family: var(--mono); font-size: 0.6rem; color: var(--leaf-dim); }

/* ---- Gallery lightbox ----
   Shared by single-species.php, single-plant.php, single-hardscape.php
   via the #ca-gallery-strip markup — see initGalleryLightbox() in theme.js. */
body.ca-lightbox-open{ overflow: hidden; } /* locks background scroll while the overlay is open */

.ca-lightbox{
	position: fixed; inset: 0; z-index: 200;
	background: rgba(4,8,16,0.96);
	display: flex; align-items: center; justify-content: center;
	padding: 24px;
}
/* The [hidden] attribute alone only applies display:none via the browser's
   UA stylesheet, which our own .ca-lightbox{display:flex} rule above
   overrides (equal specificity, later rule wins) — without this explicit
   override the overlay rendered open on every page load instead of only
   when JS sets overlay.hidden = false on click. */
.ca-lightbox[hidden]{ display: none; }
.ca-lightbox-figure{ max-width: 92vw; max-height: 86vh; display:flex; flex-direction:column; align-items:center; gap: 14px; }
.ca-lightbox-img{ max-width: 92vw; max-height: 78vh; width:auto; height:auto; object-fit: contain; border-radius: 7px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.ca-lightbox-caption{ font-family: var(--mono); font-size: 0.78rem; color: var(--leaf-dim); text-align:center; }
.ca-lightbox-counter{ position:absolute; bottom: 24px; left:50%; transform: translateX(-50%); font-family: var(--mono); font-size: 0.7rem; color: var(--leaf-dim); letter-spacing: 0.04em; }

.ca-lightbox-close, .ca-lightbox-prev, .ca-lightbox-next{
	position: absolute; background: rgba(255,255,255,0.06); border: 1px solid var(--line);
	color: var(--sand); cursor: pointer; border-radius: 50%;
	display:flex; align-items:center; justify-content:center;
	transition: background 0.15s, border-color 0.15s;
}
.ca-lightbox-close:hover, .ca-lightbox-prev:hover, .ca-lightbox-next:hover{ background: rgba(255,255,255,0.14); border-color: var(--amber-dim); }
.ca-lightbox-close:focus-visible, .ca-lightbox-prev:focus-visible, .ca-lightbox-next:focus-visible{ outline: 2px solid var(--amber); outline-offset: 2px; }

.ca-lightbox-close{ top: 20px; right: 20px; width: 40px; height: 40px; font-size: 1.5rem; line-height:1; }
.ca-lightbox-prev, .ca-lightbox-next{ top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.8rem; line-height:1; }
.ca-lightbox-prev{ left: 20px; }
.ca-lightbox-next{ right: 20px; }

@media (max-width: 680px) {
	.ca-lightbox{ padding: 12px; }
	.ca-lightbox-prev, .ca-lightbox-next{ width: 40px; height: 40px; font-size: 1.5rem; }
	.ca-lightbox-prev{ left: 8px; }
	.ca-lightbox-next{ right: 8px; }
	.ca-lightbox-close{ top: 10px; right: 10px; }
	.ca-lightbox-counter{ bottom: 12px; }
}

.lede-block{ font-family: var(--display); font-size: 1.25rem; font-weight: 500; line-height: 1.5; color: var(--leaf); max-width: 680px; margin-bottom: 8px; }

.stat-strip{ display:grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin: 32px 0 8px; }
.stat-strip div{ background: var(--tank-2); padding: 16px 18px; }
.stat-strip .label{ font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--amber-dim); display:block; margin-bottom: 6px; }
.stat-strip .val{ font-family: var(--display); font-size: 1.1rem; font-weight: 600; }

.compat-table{ margin-top: 8px; width:100%; }
.compat-table thead th{ font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--leaf-dim); background: var(--tank); text-align: left; padding: 12px 18px; font-weight: 500; }
.compat-table thead th:first-child{ border-radius: 9px 0 0 0; }
.compat-table thead th:last-child{ border-radius: 0 3px 0 0; }
.compat-table tbody td{ padding: 14px 18px; font-size: 0.9rem; border-bottom: 1px solid var(--line-soft); }
.compat-table tbody tr:last-child td{ border-bottom: none; }
.compat-table tbody tr:hover{ background: var(--sand-2); }
.compat-table .fish-name{ font-weight: 500; }
.compat-table .fish-name span{ display:block; font-family: var(--mono); font-style: italic; font-size: 0.72rem; color: #8b98ad; font-weight: 400; margin-top: 2px; }
.pill{ display:inline-flex; align-items:center; gap:5px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em; padding: 4px 10px; border-radius: 999px; }
.pill.good{ background: rgba(34,197,94,0.18); color: #16a34a; }
.pill.caution{ background: rgba(20,184,166,0.18); color: var(--amber-dim); }
.pill.avoid{ background: rgba(239,68,68,0.16); color: #ef4444; }

/* ============== SIDEBAR (shared: species + guide single) ============== */
.sidebar{ position: sticky; top: 88px; display:flex; flex-direction:column; gap: 24px; }
.side-card{ border: 1px solid var(--line-soft); border-radius: 14px; padding: 24px; background: var(--sand-2); }
.side-card h3{ font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-dim); margin-bottom: 16px; }

.quick-facts dl, .meta-facts dl{ display:flex; flex-direction: column; gap: 12px; }
.quick-facts .row, .meta-facts .row{ display:flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.quick-facts .row:last-child, .meta-facts .row:last-child{ border-bottom: none; padding-bottom: 0; }
.quick-facts dt, .meta-facts dt{ font-size: 0.82rem; color: #66738a; white-space:nowrap; }
.quick-facts dd, .meta-facts dd{ font-family: var(--display); font-weight: 600; font-size: 0.95rem; text-align: right; }

.toc{ display:flex; flex-direction: column; gap: 2px; }
.toc a{ font-size: 0.86rem; color: #8b98ad; padding: 9px 10px; border-radius: 9px; display:flex; align-items:center; gap: 10px; transition: background 0.15s, color 0.15s; }
.toc a:hover{ background: rgba(20,184,166,0.1); color: var(--leaf); }
.toc a .n{ font-family: var(--mono); font-size: 0.68rem; color: var(--amber-dim); width: 18px; flex-shrink:0; }

.care-meter{ display:flex; flex-direction: column; gap: 14px; }
.meter-row .top{ display:flex; justify-content: space-between; margin-bottom: 7px; }
.meter-row .top span:first-child{ font-size: 0.82rem; color: #8b98ad; }
.meter-row .top span:last-child{ font-family: var(--mono); font-size: 0.72rem; color: var(--amber-dim); }
.meter-track{ height: 5px; background: var(--line-soft); border-radius: 9px; overflow:hidden; }
.meter-fill{ height: 100%; background: var(--amber); border-radius: 9px; }

.gear-mini{ display:flex; flex-direction: column; gap: 4px; }
.gear-mini a{ display:flex; justify-content: space-between; align-items: center; padding: 10px 8px; border-radius: 9px; font-size: 0.84rem; transition: background 0.15s; }
.gear-mini a:hover{ background: rgba(20,184,166,0.08); }
.gear-mini .arrow{ color: var(--amber-dim); font-family: var(--mono); font-size: 0.8rem; }

.related-mini{ display:flex; flex-direction: column; gap: 4px; }
.related-mini a{ display:flex; align-items:center; gap: 12px; padding: 10px 8px; border-radius: 9px; transition: background 0.15s; }
.related-mini a:hover{ background: rgba(20,184,166,0.08); }
.related-thumb{ width: 40px; height: 40px; border-radius: 9px; flex-shrink:0; background: var(--tank-2); position:relative; overflow:hidden; }
.related-thumb svg, .related-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.related-mini .name{ font-size: 0.84rem; font-weight: 500; display:block; }
.related-mini .latin{ font-family: var(--mono); font-style: italic; font-size: 0.68rem; color: #8b98ad; }

.side-cta{ background: var(--tank-2); color: var(--leaf); text-align: center; }
.side-cta h3{ color: var(--leaf-dim); }
.side-cta p{ font-size: 0.86rem; color: var(--leaf-dim); margin-bottom: 16px; }
.side-cta .btn{ display:block; font-family: var(--body); font-weight:600; font-size: 0.85rem; background: var(--green); color: var(--ink); padding: 11px 0; border-radius: 10px; text-align: center; transition: background 0.2s; border:none; width:100%; cursor:pointer; }
.side-cta .btn:hover{ background: var(--sand); }

/* ---- in-article equipment affiliate callout: same visual language as
   the Guide plugin's "Gear Note" boxes — amber left border, soft tint
   background, blends with the surrounding prose rather than reading as
   a banner ad. The small label and disclosure line are what mark it as
   a product link, not a heavier visual treatment. ---- */
.equipment-cta-block{ border-left: 3px solid var(--amber-dim); background: rgba(20,184,166,0.06); padding: 18px 22px; margin: 28px 0; border-radius: 0 10px 10px 0; }
.equipment-cta-label{ font-family: var(--mono); font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber-dim); margin-bottom: 8px; display:block; }
.equipment-cta-block p{ margin-bottom: 14px; color:#cfd9ea; }
.equipment-cta-block .btn-row{ display:flex; align-items:center; gap: 14px; flex-wrap: wrap; }
.equipment-cta-block a.buy-btn{ font-family: var(--body); font-size: 0.85rem; font-weight: 600; background: var(--green); color: var(--ink); padding: 11px 20px; border-radius: 10px; white-space: nowrap; transition: background 0.2s; }
.equipment-cta-block a.buy-btn:hover{ background: var(--amber-dim); }
.equipment-cta-block .disclosure{ font-size: 0.74rem; color:#8b98ad; margin-top: 14px; margin-bottom: 0; }

/* ============== RELATED (dark sections, both archives use this) ============== */
.related-section{ background: var(--ink); padding: 56px 0; color: var(--leaf); }
.related-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
/* auto-fit prevents the same empty-grid-cell issue .guides-grid had —
   with only 1 or 2 related guides (not a full 3), a fixed
   repeat(3,1fr) would leave visible empty cells showing the grid's own
   background through the gap. */
.related-grid.cols-3{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap:1px; background: var(--line); }
.related-card{ background: var(--ink); transition: background 0.25s; display:block; overflow:hidden; }
.related-card:hover{ background: #0e1830; }
.related-card-thumb{ aspect-ratio: 16/10; position:relative; background: var(--tank-2); overflow:hidden; }
.related-card-thumb svg, .related-card-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.related-card-body{ padding: 24px 28px 28px; }
.related-card .guide-tag{ font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 16px; display:block; }
.related-card h4{ font-family: var(--display); font-size: 1.12rem; font-weight: 600; line-height: 1.3; margin-bottom: 12px; color: var(--sand); }
.related-card p{ color: var(--leaf-dim); font-size: 0.88rem; margin-bottom: 18px; }
.related-card .meta{ font-family: var(--mono); font-size: 0.68rem; color: var(--leaf-dim); display:flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }

/* ============== ARCHIVE PAGES ============== */
.archive-header{ background: var(--ink); padding: 64px 0 0; }
.archive-header .eyebrow{ margin-bottom: 18px; }
.archive-header h1{ font-family: var(--display); font-weight:600; font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--sand); margin-bottom: 16px; line-height:1.1; }
.archive-header p{ color: var(--leaf-dim); max-width: 540px; margin-bottom: 44px; font-size: 1.02rem; }

.filter-bar{ display:flex; gap: 10px; flex-wrap: wrap; padding: 28px 0; border-bottom: 1px solid var(--line-soft); margin-bottom: 48px; }
.filter-pill{ font-family: var(--mono); font-size: 0.78rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-soft); color: #8b98ad; transition: all 0.2s; }
.filter-pill:hover{ border-color: var(--amber-dim); color: var(--leaf); }
.filter-pill.active{ background: var(--amber); color: var(--ink); border-color: var(--amber); }

.pagination{ display:flex; justify-content:center; gap: 8px; margin-top: 56px; }
.pagination a, .pagination span{ font-family: var(--body); font-size: 0.82rem; padding: 9px 15px; border-radius: 9px; border: 1px solid var(--line-soft); color: var(--leaf); }
.pagination .current{ background: var(--amber); color: var(--ink); border-color: var(--amber); }
.pagination a:hover{ border-color: var(--amber-dim); }

.empty-state{ text-align:center; padding: 64px 0; color: #66738a; }
.empty-state h3{ font-family: var(--display); font-size: 1.4rem; color: var(--leaf); margin-bottom: 10px; }

/* ============== FOOTER ============== */
footer.site-footer{ background: var(--ink); color: var(--leaf-dim); padding: 64px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand .brand{ margin-bottom: 14px; }
.footer-brand p{ font-size: 0.88rem; max-width: 280px; color: var(--leaf-dim); }
.footer-col h5{ font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); margin-bottom: 18px; }
.footer-col a{ display:block; font-size: 0.88rem; color: var(--leaf-dim); margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover{ color: var(--sand); }
.footer-bottom{ display:flex; justify-content: space-between; align-items:center; padding-top: 28px; font-family: var(--mono); font-size: 0.72rem; flex-wrap:wrap; gap:10px; }

/* ============== WP CORE DEFAULTS ============== */
.alignleft{ float:left; margin-right:24px; }
.alignright{ float:right; margin-left:24px; }
.aligncenter{ margin-left:auto; margin-right:auto; }
.wp-caption{ max-width:100%; }
.screen-reader-text{ position:absolute; left:-9999px; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1020px){
  .content-shell{ grid-template-columns: 1fr; }
  .sidebar{ position: static; }
  .related-grid{ grid-template-columns: repeat(2, 1fr); }
  .related-grid.cols-3{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .species-grid{ grid-template-columns: repeat(2, 1fr); }
  .origin-section{ grid-template-columns: 1fr; }
  .origin-visual{ min-height: 320px; }
  .origin-text{ padding: 64px 32px; }
  .origin-empty{ padding: 28px 32px; }
  .equipment-row{ grid-template-columns: 100px 1fr; row-gap: 14px; }
  .equipment-rating, .equipment-cta{ grid-column: 2; justify-self:start; text-align:left; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .hero-grid{ grid-template-columns: 1fr; gap: 48px; }
  .tank-visual{ aspect-ratio: 16/10; }
  .guides-grid{ grid-template-columns: 1fr; }
  .fish-hero-grid{ grid-template-columns: 1fr; }
  .fish-photo{ aspect-ratio: 16/10; }
  .stat-strip{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 760px){
  .figure-pair{ grid-template-columns: 1fr; }
}
@media (max-width: 680px){
  .wrap{ padding: 0 20px; }
  nav.links{ display:none; }
  .menu-toggle{ display:block; }
  .hero{ padding-top: 64px; }
  .hero-grid{ padding: 0 20px; }
  .hero-stats{ gap: 24px; }
  section{ padding: 40px 0; }
  .species-grid{ grid-template-columns: 1fr; }
  .gallery-strip{ height: 130px; }
  .related-grid, .related-grid.cols-3{ grid-template-columns: 1fr; }
  .cta-form{ flex-direction:column; }
  .footer-grid{ grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
  .nav{ padding: 16px 20px; }
  .content-shell{ padding: 44px 0 64px; gap: 40px; }
  .article-body h2{ flex-direction: column; gap: 4px; }
  .data-table td:first-child{ width: 130px; }
}

/* ==========================================================
   TOOLS — Tank Size Calculator & Fish Compatibility Checker
   Added as part of the blue-redesign pass. Reuses the same
   design tokens as the rest of the site (var(--tank), var(--amber)
   now teal, var(--green) for primary actions) rather than
   introducing a separate palette, so the tool pages read as
   part of the same site instead of a bolted-on app.
========================================================== */
.tool-hero{ position:relative; border-radius:20px; overflow:hidden; margin:28px 0 40px; border:1px solid var(--line); min-height:220px; display:flex; align-items:center; background: linear-gradient(120deg, var(--ink) 0%, var(--tank) 45%, #0c2b2a 100%); }
.tool-hero-content{ position:relative; z-index:2; padding:40px 44px; max-width:620px; }
.tool-hero h1{ font-family:var(--display); font-size:clamp(1.8rem,3.2vw,2.6rem); font-weight:700; letter-spacing:-0.01em; line-height:1.15; color:var(--sand); }
.tool-hero p{ margin-top:12px; font-size:0.98rem; color:var(--leaf); max-width:460px; line-height:1.6; }
.tool-trust{ margin-top:22px; display:flex; flex-wrap:wrap; gap:24px; }
.tool-trust-item{ display:flex; gap:9px; align-items:flex-start; max-width:150px; }
.tool-trust-ic{ width:30px; height:30px; border-radius:9px; background:rgba(20,184,166,0.14); border:1px solid rgba(20,184,166,0.28); display:grid; place-items:center; flex-shrink:0; }
.tool-trust-ic svg{ width:14px; height:14px; stroke:var(--amber); stroke-width:1.8; fill:none; }
.tool-trust-item b{ font-size:12px; font-weight:700; display:block; color:var(--sand); }
.tool-trust-item span{ font-size:11px; color:var(--leaf-dim); line-height:1.4; }

.tool-layout{ display:grid; grid-template-columns:1.5fr 1fr; gap:22px; align-items:start; margin-bottom:40px; }
.tool-col{ display:flex; flex-direction:column; gap:20px; }
.tool-panel{ background: var(--tank-2); border:1px solid var(--line); border-radius:16px; padding:26px 28px; }
.tool-panel-head{ display:flex; align-items:flex-start; gap:12px; margin-bottom:20px; }
.tool-step-num{ width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:12.5px; font-weight:700; display:grid; place-items:center; flex-shrink:0; margin-top:1px; }
.tool-panel-head h2{ font-family:var(--display); font-size:16.5px; font-weight:700; color:var(--sand); }
.tool-panel-head p{ font-size:12.5px; color:var(--leaf-dim); margin-top:3px; }

.tool-search-row{ display:flex; gap:10px; margin-bottom:20px; }
.tool-search{ flex:1; display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.03); border:1px solid var(--line); border-radius:10px; padding:11px 14px; }
.tool-search svg{ width:16px; height:16px; stroke:var(--leaf-dim); flex-shrink:0; }
.tool-search input{ flex:1; background:none; border:none; outline:none; color:var(--sand); font-size:14px; font-family:var(--body); }
.tool-search input::placeholder{ color:var(--leaf-dim); }

.tool-fish-row{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.02); border:1px solid var(--line); border-radius:11px; padding:10px 12px; margin-bottom:9px; }
.tool-fish-avatar{ width:38px; height:38px; border-radius:9px; flex-shrink:0; overflow:hidden; }
.tool-fish-avatar svg{ width:100%; height:100%; }
.tool-fish-info{ flex:1; min-width:0; }
.tool-fish-info b{ font-size:13.5px; font-weight:600; display:block; color:var(--sand); }
.tool-fish-info span{ font-size:11px; color:var(--leaf-dim); font-style:italic; }
.tool-status-pill{ font-size:10.5px; font-weight:700; padding:4px 10px; border-radius:99px; display:inline-block; margin-top:4px; background:rgba(34,197,94,0.14); color:#4ade80; }
.tool-qty{ display:flex; align-items:center; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.tool-qty button{ width:28px; height:28px; background:rgba(255,255,255,.04); border:none; color:var(--leaf-dim); font-size:15px; cursor:pointer; }
.tool-qty button:hover{ background:rgba(59,130,246,.15); color:#fff; }
.tool-qty .val{ width:34px; text-align:center; font-size:13.5px; font-weight:600; }
.tool-remove{ width:32px; height:32px; border-radius:8px; display:grid; place-items:center; color:#ef4444; background:rgba(239,68,68,0.08); border:none; cursor:pointer; flex-shrink:0; }
.tool-remove:hover{ background:rgba(239,68,68,0.18); }
.tool-remove svg{ width:15px; height:15px; }

.tool-add-fish{ display:flex; align-items:center; justify-content:center; gap:9px; border:1.5px dashed var(--line); border-radius:11px; padding:13px; color:var(--leaf-dim); font-size:13.5px; font-weight:600; cursor:pointer; background:none; width:100%; margin-top:6px; font-family:var(--body); }
.tool-add-fish:hover{ border-color:var(--blue-light); color:var(--sand); background:rgba(59,130,246,.06); }

.tool-opt-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.tool-opt-grid4{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.tool-opt-card{ background:rgba(255,255,255,.02); border:1.5px solid var(--line); border-radius:12px; padding:16px 8px; display:flex; flex-direction:column; align-items:center; gap:9px; text-align:center; cursor:pointer; transition:0.22s; }
.tool-opt-card svg{ width:20px; height:20px; stroke:var(--leaf-dim); stroke-width:1.7; fill:none; transition:0.2s; }
.tool-opt-card span{ font-size:12.5px; font-weight:600; color:var(--leaf-dim); transition:0.2s; }
.tool-opt-card:hover{ border-color:var(--line); background:rgba(255,255,255,.04); }
.tool-opt-card.selected{ border-color:var(--blue-light); background:rgba(59,130,246,.1); }
.tool-opt-card.selected svg{ stroke:var(--blue-light); }
.tool-opt-card.selected span{ color:var(--sand); }

.tool-check-btn{ width:100%; margin-top:8px; padding:15px; font-size:15px; border-radius:12px; }
.tool-check-hint{ margin-top:12px; font-size:11.5px; color:var(--leaf-dim); line-height:1.5; text-align:center; }

.tool-results{ background:var(--tank-2); border:1px solid rgba(34,197,94,.25); border-radius:16px; overflow:hidden; }
.tool-results-head{ display:flex; align-items:center; gap:10px; padding:18px 24px; border-bottom:1px solid var(--line); font-size:14.5px; font-weight:700; color:var(--sand); }
.tool-results-head svg{ width:18px; height:18px; stroke:#4ade80; stroke-width:2.2; fill:none; }
.tool-result-highlight{ padding:22px 24px; text-align:center; }
.tool-result-eyebrow{ display:flex; align-items:center; justify-content:center; gap:7px; font-size:11.5px; color:var(--leaf-dim); font-weight:600; margin-bottom:10px; }
.tool-result-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:#22c55e; }
.tool-result-num{ font-family:var(--display); font-size:44px; font-weight:800; line-height:1; color:var(--sand); }
.tool-result-num span{ font-size:15px; font-weight:600; color:var(--leaf-dim); margin-left:6px; }
.tool-result-sub{ font-size:13px; color:var(--leaf-dim); margin-top:6px; }
.tool-ideal-pill{ display:inline-block; margin-top:14px; background:rgba(34,197,94,.16); color:#4ade80; font-size:11.5px; font-weight:700; padding:5px 14px; border-radius:99px; }
.tool-result-note{ font-size:12px; color:var(--leaf-dim); line-height:1.55; margin-top:12px; }

.tool-donut-wrap{ position:relative; width:150px; height:150px; margin:8px auto; }
.tool-donut-wrap svg{ width:100%; height:100%; transform:rotate(-90deg); }
.tool-donut-track{ stroke:rgba(255,255,255,.06); }
.tool-donut-bar{ stroke:#22c55e; stroke-linecap:round; transition:stroke-dashoffset 1.4s cubic-bezier(.22,.61,.36,1); }
.tool-donut-center{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.tool-donut-pct{ font-family:var(--display); font-size:28px; font-weight:800; color:var(--sand); }
.tool-donut-lbl{ font-size:11px; color:var(--leaf-dim); font-weight:600; margin-top:2px; }

.tool-fl-row{ display:flex; align-items:center; gap:12px; padding:11px 0; border-bottom:1px solid var(--line); }
.tool-fl-row:last-child{ border-bottom:none; }
.tool-fl-avatar{ width:34px; height:34px; border-radius:8px; flex-shrink:0; overflow:hidden; }
.tool-fl-avatar svg{ width:100%; height:100%; }
.tool-fl-info{ flex:1; min-width:0; }
.tool-fl-info b{ font-size:13.5px; font-weight:600; color:var(--sand); }
.tool-fl-info span{ display:block; font-size:11px; color:var(--leaf-dim); margin-top:1px; }

.tool-matrix-wrap{ display:grid; grid-template-columns:1.7fr 1fr; gap:20px; margin-bottom:40px; align-items:start; }
.tool-section-card{ background:var(--tank-2); border:1px solid var(--line); border-radius:16px; padding:24px 26px; }
.tool-section-card h2{ font-family:var(--display); font-size:15.5px; font-weight:700; color:var(--sand); display:flex; align-items:center; gap:9px; margin-bottom:18px; }
.tool-section-card h2 svg{ width:16px; height:16px; stroke:#4ade80; }
table.tool-matrix{ width:100%; border-collapse:collapse; }
table.tool-matrix th, table.tool-matrix td{ padding:11px 10px; text-align:center; font-size:12.5px; }
table.tool-matrix thead th{ color:var(--leaf-dim); font-weight:600; border-bottom:1px solid var(--line); }
table.tool-matrix thead th img, table.tool-matrix thead th svg{ width:26px; height:26px; border-radius:7px; }
table.tool-matrix thead th b{ font-size:12px; font-weight:700; color:var(--sand); display:block; }
table.tool-matrix thead th i{ font-size:10px; color:var(--leaf-dim); font-style:italic; }
table.tool-matrix tbody th{ text-align:left; font-weight:600; color:var(--sand); border-right:1px solid var(--line); }
table.tool-matrix tbody td{ border-bottom:1px solid var(--line); }
table.tool-matrix tbody tr:last-child td, table.tool-matrix tbody tr:last-child th{ border-bottom:none; }
.tool-mx-tag{ display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:5px 9px; border-radius:7px; background:rgba(34,197,94,.12); color:#4ade80; }
.tool-mx-tag.self{ background:none; color:var(--leaf-dim); }
.tool-mx-tag svg{ width:10px; height:10px; }

.tool-levels{ display:flex; flex-direction:column; gap:16px; margin-bottom:18px; }
.tool-level-item{ display:flex; gap:12px; }
.tool-level-dot{ width:20px; height:20px; border-radius:6px; display:grid; place-items:center; flex-shrink:0; margin-top:1px; }
.tool-level-dot svg{ width:11px; height:11px; }
.tool-level-dot.ok{ background:rgba(34,197,94,.15); }
.tool-level-dot.ok svg{ stroke:#4ade80; }
.tool-level-dot.warn{ background:rgba(245,158,11,.15); }
.tool-level-dot.warn svg{ stroke:#f59e0b; }
.tool-level-dot.bad{ background:rgba(239,68,68,.15); }
.tool-level-dot.bad svg{ stroke:#ef4444; }
.tool-level-text b{ font-size:13px; font-weight:700; display:block; margin-bottom:2px; }
.tool-level-text.ok b{ color:#4ade80; }
.tool-level-text.warn b{ color:#f59e0b; }
.tool-level-text.bad b{ color:#ef4444; }
.tool-level-text p{ font-size:12px; color:var(--leaf-dim); line-height:1.5; }

.tool-tips-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:40px; }
.tool-tip-card{ background:var(--tank-2); border:1px solid var(--line); border-radius:15px; padding:20px; }
.tool-tip-ic{ width:38px; height:38px; border-radius:10px; display:grid; place-items:center; margin-bottom:14px; background:rgba(20,184,166,.12); }
.tool-tip-ic svg{ width:18px; height:18px; stroke:var(--amber); stroke-width:1.8; fill:none; }
.tool-tip-card h4{ font-family:var(--display); font-size:14px; font-weight:700; color:var(--sand); margin-bottom:8px; }
.tool-tip-card p{ font-size:12px; color:var(--leaf-dim); line-height:1.6; }

.tool-gauge-wrap{ position:relative; width:180px; height:100px; margin:0 auto; }
.tool-gauge-wrap svg{ width:100%; height:100%; }
.tool-gauge-track{ stroke:rgba(255,255,255,.06); }
.tool-gauge-bar{ stroke-linecap:round; transition:stroke-dashoffset 1.4s cubic-bezier(.22,.61,.36,1); }
.tool-gauge-center{ position:absolute; left:0; right:0; bottom:6px; text-align:center; }
.tool-gauge-pct{ font-family:var(--display); font-size:30px; font-weight:800; color:var(--sand); }

.tool-save-bar{ display:flex; align-items:center; gap:18px; background:var(--tank-2); border:1px solid var(--line); border-radius:16px; padding:22px 28px; margin-bottom:56px; flex-wrap:wrap; }
.tool-save-ic{ width:40px; height:40px; border-radius:11px; background:rgba(34,197,94,.14); display:grid; place-items:center; flex-shrink:0; }
.tool-save-ic svg{ width:19px; height:19px; stroke:#4ade80; fill:none; stroke-width:1.8; }
.tool-save-text b{ font-size:14.5px; font-weight:700; color:var(--sand); display:block; }
.tool-save-text p{ font-size:12.5px; color:var(--leaf-dim); margin-top:3px; }

@media(max-width:1020px){
  .tool-layout{ grid-template-columns:1fr; }
  .tool-matrix-wrap{ grid-template-columns:1fr; }
  .tool-tips-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:680px){
  .tool-opt-grid3, .tool-opt-grid4{ grid-template-columns:repeat(2,1fr); }
  .tool-tips-grid{ grid-template-columns:1fr; }
  table.tool-matrix{ font-size:11px; }
}

/* ==========================================================
   HOMEPAGE HUB LAYOUT — rebuilt to match the approved mockup
   structure (top bar, search hero + stats card, quick tools
   grid, category grid, featured grid, trio, brand strip,
   newsletter). Reuses the site's existing tokens throughout.
========================================================== */
@keyframes hub-fadeUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@keyframes hub-floatY{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes hub-bubble{0%{transform:translateY(0) scale(.6);opacity:0}15%{opacity:.45}100%{transform:translateY(-260px) scale(1.05);opacity:0}}
.hub-reveal{opacity:0;transform:translateY(24px);transition:opacity .6s cubic-bezier(.22,.61,.36,1),transform .6s cubic-bezier(.22,.61,.36,1)}
.hub-reveal.in{opacity:1;transform:translateY(0)}
.hub-reveal.d1{transition-delay:.08s}.hub-reveal.d2{transition-delay:.16s}.hub-reveal.d3{transition-delay:.24s}.hub-reveal.d4{transition-delay:.32s}

/* ---- top bar ---- */
.hub-topbar{ background:#03060c; border-bottom:1px solid rgba(255,255,255,.04); font-size:12.5px; color:var(--muted); }
.hub-topbar .wrap{ display:flex; align-items:center; justify-content:space-between; height:38px; }
.hub-topbar-left{ display:flex; align-items:center; gap:8px; }
.hub-topbar-right{ display:flex; align-items:center; gap:22px; }
.hub-topbar-right a{ color:var(--muted); transition:color .2s; }
.hub-topbar-right a:hover{ color:#fff; }
.hub-topbar-social{ display:flex; gap:5px; margin-left:6px; padding-left:18px; border-left:1px solid rgba(255,255,255,.08); }
.hub-topbar-social a{ width:24px; height:24px; border-radius:6px; display:grid; place-items:center; color:var(--muted); transition:.2s; }
.hub-topbar-social a:hover{ color:#fff; background:rgba(255,255,255,.07); }
.hub-topbar-social svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media(max-width:820px){ .hub-topbar-right{ display:none; } }

/* ---- nav search icon reuse ---- */
.hub-icon-btn{ width:36px; height:36px; border-radius:9px; display:grid; place-items:center; color:var(--muted); cursor:pointer; transition:.2s; }
.hub-icon-btn:hover{ color:#fff; background:rgba(255,255,255,.06); }

/* ---- hero ---- */
.hub-hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--border); background:
  radial-gradient(900px 520px at 78% 30%, rgba(16,64,84,.35), transparent 65%),
  radial-gradient(700px 480px at 60% 85%, rgba(10,40,64,.4), transparent 70%),
  linear-gradient(115deg,#040910 0%,#061323 45%,#07202f 78%,#051220 100%); }
.hub-light-rays{ position:absolute; inset:-20% 0 0 0; pointer-events:none; opacity:.5; mix-blend-mode:screen;
  background:repeating-linear-gradient(104deg,transparent 0 90px,rgba(110,190,230,.06) 90px 130px,transparent 130px 260px); }
.hub-bubbles{ position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.hub-bubbles span{ position:absolute; bottom:-40px; border-radius:50%; background:radial-gradient(circle at 35% 30%, rgba(180,220,255,.5), rgba(120,180,255,.08)); animation:hub-bubble linear infinite; }
.hub-hero .wrap{ position:relative; display:grid; grid-template-columns:1.1fr .9fr; gap:40px; padding-top:64px; padding-bottom:68px; align-items:center; }
.hub-hero h1{ font-family:var(--display); font-size:clamp(38px,4.9vw,60px); line-height:1.06; font-weight:800; letter-spacing:-.025em; color:var(--sand); animation:hub-fadeUp .8s .1s both; }
.hub-hero h1 .accent{ color:var(--blue-light); }
.hub-hero-sub{ margin-top:18px; font-size:16px; color:var(--leaf); max-width:460px; line-height:1.6; animation:hub-fadeUp .8s .25s both; }
.hub-hero-search{ margin-top:28px; display:flex; background:rgba(10,16,30,.82); border:1px solid var(--border-2); border-radius:13px; padding:7px 7px 7px 18px; max-width:520px; backdrop-filter:blur(8px); animation:hub-fadeUp .8s .4s both; transition:border-color .25s, box-shadow .25s; }
.hub-hero-search:focus-within{ border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.14); }
.hub-hero-search svg{ flex-shrink:0; align-self:center; opacity:.55; }
.hub-hero-search input{ flex:1; background:none; border:none; outline:none; color:#fff; font-size:15px; font-family:var(--body); padding:0 14px; }
.hub-hero-search input::placeholder{ color:var(--muted-2); }
.hub-hero-search button{ padding:11px 24px; border-radius:9px; background:var(--blue); color:#fff; border:none; font-weight:600; font-size:14px; cursor:pointer; transition:background .2s; }
.hub-hero-search button:hover{ background:#4d8ff8; }
.hub-pop-searches{ margin-top:16px; display:flex; align-items:center; gap:9px; flex-wrap:wrap; font-size:12.5px; color:var(--muted-2); animation:hub-fadeUp .8s .55s both; }
.hub-chip{ padding:6px 13px; border-radius:99px; border:1px solid var(--border); background:rgba(255,255,255,.03); color:#aab6ca; font-size:12px; transition:.2s; }
.hub-chip:hover{ border-color:rgba(96,165,250,.5); color:#fff; background:rgba(59,130,246,.12); }

.hub-hero-stats{ background:rgba(8,13,25,.72); border:1px solid var(--border-2); border-radius:20px; backdrop-filter:blur(16px); display:grid; grid-template-columns:1fr 1fr; overflow:hidden; animation:hub-fadeUp .9s .45s both, hub-floatY 7s 1.4s ease-in-out infinite; box-shadow:0 30px 80px rgba(0,0,0,.5); }
.hub-stat{ padding:26px 22px; border-bottom:1px solid var(--border); display:flex; flex-direction:column; align-items:center; text-align:center; gap:8px; transition:background .25s; }
.hub-stat:nth-child(odd){ border-right:1px solid var(--border); }
.hub-stat:nth-child(5),.hub-stat:nth-child(6){ border-bottom:none; }
.hub-stat:hover{ background:rgba(96,165,250,.05); }
.hub-stat-icon{ width:40px; height:40px; border-radius:11px; display:grid; place-items:center; font-size:18px; background:rgba(96,165,250,.1); border:1px solid rgba(96,165,250,.18); }
.hub-stat-num{ font-family:var(--display); font-size:21px; font-weight:800; letter-spacing:-.02em; color:var(--sand); }
.hub-stat-label{ font-size:11.5px; color:var(--muted); }

/* ---- quick tools ---- */
.hub-tools-panel{ background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--border); border-radius:18px; padding:24px 26px 28px; margin:32px 0; }
.hub-section-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; gap:16px; flex-wrap:wrap; }
.hub-section-head h2{ font-family:var(--display); font-size:20px; font-weight:800; letter-spacing:-.01em; color:var(--sand); }
.hub-view-all{ font-size:13px; font-weight:600; color:var(--blue-light); display:inline-flex; align-items:center; gap:7px; }
.hub-tools-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(104px, 1fr)); gap:10px; }
.hub-tool{ display:flex; flex-direction:column; align-items:center; gap:11px; text-align:center; padding:6px 2px; border-radius:12px; }
.hub-tool-icon{ width:54px; height:54px; border-radius:14px; background:#101a2e; border:1px solid var(--border); display:grid; place-items:center; font-size:21px; transition:.28s cubic-bezier(.34,1.56,.64,1); }
.hub-tool:hover .hub-tool-icon{ transform:translateY(-5px) scale(1.06); border-color:rgba(96,165,250,.55); background:rgba(59,130,246,.14); }
.hub-tool-name{ font-size:11px; color:var(--muted); line-height:1.35; font-weight:500; }
.hub-tool:hover .hub-tool-name{ color:var(--sand); }

/* ---- category grid ---- */
.hub-cat-grid{ display:flex; flex-wrap:wrap; gap:16px; }
.hub-cat-grid > *{ flex:1 1 190px; max-width:232px; }
.hub-cat-card{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:1.7/1; border:1px solid var(--border); background:var(--card); transition:transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s, border-color .35s; }
.hub-cat-card img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.22,.61,.36,1); }
.hub-cat-card::after{ content:''; position:absolute; inset:0; background:linear-gradient(0deg, rgba(3,7,14,.92) 8%, rgba(3,7,14,.28) 55%, rgba(3,7,14,.05)); }
.hub-cat-card:hover{ transform:translateY(-6px); border-color:rgba(96,165,250,.45); }
.hub-cat-card:hover img{ transform:scale(1.08); }
.hub-cat-info{ position:absolute; left:16px; right:14px; bottom:13px; z-index:2; }
.hub-cat-info h3{ font-family:var(--display); font-size:15px; font-weight:700; color:var(--sand); }
.hub-cat-info p{ font-size:11.5px; color:#9fb0c8; margin-top:3px; }

/* ---- featured article grid ---- */
.hub-art-grid{ display:flex; flex-wrap:wrap; gap:18px; }
.hub-art-grid > *{ flex:1 1 240px; max-width:286px; }
.hub-art-card{ background:var(--card); border:1px solid var(--border); border-radius:14px; overflow:hidden; transition:transform .35s cubic-bezier(.22,.61,.36,1), border-color .35s; display:flex; flex-direction:column; }
.hub-art-card:hover{ transform:translateY(-6px); border-color:rgba(96,165,250,.4); }
.hub-art-thumb{ position:relative; aspect-ratio:16/9.4; overflow:hidden; background:var(--panel-2); }
.hub-art-thumb img{ width:100%; height:100%; object-fit:cover; transition:transform .6s cubic-bezier(.22,.61,.36,1); }
.hub-art-card:hover .hub-art-thumb img{ transform:scale(1.07); }
.hub-badge{ position:absolute; top:11px; left:11px; font-size:10px; font-weight:700; letter-spacing:.06em; padding:5px 10px; border-radius:7px; color:#fff; z-index:2; text-transform:uppercase; background:var(--blue); }
.hub-art-body{ padding:16px 17px 15px; display:flex; flex-direction:column; gap:11px; flex:1; }
.hub-art-body h3{ font-family:var(--display); font-size:15px; font-weight:700; line-height:1.4; color:var(--sand); }
.hub-art-card:hover .hub-art-body h3{ color:var(--blue-light); }
.hub-art-meta{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; font-size:11.5px; color:var(--muted-2); }

/* ---- trio ---- */
.hub-trio{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.hub-trio-card{ background:linear-gradient(160deg,var(--panel),var(--panel-2)); border:1px solid var(--border); border-radius:16px; padding:26px; display:flex; flex-direction:column; gap:12px; position:relative; overflow:hidden; transition:transform .35s, border-color .35s; }
.hub-trio-card:hover{ transform:translateY(-5px); border-color:var(--border-2); }
.hub-trio-card h3{ font-family:var(--display); font-size:18px; font-weight:800; letter-spacing:-.01em; color:var(--sand); }
.hub-trio-card p{ font-size:13px; color:var(--muted); line-height:1.6; max-width:80%; }
.hub-trio-art{ position:absolute; right:14px; top:50%; transform:translateY(-50%); font-size:56px; opacity:.9; animation:hub-floatY 6s ease-in-out infinite; }

/* ---- brand marquee ---- */
@keyframes hub-marquee{ 0%{ transform:translateX(0); } 100%{ transform:translateX(-50%); } }
.hub-brands{ background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:22px 0; margin:32px 0; overflow:hidden; position:relative; }
.hub-brand-track{ display:flex; gap:70px; width:max-content; animation:hub-marquee 28s linear infinite; align-items:center; padding:0 40px; }
.hub-brands:hover .hub-brand-track{ animation-play-state:paused; }
.hub-brand{ font-size:20px; font-weight:800; letter-spacing:.06em; color:#7f8ca3; white-space:nowrap; text-transform:uppercase; font-style:italic; }

/* ---- newsletter ---- */
.hub-news{ margin:32px 0 56px; border-radius:20px; overflow:hidden; position:relative; background:linear-gradient(105deg,#071626 0%,#0a2233 55%,#0c2b3a 100%); border:1px solid rgba(96,165,250,.15); padding:40px 44px; display:grid; grid-template-columns:1.05fr .95fr; gap:34px; align-items:center; }
.hub-news-left{ display:flex; gap:18px; align-items:flex-start; }
.hub-news-icon{ width:58px; height:58px; flex-shrink:0; border-radius:15px; background:linear-gradient(140deg,var(--teal),#0ea5e9); display:grid; place-items:center; font-size:26px; }
.hub-news h2{ font-family:var(--display); font-size:22px; font-weight:800; line-height:1.25; color:var(--sand); letter-spacing:-.01em; }
.hub-news p{ margin-top:9px; font-size:13px; color:#a8bacb; line-height:1.6; max-width:320px; }
.hub-news-form{ display:flex; gap:10px; }
.hub-news-form input{ flex:1; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:11px; padding:14px 18px; color:#fff; font-size:14px; font-family:var(--body); outline:none; transition:.25s; }
.hub-news-form input::placeholder{ color:#7d8ea0; }
.hub-news-form input:focus{ border-color:rgba(34,197,94,.6); }
.hub-news-form button{ padding:14px 24px; border-radius:11px; background:var(--green); color:#04120a; border:none; font-weight:600; font-size:14px; cursor:pointer; white-space:nowrap; }
.hub-news-trust{ grid-column:2; display:flex; gap:22px; font-size:12px; color:#8fa2b5; margin-top:-14px; }

@media(max-width:1100px){
  .hub-tools-grid{ grid-template-columns:repeat(4,1fr); }
  .hub-cat-grid{ grid-template-columns:repeat(3,1fr); }
  .hub-art-grid{ grid-template-columns:repeat(2,1fr); }
}
@media(max-width:820px){
  .hub-hero .wrap{ grid-template-columns:1fr; padding-top:50px; padding-bottom:60px; }
  .hub-trio{ grid-template-columns:1fr; }
  .hub-news{ grid-template-columns:1fr; padding:30px 24px; }
  .hub-news-trust{ grid-column:1; margin-top:0; }
  .hub-cat-grid{ grid-template-columns:repeat(2,1fr); }
  .hub-tools-grid{ grid-template-columns:repeat(3,1fr); }
}
@media(max-width:560px){
  .hub-art-grid{ grid-template-columns:1fr; }
  .hub-tools-grid{ grid-template-columns:repeat(2,1fr); }
  .hub-news-form{ flex-direction:column; }
}

/* ==========================================================
   HOMEPAGE REFINEMENTS — closing the gap with the approved
   mockup: hero focal artwork, crisp line icons in place of
   emoji, and nav breathing room at mid widths.
========================================================== */

/* Hero focal artwork (betta). Sits behind the copy on the right,
   fades out on small screens so it never crowds the headline. */
.hub-hero-art{ position:absolute; right:15%; top:50%; transform:translateY(-52%); width:min(32vw,440px); opacity:.5; pointer-events:none; z-index:0; filter:drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hub-hero-art .swim{ animation:hub-swim 9s ease-in-out infinite; transform-origin:40% 50%; }
.hub-hero-art .fin{ animation:hub-fin 5s ease-in-out infinite; transform-origin:46% 50%; }
.hub-hero-art .fin2{ animation:hub-fin 6.5s .8s ease-in-out infinite; transform-origin:40% 45%; }
@keyframes hub-swim{0%,100%{transform:translate(0,0) rotate(0)}30%{transform:translate(-14px,-10px) rotate(-1.2deg)}65%{transform:translate(8px,8px) rotate(.9deg)}}
@keyframes hub-fin{0%,100%{transform:rotate(0) scaleY(1)}50%{transform:rotate(2.4deg) scaleY(1.04)}}
.hub-hero .wrap > *{ position:relative; z-index:1; }
@media(max-width:1080px){ .hub-hero-art{ opacity:.16; right:-10%; width:80vw; } }
@media(prefers-reduced-motion:reduce){ .hub-hero-art .swim,.hub-hero-art .fin,.hub-hero-art .fin2{ animation:none; } }

/* Line icons — emoji rendered inconsistently across platforms and read as
   visual noise at these sizes, so the stat and tool tiles use inline SVG. */
.hub-stat-icon svg{ width:19px; height:19px; fill:none; stroke:var(--blue-light); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.hub-tool-icon svg{ width:22px; height:22px; fill:none; stroke:var(--blue-light); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; transition:stroke .2s; }
.hub-tool:hover .hub-tool-icon svg{ stroke:#fff; }
.hub-news-icon svg{ width:26px; height:26px; fill:none; stroke:#04120a; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.hub-trio-art svg{ width:52px; height:52px; fill:none; stroke:var(--teal); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; opacity:.55; }
.hub-news-trust svg{ width:13px; height:13px; fill:none; stroke:currentColor; stroke-width:2.2; vertical-align:-2px; margin-right:5px; }

/* Nav: the "Aquascape Journal" kicker is the first thing to go when the bar
   gets tight — it's decorative, the links are not. */
@media(max-width:1200px){ .brand .sub{ display:none; } }
@media(max-width:1100px){ nav.links{ display:none; } .menu-toggle{ display:block; } }

/* Tool tiles read better slightly tighter than the default card padding */
.hub-tool-icon{ width:50px; height:50px; }
.hub-tool-name{ font-size:10.5px; }

/* ==========================================================
   TANK SIZE CALCULATOR (working tool)
========================================================== */
.tc-hero{ padding:26px 0 30px; }
.tc-hero h1{ font-family:var(--display); font-size:clamp(28px,3.4vw,40px); font-weight:800; letter-spacing:-.02em; color:var(--sand); line-height:1.1; }
.tc-hero p{ margin-top:12px; font-size:15px; color:var(--leaf); line-height:1.6; max-width:640px; }

.tc-app{ display:grid; grid-template-columns:1.35fr 1fr; gap:22px; align-items:start; }
.tc-main{ display:flex; flex-direction:column; gap:20px; min-width:0; }
.tc-side{ display:flex; flex-direction:column; gap:16px; position:sticky; top:86px; }

.tc-panel{ background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid var(--border); border-radius:16px; padding:24px 26px; }
.tc-panel-head{ display:flex; gap:12px; align-items:flex-start; margin-bottom:18px; }
.tc-step{ width:26px; height:26px; border-radius:50%; background:var(--blue); color:#fff; font-size:12.5px; font-weight:700; display:grid; place-items:center; flex-shrink:0; margin-top:2px; }
.tc-panel-head h2{ font-family:var(--display); font-size:16.5px; font-weight:700; color:var(--sand); }
.tc-panel-head p{ font-size:12.5px; color:var(--muted); margin-top:3px; line-height:1.5; }

/* search + autocomplete */
.tc-search-wrap{ position:relative; margin-bottom:16px; }
.tc-search{ display:flex; align-items:center; gap:10px; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:11px; padding:12px 15px; transition:border-color .2s, box-shadow .2s; }
.tc-search:focus-within{ border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.13); }
.tc-search svg{ width:16px; height:16px; stroke:var(--muted-2); flex-shrink:0; }
.tc-search input{ flex:1; background:none; border:none; outline:none; color:var(--sand); font-size:14px; font-family:var(--body); min-width:0; }
.tc-search input::placeholder{ color:var(--muted-2); }
.tc-suggest{ position:absolute; left:0; right:0; top:calc(100% + 6px); background:#0c1524; border:1px solid var(--border-2); border-radius:12px; overflow:hidden; z-index:30; box-shadow:0 22px 50px rgba(0,0,0,.6); max-height:320px; overflow-y:auto; }
.tc-suggest-item{ display:flex; align-items:baseline; gap:10px; width:100%; text-align:left; padding:11px 15px; background:none; border:none; border-bottom:1px solid var(--border); color:var(--sand); font-family:var(--body); font-size:13.5px; cursor:pointer; transition:background .15s; }
.tc-suggest-item:last-child{ border-bottom:none; }
.tc-suggest-item:hover{ background:rgba(59,130,246,.14); }
.tc-suggest-item .n{ font-weight:600; }
.tc-suggest-item .l{ font-style:italic; color:var(--muted-2); font-size:11.5px; }
.tc-suggest-item .s{ margin-left:auto; color:var(--muted); font-size:11.5px; white-space:nowrap; }
.tc-nohit{ padding:14px 15px; color:var(--muted); font-size:13px; }

/* stocking rows */
.tc-stock{ display:flex; flex-direction:column; gap:9px; }
.tc-empty{ color:var(--muted-2); font-size:13px; padding:16px 0; }
.tc-row{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.025); border:1px solid var(--border); border-radius:11px; padding:11px 13px; }
.tc-row.is-short{ border-color:rgba(245,158,11,.45); background:rgba(245,158,11,.05); }
.tc-row-main{ flex:1; min-width:0; }
.tc-row-main b{ font-size:13.5px; font-weight:600; color:var(--sand); }
.tc-row-main i{ font-size:11.5px; color:var(--muted-2); margin-left:6px; }
.tc-row-meta{ display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.tc-qty{ display:flex; align-items:center; border:1px solid var(--border); border-radius:9px; overflow:hidden; flex-shrink:0; }
.tc-qty button{ width:28px; height:28px; background:rgba(255,255,255,.04); border:none; color:var(--muted); font-size:15px; cursor:pointer; transition:.18s; }
.tc-qty button:hover{ background:rgba(59,130,246,.18); color:#fff; }
.tc-qty span{ width:34px; text-align:center; font-size:13.5px; font-weight:600; color:var(--sand); }
.tc-del{ width:28px; height:28px; border-radius:8px; border:none; background:rgba(239,68,68,.09); color:#ef4444; font-size:16px; line-height:1; cursor:pointer; flex-shrink:0; transition:.18s; }
.tc-del:hover{ background:rgba(239,68,68,.2); }
.tc-reset{ margin-top:14px; background:none; border:1px solid var(--border); color:var(--muted); font-size:12.5px; font-family:var(--body); padding:8px 15px; border-radius:9px; cursor:pointer; transition:.2s; }
.tc-reset:hover{ border-color:rgba(239,68,68,.5); color:#ef4444; }

/* setup fields */
.tc-field{ margin-bottom:18px; }
.tc-field:last-child{ margin-bottom:0; }
.tc-label{ display:block; font-size:12.5px; font-weight:600; color:#cfd9ea; margin-bottom:9px; }
.tc-label span{ color:var(--muted-2); font-weight:400; }
.tc-hint{ font-size:11.5px; color:var(--muted-2); line-height:1.5; max-width:320px; }
.tc-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.tc-opt{ background:rgba(255,255,255,.025); border:1.5px solid var(--border); border-radius:10px; padding:9px 15px; font-size:12.5px; font-weight:600; color:var(--muted); cursor:pointer; font-family:var(--body); transition:.2s; }
.tc-opt:hover{ border-color:var(--border-2); color:var(--sand); }
.tc-opt.selected{ border-color:var(--blue-light); background:rgba(59,130,246,.12); color:#fff; }
.tc-field-inline{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding-top:18px; border-top:1px solid var(--border); }
.tc-vol{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.tc-vol input{ width:96px; background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:10px; padding:11px 13px; color:var(--sand); font-size:14px; font-family:var(--body); outline:none; }
.tc-vol input:focus{ border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.13); }
.tc-vol span{ color:var(--muted); font-size:13px; }

/* results */
.tc-result-card{ background:linear-gradient(180deg,var(--panel),var(--panel-2)); border:1px solid rgba(34,197,94,.22); border-radius:16px; overflow:hidden; }
.tc-result-head{ padding:15px 22px; border-bottom:1px solid var(--border); font-size:13px; font-weight:700; color:var(--sand); letter-spacing:.02em; text-transform:uppercase; }
.tc-placeholder{ padding:34px 22px; text-align:center; color:var(--muted-2); font-size:13px; }
.tc-headline{ padding:24px 22px 20px; text-align:center; }
.tc-eyebrow{ font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.05em; }
.tc-big{ font-family:var(--display); font-size:46px; font-weight:800; color:var(--sand); line-height:1; margin-top:8px; letter-spacing:-.02em; }
.tc-big span{ font-size:15px; font-weight:600; color:var(--muted); margin-left:7px; letter-spacing:0; }
.tc-sub{ font-size:12.5px; color:var(--muted); margin-top:8px; }

.tc-verdict{ margin:0 22px 18px; padding:14px 16px; border-radius:11px; border-left:3px solid; }
.tc-verdict b{ font-size:13.5px; display:block; margin-bottom:4px; }
.tc-verdict p{ font-size:12px; color:var(--leaf); line-height:1.55; }
.tc-verdict.good{ background:rgba(34,197,94,.08); border-color:var(--green); }
.tc-verdict.good b{ color:var(--green-light); }
.tc-verdict.warn{ background:rgba(245,158,11,.08); border-color:var(--amber); }
.tc-verdict.warn b{ color:#fbbf24; }
.tc-verdict.bad{ background:rgba(239,68,68,.08); border-color:var(--red); }
.tc-verdict.bad b{ color:#f87171; }

.tc-range{ padding:0 22px 20px; }
.tc-range-labels{ display:flex; justify-content:space-between; font-size:10.5px; font-weight:600; color:var(--muted-2); margin-bottom:7px; text-transform:uppercase; letter-spacing:.03em; }
.tc-range-bar{ position:relative; height:7px; border-radius:99px; background:linear-gradient(90deg,#dc2626 0%,#f59e0b 42%,#22c55e 78%); }
.tc-range-bar i{ position:absolute; top:-4px; width:3px; height:15px; background:#fff; border-radius:2px; box-shadow:0 0 8px rgba(255,255,255,.7); transform:translateX(-50%); }
.tc-range-vals{ display:flex; justify-content:space-between; font-size:11px; color:var(--muted-2); margin-top:8px; }
.tc-range-vals .mid{ color:var(--green-light); font-weight:700; }

.tc-bio{ padding:0 22px 20px; }
.tc-bio-head{ display:flex; justify-content:space-between; align-items:baseline; font-size:12px; color:var(--muted); margin-bottom:7px; }
.tc-bio-head b{ font-size:12.5px; }
.tc-bio-head b.good{ color:var(--green-light); }
.tc-bio-head b.warn{ color:#fbbf24; }
.tc-bio-head b.bad{ color:#f87171; }
.tc-bio-bar{ height:7px; border-radius:99px; background:rgba(255,255,255,.06); overflow:hidden; }
.tc-bio-bar i{ display:block; height:100%; border-radius:99px; transition:width .5s cubic-bezier(.22,.61,.36,1); }
.tc-bio-bar i.good{ background:var(--green); }
.tc-bio-bar i.warn{ background:var(--amber); }
.tc-bio-bar i.bad{ background:var(--red); }

.tc-breakdown{ width:100%; border-collapse:collapse; font-size:12px; }
.tc-breakdown th{ text-align:left; padding:9px 22px; color:var(--muted-2); font-weight:600; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.tc-breakdown th:last-child, .tc-breakdown td:last-child{ text-align:right; }
.tc-breakdown th:nth-child(2), .tc-breakdown td:nth-child(2){ text-align:center; }
.tc-breakdown td{ padding:9px 22px; color:var(--leaf); border-bottom:1px solid var(--border); }
.tc-breakdown tr:last-child td{ border-bottom:none; }

.tc-warnings{ list-style:none; margin:0; padding:14px 22px 20px; display:flex; flex-direction:column; gap:9px; border-top:1px solid var(--border); }
.tc-warnings li{ font-size:11.5px; line-height:1.55; padding-left:20px; position:relative; color:var(--leaf); }
.tc-warnings li::before{ position:absolute; left:0; top:0; font-size:12px; }
.tc-warnings li.warn::before{ content:'⚠'; color:var(--amber); }
.tc-warnings li.info::before{ content:'ⓘ'; color:var(--blue-light); }

.tc-note{ background:var(--panel-2); border:1px solid var(--border); border-radius:14px; padding:18px 20px; }
.tc-note h3{ font-family:var(--display); font-size:13.5px; font-weight:700; color:var(--sand); margin-bottom:8px; }
.tc-note p{ font-size:12px; color:var(--muted); line-height:1.6; margin-bottom:8px; }
.tc-note p:last-child{ margin-bottom:0; }
.tc-note-small{ font-size:11px !important; color:var(--muted-2) !important; }
.tc-next{ display:inline-block; margin-top:4px; font-size:12.5px; font-weight:600; color:var(--blue-light); }
.tc-next:hover{ text-decoration:underline; }

.tc-admin-note{ margin-top:26px; padding:13px 16px; border-radius:11px; border:1px dashed rgba(245,158,11,.4); background:rgba(245,158,11,.05); font-size:12px; color:var(--leaf); line-height:1.6; }

@media(max-width:1000px){
  .tc-app{ grid-template-columns:1fr; }
  .tc-side{ position:static; }
}
@media(max-width:560px){
  .tc-field-inline{ flex-direction:column; gap:12px; }
  .tc-big{ font-size:38px; }
  .tc-breakdown th, .tc-breakdown td{ padding-left:16px; padding-right:16px; }
}

/* ==========================================================
   FISH COMPATIBILITY CHECKER
   (reuses the .tc-* shell from the tank calculator)
========================================================== */
.fc-empty,.fc-placeholder{ color:var(--muted-2); font-size:13px; padding:16px 0; }
.fc-placeholder{ padding:34px 22px; text-align:center; }
.fc-pick{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,.025); border:1px solid var(--border); border-radius:11px; padding:11px 13px; margin-bottom:9px; }
.fc-pick-main{ flex:1; min-width:0; }
.fc-pick-main b{ font-size:13.5px; font-weight:600; color:var(--sand); }
.fc-pick-main i{ font-size:11.5px; color:var(--muted-2); margin-left:6px; }
.fc-pick-main span{ display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.fc-del{ width:28px; height:28px; border-radius:8px; border:none; background:rgba(239,68,68,.09); color:#ef4444; font-size:16px; line-height:1; cursor:pointer; flex-shrink:0; transition:.18s; }
.fc-del:hover{ background:rgba(239,68,68,.2); }
.fc-suggest-item{ display:flex; align-items:baseline; gap:10px; width:100%; text-align:left; padding:11px 15px; background:none; border:none; border-bottom:1px solid var(--border); color:var(--sand); font-family:var(--body); font-size:13.5px; cursor:pointer; }
.fc-suggest-item:last-child{ border-bottom:none; }
.fc-suggest-item:hover{ background:rgba(59,130,246,.14); }
.fc-suggest-item .n{ font-weight:600; }
.fc-suggest-item .l{ font-style:italic; color:var(--muted-2); font-size:11.5px; }
.fc-suggest-item .s{ margin-left:auto; color:var(--muted); font-size:11.5px; }
.fc-nohit{ padding:14px 15px; color:var(--muted); font-size:13px; }

/* verdict dot */
.fc-dot{ display:inline-grid; place-items:center; width:19px; height:19px; border-radius:50%; font-size:11px; font-weight:700; flex-shrink:0; line-height:1; }
.fc-dot.ok{ background:rgba(34,197,94,.16); color:var(--green-light); }
.fc-dot.caution{ background:rgba(245,158,11,.16); color:#fbbf24; }
.fc-dot.bad{ background:rgba(239,68,68,.16); color:#f87171; }
.fc-dot.unknown{ background:rgba(148,180,255,.12); color:var(--muted); }

/* legend */
.fc-legend-title{ font-family:var(--display); font-size:14px; font-weight:700; color:var(--sand); margin-bottom:14px; }
.fc-legend{ list-style:none; display:flex; flex-direction:column; gap:11px; margin:0; padding:0; }
.fc-legend li{ display:flex; gap:11px; align-items:flex-start; font-size:12px; color:var(--muted); line-height:1.55; }
.fc-legend b{ color:var(--sand); }

/* overall banner */
.fc-overall{ margin:0; padding:18px 22px; border-bottom:1px solid var(--border); }
.fc-overall b{ font-size:15px; display:block; margin-bottom:5px; }
.fc-overall p{ font-size:12px; color:var(--leaf); line-height:1.55; }
.fc-overall.ok b{ color:var(--green-light); }
.fc-overall.caution b{ color:#fbbf24; }
.fc-overall.bad b{ color:#f87171; }
.fc-overall.unknown b{ color:var(--muted); }

/* shared water window */
.fc-window{ padding:18px 22px; border-bottom:1px solid var(--border); }
.fc-window h4,.fc-matrix-wrap h4,.fc-details h4,.fc-groups h4{ font-size:10.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted-2); font-weight:700; margin-bottom:11px; }
.fc-window-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.fc-win{ background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:10px; padding:10px; text-align:center; }
.fc-win span{ display:block; font-size:10px; color:var(--muted-2); margin-bottom:4px; }
.fc-win b{ font-size:12.5px; color:var(--sand); }
.fc-win.bad{ border-color:rgba(239,68,68,.4); background:rgba(239,68,68,.06); }
.fc-win.bad b{ color:#f87171; }
.fc-win.unknown b{ color:var(--muted-2); font-weight:500; }
.fc-window-note{ font-size:11.5px; color:var(--muted); margin-top:11px; }
.fc-window-note b{ color:var(--sand); }

/* matrix */
.fc-matrix-wrap{ padding:18px 22px; border-bottom:1px solid var(--border); overflow-x:auto; }
.fc-matrix{ width:100%; border-collapse:collapse; font-size:11px; }
.fc-matrix th{ color:var(--muted); font-weight:600; padding:7px 5px; text-align:center; font-size:10.5px; }
.fc-matrix tbody th{ text-align:left; color:var(--sand); white-space:nowrap; padding-right:10px; }
.fc-matrix td{ text-align:center; padding:6px 5px; }
.fc-matrix td.self{ color:var(--muted-2); }

/* detail notes */
.fc-details{ padding:18px 22px; border-bottom:1px solid var(--border); }
.fc-detail{ border-left:2px solid var(--border); padding:0 0 0 12px; margin-bottom:14px; }
.fc-detail:last-child{ margin-bottom:0; }
.fc-detail.bad{ border-color:var(--red); }
.fc-detail.caution{ border-color:var(--amber); }
.fc-detail.unknown{ border-color:var(--muted-2); }
.fc-detail-head{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--sand); margin-bottom:6px; }
.fc-detail ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:5px; }
.fc-detail li{ font-size:11.5px; color:var(--muted); line-height:1.55; }

.fc-groups{ padding:18px 22px; }
.fc-groups ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:6px; }
.fc-groups li{ font-size:11.5px; color:var(--muted); }
.fc-groups b{ color:var(--sand); }

/* ==========================================================
   PLANTED TANK PLANNER  (reuses the .tc-* shell)
========================================================== */
.pp-app .tc-side{ position:static; }
.pp-dims{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.pp-dims label{ display:flex; flex-direction:column; gap:6px; position:relative; }
.pp-dims span{ font-size:12px; font-weight:600; color:#cfd9ea; }
.pp-dims input{ background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:10px; padding:11px 34px 11px 13px; color:var(--sand); font-size:14px; font-family:var(--body); outline:none; width:100%; }
.pp-dims input:focus{ border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.13); }
.pp-dims i{ position:absolute; right:12px; bottom:12px; font-style:normal; font-size:11.5px; color:var(--muted-2); }

.pp-results{ max-height:none; }
.pp-summary{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding:18px 20px; border-bottom:1px solid var(--border); }
.pp-sum{ background:rgba(255,255,255,.03); border:1px solid var(--border); border-radius:10px; padding:10px; text-align:center; }
.pp-sum span{ display:block; font-size:9.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted-2); margin-bottom:4px; }
.pp-sum b{ font-size:12.5px; color:var(--sand); text-transform:capitalize; }
.pp-flag{ margin:0; padding:13px 20px; font-size:11.5px; line-height:1.6; color:#fbbf24; background:rgba(245,158,11,.07); border-bottom:1px solid var(--border); }

.pp-group{ border-bottom:1px solid var(--border); }
.pp-group:last-child{ border-bottom:none; }
.pp-group > h3{ display:flex; align-items:center; gap:9px; font-family:var(--display); font-size:12.5px; font-weight:700; padding:14px 20px 10px; letter-spacing:.01em; }
.pp-group.good > h3{ color:var(--green-light); }
.pp-group.maybe > h3{ color:#fbbf24; }
.pp-group.no > h3{ color:#f87171; }
.pp-count{ background:rgba(255,255,255,.07); color:var(--muted); font-size:10px; font-weight:700; padding:2px 8px; border-radius:99px; }
.pp-zone{ padding:0 20px 12px; }
.pp-zone h4{ font-size:9.5px; text-transform:uppercase; letter-spacing:.07em; color:var(--muted-2); font-weight:700; margin-bottom:8px; }
.pp-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:9px; }
.pp-item{ background:rgba(255,255,255,.022); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.pp-group.no .pp-item{ opacity:.72; }
.pp-item-head b{ font-size:12.5px; font-weight:600; color:var(--sand); }
.pp-item-head a{ color:var(--sand); }
.pp-item-head a:hover b{ color:var(--blue-light); }
.pp-item-head i{ font-size:10.5px; color:var(--muted-2); margin-left:6px; }
.pp-item-meta{ font-size:10.5px; color:var(--muted); margin-top:3px; text-transform:capitalize; }
.pp-reasons{ list-style:none; margin:7px 0 0; padding:0; display:flex; flex-direction:column; gap:4px; }
.pp-reasons li{ font-size:10.5px; line-height:1.55; color:var(--muted); padding-left:12px; position:relative; }
.pp-reasons li::before{ content:'—'; position:absolute; left:0; color:var(--muted-2); }

@media(max-width:560px){ .pp-dims{ grid-template-columns:1fr; } .pp-summary{ grid-template-columns:1fr; } }

/* ==========================================================
   HEADER SEARCH PANEL
   The header is position:sticky, which establishes a containing
   block, so the panel anchors to its bottom edge.
========================================================== */
.hub-icon-btn{ background:none; border:none; font:inherit; }
.screen-reader-text{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.ca-search-panel{
  position:absolute; top:100%; left:0; right:0; z-index:70;
  background:var(--tank); border-bottom:1px solid var(--line);
  box-shadow:0 20px 44px rgba(0,0,0,.5);
  opacity:0; transform:translateY(-8px);
  transition:opacity .18s ease, transform .18s ease;
}
.ca-search-panel.is-open{ opacity:1; transform:translateY(0); }
.ca-search-form{
  max-width:1240px; margin:0 auto; padding:16px 28px;
  display:flex; align-items:center; gap:12px;
}
.ca-search-form > svg{ width:18px; height:18px; stroke:var(--muted-2); flex-shrink:0; }
.ca-search-form input[type="search"]{
  flex:1; min-width:0; background:rgba(255,255,255,.04);
  border:1px solid var(--border); border-radius:11px;
  padding:13px 16px; color:var(--sand); font-size:15px; font-family:var(--body); outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.ca-search-form input[type="search"]::placeholder{ color:var(--muted-2); }
.ca-search-form input[type="search"]:focus{ border-color:rgba(96,165,250,.55); box-shadow:0 0 0 4px rgba(59,130,246,.13); }
.ca-search-go{
  background:var(--blue); color:#fff; border:none; border-radius:10px;
  padding:12px 22px; font-size:14px; font-weight:600; font-family:var(--body);
  cursor:pointer; white-space:nowrap; transition:background .2s;
}
.ca-search-go:hover{ background:#4d8ff8; }
.ca-search-close{
  background:none; border:none; color:var(--muted); font-size:24px; line-height:1;
  cursor:pointer; padding:0 4px; transition:color .2s; flex-shrink:0;
}
.ca-search-close:hover{ color:var(--sand); }
@media(max-width:600px){
  .ca-search-form{ padding:12px 20px; flex-wrap:wrap; }
  .ca-search-go{ flex:1; }
}

/* ---------- search results page ---------- */
.ca-results-head{ padding:40px 0 26px; }
.ca-results-head h1{ font-family:var(--display); font-size:clamp(24px,3vw,34px); font-weight:800; color:var(--sand); letter-spacing:-.02em; }
.ca-results-head h1 span{ color:var(--blue-light); }
.ca-results-count{ margin-top:9px; font-size:13.5px; color:var(--muted); }
.ca-results-list{ display:flex; flex-direction:column; gap:12px; padding-bottom:64px; }
.ca-result{ display:block; background:var(--card); border:1px solid var(--border); border-radius:13px; padding:18px 20px; transition:transform .25s, border-color .25s; }
.ca-result:hover{ transform:translateX(3px); border-color:rgba(96,165,250,.4); }
.ca-result-type{ display:inline-block; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--teal); background:rgba(20,184,166,.12); padding:4px 10px; border-radius:99px; margin-bottom:9px; }
.ca-result h2{ font-family:var(--display); font-size:16.5px; font-weight:700; color:var(--sand); line-height:1.35; }
.ca-result:hover h2{ color:var(--blue-light); }
.ca-result p{ font-size:12.5px; color:var(--muted); line-height:1.6; margin-top:6px; }
.ca-noresults{ padding:30px 0 70px; max-width:620px; }
.ca-noresults h2{ font-family:var(--display); font-size:19px; font-weight:700; color:var(--sand); margin-bottom:10px; }
.ca-noresults p{ font-size:13.5px; color:var(--muted); line-height:1.7; margin-bottom:14px; }
.ca-noresults-links{ display:flex; flex-wrap:wrap; gap:9px; margin-top:6px; }

/* ==========================================================
   TANK JOURNAL PAGE
   Container for the plugin's shortcode. The plugin ships its own
   component styles and reads the tokens above; this only handles
   page-level spacing and the editor notice.
========================================================== */
.ca-journal-page{ padding: 30px 0 80px; }
.ca-journal-warn{
  background: rgba(245,158,11,.07);
  border: 1px dashed rgba(245,158,11,.4);
  border-radius: 11px;
  padding: 14px 17px;
  font-size: 13px;
  color: var(--leaf);
  line-height: 1.6;
  margin-bottom: 22px;
}
/* The journal is an app surface, so strip the prose rules that would otherwise
   inherit into it if it ever renders inside an article wrapper. */
.ca-journal-page .ctj p{ margin-bottom: 0; }
.ca-journal-page .ctj ul{ margin: 0; }

/* Signed-in nav CTA reads as a destination rather than a signup prompt. */
.nav-cta--mine{ background: transparent !important; color: var(--sand) !important; border: 1px solid var(--line-2); }
.nav-cta--mine:hover{ background: rgba(148,180,255,.08) !important; border-color: var(--blue-light); }

/* Affiliate disclosure on the compact equipment card. Small, but it has to be
   next to the link — a footer-only notice does not satisfy FTC/ASA guidance or
   Amazon's operating agreement. */
.equipment-aff-note{
  display:block; margin-top:6px; font-size:10px; letter-spacing:.03em;
  text-transform:uppercase; color:var(--leaf-dim); white-space:nowrap;
}
