@font-face {
    font-family: "Gotham";
    src: url("fonts/Gotham/Gotham-Book.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gotham";
    src: url("fonts/Gotham/Gotham-Medium.otf") format("opentype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gotham";
    src: url("fonts/Gotham/Gotham-Bold.otf") format("opentype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Gotham";
    src: url("fonts/Gotham/Gotham-Black.otf") format("opentype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #1c2430;
    --muted: #5c6670;
    --line: #e2d9c8;
    --table-line: #e2d9c8;
    --paper: #f6f1e7;
    --card: #fffdf8;
    --navy: #10243e;
    --gold: #8d6b2f;
    --gold-soft: #f3ead6;
    --teal: #30ccd6;
    --teal-soft: #b4ebf5;
    --surface: #f3f3f3;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: max(18px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 18px max(28px, env(safe-area-inset-left));
    background: var(--navy);
    color: #f7f1e6;
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
    height: 64px;
    width: auto;
    display: block;
    background: #fff;
    border-radius: 2px;
}
.brand-kicker { margin: 0; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #c6a15a; }

.topbar nav { display: flex; gap: 8px; }
.topbar nav a {
    color: #f7f1e6;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 999px;
}
.topbar nav a.active { background: #f0d7a2; color: var(--navy); }

main { padding: 20px 16px 48px; width: 100%; margin: 0 auto; }

h1, h2 { font-family: "Source Serif 4", serif; font-weight: 650; margin: 0; }
h1 { font-size: 40px; letter-spacing: -0.03em; }
h2 { font-size: 26px; margin-bottom: 8px; }
.lede { max-width: 680px; color: var(--muted); margin: 8px 0 0; }
.page-head { margin-bottom: 18px; }

.coverage, .freshness, .change, .footnote, .section-note { color: var(--muted); font-size: 13px; }
.freshness, .change { margin: 6px 0 0; }
.ticker { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.footnote { margin-top: 14px; max-width: 980px; }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 18px 0;
    padding: 14px;
    background: var(--card);
    border: 1px solid var(--line);
}

label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.filters input[type="hidden"] { display: none; }
select, input, button {
    font: inherit;
    color: var(--ink);
    background: white;
    border: 1px solid #d5cbb8;
    border-radius: 4px;
    padding: 7px 8px;
}
button {
    background: var(--navy);
    color: #f7f1e6;
    border-color: var(--navy);
    cursor: pointer;
}
.text-link { color: var(--gold); align-self: center; }

.quick-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 24px 32px;
    margin: 0 0 14px;
    padding: 16px 18px 18px;
    background: var(--card);
    border: 1px solid var(--line);
}
.quick-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.quick-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.quick-label {
    min-width: 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
a.quick-chip {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: white;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}
a.quick-chip:hover { border-color: var(--gold); }
a.quick-chip.selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #f7f1e6;
}
a.quick-chip.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    max-width: 100%;
    padding: 5px 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
a.quick-chip.icon .mark {
    line-height: 0;
}
a.quick-chip.icon.selected {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--ink);
}

.stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
button.stat-card {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 12px 14px;
    cursor: pointer;
}
button.stat-card:hover { border-color: var(--gold); background: #fbf6ec; }
button.stat-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.stats span { display: block; color: var(--muted); font-size: 12px; }
.stats strong { display: block; margin-top: 2px; font-family: "Source Serif 4", serif; font-size: 22px; font-weight: 650; }
.growth {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.growth-up { color: #157a32; }
.growth-down { color: #a33b32; }
.growth-flat { color: var(--muted); font-weight: 500; }
button.stat-card .growth { margin-top: 4px; }
button.stat-card .growth-up { color: #157a32; }
button.stat-card .growth-down { color: #a33b32; }

section { margin-top: 28px; }
.split { display: grid; grid-template-columns: 1fr; gap: 18px; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
    border: 1px solid var(--line);
    background: var(--card);
}
table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 12px;
}
th, td {
    padding: 6px 4px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
th {
    background: var(--gold-soft);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
#campaign-table th,
#campaign-table td {
    text-align: center;
    vertical-align: middle;
}
#campaign-table th {
    word-break: normal;
    overflow-wrap: break-word;
}
#campaign-table td.num,
#campaign-table th.num { text-align: center; }
#campaign-table td.num {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
}
td.name {
    max-width: 18rem;
    overflow: hidden;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
}
#campaign-table td.name { text-align: left; }
.mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    vertical-align: middle;
}
.mark svg { display: block; height: 18px; width: auto; }
.mark-flag svg {
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(28, 36, 48, 0.2);
}
th.lang, td.lang {
    text-align: center;
    vertical-align: middle;
    word-break: normal;
    overflow-wrap: normal;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
a { color: var(--gold); }
.empty { padding: 16px; color: var(--muted); }
code { font-family: "IBM Plex Sans", monospace; background: var(--gold-soft); padding: 1px 4px; }

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}
.pager a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
    display: inline;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.pager a:hover { text-decoration: underline; }
.pager-off { color: #b3aa9b; }

.status-active { color: #157a32; font-weight: 700; }
.status-paused { color: #a67c00; font-weight: 700; }

tr.campaign-row { cursor: pointer; }
tr.campaign-row:hover td { background: #fbf6ec; }
tr.campaign-row:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }

.campaign-dialog:not([open]) { display: none; }
.campaign-dialog[open] {
    display: flex;
    flex-direction: column;
    width: min(1040px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    padding: 0;
    border-radius: 6px;
}
.campaign-dialog::backdrop { background: rgba(16, 36, 62, 0.45); }
.campaign-dialog section { margin-top: 0; }
.dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--card);
}
.dialog-title { min-width: 0; }
.dialog-head h2 {
    margin-top: 4px;
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.dialog-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip {
    font-size: 11px;
    line-height: 1.3;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}
.chip-active {
    background: var(--navy);
    color: #f0d7a2;
    border-color: var(--navy);
}
.chip-muted { color: var(--muted); background: transparent; }
.dialog-close {
    flex: none;
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.dialog-body {
    overflow: auto;
    padding: 16px 22px 20px;
    display: grid;
    gap: 18px;
}
.dialog-label {
    margin: 0 0 8px;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
}
.pace-grid, .delivery-grid, .detail-grid, .chart-grid {
    display: grid;
    gap: 10px;
}
.pace-grid, .chart-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.delivery-grid, .detail-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pace-card, .delivery-grid article, .detail-grid > div, .chart-card {
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 12px 14px;
}
.pace-card span, .delivery-grid span, .detail-grid dt {
    display: block;
    color: var(--muted);
    font-size: 12px;
}
.pace-card strong, .delivery-grid strong, .detail-grid dd {
    display: block;
    margin: 2px 0 0;
    font-family: "Source Serif 4", serif;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.pace-card strong { font-size: 28px; }
.delivery-grid strong, .detail-grid dd { font-size: 22px; }
.pace-card p { margin: 2px 0 10px; color: var(--muted); font-size: 12px; }
.pace-track {
    height: 6px;
    background: rgba(16, 36, 62, 0.12);
    border-radius: 99px;
    overflow: hidden;
}
.pace-fill { height: 100%; background: var(--navy); border-radius: 99px; }
.detail-grid > div { min-width: 0; }
.chart-card { padding: 12px 12px 8px; }
.chart-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}
.chart-card h3 {
    margin: 0;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.chart-card strong {
    font-family: "Source Serif 4", serif;
    font-size: 18px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.chart-card svg { width: 100%; height: auto; display: block; margin-top: 6px; }
.chart-axis {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.chart-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px 16px;
}
.chart-grain {
    display: inline-flex;
    gap: 6px;
}
.chart-grain button {
    background: white;
    color: var(--navy);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.chart-grain button.is-selected {
    background: var(--navy);
    color: #f0d7a2;
    border-color: var(--navy);
}
.chart-scroll {
    flex: 1 1 240px;
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}
.chart-scroll input[type="range"] {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--navy);
}
.chart-scroll input[type="range"][hidden] { display: none; }
.metric-total {
    margin: 6px 0 0;
    font-family: "Source Serif 4", serif;
    font-size: 32px;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}
.metric-range {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    margin-top: 12px;
}
button.metric-step {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.month-strip {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    overflow-x: auto;
    padding-bottom: 4px;
}
button.month-bar {
    flex: 1 0 72px;
    max-width: 120px;
    background: transparent;
    color: var(--ink);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 6px 4px 4px;
    display: grid;
    justify-items: center;
    gap: 4px;
}
button.month-bar:hover { border-color: var(--line); background: var(--paper); }
button.month-bar.is-selected { border-color: var(--gold); background: var(--gold-soft); }
.month-bar-plot {
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 72px;
    background: var(--paper);
    border: 1px solid var(--line);
}
.month-bar-fill { display: block; width: 100%; background: var(--navy); }
.month-bar-label { font-size: 11px; color: var(--muted); }
button.month-bar strong { font-size: 11px; font-weight: 600; }
.breakdown-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 10px;
}
.breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.breakdown-grid[hidden] { display: none; }
#metric-tables { margin-top: 14px; }
.pie-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 12px 12px 8px;
}
.pie-card svg {
    width: 148px;
    height: 148px;
    display: block;
    margin: 2px auto 10px;
}
.pie-legend-wrap { max-height: 240px; overflow: auto; }
.pie-legend-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 2px;
    align-items: start;
    padding: 6px 0;
    border-top: 1px solid var(--line);
    font-size: 12px;
}
.pie-legend-head {
    border-top: 0;
    padding-top: 0;
    padding-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pie-swatch {
    grid-column: 1;
    grid-row: 1;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border-radius: 2px;
}
.pie-legend-head .pie-swatch,
.pie-legend-head .pie-legend-name { display: none; }
.pie-legend-name { grid-column: 2; grid-row: 1; min-width: 0; }
.pie-legend-stats {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 8px;
    justify-items: end;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
}
.pie-legend-stats span:first-child { justify-self: start; }
.pie-legend-head .pie-legend-stats { grid-row: 1; }
.breakdown-grid .table-wrap { max-height: 360px; overflow: auto; }
.breakdown-grid table { table-layout: auto; }
.breakdown-grid th, .breakdown-grid td { padding: 6px 8px; font-size: 12px; }
.seg-label { display: block; }
.seg-market { display: block; color: var(--muted); font-size: 11px; }
.share-track {
    display: block;
    height: 4px;
    margin-top: 4px;
    background: rgba(16, 36, 62, 0.12);
    border-radius: 99px;
    overflow: hidden;
}
.share-fill { display: block; height: 100%; background: var(--navy); }

@media (max-width: 900px) {
    .quick-filters { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: 1fr 1fr; }
    .pace-grid, .chart-grid, .detail-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .delivery-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .breakdown-grid { grid-template-columns: 1fr; }
    main { padding: 16px; }
    h1 { font-size: 32px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .campaign-dialog[open] { width: min(1040px, calc(100% - 24px)); }
}

.gate-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}
.gate-card {
    width: min(440px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 28px 28px 22px;
}
.gate-card h1 { font-size: 36px; }
.gate-card .lede { margin-bottom: 16px; }
.gate-error, .gate-note {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 13px;
}
.gate-error { background: #f8e8e4; color: #6d2b22; }
.gate-note { background: var(--gold-soft); color: var(--navy); }
.gate-form { display: grid; gap: 12px; }
.gate-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 4px;
    padding: 10px 14px;
    background: var(--navy);
    color: #f7f1e6;
    text-decoration: none;
    border: 1px solid var(--navy);
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}
a.gate-button { color: #f7f1e6; }
.gate-switch { margin: 16px 0 0; font-size: 13px; }
.gate-signed-in { margin: 2px 0 0; color: #f7f1e6; font-size: 13px; }
.gate-signout {
    background: transparent;
    color: #f7f1e6;
    border-color: rgba(247, 241, 230, 0.35);
}
.hub { max-width: 760px; }
.hub-roles, .hub-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.hub-roles { margin: 12px 0 0; }
.hub-list { display: grid; gap: 12px; }
.hub-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    color: inherit;
    text-decoration: none;
}
.hub-card:hover { border-color: var(--gold); }
.hub-card-title { font-family: "Source Serif 4", serif; font-size: 22px; color: var(--ink); }
.hub-card-summary { color: var(--muted); }
.badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--gold-soft);
    color: var(--navy);
}
.badge-admin { background: var(--navy); color: #f7f1e6; }
.badge-staff { background: var(--gold-soft); color: var(--navy); }
.badge-client { background: #e7eef6; color: var(--navy); }
.hub.wide { max-width: 980px; }
.hub h2 { font-family: "Source Serif 4", serif; font-size: 28px; margin: 28px 0 4px; }
.user-form { max-width: 480px; }
.checks { border: 1px solid var(--line); padding: 12px 14px; display: grid; gap: 8px; }
.check { display: flex; gap: 8px; align-items: center; }
.hub .table-wrap { overflow-x: auto; }
.hub table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}
.hub th, .hub td {
    text-align: left;
    padding: 10px 12px;
    white-space: nowrap;
    vertical-align: top;
}
.hub th {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.temp-password { font-family: ui-monospace, SFMono-Regular, monospace; letter-spacing: 0.03em; }
.gate-button.secondary { background: transparent; color: var(--navy); }
.text-button { color: var(--navy); font-weight: 600; }

/* —— Nord Anglia demo / entry brand —— */
/* Safe zone: fluid centered column with equal side gutters so mid content uses available width. */
body.demo,
body.entry {
    --ink: #003255;
    --muted: rgba(0, 0, 0, 0.55);
    --line: #e8e8e8;
    --table-line: #1d95a4;
    --paper: #ffffff;
    --card: #ffffff;
    --navy: #003255;
    --gold: #1d95a4;
    --gold-soft: #e8f7f9;
    --teal: #30ccd6;
    --teal-soft: #b4ebf5;
    --surface: #f3f3f3;
    --na-col: 73px;
    --na-gutter: 24px;
    --na-side: clamp(24px, 3vw, 48px);
    color: var(--ink);
    background: var(--paper);
    font-family: "Gotham", sans-serif;
    text-align: left;
}
body.demo h1,
body.demo h2,
body.demo .stats strong,
body.entry h1,
body.entry h2 {
    font-family: "Gotham", sans-serif;
    font-weight: 800;
}

body.demo .topbar { display: none; }

.na-safe {
    width: calc(100% - 2 * var(--na-side));
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}
.na-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--na-gutter);
    align-items: start;
}

.na-topbar,
.entry-topbar {
    min-height: 145px;
    padding: 24px 0;
    background: #fff;
}
.na-topbar-inner,
.entry-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--na-gutter);
}
.na-brand,
.entry-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}
.na-logo,
.entry-logo {
    height: 96px;
    width: auto;
    display: block;
    background: transparent;
}
.na-omnicom,
.entry-omnicom {
    height: 22px;
    width: auto;
    max-width: 220px;
    display: block;
    object-fit: contain;
}
.na-user {
    display: flex;
    align-items: center;
    gap: 14px;
}
.na-welcome {
    margin: 0;
    font-size: 16px;
    color: #000;
}
.na-welcome strong { font-weight: 700; }
.na-account,
.entry-account {
    width: 45px;
    height: 45px;
    display: block;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 auto;
}
.na-account img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
img.entry-account {
    object-fit: cover;
}

.na-hero {
    position: relative;
    background:
        linear-gradient(90deg, rgba(48, 204, 214, 0.92) 0%, rgba(48, 204, 214, 0.78) 55%, rgba(48, 204, 214, 0.55) 100%),
        var(--na-hero-image) left center / cover no-repeat,
        var(--teal);
    color: #fff;
    padding: 48px 0 72px;
}
.na-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--na-gutter);
}
.na-hero-copy {
    text-align: left;
    min-width: 0;
    flex: 1 1 auto;
    padding-right: var(--na-gutter);
}
.na-hero-copy h1 {
    margin: 0;
    font-size: 48px;
    letter-spacing: 0.7px;
    color: #fff;
    text-transform: uppercase;
}
.na-hero .coverage,
.na-hero .freshness,
.na-hero .change {
    color: #fff;
    font-size: 16px;
    margin: 8px 0 0;
    text-align: left;
}
.na-hero .ticker { color: #fff; font-weight: 700; }
.na-seg {
    display: inline-flex;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    flex: 0 0 auto;
}
.na-seg a {
    min-width: 125px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: 400;
}
.na-seg a.active {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}

body.demo main.na-main,
body.demo .na-main {
    width: 100%;
    margin: -48px 0 0;
    padding: 0 0 48px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.na-filters {
    display: grid;
    /* Flexible tracks so date inputs can't overflow into RESET/APPLY */
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(0, 1fr)
        123px;
    column-gap: 20px;
    row-gap: 10px;
    align-items: end;
    width: 100%;
    min-height: 140px;
    padding: 23px 29px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0, 50, 85, 0.08);
    margin-bottom: 18px;
    box-sizing: border-box;
}
.na-filters > input[type="hidden"] { display: none; }
.na-filter-field {
    display: grid;
    grid-template-rows: 25px 50px;
    gap: 8px;
    align-content: end;
    min-width: 0;
    overflow: hidden;
}
.na-filter-label {
    display: block;
    font-size: 21px;
    font-weight: 400;
    line-height: 25px;
    color: #000;
    white-space: nowrap;
}
.na-filters input,
.na-filters select,
.na-filter-static {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 50px;
    min-height: 50px;
    border: 0;
    border-radius: 20px;
    background: var(--teal-soft);
    padding: 0 16px;
    color: rgba(0, 0, 0, 0.5);
    font-size: 16px;
    box-sizing: border-box;
}
.na-filter-static {
    display: flex;
    align-items: center;
    margin: 0;
    color: #000;
}
.na-filters input[type="date"] {
    position: relative;
    cursor: pointer;
    color-scheme: light;
}
.na-filters input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
.metric-range input[type="date"] {
    position: relative;
    cursor: pointer;
}
.metric-range input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
.na-filter-actions {
    display: grid;
    grid-template-rows: 25px 50px;
    gap: 10px;
    align-content: end;
    justify-items: end;
    width: 100%;
    min-width: 115px;
}
.na-reset {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 25px;
    color: var(--teal);
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.na-filters button[type="submit"] {
    height: 50px;
    width: 115px;
    min-width: 115px;
    padding: 0 18px;
    border: 0;
    border-radius: 20px;
    background: var(--navy);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}
.na-filters-school {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 123px;
    min-height: 0;
}
.na-stats,
.na-chips {
    margin-top: 0;
}

.na-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    min-height: 120px;
    background: var(--surface);
    border: 1px solid var(--surface);
    margin: 0 0 18px;
    box-sizing: border-box;
    overflow: hidden;
}
body.demo .na-stats .stat-card,
body.demo .na-stats button.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 120px;
    margin: 0;
    padding: 16px 8px;
    background: var(--surface);
    border: 0;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    overflow: hidden;
}
body.demo .na-stats .stat-card:nth-child(even) {
    background: #fff;
}
body.demo .na-stats .stat-card .stat-label,
body.demo .na-stats .stat-card > span.stat-label {
    display: block;
    width: 100%;
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
body.demo .na-stats .stat-card .stat-value,
body.demo .na-stats .stat-card > strong.stat-value {
    display: block;
    width: 100%;
    margin: 0;
    color: var(--navy);
    font-family: "Gotham", sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.demo .na-stats .stat-card .growth {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 12px;
}
body.demo .na-stats .stat-card:hover {
    background: #eefbff;
    border-color: transparent;
}

.na-chips {
    background: var(--surface);
    border: 1px solid var(--surface);
    padding: 20px 18px;
    margin-bottom: 18px;
    display: grid;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}
body.demo .quick-group {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
}
body.demo .quick-label {
    color: var(--navy);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: left;
}
body.demo .quick-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
}
body.demo a.quick-chip {
    border-radius: 20px;
    min-height: 40px;
    padding: 8px 14px;
    background: #fff;
    border: 0;
    color: rgba(0, 0, 0, 0.5);
    font-size: 15px;
    font-weight: 400;
}
body.demo a.quick-chip.selected {
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}
body.demo a.quick-chip.icon.selected {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}
body.demo a.quick-chip:hover { border-color: transparent; }

body.demo .table-wrap {
    border: 1px solid var(--table-line);
    border-radius: 0;
    background: #fff;
}
body.demo th,
body.demo td {
    border-bottom-color: var(--table-line);
}
body.demo .table-wrap.na-table,
body.demo .na-table.table-wrap {
    border: 1px solid var(--table-line);
}
body.demo .na-table table {
    width: 100%;
    min-width: 100%;
    table-layout: auto;
    border-collapse: collapse;
}
body.demo .na-table col { width: auto !important; }
body.demo .na-table th,
body.demo .na-table td {
    padding: 10px 12px;
    white-space: nowrap;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid var(--table-line);
}
body.demo .na-table th {
    background: var(--navy);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}
body.demo .na-table th:first-child,
body.demo .na-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    box-shadow: 1px 0 0 var(--table-line);
}
body.demo .na-table th:first-child {
    z-index: 2;
    background: var(--navy);
    color: #fff;
}
body.demo .na-table tr.campaign-row:nth-child(even) td { background: #faf7f2; }
body.demo .na-table tr.campaign-row:nth-child(even) td:first-child { background: #faf7f2; }
body.demo .na-table tr.campaign-row:hover td:first-child { background: #eefbff; }
body.demo .na-table a { color: var(--teal); }

body.demo .pager {
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    color: #000;
}
body.demo .pager a {
    color: var(--teal);
    font-weight: 700;
}

.na-footer {
    background: var(--navy);
    color: #fff;
    padding: 36px 0 48px;
    margin-top: 40px;
    text-align: left;
}
.na-footer-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: calc(var(--na-gutter) * 2);
}
.na-footer h3 {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 21px;
    font-weight: 700;
}
.na-footer p {
    margin: 0 0 6px;
    font-size: 16px;
    color: #fff;
}
.na-footer-rule {
    margin-top: 28px;
    height: 1px;
    background: #fff;
}

body.demo .section-note,
body.demo .footnote {
    text-align: left;
    color: var(--muted);
}
body.demo .dialog-head,
body.demo .dialog-title,
body.demo .dialog-chips,
body.demo .dialog-label,
body.demo .pace-card,
body.demo .delivery-grid article,
body.demo .detail-grid,
body.demo .chart-card-head {
    text-align: center;
    justify-content: center;
}
body.demo .dialog-chips { justify-content: center; }
body.demo .chart-card-head { justify-content: space-between; }

/* Entry (login) */
body.entry {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--teal);
}
.entry-main {
    width: 100%;
    margin: 0;
    padding: 40px 0 80px;
    flex: 1;
    text-align: left;
}
.entry-title {
    margin: 0 0 28px;
    color: #fff;
    font-size: 48px;
    letter-spacing: 0.7px;
    font-weight: 800;
    text-align: left;
}
.entry-layout {
    display: grid;
    /* cards ~7 cols (73*7+24*6=655), photo ~4 cols (73*4+24*3=364) within 1140 */
    grid-template-columns: 655px 1fr;
    column-gap: var(--na-gutter);
    align-items: center;
}
.entry-cards { display: grid; gap: 24px; }
.entry-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px 28px;
    min-height: 155px;
}
.entry-card h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
    color: #000;
}
.entry-card p {
    margin: 0 0 16px;
    font-size: 16px;
    color: #000;
}
.entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 133px;
    height: 33px;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    border: 1px solid #000;
    cursor: pointer;
}
.entry-btn-fill {
    background: #000;
    color: #fff;
}
.entry-btn-outline {
    background: #fff;
    color: #000;
}
.entry-form {
    display: grid;
    gap: 10px;
    max-width: 320px;
    margin-bottom: 8px;
}
.entry-form label {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: #000;
}
.entry-form input {
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid #d0d0d0;
    padding: 8px 12px;
    background: #fff;
}
.entry-error {
    background: #f8e8e4;
    color: #6d2b22;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
}
.entry-back { margin: 8px 0 0; font-size: 13px; }
.entry-back a { color: var(--navy); }
.entry-photo {
    width: 426px;
    max-width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    justify-self: end;
}
.entry-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.entry-pattern {
    height: 208px;
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Keep the 1140 Figma layout intact; only soft-scale type on entry at narrow widths */
@media (max-width: 1200px) {
    .entry-layout {
        grid-template-columns: 1fr;
    }
    .entry-photo {
        width: min(426px, 100%);
        justify-self: center;
    }
    .na-hero-copy h1,
    .entry-title {
        font-size: 40px;
    }
}
