/* ============================================================
   AquaCalc — Public Stylesheet
   Shared across all public pages (index, tools, faq, etc.)
   Dashboard has its own: dashboard/assets/style.css
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{overflow-x:hidden}

:root{
  /* Colours */
  --bg:       #0d1117;
  --bg2:      #161b22;
  --bg3:      #1c2128;
  --border:   #21262d;
  --border2:  #30363d;
  --text:     #e6edf3;
  --text2:    #c9d1d9;
  --muted:    #7d8590;
  --blue:     #58a6ff;
  --blue-dark:#1a3a6e;
  --blue-bg:  #0d1f38;
  --green:    #3fb950;
  --green-bg: #1c2a1c;
  --green-border:#2d4a2d;
  --teal:     #1d9e75;
  --teal-bg:  #0a2e24;
  --amber:    #d29922;
  --purple:   #a78bfa;
  --red:      #f85149;
}

html{scroll-behavior:smooth}

body{
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',system-ui,sans-serif;
  font-size:16px;
  line-height:1.75;
  min-height:100vh;
  overflow-x:hidden;
}


/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav{position:fixed;top:0;left:0;right:0;z-index:200;background:rgba(13,17,23,0.95);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--border);height:60px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 24px;overflow:visible}
.site-nav-logo{display:flex;align-items:center;gap:10px;text-decoration:none;justify-self:start}
.site-nav-dot{width:9px;height:9px;border-radius:50%;background:var(--blue);flex-shrink:0}
.site-nav-brand{font-size:15px;font-weight:600;color:var(--text);letter-spacing:-.01em;white-space:nowrap}
.site-nav-links{display:flex;align-items:center;gap:4px;overflow:visible}
.site-nav-links a,.site-nav-links-item{font-size:13px;color:var(--muted);text-decoration:none;padding:5px 8px;border-radius:6px;transition:color .15s,background .15s;white-space:nowrap;cursor:pointer}
.site-nav-links a:hover,.site-nav-links-item:hover{color:var(--text);background:var(--border);text-decoration:none}
.site-nav-links a.nav-active,.site-nav-links-item.nav-active{color:var(--text)}
.site-nav-right{display:flex;align-items:center;gap:8px;justify-self:end}
.site-nav-cta{background:var(--blue);color:var(--bg);border:none;border-radius:6px;font-size:13px;font-weight:700;font-family:inherit;padding:7px 16px;cursor:pointer;text-decoration:none;white-space:nowrap;transition:opacity .15s;display:inline-block}
.site-nav-cta:hover{opacity:.88}
.site-nav-cta.ghost{background:transparent;color:var(--blue);border:1px solid var(--blue-dark)}
.site-nav-cta.ghost:hover{background:var(--blue-bg);opacity:1}
.live-pill{font-size:12px;color:var(--green);background:var(--green-bg);border:1px solid var(--green-border);padding:4px 10px;border-radius:20px;white-space:nowrap}

/* Hamburger */
.nav-hamburger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:8px;border:none;background:transparent;flex-shrink:0;border-radius:6px;-webkit-tap-highlight-color:transparent}
.nav-hamburger span{display:block;width:22px;height:2px;background:var(--muted);border-radius:2px;transition:all .25s}
.nav-hamburger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);background:var(--text)}
.nav-hamburger.open span:nth-child(2){opacity:0;transform:scaleX(0)}
.nav-hamburger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);background:var(--text)}

/* Mobile drawer */
.nav-drawer{display:none;position:fixed;top:60px;left:0;right:0;bottom:0;z-index:199;background:rgba(13,17,23,0.98);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);overflow-y:auto;flex-direction:column;padding:8px 0 40px;border-top:1px solid var(--border)}
.nav-drawer.open{display:flex}
.nav-drawer-section{padding:8px 0;border-bottom:1px solid var(--border)}
.nav-drawer-section:last-child{border-bottom:none}
.nav-drawer-label{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;padding:10px 20px 4px}
.nav-drawer a{display:flex;align-items:center;gap:12px;padding:14px 20px;font-size:15px;color:var(--muted);text-decoration:none;transition:color .15s,background .15s;-webkit-tap-highlight-color:transparent}
.nav-drawer a:hover,.nav-drawer a:active{color:var(--text);background:var(--bg2)}
.nav-drawer a .drawer-icon{font-size:18px;width:28px;text-align:center;flex-shrink:0}
.nav-drawer-cta{margin:16px 20px 0;display:block;background:var(--blue);color:var(--bg);font-size:15px;font-weight:700;font-family:inherit;padding:14px 24px;border-radius:8px;text-align:center;text-decoration:none;transition:opacity .15s}
.nav-drawer-cta:hover{opacity:.88}
.nav-spacer{height:60px;flex-shrink:0}


/* ── PAGE SHELL (content pages: faq, tools, resources etc.) ── */
.page-wrap{max-width:820px;margin:0 auto;padding:48px 24px 80px}
.page-hero{padding:48px 0 36px;border-bottom:1px solid var(--border);margin-bottom:40px}
.page-label{font-size:12px;font-weight:600;color:var(--blue);text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.page-title{font-size:clamp(26px,5vw,42px);font-weight:700;letter-spacing:-.02em;color:var(--text);line-height:1.15;margin-bottom:12px}
.page-sub{font-size:16px;color:var(--muted);max-width:560px;line-height:1.65}

/* Prose content */
.prose h2{font-size:20px;font-weight:600;color:var(--text);margin:36px 0 12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.prose h3{font-size:16px;font-weight:600;color:var(--text);margin:24px 0 8px}
.prose p{color:var(--text2);margin-bottom:16px;font-size:16px;line-height:1.75}
.prose ul,.prose ol{color:var(--text2);padding-left:24px;margin-bottom:16px}
.prose li{margin-bottom:6px;line-height:1.65}
.prose a{color:var(--blue);text-decoration:underline}
.prose a:hover{text-decoration:underline;opacity:.8}
.prose strong{color:var(--text);font-weight:600}
.prose .highlight{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:16px 20px;margin:20px 0}
.prose .highlight p{margin-bottom:0;color:var(--muted)}
.prose .highlight strong{color:var(--text)}
.prose table{width:100%;border-collapse:collapse;margin:20px 0;font-size:15px;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
.prose table th{text-align:left;padding:8px 12px;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--border);white-space:nowrap}
.prose table td{padding:10px 12px;border-bottom:1px solid var(--bg);color:var(--text2);vertical-align:top}
.prose table tr:hover td{background:var(--bg2)}

/* Site footer (content pages) */
.site-footer{border-top:1px solid var(--border);padding:36px 24px;text-align:center}
.site-footer-links{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-bottom:14px}
.site-footer-links a{font-size:14px;color:var(--muted);text-decoration:none;transition:color .15s}
.site-footer-links a:hover{color:var(--text)}
.site-footer-copy{font-size:13px;color:var(--muted)}

/* Dividers */
.full-divider{border:none;border-top:1px solid var(--border);margin:0}


/* ── SHARED COMPONENTS ────────────────────────────────────── */

/* Buttons */
.btn-primary{background:#1a6ed8;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;font-family:inherit;padding:12px 28px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:opacity .15s}
.btn-primary:hover{opacity:.88}
.btn-secondary{background:transparent;color:var(--text);border:1px solid var(--border2);border-radius:8px;font-size:15px;font-weight:500;font-family:inherit;padding:12px 28px;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;gap:8px;transition:background .15s}
.btn-secondary:hover{background:var(--bg2)}

/* Badges */
.badge-pill{display:inline-block;font-size:12px;font-weight:600;padding:2px 8px;border-radius:20px;white-space:nowrap;vertical-align:middle}
.bp-blue  {background:var(--blue-bg); color:var(--blue);   border:1px solid var(--blue-dark)}
.bp-green {background:var(--green-bg);color:var(--green);  border:1px solid var(--green-border)}
.bp-amber {background:#2a1f0e;        color:var(--amber);  border:1px solid #4a3510}
.bp-teal  {background:var(--teal-bg); color:var(--teal);   border:1px solid #0f6e56}
.bp-purple{background:#1e1a3a;        color:var(--purple); border:1px solid #3d2f7a}

/* Jump link pills (tools, faq) */
.faq-cat-btn{display:inline-flex;align-items:center;background:var(--bg2);border:1px solid var(--border);color:var(--muted);border-radius:20px;font-size:13px;font-weight:500;padding:5px 14px;text-decoration:none;transition:all .15s;white-space:nowrap}
.faq-cat-btn:hover{border-color:#388bfd;color:var(--blue);background:var(--blue-bg)}

/* Range slider */
input[type=range]{-webkit-appearance:none;appearance:none;height:6px;border-radius:3px;outline:none;cursor:pointer;background:var(--border);width:100%}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--text);cursor:pointer;border:2px solid var(--bg);box-shadow:0 0 0 2px var(--border2)}
input[type=range]::-moz-range-thumb{width:18px;height:18px;border-radius:50%;background:var(--text);cursor:pointer;border:2px solid var(--bg)}


/* ── HOMEPAGE — HERO ──────────────────────────────────────── */
.hero{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:120px 24px 80px;position:relative;overflow:hidden}
.hero-glow{position:absolute;top:20%;left:50%;transform:translateX(-50%);width:700px;height:400px;background:radial-gradient(ellipse,rgba(88,166,255,0.08) 0%,transparent 70%);pointer-events:none}
.hero-glow-green{position:absolute;bottom:10%;right:10%;width:400px;height:300px;background:radial-gradient(ellipse,rgba(29,158,117,0.06) 0%,transparent 70%);pointer-events:none}
.hero-badge{display:inline-flex;align-items:center;gap:6px;background:var(--green-bg);border:1px solid var(--green-border);color:var(--green);border-radius:20px;font-size:13px;font-weight:600;padding:4px 12px;margin-bottom:28px;letter-spacing:.02em}
.hero-badge-dot{width:6px;height:6px;border-radius:50%;background:var(--green);animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
h1{font-size:clamp(38px,6vw,72px);font-weight:700;line-height:1.1;letter-spacing:-.03em;color:var(--text);max-width:820px;margin-bottom:24px}
h1 span{color:var(--blue)}
.hero-sub{font-size:clamp(17px,2vw,20px);color:var(--muted);max-width:580px;margin-bottom:40px;line-height:1.6}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-bottom:64px}
.hero-stats{display:flex;gap:48px;flex-wrap:wrap;justify-content:center}
.hero-stat{text-align:center}
.hero-stat-num{font-size:28px;font-weight:700;color:var(--text);letter-spacing:-.02em}
.hero-stat-label{font-size:13px;color:var(--muted);margin-top:2px}


/* ── HOMEPAGE — SECTIONS ──────────────────────────────────── */
.preview-section{padding:0 24px 80px;max-width:1100px;margin:0 auto}
.preview-dot{width:10px;height:10px;border-radius:50%}
.prev-card{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:14px 16px}
.prev-label{font-size:12px;color:var(--muted);margin-bottom:6px;text-transform:uppercase;letter-spacing:.06em}
.prev-val{font-size:22px;font-weight:700;letter-spacing:-.02em}
.prev-badge{display:inline-block;font-size:12px;font-weight:600;padding:2px 7px;border-radius:20px;margin-top:5px}
.prev-chart{grid-column:1/-1;background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:16px;height:120px;position:relative;overflow:hidden}
.prev-chart-label{font-size:12px;color:var(--muted);margin-bottom:12px}
.chart-line{position:absolute;bottom:20px;left:16px;right:16px}
svg.sparkline{width:100%;height:70px;overflow:visible}

.section{padding:80px 24px;max-width:1100px;margin:0 auto}
.section-label{font-size:12px;font-weight:600;color:var(--blue);text-transform:uppercase;letter-spacing:.1em;margin-bottom:12px}
.section-title{font-size:clamp(28px,4vw,44px);font-weight:700;letter-spacing:-.02em;color:var(--text);margin-bottom:16px;line-height:1.2}
.section-sub{font-size:16px;color:var(--muted);max-width:560px;line-height:1.65}
.section-center{text-align:center}
.section-center .section-sub{margin:0 auto}

/* Feature grid */
.features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:16px;overflow:hidden;margin-top:48px}
.feature-card{background:var(--bg);padding:32px;transition:background .15s}
.feature-card:hover{background:var(--bg2)}
.feature-icon{width:44px;height:44px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:20px}
.fi-blue  {background:var(--blue-bg); border:1px solid var(--blue-dark)}
.fi-green {background:var(--green-bg);border:1px solid var(--green-border)}
.fi-teal  {background:var(--teal-bg); border:1px solid #0f6e56}
.fi-purple{background:#1e1a3a;        border:1px solid #3d2f7a}
.fi-amber {background:#2a1f0e;        border:1px solid #4a3510}
.fi-red   {background:#2a0e0e;        border:1px solid #4a1a1a}
.feature-title{font-size:16px;font-weight:600;color:var(--text);margin-bottom:8px}
.feature-desc{font-size:15px;color:var(--muted);line-height:1.6}

/* Steps */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px;margin-top:48px}
.step{position:relative}
.step-num{width:36px;height:36px;border-radius:50%;background:var(--blue-bg);border:1px solid var(--blue-dark);display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;color:var(--blue);margin-bottom:16px}
.step-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:8px}
.step-desc{font-size:15px;color:var(--muted);line-height:1.6}

/* Mode cards */
.modes{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:48px}
.mode-card{background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:28px;position:relative;overflow:hidden}
.mode-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px}
.mode-card.kh::before{background:linear-gradient(90deg,var(--blue),transparent)}
.mode-card.drop::before{background:linear-gradient(90deg,var(--teal),transparent)}
.mode-tag{display:inline-block;font-size:12px;font-weight:600;padding:3px 10px;border-radius:20px;margin-bottom:14px;letter-spacing:.05em}
.tag-blue{background:var(--blue-bg);color:var(--blue);border:1px solid var(--blue-dark)}
.tag-teal{background:var(--teal-bg);color:#25b585;border:1px solid #0f6e56}
.mode-title{font-size:18px;font-weight:600;color:var(--text);margin-bottom:10px}
.mode-desc{font-size:15px;color:var(--muted);line-height:1.6;margin-bottom:16px}
.mode-list{list-style:none;display:flex;flex-direction:column;gap:6px}
.mode-list li{font-size:15px;color:var(--muted);display:flex;align-items:center;gap:8px}
.mode-list li::before{content:'✓';color:var(--green);font-weight:700;flex-shrink:0}

/* RO visual */
.ro-split{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;margin-top:48px}
.ro-visual{background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:24px}
.ro-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border);font-size:13px}
.ro-row:last-child{border-bottom:none}
.ro-row-label{color:var(--muted)}
.ro-row-val{font-weight:600}
.ro-slider-demo{margin:16px 0}
.ro-slider-track{height:6px;background:var(--border);border-radius:3px;position:relative;overflow:hidden}
.ro-slider-fill{height:100%;border-radius:3px;background:linear-gradient(90deg,var(--blue) 60%,var(--teal) 60%);width:100%}
.ro-slider-labels{display:flex;justify-content:space-between;font-size:12px;margin-top:6px}
.range-pills{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.rp-row{display:flex;align-items:center;justify-content:space-between;font-size:13px}
.rp-name{color:var(--muted)}
.rp-pill{font-size:12px;font-weight:600;padding:2px 8px;border-radius:20px}
.rp-good{background:var(--green-bg);color:var(--green);border:1px solid var(--green-border)}
.rp-low {background:var(--blue-bg); color:var(--blue);  border:1px solid var(--blue-dark)}
.rp-high{background:#2a1f0e;       color:var(--amber); border:1px solid #4a3510}

/* Alert demos */
.alerts-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:48px}
.alert-demo{border-radius:12px;padding:16px 20px;display:flex;align-items:flex-start;gap:12px}
.ad-danger{background:#2a0e0e;border:1px solid #6e2020}
.ad-warn  {background:#2a1f0e;border:1px solid #6e4a10}
.ad-ok    {background:var(--green-bg);border:1px solid var(--green-border)}
.ad-info  {background:var(--blue-bg); border:1px solid var(--blue-dark)}
.alert-demo-icon{font-size:18px;flex-shrink:0;margin-top:1px}
.alert-demo-title{font-size:13px;font-weight:600;margin-bottom:3px}
.ad-danger .alert-demo-title{color:var(--red)}
.ad-warn   .alert-demo-title{color:var(--amber)}
.ad-ok     .alert-demo-title{color:var(--green)}
.ad-info   .alert-demo-title{color:var(--blue)}
.alert-demo-body{font-size:12px;color:#9da8b5;line-height:1.5}

/* Privacy strip */
.privacy-strip{background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:48px 24px;margin:0}
.privacy-inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1fr 1fr 1fr;gap:32px}
.priv-item{display:flex;flex-direction:column;gap:10px}
.priv-icon{font-size:24px}
.priv-title{font-size:15px;font-weight:600;color:var(--text)}
.priv-desc{font-size:15px;color:var(--muted);line-height:1.6}

/* CTA section */
.cta-section{padding:100px 32px;text-align:center;position:relative;overflow:hidden}
.cta-glow{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:600px;height:300px;background:radial-gradient(ellipse,rgba(88,166,255,0.07) 0%,transparent 70%);pointer-events:none}
.cta-section h2{font-size:clamp(28px,4vw,48px);font-weight:700;letter-spacing:-.02em;color:var(--text);margin-bottom:16px}
.cta-section p{font-size:17px;color:var(--muted);margin-bottom:36px;max-width:480px;margin-left:auto;margin-right:auto}

/* Homepage footer */
footer{background:var(--bg2);border-top:1px solid var(--border);padding:40px 24px;text-align:center}
.footer-logo{display:flex;align-items:center;gap:8px;justify-content:center;margin-bottom:16px;text-decoration:none}
.footer-links{display:flex;gap:16px;justify-content:center;margin-bottom:20px;flex-wrap:wrap}
.footer-links a{font-size:14px;color:var(--muted);text-decoration:none;transition:color .15s}
.footer-links a:hover{color:var(--text)}
.footer-copy{font-size:13px;color:var(--muted);line-height:1.8;max-width:560px;margin:0 auto;word-break:break-word}


/* ── ANIMATED DASHBOARD PREVIEW (homepage only) ───────────── */
.anim-preview-wrap{max-width:1060px;margin:0 auto;padding:40px 24px 60px}
.anim-frame{background:var(--bg);border:1px solid var(--border2);border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px var(--border),0 32px 64px rgba(0,0,0,.5)}
.anim-frame-bar{background:var(--bg2);border-bottom:1px solid var(--border);padding:10px 16px;display:flex;align-items:center;gap:10px}
.anim-frame-dots{display:flex;gap:6px;flex-shrink:0}
.anim-frame-dots span{display:block;width:10px;height:10px;border-radius:50%}
.anim-frame-url{background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:4px 16px;font-size:12px;color:var(--muted);flex:1;max-width:260px;margin:0 auto;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.anim-frame-right{flex-shrink:0}
.anim-live-pill{font-size:12px;color:var(--green);background:var(--green-bg);border:1px solid var(--green-border);padding:3px 10px;border-radius:20px}
.anim-tab-bar{background:var(--bg2);border-bottom:1px solid var(--border);display:flex;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.anim-tab-bar::-webkit-scrollbar{display:none}
.anim-tab{background:transparent;color:var(--muted);border:none;border-bottom:2px solid transparent;font-size:13px;font-weight:500;font-family:inherit;padding:11px 14px;cursor:pointer;transition:color .15s,border-color .15s;white-space:nowrap;flex-shrink:0}
.anim-tab:hover{color:var(--text)}
.anim-tab.active{color:var(--blue);border-bottom-color:var(--blue)}
.anim-body{padding:14px;overflow:hidden}
.anim-scenes-clip{height:540px;overflow:hidden;position:relative}
.anim-scene{display:none;position:absolute;top:0;left:0;right:0}
.anim-scene.active{display:block;animation:aTabSwitch .3s ease}
#as0{overflow:hidden}
.anim-table-wrap{overflow-x:auto;overflow-y:hidden;max-height:160px;-webkit-overflow-scrolling:touch}
.anim-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}
.anim-card,.anim-mini-card{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:10px 12px}
.anim-clabel{font-size:12px;color:var(--muted);margin-bottom:4px;text-transform:uppercase;letter-spacing:.04em}
.anim-cval{font-size:clamp(17px,3vw,20px);font-weight:700;color:var(--text);letter-spacing:-.02em;line-height:1.1}
.anim-csub{font-size:12px;color:var(--muted);margin-top:4px}
.anim-chart-wrap{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:12px;margin-bottom:10px}
.anim-chart-label{font-size:12px;font-weight:600;color:var(--text);margin-bottom:10px}
.anim-chart-inner{position:relative;width:100%}
.anim-table{width:100%;border-collapse:collapse;font-size:12px;min-width:480px}
.anim-table th{padding:6px 10px;text-align:left;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:1px solid var(--border)}
.anim-table td{padding:6px 10px;border-bottom:1px solid var(--bg);color:var(--text);vertical-align:middle}
.anim-table tr:last-child td{border-bottom:none}
.anim-pbwrap{height:4px;background:var(--border);border-radius:2px;overflow:hidden;width:48px}
.anim-pbfill{height:100%;border-radius:2px;transition:width 1s ease}
.anim-pb-row{display:flex;align-items:center;gap:5px}
.anim-badge{display:inline-block;font-size:12px;font-weight:700;padding:2px 7px;border-radius:20px}
.anim-badge-ok  {background:var(--green-bg);color:var(--green);border:1px solid var(--green-border)}
.anim-badge-blue{background:var(--blue-bg); color:var(--blue);  border:1px solid var(--blue-dark)}
.anim-badge-warn{background:#2a1f0e;        color:var(--amber); border:1px solid #4a3510}
.anim-panel{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:14px}
.anim-panel-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:12px}
.anim-row{display:flex;align-items:center;justify-content:space-between;padding:5px 0;border-bottom:1px solid var(--bg);font-size:13px}
.anim-row:last-of-type{border-bottom:none}
.anim-rlabel{color:var(--muted)}
.anim-rval{font-weight:600;color:var(--text);font-size:13px}
.anim-sched{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:10px 12px;margin-top:10px}
.anim-sched-title{font-size:12px;font-weight:600;color:var(--text);margin-bottom:6px}
.anim-sched-row{display:flex;gap:8px;font-size:12px;color:var(--muted);padding:3px 0;flex-wrap:wrap}
.anim-ro-grid{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:10px}
.anim-dose-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.anim-tools-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.anim-dc-cell{border-radius:8px;padding:8px 4px;text-align:center;border:1px solid rgba(255,255,255,.08);transition:transform .15s}
.anim-dc-cell:hover{transform:translateY(-2px)}
@keyframes aFadeIn{from{opacity:0;transform:translateX(-6px)}to{opacity:1;transform:none}}
@keyframes aTabSwitch{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}


/* ── TOOLS PAGE ───────────────────────────────────────────── */
.tools-wrap{max-width:900px}
.tools-section-header{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}
.tools-section-icon{font-size:24px;flex-shrink:0;margin-top:2px}
.tools-section-title{font-size:clamp(18px,3.5vw,20px);font-weight:600;color:var(--text);margin-bottom:4px}
.tools-section-sub{font-size:15px;color:var(--muted);line-height:1.6}
.tool-card{background:var(--bg2);border:1px solid var(--border);border-radius:14px;padding:clamp(16px,4vw,24px)}
.tool-two-col{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.tfield-row{display:flex;align-items:center;justify-content:space-between;padding:7px 0;border-bottom:1px solid var(--border);gap:8px;flex-wrap:wrap}
.tfield-row:last-child{border-bottom:none}
.tfield-label{font-size:13px;color:var(--muted);flex:1;min-width:0}
.tselect{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;font-size:13px;font-family:inherit;padding:5px 8px;outline:none;cursor:pointer;max-width:100%}
.tselect:focus{border-color:#388bfd}
.tinput{background:var(--blue-bg);color:var(--blue);border:1px solid var(--blue-dark);border-radius:6px;font-size:13px;font-weight:600;font-family:inherit;padding:4px 8px;width:90px;text-align:right;outline:none;transition:border-color .15s;flex-shrink:0}
.tinput:focus{border-color:#388bfd;box-shadow:0 0 0 3px rgba(56,139,253,.15)}
.result-cards-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.result-card{background:var(--bg);border:1px solid var(--border);border-radius:10px;padding:14px 16px;text-align:center}
.result-label{font-size:12px;color:var(--muted);margin-bottom:6px;text-transform:uppercase;letter-spacing:.05em}
.result-val{font-size:clamp(20px,5vw,24px);font-weight:700;letter-spacing:-.02em;line-height:1}
.result-unit{font-size:12px;color:var(--muted);margin-top:4px}
.method-info-card{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:14px 16px}
.method-info-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:6px}
.method-info-body{font-size:14px;color:var(--muted);line-height:1.6}
.tools-warning{background:#2a1f0e;border:1px solid #6e4a10;border-radius:8px;padding:10px 14px;font-size:14px;color:var(--amber);line-height:1.5}
.tools-warning.danger{background:#2a0e0e;border-color:#6e2020;color:var(--red)}
.tools-warning.ok{background:var(--green-bg);border-color:var(--green-border);color:var(--green)}
.fc-remove-btn{background:transparent;color:#4a4f57;border:none;cursor:pointer;font-size:15px;padding:4px 8px;border-radius:4px;margin-left:8px;transition:color .15s;flex-shrink:0}
.fc-remove-btn:hover{color:var(--red)}
.fc-media-sel{flex:1;min-width:0;font-size:13px}
@keyframes fadeInRow{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}

/* Drop checker */
.dc-card{border-radius:12px;padding:16px 10px 14px;text-align:center;border:2px solid transparent;transition:transform .15s,box-shadow .15s}
.dc-card:hover{box-shadow:0 4px 20px rgba(0,0,0,.4);transform:translateY(-2px)}
.dc-level{font-size:12px;font-weight:700;margin-bottom:6px;letter-spacing:.05em;text-transform:uppercase}
.dc-ppm{font-size:18px;font-weight:700;margin-bottom:4px;letter-spacing:-.02em}
.dc-ph{font-size:12px;margin-bottom:6px;opacity:.8}
.dc-label{font-size:12px;font-weight:600;padding:3px 8px;border-radius:20px;display:inline-block}


/* ── FAQ PAGE ─────────────────────────────────────────────── */
.faq-section{margin-bottom:40px}
.faq-section-header{display:flex;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.faq-section-icon{font-size:20px;flex-shrink:0}
.faq-section-title{font-size:clamp(17px,3.5vw,18px);font-weight:600;color:var(--text);flex:1;margin:0;border:none;padding:0;min-width:0}
.faq-section-count{font-size:12px;color:var(--muted);background:var(--bg2);padding:3px 9px;border-radius:20px;white-space:nowrap;flex-shrink:0}
.faq-list{display:flex;flex-direction:column;gap:1px;background:var(--border);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.faq-item{background:var(--bg)}
.faq-item:first-child{border-radius:12px 12px 0 0}
.faq-item:last-child{border-radius:0 0 12px 12px}
.faq-q{width:100%;background:transparent;border:none;color:var(--text);font-size:16px;font-weight:500;font-family:inherit;padding:14px 16px;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;transition:background .15s;line-height:1.5;-webkit-tap-highlight-color:transparent}
.faq-q:hover{background:var(--bg2)}
.faq-q[aria-expanded="true"]{background:var(--bg2);color:var(--blue)}
.faq-chevron{flex-shrink:0;color:var(--muted);transition:transform .2s}
.faq-q[aria-expanded="true"] .faq-chevron{transform:rotate(180deg);color:var(--blue)}
.faq-a{display:none;background:var(--bg2);border-top:1px solid var(--border)}
.faq-a.open{display:block}
.faq-a-inner{padding:14px 16px 18px;font-size:16px;color:var(--text2);line-height:1.75}
.faq-a-inner code{background:var(--bg);color:var(--blue);padding:2px 6px;border-radius:4px;font-size:13px;word-break:break-all}
.faq-a-inner strong{color:var(--text);font-weight:600}
.faq-a-inner a{color:var(--blue);text-decoration:none}
.faq-a-inner a:hover{text-decoration:underline}


/* ── RESOURCES PAGE ───────────────────────────────────────── */
.ukaps-card{background:var(--bg2);border:1px solid var(--border);border-radius:14px;overflow:hidden}
.ukaps-card-inner{display:grid;grid-template-columns:1fr minmax(0,220px);gap:0}
.ukaps-card-inner > div:first-child{padding:clamp(16px,4vw,32px)}
.ukaps-section-label{font-size:12px;font-weight:600;color:var(--purple);text-transform:uppercase;letter-spacing:.1em;margin-bottom:10px}
.ukaps-h2{font-size:clamp(20px,3vw,28px);font-weight:700;color:var(--text);letter-spacing:-.02em;margin-bottom:14px;line-height:1.25}
.ukaps-p{font-size:15px;color:var(--text2);line-height:1.75;margin-bottom:14px}
.ukaps-stat-col{background:var(--bg);border-left:1px solid var(--border);display:flex;flex-direction:column;justify-content:center;padding:24px;gap:24px}
.ukaps-stat{text-align:center}
.ukaps-stat-num{font-size:28px;font-weight:700;letter-spacing:-.02em;margin-bottom:4px}
.ukaps-stat-label{font-size:13px;font-weight:600;color:var(--text);margin-bottom:2px}
.ukaps-stat-sub{font-size:12px;color:var(--muted);line-height:1.4}
.ukaps-features-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:hidden;margin-bottom:4px}
.ukaps-feature{background:var(--bg);padding:20px;transition:background .15s}
.ukaps-feature:hover{background:var(--bg2)}
.ukaps-feature-icon{width:44px;height:44px;border-radius:10px;border:1px solid;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:14px}
.ukaps-feature-title{font-size:15px;font-weight:600;color:var(--text);margin-bottom:8px}
.ukaps-feature-desc{font-size:13px;color:var(--muted);line-height:1.65}
.res-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:20px}
.res-box{background:var(--bg2);border:1px solid var(--border);border-radius:12px;padding:20px}


/* ── FEEDBACK PAGE ────────────────────────────────────────── */
.form-group{margin-bottom:22px}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form-label{display:block;font-size:13px;font-weight:600;color:var(--text);margin-bottom:8px}
.form-required{color:var(--red);margin-left:2px}
.form-optional{color:var(--muted);font-weight:400;font-size:13px}
.form-input{width:100%;background:var(--bg2);color:var(--text);border:1px solid var(--border2);border-radius:8px;font-size:15px;font-family:inherit;padding:11px 14px;outline:none;transition:border-color .15s}
.form-input:focus{border-color:#388bfd;box-shadow:0 0 0 3px rgba(56,139,253,.12)}
.form-input::placeholder{color:#4a4f57}
.form-textarea{resize:vertical;min-height:140px}
.form-select{width:100%;background:var(--bg2);color:var(--text);border:1px solid var(--border2);border-radius:8px;font-size:15px;font-family:inherit;padding:11px 14px;outline:none;cursor:pointer}
.form-select:focus{border-color:#388bfd}
.form-hint{font-size:12px;color:var(--muted);margin-top:5px}
.form-radio-group{display:flex;flex-wrap:wrap;gap:8px}
.form-radio{display:flex;align-items:center;gap:8px;background:var(--bg2);border:1px solid var(--border2);border-radius:8px;padding:9px 14px;cursor:pointer;font-size:13px;color:var(--muted);transition:border-color .15s,color .15s}
.form-radio:has(input:checked){border-color:#388bfd;color:var(--blue);background:var(--blue-bg)}
.form-radio input{accent-color:var(--blue);cursor:pointer}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Nav */
@media(max-width:768px){
  .site-nav{padding:0 16px;grid-template-columns:1fr auto}
  .site-nav-links,.site-nav-right{display:none}
  .nav-hamburger{display:flex}
}
@media(min-width:769px){
  .nav-drawer{display:none !important}
}

/* Homepage */
@media(max-width:900px){
  .ro-split{grid-template-columns:1fr}
  .privacy-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:700px){
  .hero{padding:90px 16px 50px}
  .hero-stats{gap:20px}
  .hero-stat-num{font-size:22px}
  .section{padding:56px 16px}
  .modes,.ro-split{grid-template-columns:1fr}
  .privacy-inner{grid-template-columns:1fr}
  .features-grid{grid-template-columns:1fr}
  .cta-section{padding:56px 16px}
  .steps{grid-template-columns:1fr}
  .alerts-grid{grid-template-columns:1fr}
  footer{padding:32px 16px}
  .footer-links{gap:12px}
}
@media(max-width:480px){
  .hero-stats{gap:16px;grid-template-columns:1fr 1fr;display:grid}
  .hero-actions{flex-direction:column;align-items:stretch}
  .btn-primary,.btn-secondary{justify-content:center}
}

/* Animated preview */
@media(max-width:700px){
  .anim-cards{grid-template-columns:1fr 1fr}
  .anim-ro-grid,.anim-dose-grid,.anim-tools-grid{grid-template-columns:1fr}
  .anim-preview-wrap{padding:20px 12px 40px}
  #a-dc{grid-template-columns:repeat(5,1fr) !important}
  .anim-frame-right{display:none}
  .anim-frame-url{max-width:none}
  .anim-scenes-clip{height:500px}
}
@media(max-width:480px){
  .anim-cards{grid-template-columns:1fr 1fr}
  .anim-cval{font-size:15px}
  .anim-body{padding:10px}
  .anim-scene{padding:0}
  #a-dc{grid-template-columns:repeat(3,1fr) !important}
  .anim-scenes-clip{height:580px}
}

/* Content pages */
@media(max-width:640px){
  .page-wrap{padding:24px 16px 60px}
  .page-hero{padding:32px 0 24px;margin-bottom:28px}
  .tool-two-col{grid-template-columns:1fr;gap:20px}
  .result-cards-grid{grid-template-columns:1fr 1fr}
  .tool-card{padding:16px}
  #dc-cards{grid-template-columns:repeat(auto-fill,minmax(90px,1fr)) !important}
  .tselect{max-width:180px;font-size:12px}
  .tinput{width:80px}
  .tools-section-icon{font-size:20px}
  .form-row{grid-template-columns:1fr}
  .ukaps-card-inner{grid-template-columns:1fr}
  .ukaps-stat-col{border-left:none;border-top:1px solid var(--border);flex-direction:row;flex-wrap:wrap;justify-content:space-around;gap:16px}
  .res-two-col{grid-template-columns:1fr}
}
@media(max-width:480px){
  .faq-q{font-size:13px;padding:12px 14px}
  .faq-a-inner{font-size:13px;padding:12px 14px 16px}
}
@media(max-width:400px){
  .result-cards-grid{grid-template-columns:1fr}
  .result-val{font-size:20px}
}

/* ── ADDITIONAL SHARED COMPONENTS ────────────────────────── */

/* Button variants */
.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border);border-radius:6px;font-size:13px;font-weight:500;font-family:inherit;padding:6px 14px;cursor:pointer;transition:background .15s,color .15s;white-space:nowrap}
.btn-ghost:hover{background:var(--border);color:var(--text)}
.btn-sm{padding:5px 12px;font-size:12px}
.btn-teal{color:var(--teal);border-color:#0f6e56}
.btn-teal:hover{background:var(--teal-bg)}

/* Nav dot (used in homepage footer logo) */
.nav-dot{width:9px;height:9px;border-radius:50%;background:var(--blue);flex-shrink:0}

/* Tools panel headings (used on tools.php and dashboard) */
.tools-panel-title{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:14px}

/* Schedule cards (tools.php filter capacity + dashboard dosing) */
.schedule-card{background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-bottom:12px}
.schedule-title{font-size:13px;font-weight:600;color:var(--text);margin-bottom:10px}

/* Filter capacity calculator — JS-generated class hooks */
.fc-note{font-size:13px;color:var(--muted);margin-bottom:8px;line-height:1.5}
.fc-vol{/* sizing handled by .tinput */}
.fc-vol-unit{/* text node — no styling needed */}


/* ── UTILITY CLASSES ─────────────────────────────────────────
   Replaces repeated inline style= attributes across all pages.
   Colour utilities use the existing CSS custom properties.
──────────────────────────────────────────────────────────── */

/* Colour text utilities */
.c-blue   { color: var(--blue) }
a.c-blue  { color: var(--blue);text-decoration:underline }
.c-green  { color: var(--green) }
.c-teal   { color: var(--teal) }
.c-amber  { color: var(--amber) }
.c-purple { color: var(--purple) }
.c-red    { color: var(--red) }
.c-text   { color: var(--text) }
.c-muted  { color: var(--muted) }
.c-dim    { color: var(--muted) }

/* Inline code/badge — appears in changelog and cookies */
.code-inline { background:var(--bg2);color:var(--blue);padding:1px 5px;border-radius:4px;font-size:13px }

/* Horizontal divider line — used in tools.php and changelog */
.rule { height:1px;background:var(--border);margin:12px 0;border:none }
.rule-lg { height:1px;background:var(--border);margin:32px 0;border:none }

/* Stat value with min-width — animated preview in index.php */
.stat-val-sm { color:var(--text);font-weight:600;min-width:28px }
.stat-val-md { color:var(--text);font-weight:600;min-width:36px }

/* Blue highlighted value — tools.php result values */
.val-blue   { color:var(--blue);font-weight:600 }
.val-teal   { color:var(--teal);font-weight:600 }
.val-blue-sm{ color:var(--blue);font-size:13px;font-weight:600 }

/* Section stat block — index.php animated preview bottom rows */
.stat-block { border-top:1px solid var(--border);margin-top:10px;padding-top:12px;text-align:center }

/* Muted body text — used for sub-descriptions in tools, faq, feedback */
.body-muted { font-size:13px;color:var(--muted);line-height:1.6 }
.body-muted-lg { font-size:15px;color:var(--muted);line-height:1.7;margin-bottom:20px }

/* Info box — neutral dark panel with border, used across tools and dashboard */
.info-box { background:var(--bg2);border:1px solid var(--border);border-radius:10px;padding:14px 16px;margin-top:12px }
.info-box-title { font-size:13px;font-weight:600;color:var(--text);margin-bottom:8px }
.info-box-body { font-size:13px;color:var(--muted);line-height:1.6 }

/* Teal info box — RO/filter notes in tools.php */
.info-box-teal { background:var(--teal-bg);border:1px solid #0f6e56;border-radius:10px;padding:14px 16px;margin-top:12px }
.info-box-teal-title { font-size:13px;color:var(--teal);margin-bottom:6px;font-weight:600 }

/* Purple info box — aquasoil notes in tools.php */
.info-box-purple { background:#1e1a3a;border:1px solid #3d2f7a;border-radius:10px;padding:14px 16px;margin-top:12px }
.info-box-purple-title { font-size:13px;color:var(--purple);margin-bottom:6px;font-weight:600 }

/* Chart canvas wrapper — Chart.js needs explicit height, position:relative */
.chart-wrap-tall { position:relative;width:100%;height:220px }
.chart-wrap-med  { position:relative;width:100%;height:160px }

/* Section hero layout — resources.php and index.php page heroes */
.section-hero { text-align:center;padding:20px 0 48px }
.section-hero-title { font-size:clamp(32px,5vw,52px);margin-bottom:16px }
.section-hero-sub { font-size:17px;color:var(--muted);max-width:580px;margin:0 auto 32px;line-height:1.7 }

/* Footer note — small muted text at bottom of sections */
.footer-note { font-size:13px;color:var(--muted);margin-top:12px }

/* Centred action row */
.action-center { text-align:center;margin-top:24px }

/* ── CHANGELOG ────────────────────────────────────────────── */
.changelog-version-heading{
  font-size:clamp(18px,3vw,22px);
  font-weight:700;
  color:var(--text);
  letter-spacing:-.02em;
  margin:32px 0 4px;
  padding:0;
  border:none;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}


/* ── BLOG / ARTICLE PAGE ─────────────────────────────────────
   Used by guide.php and any long-form editorial content
──────────────────────────────────────────────────────────── */

/* Article meta row — reading time, date, category */
.article-meta{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:32px;
  padding-bottom:24px;
  border-bottom:1px solid var(--border);
  font-size:13px;
  color:var(--muted);
}
.article-meta-tag{
  background:var(--blue-bg);
  color:var(--blue);
  border:1px solid var(--blue-dark);
  border-radius:20px;
  padding:3px 10px;
  font-size:12px;
  font-weight:600;
  letter-spacing:.04em;
}
.article-meta-dot{ color:var(--border2) }

/* Pull quote — highlighted insight within article */
.pullquote{
  border-left:3px solid var(--blue);
  margin:32px 0;
  padding:20px 24px;
  background:var(--blue-bg);
  border-radius:0 10px 10px 0;
}
.pullquote p{
  font-size:18px;
  font-style:italic;
  line-height:1.65;
  color:var(--text);
  margin:0;
}
.pullquote cite{
  display:block;
  margin-top:10px;
  font-size:13px;
  color:var(--muted);
  font-style:normal;
}

/* Teal pull quote variant */
.pullquote-teal{
  border-left-color:var(--teal);
  background:var(--teal-bg);
}

/* Inline tool callout — links to a specific AquaCalc tool */
.tool-callout{
  display:flex;
  align-items:flex-start;
  gap:14px;
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:12px;
  padding:16px 20px;
  margin:28px 0;
  text-decoration:none;
  transition:border-color .15s, background .15s;
}
.tool-callout:hover{
  border-color:var(--blue);
  background:var(--bg3);
  text-decoration:none;
}
.tool-callout-icon{
  font-size:22px;
  flex-shrink:0;
  margin-top:1px;
}
.tool-callout-body{ min-width:0 }
.tool-callout-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--blue);
  margin-bottom:3px;
}
.tool-callout-title{
  font-size:15px;
  font-weight:600;
  color:var(--text);
  margin-bottom:4px;
}
.tool-callout-desc{
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
}
.tool-callout-arrow{
  margin-left:auto;
  padding-left:12px;
  flex-shrink:0;
  color:var(--muted);
  font-size:16px;
  align-self:center;
  transition:color .15s, transform .15s;
}
.tool-callout:hover .tool-callout-arrow{
  color:var(--blue);
  transform:translateX(3px);
}

/* Section image stand-in — decorative dividers with colour */
.article-section-break{
  display:flex;
  align-items:center;
  gap:16px;
  margin:48px 0 36px;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.article-section-break::before,
.article-section-break::after{
  content:'';
  flex:1;
  height:1px;
  background:var(--border);
}

/* Stat callout — a number that deserves emphasis mid-article */
.article-stat{
  text-align:center;
  padding:32px 24px;
  margin:36px 0;
  background:var(--bg2);
  border:1px solid var(--border);
  border-radius:14px;
}
.article-stat-number{
  font-size:clamp(36px,6vw,56px);
  font-weight:700;
  color:var(--blue);
  letter-spacing:-.03em;
  line-height:1;
  margin-bottom:8px;
}
.article-stat-label{
  font-size:15px;
  color:var(--muted);
  line-height:1.5;
}

/* Tag strip at top of article */
.article-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:24px;
}


/* ── DROPDOWN NAVIGATION ─────────────────────────────────────
   Desktop-only. Hover-triggered panels beneath nav items.
   Mobile continues to use the drawer.
──────────────────────────────────────────────────────────── */

/* Dropdown trigger button — looks like a nav link */
.nav-dropdown{
  position:relative;
  display:inline-flex;
}
.nav-dropdown-btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  padding:5px 8px;
  border-radius:6px;
  border:none;
  background:transparent;
  font-family:inherit;
  cursor:pointer;
  transition:color .15s,background .15s;
  white-space:nowrap;
  line-height:1;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn{
  color:var(--text);
  background:var(--border);
}
.nav-dropdown-chevron{
  width:12px;
  height:12px;
  flex-shrink:0;
  transition:transform .2s;
}
.nav-dropdown:hover .nav-dropdown-chevron{
  transform:rotate(180deg);
}

/* The panel itself */
.nav-dropdown-panel{
  display:flex;
  position:absolute;
  top:calc(100% + 10px);
  left:50%;
  transform:translateX(-50%) translateY(-8px);
  background:var(--bg2);
  border:1px solid var(--border2);
  border-radius:16px;
  padding:8px;
  box-shadow:0 16px 48px rgba(0,0,0,.5),0 0 0 1px var(--border);
  z-index:300;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-dropdown:hover .nav-dropdown-panel{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
  pointer-events:auto;
}
/* Dashboard panel — left-aligned since it sits left of page centre */
.nav-panel-dashboard{
  left:0;
  transform:translateY(-8px) !important;
}
.nav-dropdown:hover .nav-panel-dashboard{
  transform:translateY(0) !important;
}

/* Bridge — invisible hover area so panel doesn't close on the gap */
.nav-dropdown-panel::before{
  content:'';
  position:absolute;
  top:-12px;
  left:0;
  right:0;
  height:12px;
}

/* Column inside panel */
.nav-dropdown-col{
  display:flex;
  flex-direction:column;
  gap:1px;
  min-width:250px;
}
.nav-dropdown-col + .nav-dropdown-col{
  border-left:1px solid var(--border);
  margin-left:8px;
  padding-left:8px;
}

/* Section label inside panel */
.nav-dropdown-section-label{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.09em;
  color:var(--muted);
  padding:6px 14px 8px;
}

/* Individual dropdown item */
.nav-dropdown-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:11px 14px;
  border-radius:10px;
  text-decoration:none;
  color:var(--text2);
  transition:background .12s, color .12s;
  min-width:0;
}
.nav-dropdown-item:hover{
  background:var(--bg3);
  color:var(--text);
  text-decoration:none;
}

/* Icon — small branded SVG circle */
.nav-dropdown-icon{
  width:40px;
  height:40px;
  border-radius:10px;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.nav-dropdown-icon.icon-blue  { background:#0d2340;border:1px solid #1a4a8a }
.nav-dropdown-icon.icon-teal  { background:#0a3028;border:1px solid #1a7a62 }
.nav-dropdown-icon.icon-green { background:#0f2a14;border:1px solid #235c2a }
.nav-dropdown-icon.icon-purple{ background:#1e1a40;border:1px solid #4a3a90 }
.nav-dropdown-icon.icon-amber { background:#2e2008;border:1px solid #6a4c10 }
.nav-dropdown-icon.icon-muted { background:#252c35;border:1px solid #383f48 }

/* Item text block */
.nav-dropdown-item-body{ min-width:0 }
.nav-dropdown-item-title{
  font-size:15px;
  font-weight:600;
  color:var(--text);
  line-height:1.3;
  white-space:nowrap;
}
.nav-dropdown-item-desc{
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
  margin-top:3px;
  white-space:nowrap;
}

/* Divider within a col */
.nav-dropdown-divider{
  height:1px;
  background:var(--border);
  margin:4px 6px;
}

/* Keyboard accessibility — focus state */
.nav-dropdown-btn:focus-visible,
.nav-dropdown-item:focus-visible{
  outline:2px solid var(--blue);
  outline-offset:2px;
}

@media(max-width:768px){
  .nav-dropdown{ display:none }  /* hamburger takes over */
}
