/* TheCycledTank theme — water-inspired design system
   Palette: deep water, teal, aqua, foam, sand, coral accent.
   Type: Fraunces (display) + Inter (body). Mobile-first. */

:root {
    --deep: #062a33;
    --teal: #0e7c7b;
    --aqua: #2ec4b6;
    --foam: #eaf7f5;
    --sand: #f7f3e8;
    --coral: #ff7a59;
    --ink: #12262b;
    --muted: #5a6e73;
    --line: #dbe9e6;
    --white: #ffffff;
    --radius: 16px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.7;
    font-size: 18px;
}

/* Base heading scale (P2-11): unstyled content headings. Component
   headings keep their own sizes via higher specificity (.tool-benefits h2
   and .trust-box h2 stay 20px, .section-title stays 25.6px,
   .post-card-title stays 1.3rem); these rules lift plain content h2s
   above them so the hierarchy reads h1 > h2 > h3 > component h2. */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }

/* Skip link (P2-13): hidden until keyboard focus, then visible. */
.skip-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; background: var(--deep); color: var(--white); padding: 12px 16px; border-radius: 8px; z-index: 100; }

a { color: var(--teal); }
a:hover { color: var(--deep); }

img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 740px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
    background: var(--deep);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 16px;
    max-width: 1360px;
}
.site-logo {
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.35rem;
    text-decoration: none;
    white-space: nowrap;
}
.logo-bubble {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--aqua);
    box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.25);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.site-nav a { color: #cfe8e4; text-decoration: none; font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.site-nav a:hover { color: var(--white); }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #3d6a70;
    color: var(--white);
    border-radius: 8px;
    padding: 6px 12px;
    font: inherit;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    background: linear-gradient(180deg, var(--deep) 0%, #0a4a52 70%, #0e6a68 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 24px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35) 0 6px, transparent 7px),
                radial-gradient(circle at 70% 60%, rgba(255,255,255,0.25) 0 9px, transparent 10px),
                radial-gradient(circle at 45% 85%, rgba(255,255,255,0.2) 0 5px, transparent 6px);
    opacity: 0.5;
    pointer-events: none;
}
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 64px 24px 96px; }
.hero-kicker {
    color: var(--aqua);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0 0 12px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    margin: 0 0 16px;
    max-width: 720px;
}
.hero-text { max-width: 640px; color: #d7ece9; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero-wave { display: block; width: 100%; height: 48px; fill: var(--foam); margin-top: -1px; }

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: #f06443; color: var(--white); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* Pillars + feed */
.pillars { background: var(--foam); padding: 40px 0 8px; }
.section-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin: 0 0 16px;
}
.pillar-list { list-style: none; margin: 0; padding: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.pillar-list a {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}
.pillar-list a:hover { border-color: var(--teal); background: var(--sand); }
.post-feed { padding: 40px 24px 64px; }
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.post-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.post-card-tag {
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
    margin: 0;
}
.post-card-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; margin: 0; }
.post-card-title a { color: var(--ink); text-decoration: none; }
.post-card-title a:hover { color: var(--teal); }
.post-card-excerpt { color: var(--muted); margin: 0; font-size: 0.95rem; }
.post-card-meta, .article-meta { color: var(--muted); font-size: 0.9rem; }

/* Article */
.article-header { padding-top: 48px; }
.article-tag { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; }
.article-tag a { text-decoration: none; }
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 8px 0 12px;
}
.article-image { margin: 28px 0; }
.article-image img { border-radius: var(--radius); width: 100%; }
.article-content { padding-bottom: 24px; }
.article-content h2, .article-content h3 {
    font-family: var(--font-display);
    line-height: 1.3;
    margin-top: 2em;
}
.article-content table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.article-content th, .article-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-content th { background: var(--foam); }
.article-content img { border-radius: 12px; }
.article-content blockquote {
    border-left: 4px solid var(--aqua);
    margin: 1.5em 0;
    padding: 4px 0 4px 20px;
    color: var(--muted);
}
.article-tags { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a {
    background: var(--foam);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 0.9rem;
}
.trust-box {
    background: var(--sand);
    border: 1px solid #e8dfc6;
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 32px 0 48px;
}
.trust-box h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 8px; }
.trust-box p { margin: 0; font-size: 0.95rem; }

/* Footer */
.site-footer { background: var(--deep); color: #cfe8e4; padding: 56px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand { color: var(--white); font-family: var(--font-display); font-size: 1.4rem; margin: 0; }
.footer-tagline { color: #9fc3bd; font-size: 0.95rem; margin: 8px 0 0; }
.footer-heading { color: var(--white); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin: 0 0 12px; }
.footer-nav { justify-self: end; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.footer-links a { color: #cfe8e4; text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 24px; text-align: center; }
.footer-bottom .footer-note { max-width: 640px; margin: 0 auto; }
.footer-bottom .footer-copy { margin-top: 8px; }
.footer-note, .footer-copy { margin: 0; font-size: 0.9rem; color: #9fc3bd; }
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-nav { justify-self: start; }
}

/* Ghost image-card widths (required by Ghost's theme check) */
.kg-width-wide {
    width: min(1140px, calc(100vw - 48px));
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}
.kg-width-wide img, .kg-width-full img { width: 100%; }

/* Pagination */
.pagination { display: flex; justify-content: space-between; margin-top: 32px; }
.pagination a { text-decoration: none; font-weight: 600; }

/* Breadcrumbs (P2-14): Home > Hub > Tool, small muted trail above the tool. */
.breadcrumb { padding-top: 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { text-decoration: none; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* Species Finder */
.finder { padding: 0 24px 64px; }
.finder-controls { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.finder-controls input, .finder-controls select {
    font: inherit;
    font-size: 0.95rem;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
}
.finder-controls input { flex: 1 1 220px; }
.finder-count { color: var(--muted); font-size: 0.9rem; }
.finder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; scroll-margin-top: 96px; }
.finder-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.finder-name { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.3; margin: 0; }
.finder-sci { color: var(--muted); margin: 0; font-size: 0.95rem; }
.finder-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.finder-chip { background: var(--foam); border-radius: 999px; padding: 4px 10px; font-size: 0.85rem; }
.finder-temp { margin: 0; font-size: 0.95rem; }
.finder-badge {
    align-self: flex-start;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-beginner { background: #e2f2ef; color: #0e7c7b; }
.badge-intermediate { background: #fdf0e6; color: #9a4a0a; }
.finder-notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.9rem; }
.finder-life { margin: 0; font-size: 0.9rem; color: var(--muted); }
.finder-link { font-weight: 600; text-decoration: none; margin-top: auto; }
.finder-empty { color: var(--muted); }
@media (max-width: 900px) {
    .finder-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .finder-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    body { font-size: 17px; }
    .post-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; width: 100%; }
    .site-nav.open { display: block; }
    .site-nav ul { flex-direction: column; gap: 8px; padding: 12px 0; }
    .header-inner { flex-wrap: wrap; }
    .hero-inner { padding: 48px 24px 72px; }
}

/* Water Parameter Checker */
.checker { padding: 0 24px 64px; }
.checker-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.checker-field label, .checker-radio legend { display: block; font-weight: 600; margin-bottom: 6px; }
.checker-field input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; }
.checker-optional { font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.checker-radio { border: 0; padding: 0; margin: 0; }
.checker-radio label { display: inline-block; font-weight: 400; margin-right: 16px; }
.checker-submit { grid-column: 1 / -1; justify-self: start; background: #0e7c7b; color: #fff; border: 0; border-radius: 8px; padding: 12px 28px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.checker-note { color: var(--muted); font-size: 0.95rem; }
.checker-results { margin-top: 24px; }
.checker-banner { border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.checker-banner p { margin: 4px 0 0; }
.checker-safe { background: #e2f2ef; color: #0e5c5b; }
.checker-caution { background: #fdf0e6; color: #9a4a0a; }
.checker-action { background: #fdebe6; color: #8f2d1a; }
.checker-empty { background: #eaf7f5; color: #12262b; }
.checker-row { display: flex; gap: 12px; margin-bottom: 16px; }
.checker-row p { margin: 4px 0 0; }
.checker-pill { flex-shrink: 0; height: fit-content; padding: 2px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.pill-safe { background: #e2f2ef; color: #0e7c7b; }
.pill-caution { background: #fdf0e6; color: #9a4a0a; }
.pill-action { background: #fdebe6; color: #8f2d1a; }
.pill-info { background: #eaf7f5; color: #12262b; }
.checker-actions-title { margin: 24px 0 8px; }
.checker-actions { padding-left: 20px; }
.checker-actions li { margin-bottom: 8px; }
.checker-foot { color: var(--muted); font-size: 0.95rem; margin-top: 24px; }
@media (max-width: 640px) {
    .checker-form { grid-template-columns: 1fr; }
}

/* Tank Stocking Calculator */
.stocking { padding: 0 24px 64px; }
.stocking-form { margin-bottom: 16px; }
.stocking-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.stocking-field input[type="number"] { width: 220px; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; }
.stocking-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.stocking-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #cfe0dd; border-radius: 8px; padding: 10px 14px; }
.stocking-row a { text-decoration: none; }
.stocking-meta { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.stocking-row label { font-size: 0.9rem; white-space: nowrap; }
.stocking-row input[type="number"] { width: 64px; padding: 6px 8px; border: 1px solid #cfe0dd; border-radius: 6px; font-size: 1rem; margin-left: 6px; }
@media (max-width: 640px) {
    .stocking-list { grid-template-columns: 1fr; }
}

/* Compatibility Checker */
.compat { padding: 0 24px 64px; }
.compat-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.compat-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.compat-field select, .compat-field input[type="number"] { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }
@media (max-width: 640px) {
    .compat-form { grid-template-columns: 1fr; }
}

/* Tank Volume Calculator */
.volume { padding: 0 24px 64px; }
.volume-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.volume-hint { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.volume-picks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
.volume-picks-label { color: var(--muted); font-size: 0.95rem; margin-right: 4px; }
.volume-pick { background: #eaf7f5; color: #0e5c5b; border: 1px solid #cfe0dd; border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.volume-pick:hover { background: #d8efeb; }
.volume-big { background: #eaf7f5; border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.volume-big strong { display: block; font-size: 2rem; line-height: 1.1; color: #0e5c5b; }
.volume-big span { display: block; margin-top: 6px; color: #12262b; }
@media (max-width: 640px) {
    .volume-form { grid-template-columns: 1fr; }
}

/* Heater & Filter Sizer */
.checker-field select { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

/* Shared tool section (all calculators / explorers) */
.tool { padding: 0 24px 64px; }

/* Browse by tool (homepage, mirrors Browse by topic pills) */
.tools { padding: 40px 0 8px; scroll-margin-top: 84px; }


/* New tools batch — merged from per-tool fragments (theme v1.0.17) */
/* Shared benefits/warning blocks (one canonical rule each). */
.tool-benefits { margin: 32px 0 8px; background: #eaf7f5; border-radius: 8px; padding: 20px 24px; }
.tool-benefits h2 { font-size: 1.25rem; margin: 0 0 12px; }
.tool-benefits ul { margin: 0; padding-left: 20px; }
.tool-benefits li { margin-bottom: 8px; }
.tool-warning { background: #fdf0e6; border: 1px solid #f2c9a4; border-radius: 8px; padding: 14px 18px; margin-bottom: 20px; }
.tool-warning strong { display: block; margin-bottom: 4px; color: #9a4a0a; }
.tool-warning p { margin: 0; }


/* Shared benefits/warning blocks appear once; per-tool rules follow. */

.substrate-calculator { padding: 0 24px 64px; }

.water-change-calculator { padding: 0 24px 64px; }

.saltwater-mix-calculator { padding: 0 24px 64px; }

.co2-calculator { padding: 0 24px 64px; }

.medication-dosing-calculator { padding: 0 24px 64px; }

.salt-treatment-calculator { padding: 0 24px 64px; }

.fert-form { grid-template-columns: repeat(2, 1fr); }

.tool-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0 0 20px; }

.tool-table th, .tool-table td { border: 1px solid #cfe0dd; padding: 10px 12px; text-align: left; }

.tool-table th { background: #eaf7f5; }

.reef-form { grid-template-columns: repeat(2, 1fr); }

.reef-form .checker-radio { grid-column: 1 / -1; }

#reef-corr-fields, #reef-cons-fields { display: contents; }

.elec-form { grid-template-columns: repeat(2, 1fr); }

.elec-form .volume-hint input[type="number"] { width: 64px; padding: 4px 8px; border: 1px solid #cfe0dd; border-radius: 6px; font-size: 0.95rem; }

.nh3-form { grid-template-columns: repeat(2, 1fr); }

.cycle-form { grid-template-columns: repeat(2, 1fr); }

.cycle-form .checker-field input[type="date"] { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; }

.cycle-confirm { margin: 8px 0 20px; }

.cycle-confirm label { font-weight: 600; }

.cycle-clear { background: #8f2d1a; }

.ro-form { grid-template-columns: repeat(2, 1fr); }

.ro-form .checker-radio { grid-column: 1 / -1; }

#light-plant { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

#pond-shape, #pond-type { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

#glass-bracing { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

#glass-results .checker-action { border: 2px solid #8f2d1a; }

#feeding-type { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

@media (max-width: 640px) {
    .fert-form { grid-template-columns: 1fr; }
    .tool-table { font-size: 0.85rem; }
    .reef-form { grid-template-columns: 1fr; }
    .elec-form { grid-template-columns: 1fr; }
    .nh3-form { grid-template-columns: 1fr; }
    .cycle-form { grid-template-columns: 1fr; }
    .ro-form { grid-template-columns: 1fr; }
    .tool-benefits { padding: 16px; }
    .tool-action-btn { flex: 1 1 100%; }
}

/* Cookie consent banner (theme v1.0.18). */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; background: #115e59; color: #fff; display: flex; align-items: center; gap: 24px; padding: 18px 24px; }
.cookie-banner[hidden] { display: none; }
.cookie-text { margin: 0; flex: 1; font-size: 1rem; line-height: 1.5; }
.cookie-text a { color: #fff; text-decoration: underline; }
.cookie-ok { flex-shrink: 0; background: #9a3412; color: #fff; border: 0; border-radius: 8px; padding: 12px 28px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.cookie-ok:hover { background: #7c2d12; }
@media (max-width: 640px) {
    .cookie-banner { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .cookie-ok { width: 100%; }
}


/* Tier 1 batch 2 — merged from per-tool fragments (theme v1.0.19) */

/* Dechlorinator Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.dechlorinator-dosing-calculator { padding: 0 24px 64px; }
.dechlorinator-dosing-calculator .checker-radio { grid-column: 1 / -1; }

/* Evaporation & Top-Off Planner */
.evaporation-topoff-calculator { padding: 0 24px 64px; }
.evaporation-type { grid-column: 1 / -1; }
.evaporation-type label { display: inline-block; font-weight: 400; margin-right: 16px; }

/* Shrimp Water Parameter Checker */
.shrimp-parameter-checker { padding: 0 24px 64px; }

/* Power-Outage Backup Sizer — tool-specific CSS only.
   Layout, fields, buttons, pills, result banners, benefits and
   footnotes reuse .checker-*, .volume-* and .tool-benefits from
   screen.css — do NOT redefine those shared rules here. */
.power-outage-backup-calculator { padding: 0 24px 64px; }
.power-outage-backup-calculator .volume-form { grid-template-columns: repeat(3, 1fr); }
.outage-priority { margin: 0 0 20px; padding-left: 20px; }
.outage-priority li { margin-bottom: 8px; }
@media (max-width: 640px) {
    .power-outage-backup-calculator .volume-form { grid-template-columns: 1fr; }
}

/* Vacation / Holiday Planner — tool-specific CSS only.
   Reuses .volume-form, .checker-*, .volume-big, .tool-benefits and
   .tool-warning from screen.css — do NOT redefine them here. */
.vacation-planner { padding: 0 24px 64px; }
#vacation-fish, #vacation-care { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }

/* Drip Acclimation & Quarantine Planner */
.drip-acclimation-calculator { padding: 0 24px 64px; }
.drip-acclimation-calculator .checker-field select { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }


/* Tier 2 batch — merged from per-tool fragments (theme v1.0.20) */

/* Sump Size & Drain-Down Safety Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.sump-size-calculator { padding: 0 24px 64px; }
.sump-margin { grid-column: 1 / -1; }
.sump-margin label { display: inline-block; font-weight: 400; margin-right: 16px; }

/* GH/KH Remineralisation Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.gh-kh-remineralisation-calculator { padding: 0 24px 64px; }

/* KH / pH Buffer Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.kh-ph-buffer-calculator { padding: 0 24px 64px; }

/* CO2 Bubble Rate & Cylinder-Life Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.co2-bubble-rate-calculator { padding: 0 24px 64px; }

/* Kalkwasser Dosing & Evaporation-Ceiling Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.kalkwasser-calculator { padding: 0 24px 64px; }

/* GFO / Phosphate Media Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.gfo-dosing-calculator { padding: 0 24px 64px; }


/* Tier 3 batch — merged from per-tool fragments (theme v1.0.21) */

/* Protein Skimmer Sizer — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.protein-skimmer-sizer { padding: 0 24px 64px; }
.skimmer-bioload { grid-column: 1 / -1; }
.skimmer-bioload label { display: inline-block; font-weight: 400; margin-right: 16px; }
.protein-skimmer-sizer .skimmer-chosen td { font-weight: 600; background: #eaf7f5; }

/* Return Pump & Head-Loss Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume
   layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.return-pump-calculator { padding: 0 24px 64px; }
.return-pump-calculator .tool-table { margin-top: 24px; }

/* Reef Daily Consumption Planner — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css and are
   deliberately NOT redefined here. */
.reef-daily-consumption-planner { padding: 0 24px 64px; }
.reef-param { grid-column: 1 / -1; border: 1px solid #cfe0dd; border-radius: 8px; padding: 16px; margin: 0 0 16px; }
.reef-param legend { font-weight: 600; padding: 0 6px; }
.reef-param-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
@media (max-width: 640px) {
    .reef-param-grid { grid-template-columns: 1fr; }
}

/* Filter Bio-Media Volume Planner — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, selects,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.filter-bio-media-planner { padding: 0 24px 64px; }
.bio-media-models { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.bio-media-models .volume-big { margin-bottom: 0; }
@media (max-width: 640px) {
    .bio-media-models { grid-template-columns: 1fr; }
}

/* Chiller Sizer (BTU/hr) — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.chiller-sizer { padding: 0 24px 64px; }
.chiller-water, .chiller-unit, .chiller-margin { grid-column: 1 / -1; }
.chiller-water label, .chiller-unit label, .chiller-margin label { display: inline-block; font-weight: 400; margin-right: 16px; }

/* Floor Load & Stand Safety Checker — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.floor-load-checker { padding: 0 24px 64px; }
.floor-wide { grid-column: 1 / -1; }
.floor-wide label { display: inline-block; font-weight: 400; margin-right: 16px; }

/* Ich Heat-Treatment Timeline Planner — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.ich-heat-treatment-planner { padding: 0 24px 64px; }
.ich-unit { grid-column: 1 / -1; }
.ich-unit label { display: inline-block; font-weight: 400; margin-right: 16px; }
.ich-hold { grid-column: 1 / -1; }
.ich-hold label { display: inline-block; font-weight: 400; margin-right: 16px; }
.ich-heat-treatment-planner .checker-field select { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }
.ich-heat-treatment-planner .checker-field input[type="date"] { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; }

/* Brine Shrimp Hatch Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume
   layout, picks, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.brine-shrimp-hatch-calculator { padding: 0 24px 64px; }

/* Goldfish Stocking Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume
   layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.goldfish-stocking-calculator { padding: 0 24px 64px; }
.goldfish-type { grid-column: 1 / -1; }

/* Betta Welfare Checker — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results and pills already live in screen.css
   and are deliberately NOT redefined here. */
.betta-welfare-checker { padding: 0 24px 64px; }
.betta-full { grid-column: 1 / -1; }
.betta-full label { display: inline-block; font-weight: 400; margin-right: 16px; }


/* Tier A + Tier B batch — merged from per-tool fragments (theme v1.0.22) */

/* Actual Water Volume Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.actual-water-volume-calculator { padding: 0 24px 64px; }

/* Gallon Converter — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.gallon-converter { padding: 0 24px 64px; }

/* Hardness Converter — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, tables and pills already live in screen.css and are
   deliberately NOT redefined here. */
.hardness-converter { padding: 0 24px 64px; }

/* TDS / Conductivity Converter — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.tds-conductivity-converter { padding: 0 24px 64px; }

/* Nutrient Unit Converter — tool-specific rules only.
   Shared rules for benefits, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.nutrient-unit-converter { padding: 0 24px 64px; }

/* pH Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.ph-calculator { padding: 0 24px 64px; }

/* Dosing Pump Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.dosing-pump-calculator { padding: 0 24px 64px; }

/* Copper Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.copper-dosing-calculator { padding: 0 24px 64px; }

/* PPS-Pro Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.pps-pro-dosing-calculator { padding: 0 24px 64px; }

/* EI Dosing Schedule — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.ei-dosing-schedule { padding: 0 24px 64px; }

/* Hydrogen Peroxide Dose Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.hydrogen-peroxide-calculator { padding: 0 24px 64px; }

/* Reef Alkalinity Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.reef-alkalinity-calculator { padding: 0 24px 64px; }

/* Reef Calcium Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.reef-calcium-calculator { padding: 0 24px 64px; }

/* Reef Magnesium Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.reef-magnesium-calculator { padding: 0 24px 64px; }

/* Calcium Reactor Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.calcium-reactor-calculator { padding: 0 24px 64px; }

/* Reef Nitrate Dosing Calculator — tool-specific CSS only.
   Layout, fields, buttons, pills and result banners reuse .checker-* and
   .volume-* from screen.css. */
.nitrate-form { grid-template-columns: repeat(2, 1fr); }
.nitrate-form .checker-radio { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .nitrate-form { grid-template-columns: 1fr; }
}

/* Reef Phosphate Dosing Calculator — tool-specific CSS only.
   Layout, fields, buttons, pills and result banners reuse .checker-* and
   .volume-* from screen.css. */
.phosphate-form { grid-template-columns: repeat(2, 1fr); }
.phosphate-form .checker-radio { grid-column: 1 / -1; }
.phosphate-form select { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; margin-top: 6px; }
@media (max-width: 640px) {
    .phosphate-form { grid-template-columns: 1fr; }
}

/* Carbon Dosing Calculator — tool-specific CSS only.
   Layout, fields, buttons, pills and result banners reuse .checker-* and
   .volume-* from screen.css. The ramp-up schedule reuses .tool-table. */
.carbon-form { grid-template-columns: repeat(2, 1fr); }
.carbon-form .checker-radio { grid-column: 1 / -1; }
@media (max-width: 640px) {
    .carbon-form { grid-template-columns: 1fr; }
}

/* Reef Trace Element Calculator — tool-specific CSS only.
   Layout, fields, buttons, pills and result banners reuse .checker-* and
   .volume-* from screen.css. */
.trace-form { grid-template-columns: repeat(2, 1fr); }
.trace-form .checker-radio { grid-column: 1 / -1; }
#trace-label-field { display: contents; }
#trace-label-field[hidden] { display: none; }
@media (max-width: 640px) {
    .trace-form { grid-template-columns: 1fr; }
}

/* Hydrometer Temperature Correction Calculator — tool-specific rules only.
   Shared rules for benefits, checker fields, volume layout, notes,
   results and pills already live in screen.css and are deliberately
   NOT redefined here. */
.hydrometer-temperature-correction-calculator { padding: 0 24px 64px; }

/* Lower Salinity Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css and are
   deliberately NOT redefined here. */
.lower-salinity-calculator { padding: 0 24px 64px; }
/* Let the hyposalinity fields join the form grid as siblings; the
   [hidden] rule keeps the toggle working despite display: contents. */
.lower-salinity-calculator #hypo-fields { display: contents; }
.lower-salinity-calculator #hypo-fields[hidden] { display: none; }

/* Reef Tank Parameter Checker — tool-specific rules only.
   Shared rules for benefits, checker fields, notes, results, pills
   and actions already live in screen.css and are deliberately NOT
   redefined here. */
.reef-parameter-checker { padding: 0 24px 64px; }

/* Live Rock Calculator */
.live-rock-calculator { padding: 0 24px 64px; }

/* Coral Dip Calculator */
.coral-dip-calculator { padding: 0 24px 64px; }

/* Citric Acid CO2 Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.citric-acid-co2-calculator { padding: 0 24px 64px; }

/* CO2 Cylinder Duration Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.co2-cylinder-duration-calculator { padding: 0 24px 64px; }

/* Root Tab Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.root-tab-calculator { padding: 0 24px 64px; }

/* Carpet Plant Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.carpet-plant-calculator { padding: 0 24px 64px; }

/* Liquid Carbon Dosing Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css
   and are deliberately NOT redefined here. */
.liquid-carbon-calculator { padding: 0 24px 64px; }

/* Medicated Fish Food Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. This tool uses only shared
   classes (.volume, .volume-form, .checker-*, .volume-big,
   .volume-hint, .tool-benefits), so no tool-specific rules are
   needed. */

/* Livebearer <redacted> Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results and pills already live in screen.css and are
   deliberately NOT redefined here. */
.livebearer-gestation-calculator .checker-field input[type="date"] { width: 100%; padding: 10px 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; }
.livebearer-gestation-calculator .checker-radio { grid-column: 1 / -1; }

/* Fish Population Growth Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills and tables already live in screen.css and are
   deliberately NOT redefined here. This tool uses only shared
   classes (.volume, .volume-form, .checker-*, .volume-big,
   .volume-hint, .tool-table, .tool-benefits), so no tool-specific
   rules are needed. */

/* Minimum Tank Size Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, volume layout,
   notes, results, pills, tables and the species list already live in
   screen.css and are deliberately NOT redefined here. This tool reuses
   the stocking calculator's shared .stocking-list / .stocking-row
   classes for its species list, so no tool-specific rules are
   needed. */

/* Aquarium Dimensions Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.dimensions-calculator { padding: 0 24px 64px; }
.dimensions-table { margin-top: 24px; }

/* African Cichlid Buffer Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.african-cichlid-buffer-calculator { padding: 0 24px 64px; }

/* Dissolved Oxygen Calculator — tool-specific rules only.
   Shared rules for benefits, warnings, checker fields, radios,
   volume layout, notes, results, pills and tables already live in
   screen.css and are deliberately NOT redefined here. */
.dissolved-oxygen-calculator { padding: 0 24px 64px; }

/* Ad slot (Adsterra banner) — every page, below the header. */
.ad-slot { text-align: center; margin: 16px auto; max-width: 860px; padding: 0 16px; }
.ad-slot-footer { margin: 24px auto 8px; }
.ad-slot-inline { margin: 24px auto; }

/* Result actions (all tool pages) — Phase 3 */
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.tool-actions[hidden] { display: none; }
.tool-action-btn { background: #fff; color: #0e5c5b; border: 1px solid #0e7c7b; border-radius: 8px; padding: 8px 16px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.tool-action-btn:hover { background: #eaf7f5; }
.tool-action-btn:disabled { opacity: 0.5; cursor: default; }
.tool-actions-status { color: var(--muted); font-size: 0.9rem; }

/* Hub pages — Phase 3 */
.hub { padding: 0 24px 64px; }
.hub h2, .hub h3 { font-family: var(--font-display); line-height: 1.3; }
.hub h2 { margin: 32px 0 16px; }
.hub h3 { margin: 24px 0 12px; }

/* Print: results and title only — no header, nav, form, benefits, FAQ, footer, buttons */
@media print {
    .site-header, .site-footer, .cookie-banner, form, .tool-benefits,
    .tool-actions, .checker-foot, .hero { display: none !important; }
    .article-content, .checker-results { display: block !important; }
    body { background: #fff; color: #000; }
    .volume-big strong { color: #000; }
}

/* Tool-page redesign — shared layout (showcase: compatibility checker, v1.0.24).
   Two-column tool card: form card (left) + results card (right) on a foam
   panel; single column under 640px. These classes are shared by all tool
   templates as the redesign rolls out. Nothing above is redefined here. */
.tool-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; background: var(--foam); border-radius: var(--radius); padding: 24px; margin-bottom: 8px; }
/* Species Finder results grid lives inside .tool-layout (P2-16) and spans
   both columns below the form/results cards. */
.tool-layout .finder-grid { grid-column: 1 / -1; }
.form-card, .result-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 2px 12px rgba(6, 42, 51, 0.08); min-width: 0; }
.result-card { scroll-margin-top: 96px; }
.form-section-label, .result-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 0 0 12px; }
.form-card .form-section-label:first-child { margin-top: 0; }
.form-section-label { margin-top: 20px; }
/* Inside a multi-column .checker-form grid, section labels and the actions row
   must span all columns — otherwise each occupies a single grid cell and the
   fields stagger (labels sit as a side column, first-column inputs narrow and
   their placeholders clip). Applies to reef-parameter-checker (4 labels) and
   water-checker (2 labels), the only two forms with section labels. */
.checker-form .form-section-label, .checker-form .form-actions { grid-column: 1 / -1; }
/* Labels in a .checker-form row wrap to different heights (one-line "pH" vs
   two-line "Salinity (SG)"), which leaves their inputs at different heights.
   Flex the field so the label absorbs the slack and every input in a row sits
   on the same line. Scoped to .checker-form only (water-checker, reef-checker). */
.checker-form .tool-field { display: flex; flex-direction: column; }
.checker-form .tool-field label { flex: 1; }
.result-empty { color: var(--muted); font-size: 0.95rem; margin: 0; }
.tool-field { margin-bottom: 16px; }
.tool-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.tool-field select, .tool-field input[type="number"], .tool-field input[type="date"], .tool-field input[type="text"] { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #cfe0dd; border-radius: 8px; font-size: 1rem; background: #fff; }
.tool-field input::placeholder { color: #9db3ae; font-style: italic; }
/* Species lists are 2 columns site-wide, but cramped inside a half-width form card — single column there. (Saltwater stocking's list is not in a form card, so it is unaffected.) */
.form-card .stocking-list { grid-template-columns: 1fr; }
.tool-detail { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; min-height: 1.4em; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.tool-clear { background: transparent; color: var(--teal); border: 1px solid var(--teal); border-radius: 8px; padding: 12px 20px; font-size: 1rem; font-weight: 600; cursor: pointer; }
.tool-clear:hover { background: var(--foam); }
.verdict-word { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.2; font-weight: 700; margin: 0 0 4px; }
.verdict-safe .verdict-word { color: #0e5c5b; }
.verdict-caution .verdict-word { color: #9a4a0a; }
.verdict-action .verdict-word { color: #8f2d1a; }
.verdict-empty .verdict-word { color: var(--ink); }
.verdict-pair { font-weight: 700; font-size: 1.05rem; margin: 0 0 4px; }
.verdict-summary { color: var(--muted); font-size: 0.95rem; margin: 0 0 20px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--foam); border-radius: 8px; padding: 12px; min-width: 0; }
.stat-label { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.stat-value { display: block; font-size: 1.15rem; font-weight: 700; line-height: 1.3; overflow-wrap: break-word; }
.stat-note { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 2px; }
.check-group-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 20px 0 8px; font-weight: 700; }
.tool-action-btn.is-done { background: #e2f2ef; border-color: var(--teal); color: #0e5c5b; }

/* Data table (INTRO): dark-teal header row, zebra rows. */
.table-scroll { overflow-x: auto; margin-bottom: 20px; }
.tool-table-dark { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 0; }
.tool-table-dark th, .tool-table-dark td { border: 1px solid #cfe0dd; padding: 10px 12px; text-align: left; }
.tool-table-dark th { background: var(--deep); color: #fff; }
.tool-table-dark tbody tr:nth-child(even) { background: var(--foam); }
/* Compact variant for wide (9-column) reference tables: tighter type + padding
   so the full table fits its container at desktop width without clipping. */
.tool-table-compact { font-size: 0.88rem; }
.tool-table-compact th, .tool-table-compact td { padding: 8px 10px; }

/* Worked-example panels (INTRO): Inputs / Formula / Calculation / Result. */
.example-panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.example-panel { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.example-panel-label { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.72rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.example-panel p { margin: 0; font-size: 0.95rem; }

/* Related-tools grouped cards (INTRO). */
.related-group-label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--muted); margin: 20px 0 8px; }
.related-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.related-card { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; text-decoration: none; color: var(--ink); background: #fff; }
.related-card:hover { border-color: var(--teal); }
.related-card strong { display: block; color: var(--teal); font-size: 1rem; }
.related-card span { display: block; font-size: 0.9rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
    .tool-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
    .form-card, .result-card { padding: 20px; }
    .stat-value { font-size: 1rem; }
    .stat { padding: 10px 8px; }
    .example-panels { grid-template-columns: 1fr; }
    .related-cards { grid-template-columns: 1fr; }
}

@media print {
    .form-card { display: none !important; }
}
