﻿
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 100%);
            min-height: 100vh;
            color: #1f2937;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        header {
            padding: 2rem 0 1rem;
        }

        .site-name {
            font-size: 2rem;
            font-weight: 900;
            color: #000000;
            letter-spacing: -0.02em;
            text-decoration: none;
            display: inline-block;
        }

        .site-name:hover {
            opacity: 0.8;
        }

        .breadcrumb {
            margin-top: 0.75rem;
            font-size: 0.95rem;
            color: #6b7280;
        }

        .breadcrumb a {
            color: #6b7280;
            text-decoration: none;
        }

        .breadcrumb a:hover {
            color: #1f2937;
        }

        .breadcrumb span {
            margin: 0 0.5rem;
        }

        main {
            padding: 2rem 0 3rem;
        }

        .calculator-header {
            text-align: center;
            padding: 1.5rem 0 2rem;
        }

        .calculator-title {
            font-size: 2.5rem;
            font-weight: 800;
            color: #000000;
            margin-bottom: 1rem;
        }

        .calculator-intro {
            font-size: 1.125rem;
            color: #6b7280;
            max-width: 720px;
            margin: 0 auto;
        }

        .layout {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 360px;
            gap: 2rem;
            align-items: start;
        }

        .card {
            background: #ffffff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
            margin-bottom: 2rem;
        }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group.full {
            grid-column: 1 / -1;
        }

        label {
            display: block;
            font-weight: 700;
            color: #374151;
            margin-bottom: 0.5rem;
            font-size: 0.95rem;
        }

        input,
        select {
            width: 100%;
            min-height: 44px;
            padding: 0.875rem 1rem;
            border: 2px solid #d1d5db;
            border-radius: 8px;
            font: inherit;
            background: #ffffff;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: #be123c;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
        }

        .hint {
            color: #6b7280;
            font-size: 0.875rem;
            margin-top: 0.4rem;
        }

        .preset-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-bottom: 1.25rem;
        }

        .preset-btn,
        .calculate-btn,
        .clear-btn {
            min-height: 44px;
            border-radius: 8px;
            border: none;
            font: inherit;
            font-weight: 700;
            cursor: pointer;
        }

        .preset-btn {
            border: 2px solid #d1d5db;
            background: #ffffff;
            color: #374151;
            padding: 0.875rem 0.75rem;
        }

        .preset-btn:hover,
        .preset-btn.active {
            border-color: #be123c;
            background: #eff6ff;
            color: #1d4ed8;
        }

        .actions {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 0.75rem;
            margin-top: 1rem;
        }

        .calculate-btn {
            background: #be123c;
            color: #ffffff;
            padding: 1rem 1.25rem;
        }

        .calculate-btn:hover {
            background: #1d4ed8;
        }

        .clear-btn {
            background: #f3f4f6;
            color: #374151;
            padding: 1rem 1.25rem;
        }

        .error {
            display: none;
            background: #fef2f2;
            border: 1px solid #fecaca;
            color: #991b1b;
            padding: 1rem;
            border-radius: 8px;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .results {
            display: none;
        }

        .results.show {
            display: block;
        }

        .primary-result {
            background: linear-gradient(135deg, #be123c 0%, #1e40af 100%);
            color: #ffffff;
            border-radius: 12px;
            padding: 2rem;
            margin-bottom: 1rem;
        }

        .primary-result .label {
            font-size: 0.875rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            opacity: 0.85;
        }

        .primary-result .value {
            font-size: 2.5rem;
            font-weight: 900;
            margin-top: 0.25rem;
        }

        .metric-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1rem;
        }

        .metric {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            padding: 1rem;
        }

        .metric .label {
            color: #6b7280;
            font-weight: 700;
            font-size: 0.85rem;
            margin-bottom: 0.35rem;
        }

        .metric .value {
            color: #111827;
            font-weight: 800;
            font-size: 1.25rem;
        }

        .content-section h2 {
            font-size: 1.6rem;
            font-weight: 800;
            margin-bottom: 1rem;
            color: #000000;
        }

        .content-section h3 {
            font-size: 1.2rem;
            font-weight: 700;
            margin: 1.5rem 0 0.5rem;
        }

        .content-section p {
            color: #4b5563;
            margin-bottom: 1rem;
        }

        .content-section ul {
            padding-left: 1.5rem;
            color: #4b5563;
            margin-bottom: 1rem;
        }

        .content-section li {
            margin-bottom: 0.5rem;
        }

        .content-section a {
            color: #be123c;
            font-weight: 700;
            text-decoration: none;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 1rem;
        }

        th,
        td {
            padding: 0.75rem;
            border-bottom: 1px solid #e5e7eb;
            text-align: left;
        }

        th {
            background: #f9fafb;
            color: #374151;
            font-size: 0.875rem;
        }

        footer {
            padding: 2rem 0;
            text-align: center;
            border-top: 1px solid #e5e7eb;
            margin-top: 3rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem 1rem;
            font-size: 0.95rem;
        }

        .footer-links a {
            color: #6b7280;
            text-decoration: none;
        }

        .footer-links a:hover {
            color: #1f2937;
        }

        @media (max-width: 900px) {
            .layout {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 640px) {
            .container {
                padding: 0 1rem;
            }

            .calculator-title {
                font-size: 2rem;
            }

            .form-grid,
            .metric-grid,
            .preset-row,
            .actions {
                grid-template-columns: 1fr;
            }
        }
    

.form-group .input-wrap{display:flex;align-items:stretch}.form-group .input-wrap b,.form-group .input-wrap em{display:flex;align-items:center;padding:0 .75rem;background:#f3f4f6;border:1px solid #d1d5db;color:#4b5563;font-style:normal}.form-group .input-wrap b{border-right:0;border-radius:6px 0 0 6px}.form-group .input-wrap em{border-left:0;border-radius:0 6px 6px 0}.form-group .input-wrap input{border-radius:6px}.form-group .input-wrap b+input{border-radius:0 6px 6px 0}.form-group .input-wrap input:has(+em){border-radius:6px 0 0 6px}.formula-box{margin:1rem 0;padding:1rem 1.1rem;background:#eff6ff;border-left:4px solid #be123c;border-radius:4px;color:#1e40af;font-weight:600}.result-note{margin-top:1rem;color:#6b7280;font-size:.9rem;line-height:1.5}.example-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:.75rem;margin:1rem 0}.example-item{padding:.8rem;background:#f9fafb;border:1px solid #e5e7eb;border-radius:6px}.example-item strong{display:block;color:#374151;margin-bottom:.2rem}.result-table{width:100%;border-collapse:collapse;margin:1rem 0}.result-table th,.result-table td{padding:.7rem;text-align:left;border-bottom:1px solid #e5e7eb}.faq-item{padding:.85rem 0;border-bottom:1px solid #e5e7eb}.faq-item:last-child{border-bottom:0}.faq-item h3{margin:0 0 .45rem;color:#1f2937}.tool-grid,.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1.25rem 0}.tool-card{display:block;padding:1rem;border:1px solid #e5e7eb;border-radius:8px;text-decoration:none;color:#1f2937;background:#fff}.tool-card:hover{border-color:#be123c;background:#eff6ff}.tool-card strong{display:block;color:#1d4ed8;margin-bottom:.4rem}.tool-card span{color:#6b7280;font-size:.92rem;line-height:1.45}.responsible-note{font-size:.9rem;color:#6b7280;border-top:1px solid #e5e7eb;padding-top:1rem}.content-section h2:not(:first-child){margin-top:2rem}.content-section h3{margin-top:1.3rem}.content-section p,.content-section li{line-height:1.7}.section-kicker{color:#be123c;font-weight:700;text-transform:uppercase;font-size:.78rem;letter-spacing:.06em;margin-bottom:.4rem}@media(max-width:700px){.example-grid{grid-template-columns:1fr}.tool-grid,.category-grid{grid-template-columns:1fr}}
.results.error .primary-result .value{color:#9b2c2c}.results.error{border-color:#e3a7a7}.form-group input[aria-invalid="true"],.form-group select[aria-invalid="true"]{border-color:#b42318;box-shadow:0 0 0 2px rgba(180,35,24,.12)}
/* Electricity editorial variation styles 20260707 */
.content-section.article-section{max-width:920px;margin:0 auto 2rem;padding:1.7rem 1.9rem;background:#fff;border:1px solid #e5e7eb;border-left:4px solid #93c5fd;border-radius:12px;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.content-section.note-section{max-width:920px;margin:0 auto 2rem;padding:1.45rem 1.65rem;background:#f8fafc;border:1px solid #dbe3ee;border-left:4px solid #64748b;border-radius:10px}
.content-section.soft-card{box-shadow:none;background:#fcfcfd}
.content-section.compact-card{padding:1.55rem 1.7rem}
.content-section ol{padding-left:1.5rem;color:#4b5563;margin-bottom:1rem}.content-section ol li{margin-bottom:.5rem}
.content-section .input-table,.content-section .record-table{margin:1rem 0 1.1rem}.content-section .input-table td,.content-section .input-table th,.content-section .record-table td,.content-section .record-table th{vertical-align:top}
.input-guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem;margin:1rem 0}.input-guide dt{font-weight:800;color:#374151}.input-guide dd{color:#4b5563;margin-top:.25rem}
.example-grid span{color:#4b5563}.content-section .faq-list{margin-top:.5rem}
@media(max-width:700px){.content-section.article-section,.content-section.note-section{padding:1.25rem;margin-bottom:1.5rem}.input-guide{grid-template-columns:1fr}}

/* Health article layout */
.editorial-content{width:100%;margin-top:2.25rem}
.editorial-content>.content-section{width:100%;max-width:none;margin-left:0;margin-right:0;margin-bottom:1.5rem}
.editorial-content>.content-section.article-section,.editorial-content>.content-section.note-section{max-width:none}
.calculator-form-card{min-width:0}

/* Purpose-driven Health layouts, 2026-07-27 */
.health-tool-type{color:#64748b;font-size:.76rem;font-weight:800;letter-spacing:.09em;margin:.25rem 0 .65rem;text-transform:uppercase}
.scope-banner{border:1px solid #dbe3ee;border-left:5px solid #be123c;border-radius:10px;color:#475569;margin:0 0 1.6rem;padding:1rem 1.15rem}
.scope-banner a{color:#9f1239;font-weight:700;text-underline-offset:3px}
.health-archetype .editorial-content>.content-section{max-width:none}

.health-archetype--clinical .calculator-header{background:#172033;border-radius:6px;color:#fff;margin:1rem 0 1.5rem;padding:2.25rem;text-align:left}
.health-archetype--clinical .calculator-header .calculator-title{color:#fff}
.health-archetype--clinical .calculator-header .calculator-intro{color:#dbe4f0;margin:0}
.health-archetype--clinical .calculator-header .section-kicker,.health-archetype--clinical .health-tool-type{color:#fda4af}
.health-archetype--clinical .scope-banner{background:#fff7ed;border-color:#fed7aa;border-left-color:#c2410c}
.health-archetype--clinical .layout{grid-template-columns:1fr}
.health-archetype--clinical .calculator-form-card{border-radius:4px;box-shadow:none}
.health-archetype--clinical .results{align-items:stretch;border:3px solid #172033;border-radius:4px;display:grid;gap:1rem;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr)}
.health-archetype--clinical .primary-result{border-radius:0;margin:0}
.health-archetype--clinical .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.health-archetype--clinical .editorial-content{display:grid;gap:0 2rem;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr)}
.health-archetype--clinical .method-section,.health-archetype--clinical .detail-section,.health-archetype--clinical .faq-section{grid-column:1/-1}
.health-archetype--clinical .method-section{border-left-color:#be123c}

.health-archetype--nutrition .calculator-header{background:linear-gradient(135deg,#fff7ed,#fefce8);border:1px solid #fed7aa;border-radius:24px;margin:1rem 0 1.75rem;padding:2.25rem;text-align:left}
.health-archetype--nutrition .calculator-header .calculator-intro{margin:0}
.health-archetype--nutrition .health-tool-type{color:#9a3412}
.health-archetype--nutrition .scope-banner{background:#fffbeb;border-color:#fde68a;border-left-color:#d97706}
.health-archetype--nutrition .layout{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)}
.health-archetype--nutrition .results{position:sticky;top:1rem}
.health-archetype--nutrition .primary-result{background:linear-gradient(135deg,#9a3412,#c2410c)}
.health-archetype--nutrition .editorial-content{display:grid;gap:0 2rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.health-archetype--nutrition .editorial-content>.content-section{border-radius:8px;box-shadow:none}
.health-archetype--nutrition .detail-section,.health-archetype--nutrition .method-section,.health-archetype--nutrition .faq-section{grid-column:1/-1}

.health-archetype--movement .calculator-header{border-bottom:6px solid #047857;margin-bottom:1.5rem;padding:1.5rem 0;text-align:left}
.health-archetype--movement .calculator-header .calculator-intro{margin:0}
.health-archetype--movement .health-tool-type{color:#047857}
.health-archetype--movement .scope-banner{background:#ecfdf5;border-color:#a7f3d0;border-left-color:#047857}
.health-archetype--movement .layout{grid-template-columns:minmax(340px,.85fr) minmax(0,1.15fr)}
.health-archetype--movement .results{background:#064e3b;display:block}
.health-archetype--movement .primary-result{background:transparent;border-bottom:1px solid rgba(255,255,255,.25);border-radius:0}
.health-archetype--movement .metric{background:#fff}
.health-archetype--movement .editorial-content{display:grid;gap:0 2.2rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.health-archetype--movement .inputs-section,.health-archetype--movement .example-section{border-top:4px solid #10b981}
.health-archetype--movement .detail-section,.health-archetype--movement .faq-section{grid-column:1/-1}

.health-archetype--family .calculator-header{background:#fdf2f8;border-left:8px solid #be185d;margin:1rem 0 1.5rem;padding:2rem;text-align:left}
.health-archetype--family .calculator-header .calculator-intro{margin:0}
.health-archetype--family .health-tool-type{color:#9d174d}
.health-archetype--family .scope-banner{background:#fdf4ff;border-color:#f5d0fe;border-left-color:#a21caf}
.health-archetype--family .layout{grid-template-columns:1fr}
.health-archetype--family .results{align-items:center;background:#fdf2f8;border:1px solid #fbcfe8;display:grid;gap:1rem;grid-template-columns:minmax(230px,.7fr) minmax(0,1.3fr)}
.health-archetype--family .primary-result{background:linear-gradient(135deg,#9d174d,#be185d);margin:0}
.health-archetype--family .metric-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.health-archetype--family .editorial-content{max-width:900px}
.health-archetype--family .detail-section{background:#fdf2f8;border-left-color:#be185d}

.health-archetype--tracker .calculator-header{max-width:780px;padding:1.25rem 0 1.5rem;text-align:left}
.health-archetype--tracker .calculator-header .calculator-intro{margin:0}
.health-archetype--tracker .health-tool-type{color:#1d4ed8}
.health-archetype--tracker .scope-banner{background:#eff6ff;border-color:#bfdbfe;border-left-color:#2563eb}
.health-archetype--tracker .layout{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}
.health-archetype--tracker .card{border-radius:18px}
.health-archetype--tracker .primary-result{background:linear-gradient(135deg,#1e3a8a,#2563eb)}
.health-archetype--tracker .editorial-content{display:grid;gap:0 2rem;grid-template-columns:repeat(2,minmax(0,1fr))}
.health-archetype--tracker .purpose-section,.health-archetype--tracker .faq-section{grid-column:1/-1}
.health-archetype--tracker .editorial-content>.content-section{background:transparent;border:0;border-top:2px solid #dbeafe;border-radius:0;box-shadow:none;padding:1.4rem 0}

.health-archetype--daily .calculator-header{max-width:850px;padding:1.5rem 0;text-align:left}
.health-archetype--daily .calculator-header .calculator-intro{margin:0}
.health-archetype--daily .health-tool-type{color:#7c3aed}
.health-archetype--daily .scope-banner{background:#faf5ff;border-color:#e9d5ff;border-left-color:#7c3aed}
.health-archetype--daily .layout{grid-template-columns:minmax(0,1fr) minmax(320px,.8fr)}
.health-archetype--daily .results{border-radius:0;box-shadow:none}
.health-archetype--daily .primary-result{background:linear-gradient(135deg,#5b21b6,#7c3aed);border-radius:0}
.health-archetype--daily .editorial-content{max-width:860px}
.health-archetype--daily .editorial-content>.content-section{background:#fff;border:0;border-bottom:1px solid #e5e7eb;border-radius:0;box-shadow:none;padding:1.5rem 0}

@media(max-width:900px){
 .health-archetype .layout,.health-archetype--clinical .layout,.health-archetype--nutrition .layout,.health-archetype--movement .layout,.health-archetype--family .layout,.health-archetype--tracker .layout,.health-archetype--daily .layout{grid-template-columns:1fr}
 .health-archetype--clinical .editorial-content,.health-archetype--nutrition .editorial-content,.health-archetype--movement .editorial-content,.health-archetype--tracker .editorial-content{display:block}
 .health-archetype--nutrition .results{position:static}
}
@media(max-width:640px){
 .calculator-header.calculator-header--clinical,.calculator-header.calculator-header--nutrition,.calculator-header.calculator-header--family{border-radius:8px;padding:1.5rem}
 .health-archetype--clinical .results,.health-archetype--family .results{display:block}
 .health-archetype--clinical .metric-grid,.health-archetype--family .metric-grid{grid-template-columns:1fr}
}

.clinical-verification-section{
 border:1px solid #99b8d4;
 border-left:5px solid #245b88;
 border-radius:8px;
 background:#f4f9fd;
 padding:1.4rem 1.55rem;
}
.clinical-verification-section h2{color:#173f61}
.clinical-verification-section p:last-child{margin-bottom:0}

/* Accessible, clickable Health FAQ rows */
.faq-item summary{color:#1f2937;cursor:pointer;font-weight:750;list-style-position:outside;padding:.15rem 1.5rem .15rem 0;position:relative}
.faq-item summary::after{content:"+";font-size:1.15rem;font-weight:800;position:absolute;right:.15rem;top:.05rem}
.faq-item[open] summary::after{content:"−"}
.faq-item summary:focus-visible{outline:3px solid rgba(190,18,60,.25);outline-offset:4px}
.faq-item>p{margin:.65rem 0 .1rem;padding-right:1.5rem}

