@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/source-sans-400.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/source-sans-600.woff2") format("woff2");
}
@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/source-sans-700.woff2") format("woff2");
}

:root {
    --navy: #00305e;
    --navy-deep: #00264a;
    --blue: #006198;
    --blue-dark: #004e7a;
    --ink: #142033;
    --muted: #3d4c5c;
    --line: #d5dee6;
    --gray: #f3f5f7;
    --paper: #ffffff;
    --shadow: 0 10px 28px rgba(0, 48, 94, 0.08);
    --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
    --sidebar: 260px;
    --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 19px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    color: var(--navy);
    margin: 0;
}
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 80;
    background: #fff;
    color: var(--navy);
    padding: 8px 14px;
    border-radius: 6px;
}
.skip:focus { top: 12px; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }
.kicker {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
}
.lede { margin: 14px 0 0; max-width: 42rem; color: var(--muted); font-size: 20px; }
.muted { color: var(--muted); font-size: 16px; }
.vh {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 22px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #e7f3fa; border-color: #e7f3fa; color: var(--navy); }
.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.8);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn-secondary {
    background: #fff;
    color: var(--navy);
    border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 16px; }
.btn-xs { min-height: 36px; padding: 4px 12px; font-size: 15px; }
.btn-block { width: 100%; }

.nav-toggle, .menu-btn {
    display: none;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 2px solid var(--navy);
    background: #fff;
    color: var(--navy);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

label, .field-label { display: block; margin: 0 0 6px; font-size: 16px; font-weight: 700; color: var(--ink); }
/* Untyped inputs (the live name box) and every text-like control, with or without a class. */
.field > :is(
    input:not([type]),
    input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
    input[type="number"], input[type="search"], input[type="url"], input[type="date"],
    select, textarea
),
input:not([type]),
input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="search"], input[type="url"], input[type="date"],
select, textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    box-sizing: border-box;
}
textarea { min-height: 120px; resize: vertical; }
.field > :is(input, select, textarea):focus,
input:focus, select:focus, textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 97, 152, 0.16);
    outline: 3px solid var(--blue);
    outline-offset: 2px;
}
input:disabled, select:disabled, textarea:disabled {
    background: #eef2f5;
    color: var(--muted);
    cursor: not-allowed;
}
.is-invalid,
input.is-invalid, select.is-invalid, textarea.is-invalid {
    border-color: #9b2c2c;
    background: #fff8f7;
}
.field-error { margin: 6px 0 0; color: #8d322c; font-size: 15px; font-weight: 700; }
.docs.is-invalid { outline: 2px solid #9b2c2c; outline-offset: 4px; border-radius: 8px; }
.btn:disabled, .btn[aria-disabled="true"] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    filter: grayscale(0.35);
}
input[type="file"] { font: inherit; font-size: 16px; max-width: 100%; }
input[type="range"] { width: 100%; accent-color: var(--blue); min-height: 32px; }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; opacity: 0.55; }
input[type="checkbox"], input[type="radio"] {
    width: 1.2rem;
    height: 1.2rem;
    min-height: 0;
    accent-color: var(--blue);
}
label.check, label.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 600;
    color: var(--muted);
}
.field { margin-bottom: 16px; min-width: 0; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.g2 > *, .upload-grid > *, .docs > *, .uploads > * { min-width: 0; }
.filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) auto;
    gap: 12px;
    align-items: end;
}
.filters-duo { grid-template-columns: minmax(0, 1fr) auto; }
.btn-row, .filters .btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form select { width: auto; min-width: 8rem; min-height: 42px; padding-inline: 12px; }

.panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel-h { padding: 18px 22px 0; }
.panel-h h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}
.panel-b { padding: 16px 22px 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { padding: 14px 16px; text-align: left; vertical-align: middle; }
th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    background: #f7f9fb;
}
td { border-bottom: 1px solid #e8eef3; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f5f9fc; }
tr.is-flagged td { background: #fdf4f4; }
tr.is-flagged td:first-child { box-shadow: inset 3px 0 0 #9b2c2c; }
tr.is-flagged strong { color: #8d322c; }
.id-cell { font-weight: 700; color: var(--blue); white-space: nowrap; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.badge-pending { background: #f8ead0; color: #7a4e0d; }
.badge-review { background: #e3f2fb; color: #004e7a; }
.badge-done { background: #e3f6ea; color: #146338; }
.badge-flag { background: #f8e3df; color: #8d322c; }
.badge-neutral { background: #e8eef3; color: #3d4c5c; }

.flash {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #e7f6ee;
    color: #145c34;
    border: 1px solid #b7e4c7;
}
.flash-error { background: #fdeceb; color: #8a2e28; border-color: #f3c4c0; }
.flash ul { margin: 0; padding-left: 18px; }
.empty { padding: 28px 16px; text-align: center; }
.empty strong { display: block; font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.empty p { margin: 0; color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pager-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
.pager-link:hover { border-color: var(--blue); color: var(--blue); }
.pager-link.is-disabled { color: var(--muted); }
.pager-status { color: var(--muted); font-size: 15px; }

.page-head { margin: 4px 0 22px; }
.page-head h1 { font-size: clamp(34px, 4vw, 46px); }
.page-head .lede { font-size: 18px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    padding: 18px 16px;
}
.stat b {
    display: block;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1;
}
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; font-weight: 700; }
.stat[data-tone="pending"] { border-top-color: #c4841d; }
.stat[data-tone="done"] { border-top-color: #1e6b45; }
.legend { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.case-rail { position: sticky; top: 16px; }
.note { padding: 14px 0; border-top: 1px solid var(--line); }
.note:first-child { border-top: 0; padding-top: 0; }
.cure {
    margin-top: 8px;
    padding: 16px;
    border-radius: 8px;
    background: #fdf4f4;
    border: 1px solid #f0d0cc;
}
.cure > label { color: #8d322c; }

/* Public chrome */
.util {
    background: var(--blue);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.util-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 42px;
}
.util p { margin: 0; }
.util-links { display: flex; gap: 18px; }
.util a { color: #fff; text-decoration: none; font-weight: 700; }
.util a:hover { text-decoration: underline; }

.site-head {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.site-head.is-stuck { box-shadow: 0 8px 24px rgba(0, 48, 94, 0.08); }
.head-inner { display: flex; align-items: center; gap: 22px; min-height: 78px; }
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: auto;
    color: inherit;
    text-decoration: none;
}
.brand strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.1;
}
.brand em {
    display: block;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
}
.mark { width: 36px; height: 48px; object-fit: contain; }
.site-links { display: flex; align-items: center; gap: 22px; }
.site-links a {
    color: var(--navy);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
}
.site-links a:hover { color: var(--blue); }
.site-links a.btn { color: #fff; }
.site-links a.btn-secondary { color: var(--navy); }
.site-links a.btn-secondary:hover { color: #fff; background: var(--navy); }
.mobile-only { display: none; }

.hero { padding: 56px 0 28px; background: #fff; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { font-size: clamp(40px, 5vw, 62px); max-width: 14ch; }
.hero .lede { margin-bottom: 26px; }
.hero .lede strong { color: var(--ink); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { position: relative; }
.hero-photo::before {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 72%;
    height: 72%;
    background: var(--navy);
    border-radius: 12px;
}
.hero-photo img {
    position: relative;
    width: 100%;
    height: 460px;
    object-fit: cover;
    object-position: 50% 20%;
    border-radius: 12px;
}

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 36px 0 8px;
}
.pillar { padding-top: 16px; border-top: 3px solid var(--navy); }
.pillar h2 { font-size: 26px; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--muted); font-size: 17px; }
.arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}
.arrow::after { content: "›"; font-size: 22px; line-height: 1; transition: transform 0.15s ease; }
a.arrow:hover::after, .card:hover .arrow::after { transform: translateX(4px); }

.section { padding: 72px 0; }
.section h2 { font-size: clamp(32px, 4vw, 46px); max-width: 18ch; }
.band-gray { background: var(--gray); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 48, 94, 0.14); }
.card img { width: 100%; height: 200px; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 20px; }
.cat {
    margin: 0 0 8px;
    color: var(--blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.card h3 { font-size: 26px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }
.card .arrow { margin-top: auto; padding-top: 16px; }

.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy .kicker { color: #9fd0ee; }
.band-navy .lede, .band-navy p { color: rgba(255, 255, 255, 0.9); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.step { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.28); }
.step-num { font-size: 40px; font-weight: 700; color: #9fd0ee; line-height: 1; margin-bottom: 10px; }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 17px; }

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat-row div { padding: 28px 18px; }
.stat-row strong {
    display: block;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1;
}
.stat-row span { display: block; margin-top: 8px; color: var(--muted); font-weight: 600; }

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.news article {
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid var(--blue);
    padding: 22px 20px 20px;
    box-shadow: var(--shadow);
}
.news h3 { font-size: 24px; margin-bottom: 8px; }
.news p { margin: 0; color: var(--muted); }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.split img { width: 100%; height: 420px; object-fit: cover; border-radius: 12px; }
.checks { list-style: none; margin: 18px 0 0; padding: 0; }
.checks li { position: relative; padding: 8px 0 8px 18px; font-weight: 700; }
.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--blue);
}

.upload-grid { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 36px; align-items: start; }
.form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.docs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}
.doc {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-height: 52px;
    margin: 0;
    padding: 12px 10px;
    border: 1.5px solid #c5d0da;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
}
.doc span { display: block; max-width: 100%; white-space: nowrap; }
.doc input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    appearance: none;
}
.doc:hover { border-color: var(--blue); }
.doc:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.doc:has(input:checked),
.doc.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.uploads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dz, .cam {
    display: block;
    border: 1.5px dashed #9eb0c0;
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    background: #f7f9fb;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
}
.dz:hover, .cam:hover, .dz.drag { background: #e7f3fa; border-color: var(--blue); }
.dz small, .cam small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; font-size: 14px; }
.filechip {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #e7f3fa;
    color: var(--navy);
}
.filechip button {
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--navy);
}
.fine { margin: 12px 0 0; text-align: center; color: var(--muted); font-size: 15px; }
.qc-msg { margin: 8px 0 0; font-weight: 700; color: #8d322c; }
.qc-msg.is-ok { color: #146338; }
.modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 26, 51, 0.55);
}
.modal[hidden] { display: none; }
.modal-card {
    width: min(560px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.modal-card video, .modal-card img { width: 100%; border-radius: 8px; background: #111; max-height: 360px; object-fit: contain; }
.notice {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #fff7e8;
    border: 1px solid #efd7a4;
    color: #6a4b10;
}
.notice strong { display: block; margin-bottom: 4px; }
.progress {
    height: 10px;
    border-radius: 999px;
    background: #e6eef3;
    overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--blue); }
.waterfall { width: 100%; overflow-x: auto; }
.bar { height: 8px; border-radius: 99px; background: #d5dee6; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); }
.bar.out i { background: #9b2c2c; }
.row-critical td { box-shadow: inset 3px 0 0 #9b2c2c; background: #fdf4f4; }
.row-caution td { box-shadow: inset 3px 0 0 #c4841d; }

.faq { max-width: 820px; margin-top: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 56px;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--gray);
    color: var(--blue);
    flex: none;
    font-weight: 700;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

.cta-band {
    width: min(1140px, calc(100% - 40px));
    margin: 10px auto 48px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 360px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}
.cta-band img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.cta-copy { padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; }
.cta-band h2 { color: #fff; font-size: clamp(32px, 4vw, 46px); max-width: 16ch; }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 18px; max-width: 36ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.site-foot { background: var(--navy); color: #e6eef5; padding: 48px 0 0; font-size: 17px; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.site-foot a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 36px; }
.foot-brand strong { display: block; font-size: 24px; color: #fff; margin-bottom: 8px; }
.foot-grid h3 {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #9fd0ee;
    margin: 0 0 12px;
}
.foot-grid p { margin: 0; color: rgba(230, 238, 245, 0.86); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin: 8px 0; }
.legal { background: var(--navy-deep); padding: 14px 0; color: #c5d4e4; font-size: 15px; }

.success { min-height: 68vh; display: grid; place-items: center; padding: 72px 20px; background: var(--gray); }
.success-card {
    width: min(640px, 100%);
    text-align: center;
    background: #fff;
    border-radius: 12px;
    padding: 48px 32px;
    box-shadow: var(--shadow);
}
.success-card h1 { font-size: clamp(36px, 5vw, 52px); }
.ref {
    display: inline-block;
    margin: 18px 0;
    padding: 10px 16px;
    border-radius: 8px;
    background: #e7f3fa;
    font-size: 28px;
    font-weight: 700;
    color: var(--navy);
}

.login-page { background: var(--gray); }
.login-main { width: min(1040px, calc(100% - 32px)); margin: 36px auto 48px; }
.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.login-panel { padding: 36px 32px 40px; }
.login-panel h1 { font-size: 42px; margin: 22px 0 8px; }
.login-photo { position: relative; min-height: 100%; }
.login-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 520px; }
.login-photo p {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    background: rgba(0, 48, 94, 0.88);
    color: #fff;
    font-weight: 700;
}

.welcome { padding: 64px 0 80px; }
.welcome h1 { font-size: clamp(40px, 5vw, 60px); max-width: 16ch; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* Staff */
.app { background: var(--gray); }
.shell { display: flex; min-height: 100vh; }
.sider {
    width: var(--sidebar);
    flex: 0 0 var(--sidebar);
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--ink);
    border-right: 1px solid var(--line);
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
.sider-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 18px 16px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.sider-brand strong { display: block; font-size: 18px; color: var(--navy); }
.brand-kicker {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
}
.sider-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.nav-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
.nav-link:hover { background: var(--gray); color: var(--navy); }
.nav-link.is-current { background: #e5f3fa; color: var(--blue); }
.sider-user { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); }
.sider-user strong { display: block; }
.sider-user span {
    display: block;
    margin: 2px 0 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.workspace { flex: 1; min-width: 0; }
.workspace-main { padding: 28px 28px 64px; max-width: 1180px; }
.mobile-bar, .scrim { display: none; }

#how, #audit, #resources, #families, #upload, #faq, #counties { scroll-margin-top: 92px; }

@media (max-width: 960px) {
    .hero-grid, .pillars, .cards, .steps, .news, .split, .upload-grid,
    .stat-row, .stat-grid, .case-grid, .cta-band, .foot-grid, .login-grid {
        grid-template-columns: 1fr;
    }
    .hero { padding-top: 32px; }
    .hero-photo img { height: 280px; }
    .hero-photo::before { display: none; }
    .split img { height: 260px; }
    .cta-copy { padding: 28px 22px 32px; }
    .case-rail { position: static; }
    .filters, .filters-duo { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-flex; }
    .site-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }
    .site-head { position: sticky; }
    .head-inner { position: relative; }
    .site-links.is-open { display: flex; }
    .site-links a { padding: 12px 10px; border-radius: 8px; }
    .mobile-only { display: block; }
    .head-cta { display: none; }
    .mobile-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 40;
        padding: 12px 14px;
        background: var(--navy);
        color: #fff;
    }
    .mobile-bar .menu-btn {
        display: inline-flex;
        background: transparent;
        color: #fff;
        border-color: rgba(255, 255, 255, 0.7);
    }
    .shell { display: block; }
    .sider {
        position: fixed;
        z-index: 50;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-110%);
        transition: transform 0.2s ease;
        box-shadow: var(--shadow);
    }
    body.nav-open .sider { transform: none; }
    body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0, 26, 51, 0.45); z-index: 45; }
    .login-photo img { min-height: 220px; }
}
@media (max-width: 640px) {
    body { font-size: 18px; }
    .wrap { width: min(1140px, calc(100% - 28px)); }
    .g2, .uploads, .stat-row, .stat-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .section { padding: 52px 0; }
    .util-inner { align-items: flex-start; flex-direction: column; gap: 2px; padding: 8px 0; }
    .brand em { display: none; }
    .stat-row div { padding: 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .card:hover { transform: none; }
}

/* AI bill check (Kimi) */
.docs > .doc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.ai-read .ai-meta { margin: 0 0 14px; flex-wrap: wrap; }
.ai-summary { background: #f3f8fc; border-left: 4px solid #004e7a; border-radius: 8px; padding: 14px 16px; margin: 0 0 16px; }
.ai-summary .kicker { margin: 0 0 4px; }
.ai-summary p:last-child { margin: 0; font-size: 17px; line-height: 1.55; }
.ai-total { margin: 0 0 12px; }
.ai-issues { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: ai; }
.ai-issues li { border: 1px solid var(--line, #d8e0e8); border-radius: 8px; padding: 12px 14px; min-width: 0; overflow-wrap: anywhere; }
.ai-issue-h { display: flex; gap: 8px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.ai-issues .legend { margin: 4px 0 6px; }
.ai-issues p { margin: 0 0 6px; }
.ai-todo { font-weight: 600; color: #146338; }
.case-grid > .case-main, .case-grid > .case-rail { min-width: 0; }
.ai-meta > span { overflow-wrap: anywhere; }
