@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
    --bg-body: #eef2f6;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;
    --navy-dark: #0f2537;
    --navy-mid: #163650;
    --navy-light: #204b6d;
    --teal-accent: #0d9488;
    --teal-hover: #0f766e;
    --teal-soft: #f0fdfa;
    --blue-action: #1d4ed8;
    --blue-soft: #eff6ff;
    --amber-gold: #d97706;
    --amber-soft: #fffbeb;
    --text-main: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(15, 37, 55, 0.08);
    --shadow-md: 0 4px 12px rgba(15, 37, 55, 0.08);
    --shadow-lg: 0 10px 25px rgba(15, 37, 55, 0.12);
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --font-heading: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
    --bg-body: #0b131e;
    --bg-card: #152232;
    --bg-subtle: #101b29;
    --navy-dark: #080f18;
    --navy-mid: #122132;
    --navy-light: #1e3550;
    --teal-soft: rgba(13, 148, 136, 0.15);
    --blue-soft: rgba(29, 78, 216, 0.18);
    --amber-soft: rgba(217, 119, 6, 0.15);
    --text-main: #f1f5f9;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #2a3f58;
    --border-soft: #1f3044;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--text-main); }
a { color: var(--blue-action); text-decoration: none; transition: all 0.15s ease; }
a:hover { color: var(--teal-accent); }

.container { max-width: 1220px; margin: 0 auto; padding: 0 20px; }

/* 1. Top Utility Header Bar */
.top-utility {
    background: #091724;
    color: #cbd5e1;
    font-size: 0.78rem;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-utility .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.util-left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.util-left span { display: inline-flex; align-items: center; gap: 6px; }
.util-left i { color: #2dd4bf; }
.util-right { display: flex; gap: 14px; align-items: center; }
.util-right a { color: #94a3b8; font-weight: 500; }
.util-right a:hover { color: #fff; }

/* 2. Main Classic Portal Header */
.site-header {
    background: var(--navy-dark);
    color: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff !important;
    text-decoration: none !important;
}
.brand-emblem {
    width: 44px;
    height: 44px;
    background: var(--teal-accent);
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(0,0,0,0.2);
}
.brand-text-wrap { line-height: 1.15; }
.brand-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}
.brand-title span { color: #2dd4bf; }
.brand-tagline {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.header-search {
    flex: 1;
    max-width: 460px;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    color: #fff;
    font-size: 0.9rem;
    font-family: var(--font-body);
    outline: none;
}
.header-search input::placeholder { color: #94a3b8; }
.header-search input:focus {
    background: #ffffff;
    color: #0f172a;
    border-color: #2dd4bf;
}
.header-search i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.88rem;
}

.header-controls { display: flex; align-items: center; gap: 10px; }
.btn-theme {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-theme:hover { background: rgba(255,255,255,0.2); }

/* 3. Secondary Category Navigation Bar (No Horizontal Scrollbar, Mobile Friendly) */
.sub-navbar {
    background: var(--navy-mid);
    border-bottom: 3px solid var(--teal-accent);
    position: sticky;
    top: 0;
    z-index: 95;
    box-shadow: var(--shadow-sm);
}
.sub-nav-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    flex-wrap: wrap;
    gap: 2px;
}
.sub-nav-list li {
    flex: 1 1 auto;
    text-align: center;
}
.sub-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 11px 10px;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}
.sub-nav-list a i { color: #2dd4bf; font-size: 0.85rem; }
.sub-nav-list a:hover, .sub-nav-list a.active {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    border-bottom-color: #fbbf24;
}
@media (max-width: 768px) {
    .sub-navbar { position: relative; }
    .sub-nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: rgba(255,255,255,0.08);
    }
    .sub-nav-list li:first-child {
        grid-column: 1 / -1;
    }
    .sub-nav-list a {
        padding: 10px 8px;
        font-size: 0.8rem;
        background: var(--navy-mid);
        margin-bottom: 0;
        border-bottom: none;
    }
    .sub-nav-list a.active {
        background: var(--navy-light);
        color: #fbbf24;
    }
    .header-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .brand-logo {
        justify-content: space-between;
    }
    .header-search {
        max-width: 100%;
    }
    .dept-tools-grid {
        grid-template-columns: 1fr !important;
    }
    .contact-two-col {
        grid-template-columns: 1fr !important;
    }
}

/* 4. Homepage Above-the-Fold 2-Column Portal Showcase */
.portal-showcase {
    padding: 28px 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 28px;
}
.showcase-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 28px;
    align-items: stretch;
}
@media (max-width: 960px) {
    .showcase-grid { grid-template-columns: 1fr; }
}
.showcase-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kicker-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal-soft);
    color: var(--teal-hover);
    border: 1px solid rgba(13, 148, 136, 0.3);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    width: fit-content;
    margin-bottom: 12px;
}
.showcase-intro h1 {
    font-size: clamp(1.65rem, 2.6vw, 2.2rem);
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 12px;
    color: var(--text-main);
}
.showcase-intro p {
    color: var(--text-body);
    font-size: 0.98rem;
    margin-bottom: 18px;
}

.quick-dept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
    margin-top: 6px;
}
.dept-tile {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--navy-mid);
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.85rem;
}
.dept-tile i {
    font-size: 1.1rem;
    color: var(--teal-accent);
    width: 22px;
    text-align: center;
}
.dept-tile span small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}
.dept-tile:hover {
    border-color: var(--teal-accent);
    background: var(--teal-soft);
    transform: translateY(-1px);
}

/* Quick Estimator Box on Homepage Right Column */
.home-quick-calc {
    background: var(--navy-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid #fbbf24;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.hqc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.hqc-head h2 { color: #fff; font-size: 1.08rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.hqc-head h2 i { color: #fbbf24; }
.hqc-row { margin-bottom: 12px; }
.hqc-row label { display: block; font-size: 0.78rem; color: #cbd5e1; font-weight: 600; margin-bottom: 4px; }
.hqc-row select, .hqc-row input {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.95);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: var(--font-body);
}
.hqc-result-banner {
    background: rgba(13, 148, 136, 0.25);
    border: 1px solid #2dd4bf;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hqc-res-val { font-size: 1.5rem; font-weight: 800; color: #5eead4; }

/* 5. Organized Portal Department Sections (Replaces the 77-Card Dump!) */
.dept-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dept-bar {
    background: var(--navy-mid);
    color: #ffffff;
    padding: 13px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--teal-accent);
}
.dept-bar h2 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}
.dept-bar h2 i { color: #2dd4bf; }
.dept-bar a.view-all {
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    padding: 5px 12px;
    border-radius: var(--radius-sm);
}
.dept-bar a.view-all:hover { background: rgba(255,255,255,0.16); }

.dept-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(355px, 1fr));
    gap: 0;
}
.tool-row-card {
    padding: 16px 20px;
    border-right: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.12s ease;
}
.tool-row-card:hover { background: var(--bg-subtle); }
.tool-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}
.tool-row-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
}
.tool-row-card h3 a { color: var(--text-main); }
.tool-row-card h3 a:hover { color: var(--blue-action); text-decoration: underline; }
.price-pill {
    background: var(--teal-soft);
    color: var(--teal-hover);
    border: 1px solid rgba(13, 148, 136, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.tool-row-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    line-height: 1.45;
}
.tool-row-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.77rem;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px dashed var(--border-soft);
}
.btn-open-calc {
    color: var(--blue-action);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 6. Single Article & Calculator Page Layout */
.breadcrumbs {
    padding: 14px 0 10px;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}
.breadcrumbs a { color: var(--text-body); font-weight: 600; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    margin-bottom: 56px;
    align-items: start;
}
@media (max-width: 980px) {
    .article-layout { grid-template-columns: 1fr; }
}

.article-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: clamp(20px, 3.2vw, 34px);
    box-shadow: var(--shadow-sm);
}
.article-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-soft);
}
.article-header h1 {
    font-size: clamp(1.55rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.24;
    margin: 10px 0 12px;
}
.author-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-soft);
}
.author-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}
.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--navy-mid);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 700;
}
.verified-pill {
    color: var(--teal-hover);
    background: var(--teal-soft);
    padding: 2px 9px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.76rem;
    border: 1px solid rgba(13, 148, 136, 0.25);
}

/* 7. Tactile 2-Column Calculator Application (Inputs Left + Live Receipt Right!) */
.calc-widget {
    background: var(--bg-subtle);
    border: 2px solid var(--navy-mid);
    border-radius: var(--radius-md);
    margin: 22px 0 32px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.calc-banner-top {
    background: var(--navy-mid);
    color: #fff;
    padding: 13px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 3px solid var(--teal-accent);
}
.calc-banner-top h2 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}
.calc-banner-top h2 i { color: #2dd4bf; }
.calc-banner-badge {
    background: rgba(255,255,255,0.12);
    color: #e2e8f0;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.calc-app-body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
    padding: 22px;
    align-items: stretch;
}
@media (max-width: 780px) {
    .calc-app-body { grid-template-columns: 1fr; }
}

.calc-inputs-pane {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.calc-field {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.calc-field-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.calc-field label {
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--text-main);
}
.calc-field input[type="number"], .calc-field select {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 700;
    font-family: var(--font-body);
}
.calc-field input[type="range"] {
    width: 100%;
    margin-top: 8px;
    accent-color: var(--teal-accent);
    cursor: pointer;
}
.calc-btn-row {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.btn-calc {
    flex: 1;
    background: var(--teal-accent);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(13, 148, 136, 0.25);
}
.btn-calc:hover { background: var(--teal-hover); }
.btn-reset {
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--border-color);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Official Estimate Receipt Pane (Right Side of Calculator) */
.calc-receipt-pane {
    background: var(--navy-dark);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
}
.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255,255,255,0.22);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 700;
}
.receipt-main-box {
    text-align: center;
    padding: 16px 10px;
    margin: 12px 0;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.receipt-main-lbl { font-size: 0.78rem; color: #cbd5e1; text-transform: uppercase; font-weight: 600; }
.receipt-main-val { font-size: 2.2rem; font-weight: 800; color: #2dd4bf; line-height: 1.15; margin-top: 4px; }

.receipt-range-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.receipt-mini-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
}
.receipt-mini-lbl { font-size: 0.7rem; color: #94a3b8; text-transform: uppercase; }
.receipt-mini-val { font-size: 1.05rem; font-weight: 700; color: #f8fafc; margin-top: 2px; }

.split-bar-wrap {
    padding-top: 10px;
    border-top: 1px dashed rgba(255,255,255,0.2);
}
.split-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 6px;
}
.split-bar {
    height: 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    overflow: hidden;
    display: flex;
}
.split-seg-1 { background: #38bdf8; height: 100%; transition: width 0.25s ease; }
.split-seg-2 { background: #2dd4bf; height: 100%; transition: width 0.25s ease; }

.receipt-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.76rem;
    color: #94a3b8;
}
.btn-print {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
}
.btn-print:hover { background: rgba(255,255,255,0.2); }

/* 8. Quick Key Takeaways Bar inside Article */
.quick-stats-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 20px 0 26px;
}
@media (max-width: 640px) { .quick-stats-strip { grid-template-columns: 1fr; } }
.qs-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--teal-accent);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.qs-card small { display: block; font-size: 0.73rem; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.qs-card strong { font-size: 1.15rem; color: var(--text-main); font-weight: 800; }

/* 9. Article Content & Zebra Data Tables */
.article-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 30px 0 12px;
    padding: 8px 0 8px 12px;
    border-left: 4px solid var(--teal-accent);
    background: var(--bg-subtle);
    color: var(--text-main);
}
.article-content h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.article-content p { margin-bottom: 15px; color: var(--text-body); }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; color: var(--text-body); }
.article-content li { margin-bottom: 8px; }

.data-table-wrap {
    overflow-x: auto;
    margin: 18px 0 26px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.data-table th {
    background: var(--navy-mid);
    color: #ffffff;
    font-weight: 700;
    text-align: left;
    padding: 11px 14px;
}
.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-body);
}
.data-table tbody tr:nth-child(even) td { background: var(--bg-subtle); }
.data-table tbody tr:hover td { background: var(--teal-soft); }

.callout-box {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--navy-mid);
    background: var(--bg-subtle);
    padding: 15px 18px;
    border-radius: var(--radius-sm);
    margin: 20px 0;
}
.callout-box.tip { border-left-color: var(--teal-accent); background: var(--teal-soft); }
.callout-box.warn { border-left-color: var(--amber-gold); background: var(--amber-soft); }
.callout-title {
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

/* Interactive Collapsible FAQ Accordion */
details.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    background: var(--bg-card);
    overflow: hidden;
}
details.faq-item summary {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.96rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
    background: var(--bg-subtle);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--teal-accent);
}
details.faq-item[open] summary::after { content: "−"; }
details.faq-item .faq-a {
    padding: 14px 16px;
    font-size: 0.92rem;
    color: var(--text-body);
    border-top: 1px solid var(--border-soft);
}

/* Sidebar */
.article-sidebar { position: sticky; top: 58px; display: flex; flex-direction: column; gap: 18px; }
.side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.side-card-head {
    background: var(--navy-mid);
    color: #fff;
    padding: 11px 16px;
    font-size: 0.86rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.side-card-head i { color: #2dd4bf; }
.side-card-body { padding: 14px 16px; }
.toc-list, .related-list { list-style: none; margin: 0; padding: 0; }
.toc-list li, .related-list li {
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.85rem;
    line-height: 1.38;
}
.toc-list li:last-child, .related-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.toc-list a { color: var(--text-body); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.toc-list a:hover { color: var(--teal-accent); font-weight: 700; }
.related-list a { font-weight: 600; color: var(--text-main); display: flex; align-items: flex-start; gap: 8px; }
.related-list a:hover { color: var(--blue-action); }

/* Footer */
.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    padding: 48px 0 32px;
    margin-top: 60px;
    font-size: 0.86rem;
    border-top: 4px solid var(--teal-accent);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 32px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.92rem; margin-bottom: 12px; font-weight: 700; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 7px; }
.footer-col a { color: #cbd5e1; }
.footer-col a:hover { color: #2dd4bf; }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
}
