/* Presentation only. Flat blue page family; shared PR geometry is unchanged.
   Type scale: body 1rem+, tables .9375rem, secondary text never below .8125rem (13px). */
body.rsu-page {
  --page-banner-primary: #60a5fa;
  --nav-surface: #60a5fa;
  --nav-background: none;
  --nav-ink: #192d46;
  --nav-hover: #93c5fd;
  --nav-edge: #1d4ed8;
  --brand-surface: #192d46;
  --brand-ink: #dbeafe;
  --rsu-bg: #f5f9ff;
  --rsu-panel: #fff;
  --rsu-soft: #dbeafe;
  --rsu-ink: #192d46;
  --rsu-muted: #334155;
  --rsu-line: #b6cbea;
  --rsu-input-line: #5b7799;
  --rsu-accent: #1d4ed8;
  --rsu-link: #1d4ed8;
  --rsu-head: #cfe0fb;
  --rsu-stripe: #eef5ff;
  --rsu-hover: #dbeafe;
  --rsu-neg: #b91c1c;
  --rsu-warn-bg: #fff4d6;
  --rsu-warn-line: #b45309;
  --rsu-info-bg: #eaf2ff;
  --rsu-shadow: 0 1px 3px rgba(25,45,70,.08);
  --rsu-pad: clamp(1.125rem, 2.5vw, 1.75rem);
  --rsu-wrap: 1360px;
  background: var(--rsu-bg);
  color: var(--rsu-ink);
  overflow-x: visible;
}
.rsu-page *, .rsu-page *::before, .rsu-page *::after { box-sizing: border-box; }
.rsu-page [hidden] { display: none !important; }
.rsu-page :focus-visible { outline: 3px solid var(--rsu-accent); outline-offset: 3px; }
.rsu-page .home-nav, .rsu-page .tools-menu-list { background: #60a5fa; color: #192d46; box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.rsu-page .home-nav .brand { color: #192d46; }
.rsu-page .brand .brand-mark { background: #192d46; color: #dbeafe; }
.rsu-page .home-nav .home-links a, .rsu-page .tools-menu summary,
.rsu-page .tools-menu summary::after, .rsu-page .tools-menu-list small,
.rsu-page .tools-menu-future { color: #192d46; }
.rsu-page .tools-menu-list small { font-size: .8125rem; line-height: 1.4; }
.rsu-page .tools-menu-future { font-size: .8125rem; }
.rsu-page .tools-menu-list a:is(:hover, :focus-visible, .active) { background: #93c5fd; color: #192d46; }
.rsu-page .home-nav :focus-visible { outline-color: #192d46; }
/* Shared home.css owns navigator geometry, breakpoints and link visibility. */
.rsu-page .tools-menu summary { padding: 0; }
.rsu-page .skip-to-content { position: fixed; top: -100px; left: 12px; z-index: 100; padding: 12px; background: #fff; color: #1d4ed8; }
.rsu-page .skip-to-content:focus { top: 8px; }

/* Hero */
.rsu-page main { font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 1.6; }
.rsu-hero { position: relative; background: #60a5fa; color: #192d46; padding: 130px max(clamp(16px, 5vw, 32px), calc((100% - var(--rsu-wrap)) / 2)) clamp(32px, 5vw, 52px); overflow: hidden; }
.rsu-hero h1 { max-width: 22ch; font: 800 clamp(2rem, 1.4rem + 3.4vw, 3.5rem)/1.08 var(--display); margin: 0 0 16px; overflow-wrap: break-word; }
.rsu-hero > p { max-width: 62ch; font-size: clamp(1rem, .95rem + .4vw, 1.1875rem); line-height: 1.6; }
.rsu-tag { display: inline-flex; align-items: center; max-width: 100%; border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; font-size: .8125rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; letter-spacing: .04em; }
.rsu-preview { background: #192d46; color: #dbeafe; margin-right: 8px; }
.rsu-hero > .rsu-hero-note { max-width: 62ch; margin-top: 20px; padding: 12px 16px; border: 1px solid currentColor; border-radius: var(--radius); font-size: .9375rem; line-height: 1.55; }

/* Page structure */
.rsu-container { width: min(var(--rsu-wrap), calc(100% - clamp(24px, 5vw, 64px))); margin: 0 auto; padding: clamp(20px, 3vw, 32px) 0 56px; }
.rsu-container a { color: var(--rsu-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.rsu-container a:hover { text-decoration-thickness: 2px; }
.rsu-toolbar, .rsu-section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.rsu-toolbar > p { font-weight: 750; color: var(--rsu-muted); }
.rsu-toolbar > p span { margin: 0 8px; }
.rsu-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rsu-page button { min-height: 48px; min-width: 48px; padding: 10px 20px; border: 2px solid var(--rsu-input-line); border-radius: var(--radius); background: var(--rsu-panel); color: var(--rsu-ink); font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.3; cursor: pointer; }
.rsu-page button:hover:not(:disabled) { background: var(--rsu-soft); border-color: var(--rsu-accent); }
.rsu-page button.rsu-primary { background: #60a5fa; border-color: #192d46; color: #192d46; }
.rsu-page button.rsu-primary:hover:not(:disabled) { background: #93c5fd; }
.rsu-page button:disabled { cursor: not-allowed; opacity: .6; }
.rsu-page #rsu-mask[aria-pressed="true"] { background: var(--rsu-soft); border-color: var(--rsu-accent); }
.rsu-status { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--rsu-accent); background: var(--rsu-soft); min-height: 52px; font-size: 1rem; line-height: 1.55; }
.rsu-error { border: 2px solid #b91c1c; padding: 16px 18px; border-radius: var(--radius); background: #fff1f2; color: #881337; margin-bottom: 18px; overflow-wrap: anywhere; font-size: 1rem; }
.rsu-error strong { display: block; margin-bottom: 4px; }
.rsu-error button { margin-top: 12px; }
.rsu-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.rsu-card { min-width: 0; background: var(--rsu-panel); padding: var(--rsu-pad); border: 1px solid var(--rsu-line); border-radius: 12px; box-shadow: var(--rsu-shadow); }
.rsu-card h2 { font: 750 clamp(1.25rem, 1.1rem + .6vw, 1.5rem)/1.3 var(--display); margin-bottom: 16px; }
.rsu-card h3 { font-size: clamp(1.125rem, 1.05rem + .3vw, 1.3125rem); line-height: 1.35; margin: 4px 0 12px; }
.rsu-card p { max-width: 80ch; }
.rsu-step { display: inline-grid; place-items: center; background: var(--rsu-soft); color: var(--rsu-ink); width: 36px; height: 36px; border-radius: 8px; margin-right: 10px; font: 750 .875rem var(--mono); vertical-align: middle; }

/* Form controls */
.rsu-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 0 18px; }
.rsu-field { min-width: 0; margin-top: 18px; }
.rsu-field label { display: block; font-weight: 700; font-size: 1rem; line-height: 1.4; margin-bottom: 8px; }
.rsu-field input, .rsu-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--rsu-ink); background: var(--rsu-panel); border: 2px solid var(--rsu-input-line); border-radius: var(--radius); }
.rsu-field input:focus-visible, .rsu-field select:focus-visible { outline-offset: 2px; }
.rsu-field input[type="file"] { padding: 8px; font-size: .9375rem; }
.rsu-field input::file-selector-button { min-height: 44px; border: 2px solid var(--rsu-input-line); border-radius: var(--radius); background: var(--rsu-soft); color: var(--rsu-ink); padding: 4px 14px; margin-right: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.rsu-help { font-size: .9375rem; line-height: 1.6; color: var(--rsu-muted); margin-top: 8px; max-width: 80ch; }
.rsu-overridden { border-left: 4px solid var(--rsu-accent); padding-left: 12px; }
.rsu-overridden > .rsu-help { font-weight: 800; }
.rsu-file-field { margin-bottom: 18px; }
.rsu-disclosure { margin-top: 18px; }
.rsu-page summary { cursor: pointer; font-weight: 700; padding: 12px 0; line-height: 1.4; }
.rsu-disclosure p, .rsu-faq p { margin: 10px 0; }
.rsu-review { margin-top: 22px; }
.rsu-notice { margin: 18px 0; padding: 14px 18px; border: 1px solid var(--rsu-line); border-left: 4px solid var(--rsu-accent); border-radius: var(--radius); background: var(--rsu-soft); font-size: .9375rem; line-height: 1.65; }
.rsu-check { display: flex; align-items: flex-start; gap: 14px; margin: 16px 0; padding: 6px 0; min-height: 44px; font-size: 1rem; line-height: 1.55; cursor: pointer; }
.rsu-check input { flex: 0 0 auto; width: 24px; height: 24px; margin-top: 1px; accent-color: var(--rsu-accent); }
.rsu-page fieldset { min-width: 0; margin: 18px 0; padding: 16px; border: 2px solid var(--rsu-line); border-radius: 12px; }
.rsu-page legend { max-width: 100%; padding: 0 8px; font-weight: 700; font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.rsu-page fieldset[hidden] { display: none; }

/* Results */
.rsu-results { margin-top: 40px; min-width: 0; }
.rsu-results h2 { font: 800 clamp(1.5rem, 1.2rem + 1.5vw, 2rem)/1.2 var(--display); scroll-margin-top: 110px; }
.rsu-eyebrow { color: var(--rsu-muted); text-transform: uppercase; letter-spacing: .06em; font-size: .8125rem; font-weight: 750; margin-bottom: 8px; }
.rsu-results > .rsu-card { margin-top: 20px; }
.rsu-summary { margin: 22px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.rsu-summary article { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; min-height: 7.25rem; padding: 18px 20px; border: 1px solid var(--rsu-line); border-top: 4px solid #60a5fa; border-radius: 10px; background: var(--rsu-panel); box-shadow: var(--rsu-shadow); }
.rsu-summary h3 { margin: 0; color: var(--rsu-muted); font-size: .9375rem; font-weight: 650; line-height: 1.4; letter-spacing: .01em; }
.rsu-summary article > span { display: block; font: 800 clamp(1.25rem, .8rem + 1.25vw, 1.75rem)/1.2 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rsu-summary .rsu-kpi-long > span { font-family: inherit; font-size: 1.0625rem; font-weight: 650; line-height: 1.5; }

/* Tables */
.rsu-scroll-hint { margin: 8px 0 0; color: var(--rsu-muted); font-size: .875rem; font-weight: 650; text-align: right; }
.rsu-table-scroll { width: 100%; max-width: 100%; overflow-x: auto; margin: 10px 0 18px; border: 1px solid var(--rsu-line); border-radius: 10px; overscroll-behavior-x: contain; background: var(--rsu-panel); }
.rsu-table-scroll:focus-visible { outline-offset: -3px; }
.rsu-table-tall { overflow: auto; max-height: max(20rem, min(75vh, 44rem)); }
.rsu-page table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; line-height: 1.45; text-align: left; }
.rsu-page caption { text-align: left; padding: 14px 16px; background: var(--rsu-soft); color: var(--rsu-ink); font-size: .9375rem; font-weight: 650; min-width: 260px; }
.rsu-page th, .rsu-page td { padding: 12px 16px; border-bottom: 1px solid var(--rsu-line); vertical-align: middle; white-space: nowrap; }
.rsu-page th { background: var(--rsu-head); color: var(--rsu-ink); font-size: .875rem; font-weight: 750; line-height: 1.3; white-space: normal; min-width: 6.5rem; max-width: 12rem; vertical-align: bottom; }
.rsu-page thead th { position: sticky; top: 0; z-index: 3; border-bottom: 2px solid var(--rsu-input-line); }
.rsu-page tbody tr { background: var(--rsu-panel); }
.rsu-page tbody tr:nth-child(even) { background: var(--rsu-stripe); }
.rsu-page tbody tr:hover { background: var(--rsu-hover); }
.rsu-page tbody tr:last-child > * { border-bottom: 0; }
.rsu-page tbody th[scope="row"] { background: inherit; color: var(--rsu-ink); font-size: .9375rem; font-weight: 700; max-width: 18rem; }
.rsu-page th:first-child, .rsu-page td:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--rsu-line); }
.rsu-page tbody td:first-child { background: inherit; font-weight: 700; }
.rsu-page thead th:first-child { z-index: 4; }
.rsu-page .rsu-num { text-align: right; font-variant-numeric: tabular-nums; }
.rsu-page td .maskable-amount { font-variant-numeric: tabular-nums; }
.rsu-page td.rsu-neg { color: var(--rsu-neg); }
.rsu-page td.rsu-unavail { color: var(--rsu-muted); font-style: italic; white-space: normal; min-width: 9rem; }
.rsu-page.rsu-masked td.rsu-neg { color: inherit; }
.rsu-badge { display: inline-block; padding: 2px 12px; border: 2px solid var(--rsu-ink); border-radius: 999px; font-size: .8125rem; font-weight: 800; letter-spacing: .05em; line-height: 1.5; }
.rsu-badge-long { background: var(--rsu-ink); color: var(--rsu-panel); }
.rsu-badge-short { background: transparent; color: var(--rsu-ink); }
.rsu-chip { display: inline-block; padding: 2px 10px; border-radius: 6px; background: var(--rsu-soft); color: var(--rsu-ink); font-size: .8125rem; font-weight: 750; letter-spacing: .03em; }

/* Definition tiles: observations, accepted inputs, calculation details */
.rsu-definitions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 12px; margin: 16px 0 0; }
.rsu-definitions > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--rsu-line); border-radius: 8px; background: var(--rsu-stripe); }
.rsu-definitions dt { margin: 0 0 4px; color: var(--rsu-muted); font-size: .875rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.rsu-definitions dd { margin: 0; font-size: 1rem; font-weight: 650; line-height: 1.5; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rsu-definitions .rsu-def-wide { grid-column: 1 / -1; }
.rsu-definitions dd.rsu-code { max-height: 11rem; overflow: auto; padding: 8px 10px; border-radius: 6px; background: var(--rsu-panel); font: 500 .875rem/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.rsu-detail-group { min-width: 0; padding: 14px; border: 1px solid var(--rsu-line); border-radius: 10px; background: var(--rsu-panel); }
.rsu-detail-group h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; line-height: 1.35; }
.rsu-detail-group .rsu-definitions { display: block; margin: 0; }
.rsu-detail-group .rsu-definitions > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rsu-line); border-radius: 0; background: transparent; }
.rsu-detail-group .rsu-definitions > div:last-child { border-bottom: 0; }
.rsu-detail-group .rsu-definitions dt { margin: 0; font-weight: 600; }
.rsu-detail-group .rsu-definitions dd { text-align: right; margin-left: auto; font-size: .9375rem; }
.rsu-detail-group .rsu-definitions .rsu-def-wide { display: block; }
.rsu-detail-group .rsu-definitions dd.rsu-code { margin-top: 6px; text-align: left; }
.rsu-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 14px; margin: 10px 0 14px; }
.rsu-detail-note { margin: 4px 0 12px; color: var(--rsu-muted); font-size: .9375rem; }
.rsu-detail-warning { margin: 8px 0; padding: 10px 14px; border-left: 4px solid var(--rsu-warn-line); background: var(--rsu-warn-bg); font-size: .9375rem; }
#rsu-historical-details > details { margin-top: 12px; padding: 0 16px 4px; border: 1px solid var(--rsu-line); border-radius: 10px; background: var(--rsu-stripe); }
#rsu-historical-details > details > summary { font-size: 1.0625rem; }
.rsu-card.rsu-disclosure > summary { font-size: 1.0625rem; }

/* Warnings */
.rsu-warnings { list-style: none; padding: 0; margin: 12px 0 0; font-size: 1rem; line-height: 1.65; }
.rsu-warnings li { position: relative; max-width: 80ch; margin: 10px 0; padding: 12px 16px 12px 44px; border-left: 4px solid var(--rsu-accent); border-radius: 0 8px 8px 0; background: var(--rsu-info-bg); color: var(--rsu-ink); overflow-wrap: anywhere; }
.rsu-warnings li::before { content: "\2139"; content: "\2139" / ""; position: absolute; left: 14px; top: 12px; font-weight: 800; }
.rsu-warnings li.rsu-warn { border-left-color: var(--rsu-warn-line); background: var(--rsu-warn-bg); }
.rsu-warnings li.rsu-warn::before { content: "\26A0"; content: "\26A0" / ""; }
.rsu-error .rsu-warnings li { background: #fff; color: #881337; }

/* FAQ */
.rsu-faq { margin-top: 32px; }
.rsu-faq details { border-bottom: 1px solid var(--rsu-line); padding: 4px 0; }
.rsu-faq summary { font-size: 1.0625rem; }
.rsu-faq p { max-width: 75ch; }
.rsu-page .home-footer { background: #60a5fa; color: #192d46; box-shadow: none; }
.rsu-page .home-footer a, .rsu-page .home-footer p { color: #192d46; font-size: .9375rem; }

@media (prefers-color-scheme: dark) {
  body.rsu-page {
    --rsu-bg: #101c2e; --rsu-panel: #192b43; --rsu-soft: #233e60; --rsu-ink: #eaf2ff; --rsu-muted: #c9d7ec;
    --rsu-line: #5a7aa3; --rsu-input-line: #8fa9ca; --rsu-accent: #93c5fd; --rsu-link: #9ccbff;
    --rsu-head: #2b4a74; --rsu-stripe: #1e3450; --rsu-hover: #2a4568; --rsu-neg: #fda4af;
    --rsu-warn-bg: #3a2f12; --rsu-warn-line: #f5b84b; --rsu-info-bg: #1f3a5c; --rsu-shadow: none;
  }
  .rsu-step { color: #eaf2ff; }
  .rsu-error { background: #3c1520; color: #fecdd3; border-color: #fb7185; }
  .rsu-error .rsu-warnings li { background: #2b0f18; color: #fecdd3; }
  .rsu-page button:disabled { opacity: .7; }
  .rsu-page button.rsu-primary { border-color: #eaf2ff; }
}

@media (min-width: 600px) {
  .rsu-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .rsu-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rsu-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  .rsu-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .rsu-table-cards, .rsu-table-tall.rsu-table-cards { max-height: none; border: 0; background: transparent; margin-top: 8px; }
  .rsu-table-cards table, .rsu-table-cards tbody, .rsu-table-cards tr, .rsu-table-cards td, .rsu-table-cards tbody th, .rsu-table-cards caption { display: block; width: 100%; }
  .rsu-table-cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .rsu-table-cards caption { margin-bottom: 10px; border-radius: 8px; min-width: 0; }
  .rsu-table-cards tbody tr, .rsu-table-cards tbody tr:nth-child(even) { margin-bottom: 14px; border: 1px solid var(--rsu-line); border-radius: 10px; background: var(--rsu-panel); overflow: hidden; box-shadow: none; }
  .rsu-table-cards tbody td, .rsu-table-cards tbody th { display: block; position: static; max-width: none; padding: 9px 16px; white-space: normal; text-align: left; overflow-wrap: anywhere; box-shadow: none; font-size: 1rem; }
  .rsu-table-cards tbody td::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--rsu-muted); font-size: .875rem; font-weight: 650; line-height: 1.4; }
  .rsu-table-cards tbody th[scope="row"] { display: block; background: var(--rsu-head); }
  .rsu-table-cards tbody td:first-child { display: block; background: var(--rsu-head); font-size: 1.0625rem; font-weight: 800; }
  .rsu-table-cards tbody td:first-child::before { content: none; }
  .rsu-table-cards td.rsu-unavail { min-width: 0; }
  .rsu-table-cards tbody tr:hover { background: var(--rsu-panel); }
  .rsu-scroll-hint { display: none; }
  .rsu-page td.rsu-num { text-align: left; }
}
@media (max-width: 480px) {
  .rsu-container { width: calc(100% - 24px); padding-top: 20px; }
  .rsu-hero { padding: 116px 16px 32px; }
  .rsu-tag { border-radius: 14px; font-size: .8125rem; padding: 6px 12px; }
  .rsu-card { padding: 18px 14px; }
  .rsu-field { margin-top: 16px; }
  .rsu-fields { gap: 0; }
  .rsu-toolbar { align-items: stretch; }
  .rsu-actions, .rsu-actions > button { width: 100%; }
  .rsu-page fieldset { padding: 12px; }
  .rsu-warnings li { padding-left: 40px; }
  .rsu-page .home-footer { padding: 30px 18px; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .rsu-page { scroll-behavior: auto; }
  .rsu-page *, .rsu-page *::before, .rsu-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .rsu-page .home-nav, .rsu-toolbar, #rsu-form, #rsu-export, .rsu-faq, .rsu-scroll-hint, .rsu-page .home-footer { display: none; }
  .rsu-hero { padding: 20px; background: #fff; color: #000; }
  .rsu-container { width: 100%; }
  .rsu-table-scroll, .rsu-table-tall { max-width: 100%; overflow: visible; max-height: none; }
  .rsu-page table { width: 100%; table-layout: fixed; font-size: 8pt; }
  .rsu-page th, .rsu-page td { min-width: 0; max-width: none; white-space: normal; overflow-wrap: anywhere; padding: 4px; position: static; }
  .rsu-page main { font-size: 10pt; }
}
