/* VA Community Engagement Award: styles for the public site and the staff console.
   Color: navy #003F72, blue #0083BE and gold #F9C642 (as text, on navy only), on white
   and gray surfaces. No red: maroon #772432 is kept for error and danger states.
   Type: Georgia for headings and Myriad Pro for text where they are installed, otherwise
   Gelasio and Source Sans 3, served from /fonts under the SIL Open Font License.
   Text and background pairs meet WCAG 2.1 AA contrast. */

/* Gelasio: metric-compatible with Georgia (SIL OFL). Downloaded only on devices without Georgia (e.g. Android, Linux). */
@font-face { font-family: "Gelasio"; src: url(/fonts/gelasio-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url(/fonts/gelasio-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url(/fonts/gelasio-latin-700-normal.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url(/fonts/gelasio-latin-700-italic.woff2) format("woff2"); font-weight: 600 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3-latin-wght-normal.woff2) format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url(/fonts/source-sans-3-latin-wght-italic.woff2) format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
/* Arial (Liberation Sans on Linux) scaled to the width of Source Sans 3. It stands in while
   the web font loads, so text takes the same room and the page does not jump when the font
   arrives. The range keeps it to letters and punctuation; other characters, such as the arrow
   on buttons, still come from the system font. */
@font-face { font-family: "Source Sans 3 Fallback"; src: local("Arial"), local("Liberation Sans"); size-adjust: 93%; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #1b1b1b;
  --ink-2: #323a45;
  --ink-3: #5b616b;
  --paper: #ffffff;
  --paper-2: #f1f1f1;
  --white: #ffffff;
  --navy: #003f72;          /* primary navy (PMS 541 C) */
  --navy-2: #0071bb;        /* VA primary (links) */
  --navy-3: #112e51;        /* VA primary-darkest */
  --bar: #0083be;           /* primary blue (PMS 7461 C): decoration and large text only */
  --brick: #0071bb;         /* accent text on light surfaces */
  --brick-2: #005ea2;
  --orange: #0083be;        /* accent rule: the same blue, because the palette has no red */
  --sky: #e1f3f8;           /* VA cool-blue lightest (timeline chips) */
  --gold: #f9c642;          /* gold; as text, on navy only */
  --rule: #d6d7d9;
  --rule-strong: #1b1b1b;
  --ok: #1f6e33;
  --warn: #8a5a00;
  --err: #772432;           /* maroon (PMS 188 C): error and danger states, 10:1 on white */
  --focus: #2491ff;

  --serif: Georgia, "Gelasio", "Times New Roman", serif;   /* headings and display text */
  /* Text: Myriad Pro where it is installed, otherwise Source Sans 3, an open-source sans of similar proportions. */
  --sans: "Myriad Pro", "Source Sans 3", "Source Sans 3 Fallback", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; }

a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy-3); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

h1, h2, h3, h4 { text-wrap: balance; font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.9rem); font-weight: 700; letter-spacing: -0.018em; color: var(--navy); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; color: var(--navy); }
h3 { font-size: 1.3rem; }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
p, li { max-width: 68ch; text-wrap: pretty; }
strong { font-weight: 650; }
small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The hidden attribute wins over any class that sets display, such as .btn. */
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* Kicker / small caps label */
.kicker { font: 700 .75rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 1rem; }
.lede { font-family: var(--serif); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.45; color: var(--ink-2); font-weight: 400; max-width: 40ch; }
.muted { color: var(--ink-3); }

/* ---------- Masthead ---------- */
.utility { background: var(--navy-3); color: #dce4ef; font-size: .875rem; }
/* The row never wraps as a whole. The sentence takes the room the links leave and wraps inside
   its own box; each link stays on one line, and the two stack only when both cannot fit. */
.utility .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; }
.utility-long { flex: 1 1 0; min-width: 0; }
.utility-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .25rem 1.25rem; margin-left: auto; }
.utility a { color: #fff; }
.utility-links a { white-space: nowrap; }
.utility .vcl { font-weight: 600; }
@media (max-width: 1100px) { .utility-long { display: none; } }
@media (max-width: 640px) { .utility-links { column-gap: .75rem; font-size: .8125rem; } }

.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.75rem; padding-block: .625rem; }
.brand { display: flex; align-items: center; gap: .85rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 54px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 700 1.15rem/1.1 var(--serif); letter-spacing: -0.01em; color: var(--navy); text-wrap: balance; }
.brand-bar { width: .5rem; align-self: stretch; background: var(--bar); flex: none; }
.brand-text span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: .2rem; font-weight: 600; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a { display: block; padding: .5rem .7rem; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { border-bottom-color: var(--rule-strong); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .btn { margin-left: .5rem; border-bottom: 0; color: #fff; padding: .6rem .95rem; }
.nav .btn:hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--rule-strong); padding: .45rem .8rem; font: 600 .875rem var(--sans); color: var(--ink); cursor: pointer; }
  .nav-toggle[aria-expanded="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); display: none; z-index: 5; }
  .nav.open { display: block; box-shadow: 0 16px 24px -16px rgba(17, 46, 81, .35); }
  .nav ul { flex-direction: column; align-items: stretch; padding: .5rem var(--gutter) 1rem; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--bar); padding-left: .75rem; }
  .nav .btn { margin: .75rem 0 0; padding: .95rem 1.35rem; font-size: 1rem; text-align: center; }
  .masthead { position: relative; }
}
/* Just above the phone menu the row is tight: draw the links together to leave the name room. */
@media (min-width: 961px) and (max-width: 1140px) {
  .masthead .wrap { gap: 1rem; }
  .nav ul { gap: 0; }
  .nav a { padding: .5rem; }
  .nav .btn { margin-left: .35rem; padding: .6rem .8rem; }
}
/* Phones: a smaller lockup, so that from 360px the name takes two lines beside the Menu button. */
@media (max-width: 640px) { .brand-mark { width: 44px; } }
@media (max-width: 480px) {
  .masthead .wrap { gap: .75rem; }
  .brand { gap: .625rem; }
  .brand-mark { width: 40px; }
  .brand-text span { font-size: .6875rem; letter-spacing: .05em; margin-bottom: .15rem; }
  .brand-text b { font-size: 1.0625rem; }
}
@media (max-width: 374px) {
  .brand-text span { letter-spacing: .02em; }
  .brand-text b { font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font: 600 1rem/1 var(--sans); padding: .95rem 1.35rem; border: 2px solid var(--navy); background: var(--navy); color: #fff; text-decoration: none; cursor: pointer; border-radius: 2px; }
.btn:hover { background: var(--navy-3); border-color: var(--navy-3); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-sm { padding: .55rem .85rem; font-size: .875rem; }
.btn-danger { background: var(--err); border-color: var(--err); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn[hidden] { display: none; }
.arrow::after { content: " →"; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.25rem, 3.5vw, 3.5rem) 0 clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--rule); }
.hero::before { content: ""; position: absolute; left: 0; top: clamp(.9rem, 1.4vw, 1.25rem); width: min(38vw, 30rem); height: .75rem; background: var(--bar); }
.hero-photo { display: block; width: 100%; height: auto; margin-bottom: 1.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero { border-bottom: 0; }

/* Hero photo: a blue block offset behind the image */
.hero-figure { position: relative; margin: 0; padding: 1.25rem 1.25rem 0 0; }
.hero-figure::before { content: ""; position: absolute; right: 0; top: 0; width: 70%; height: 72%; background: var(--bar); }
.hero-figure img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; box-shadow: 0 18px 40px -18px rgba(17, 46, 81, .45); }
.hero-figure figcaption { position: relative; font-size: .75rem; color: var(--ink-3); margin-top: .5rem; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 2.7vw, 3.5rem); }

/* Award at a glance: navy band under the hero */
.ledger-band { background: var(--navy); color: #fff; border-top: 4px solid var(--gold); }
.ledger-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; }
.ledger-row div { padding: 1.5rem 1.25rem 1.6rem; border-left: 1px solid rgba(255, 255, 255, .16); }
.ledger-row div:first-child { border-left: 0; padding-left: 0; }
.ledger-row dt { font: 600 .75rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #c5d4e6; }
.ledger-row dd { margin: .45rem 0 0; font: 700 clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem)/1.05 var(--sans); letter-spacing: -0.01em; color: #fff; }
.ledger-row dd small { display: block; font: 400 .85rem/1.3 var(--sans); color: #dbe5f0; margin-top: .35rem; letter-spacing: 0; }
@media (max-width: 860px) {
  .ledger-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-row div, .ledger-row div:first-child { border-left: 0; padding: 1rem 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .ledger-row div:nth-child(-n+2) { border-top: 0; }
  .ledger-row div:nth-child(even) { padding-left: 1rem; }
  .hero-figure { padding: .9rem .9rem 0 0; }
}

/* In-page photos */
figure.photo { margin: 2rem 0 0; }
figure.photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 30% 60%; }
figure.photo figcaption { font-size: .8rem; color: var(--ink-3); margin-top: .5rem; border-left: 3px solid var(--bar); padding-left: .6rem; }
.hero h1 em { font-style: italic; color: var(--navy-2); font-weight: 600; }
.hero .lede { margin-top: 1rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; align-items: center; }
/* Phones: the buttons take the full width, so a stacked pair lines up at both edges. */
@media (max-width: 480px) { .hero-actions .btn { flex: 1 1 100%; text-align: center; } }
.hero-note { font-size: .9rem; color: var(--ink-3); margin: 1rem 0 0; }

.ledger { border-top: 4px solid var(--navy); margin: 0; }
.ledger div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.ledger dt { font-size: .875rem; color: var(--ink-2); }
.ledger dd { margin: 0; color: var(--navy); font: 700 1.5rem/1 var(--sans); letter-spacing: -0.01em; text-align: right; }
.ledger dd small { display: block; font: 400 .8rem/1.3 var(--sans); color: var(--ink-3); margin-top: .25rem; letter-spacing: 0; }

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; align-items: start; } }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; border-bottom: 1px solid var(--rule); }
.section.tint { background: var(--paper-2); }
.section.dark { background: var(--navy); color: #e7ebf1; border-bottom: 0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark { position: relative; }
.section.dark::before { content: ""; position: absolute; left: 0; top: 0; width: min(30vw, 22rem); height: .6rem; background: var(--bar); }
.section.dark a { color: #fff; }
.section.dark .kicker { color: var(--gold); }
.section.dark .muted { color: #c5cfdf; }

.split { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.2fr); gap: clamp(1.5rem, 5vw, 4.5rem); }
.split > header { position: relative; }
/* A column may be narrower than its longest word, which then wraps instead of widening the page. */
.split > * { min-width: 0; }
@media (min-width: 861px) { .split > header .sticky { position: sticky; top: 1.5rem; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Priority categories: a ruled index, not cards */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); counter-reset: idx; }
.index > li { counter-increment: idx; display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); max-width: none; }
.index > li::before { content: counter(idx, decimal-leading-zero); font: 500 1.05rem/1.5 var(--serif); color: var(--brick); font-variant-numeric: tabular-nums; }
.index h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.index p { margin: 0; color: var(--ink-2); }

/* Priority category cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.cards > li { background: #fff; border-top: 4px solid var(--bar); padding: 1.5rem 1.5rem 1.6rem; box-shadow: 0 1px 2px rgba(17, 46, 81, .08); max-width: none; }
.cards h3 { margin: .25rem 0 .4rem; font-size: 1.2rem; }
.cards p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Two phases */
.phases { display: grid; grid-template-columns: 1fr 1fr; border-top: 4px solid var(--navy); }
.phase { padding: 1.75rem 1.75rem 1.75rem 0; }
.phase + .phase { border-left: 1px solid var(--rule); padding-left: 1.75rem; }
.phase .num { font: italic 600 3.25rem/1 var(--serif); color: var(--navy-2); margin-bottom: .75rem; }
.phase ul { padding-left: 1.1rem; margin: 0; }
.phase li { margin-bottom: .35rem; }
@media (max-width: 760px) {
  .phases { grid-template-columns: 1fr; }
  .phase { padding-right: 0; }
  .phase + .phase { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

/* Timeline */
.timeline { display: grid; gap: .9rem; border-right: 4px solid var(--navy); padding-right: 0; }
.tl-month h3 { margin: 0 0 .4rem auto; width: max-content; min-width: 7.5rem; text-align: center; background: var(--navy); color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: .5rem .9rem; }
.tl-list { list-style: none; margin: 0; padding: 0 .75rem 0 0; display: grid; gap: .35rem; }
.tl-month li { position: relative; display: grid; grid-template-columns: 7.5rem 1fr auto; gap: 1rem; align-items: baseline; background: #e2f1f8; padding: .65rem .9rem .65rem 2.1rem; max-width: none; }
.tl-month li::before { content: ""; position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); border-style: solid; border-width: .45rem 0 .45rem .7rem; border-color: transparent transparent transparent var(--bar); }
.tl-month time { font: 700 .95rem var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.tl-month .past { background: #f1f3f5; color: var(--ink-3); }
.tl-month .past::before { border-left-color: #a9aeb1; }
.tl-month .past time { color: var(--ink-3); }
.tl-month .now { background: #fff7d6; box-shadow: inset 0 0 0 2px var(--gold); }
.tl-month .now::before { border-left-color: #c99700; }
.tl-month .tag { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); font-weight: 700; }
@media (max-width: 560px) { .tl-month li { grid-template-columns: 1fr; gap: .1rem; } }

/* Criteria list */
.criteria { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.criteria li { counter-increment: c; position: relative; padding: 1.35rem 0 1.35rem 3.5rem; border-top: 1px solid var(--rule); max-width: none; }
.criteria li::before { content: counter(c); position: absolute; left: 0; top: 1.1rem; font: italic 400 2.1rem/1 var(--serif); color: var(--brick); }
.criteria h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
.criteria p { margin: 0; color: var(--ink-2); }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0; columns: 2 22rem; column-gap: 3rem; }
.checks li { break-inside: avoid; padding: .85rem 0 .85rem 2rem; border-top: 1px solid var(--rule); position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .9rem; height: .5rem; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.checks b { display: block; }

/* Quote / pull */
.pull { font: italic 400 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.35 var(--serif); color: var(--ink); border-left: 3px solid var(--orange); padding-left: 1.5rem; margin: 0; max-width: 34ch; }

/* Page header */
.page-head { position: relative; padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.75rem, 3vw, 2.75rem); border-bottom: 1px solid var(--rule-strong); background: linear-gradient(var(--paper-2), var(--paper-2)) no-repeat; }
.page-head::before { content: ""; position: absolute; left: 0; top: 0; width: min(28vw, 22rem); height: .55rem; background: var(--bar); }
.page-head.has-art .wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.page-head-photo { margin: 0; }
.page-head-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 30% 60%; box-shadow: 10px 10px 0 var(--bar); }
.page-head-photo figcaption { font-size: .75rem; color: var(--ink-3); margin-top: .9rem; }
.page-head-icons { display: grid; grid-template-columns: repeat(2, 76px); gap: 14px; justify-content: end; }
.page-head-icons.icons-6 { grid-template-columns: repeat(3, 76px); }
.page-head-icons.icons-7 { grid-template-columns: repeat(4, 64px); gap: 12px; }
.page-head-icons.icons-7 img { width: 64px; height: 64px; }
.page-head-icons img { width: 76px; height: 76px; background: #fff; border-radius: 50%; padding: 6px; box-shadow: 0 1px 3px rgba(17, 46, 81, .12); }
@media (max-width: 860px) {
  .page-head.has-art .wrap { grid-template-columns: 1fr; }
  .page-head-icons { display: none; }
}
.page-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); margin-bottom: .35em; }
.crumbs { font-size: .875rem; color: var(--ink-3); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-3); }

.prose { padding-top: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.prose h2 { margin-top: 2.5rem; font-size: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
/* Plain lists in running text. A list with a class is a component and sets its own spacing. */
.prose :where(ul, ol):not([class]) { padding-left: 1.25rem; }
.prose :where(ul, ol):not([class]) > li { margin-bottom: .4rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { text-align: left; padding: .7rem .75rem .7rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--rule-strong); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font: 500 1.15rem/1.35 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .9rem; font: 300 1.6rem/1 var(--sans); color: var(--brick); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 1.25rem; color: var(--ink-2); }
.faq h2 { font-size: .8rem; font-family: var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 2.5rem 0 .75rem; font-weight: 700; }

/* Resources */
.reslist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); }
.reslist li { display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); align-items: baseline; max-width: none; }
.reslist .kind { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.reslist h2 { font-size: 1.1rem; margin: 0 0 .2rem; color: var(--ink); }
.reslist p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 640px) { .reslist li { grid-template-columns: 1fr; gap: .25rem; } }

/* Showcase */
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0 2.5rem; }
.showcase article { border-top: 3px solid var(--rule-strong); padding: 1.25rem 0 2rem; }
.showcase .org { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); font-weight: 700; margin: 0 0 .5rem; }
.showcase h3 { font-size: 1.35rem; }

/* Announcement strip */
.notice { background: var(--white); border-left: 4px solid var(--bar); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.notice h2, .notice h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin: 0 0 .25rem; }
.notice p:last-child { margin: 0; }
.notice.ok { border-left-color: var(--ok); }
.notice.err { border-left-color: var(--err); }
.notice.warn { border-left-color: var(--warn); }

/* ---------- Forms ---------- */
.form { max-width: 46rem; }
fieldset { border: 0; padding: 0; margin: 0 0 2.75rem; }
legend { font: 500 1.6rem/1.2 var(--serif); padding: 0; margin-bottom: .35rem; letter-spacing: -0.01em; }
.legend-note { color: var(--ink-3); margin: 0 0 1.5rem; font-size: .95rem; }
.checkgrid { max-height: 16rem; overflow-y: auto; border: 1px solid #8a8577; background: var(--white); padding: .5rem .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .1rem 1rem; border-radius: 2px; }
.checkgrid label { display: flex; gap: .5rem; align-items: center; padding: .3rem 0; font-size: .95rem; cursor: pointer; }
.checkgrid input { width: 1rem; height: 1rem; accent-color: var(--navy); }
.checkgrid .all { grid-column: 1 / -1; font-weight: 600; border-bottom: 1px solid var(--rule); padding-bottom: .5rem; margin-bottom: .25rem; }
.step { display: block; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin-bottom: .5rem; }
.field { margin-bottom: 1.5rem; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: .35rem; }
.hint { display: block; font-size: .9rem; color: var(--ink-3); margin: -.15rem 0 .5rem; max-width: 60ch; }
.req { color: var(--brick); font-weight: 400; font-size: .85rem; margin-left: .25rem; }
.opt { color: var(--ink-3); font-weight: 400; font-size: .85rem; margin-left: .25rem; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=password], input[type=search], input[type=date], input[type=number], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--white);
  border: 1px solid #8a8577; border-radius: 2px; padding: .7rem .8rem;
}
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
textarea { min-height: 9rem; resize: vertical; }
input[type=file] { font: inherit; padding: .75rem; border: 1px dashed #8a8577; width: 100%; background: var(--white); }
.choices { display: grid; gap: .5rem; }
.choices.cols { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.choice { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .85rem; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; cursor: pointer; }
.choice:hover { border-color: var(--ink); }
.choice input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); flex: none; }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.counter { font-size: .8rem; color: var(--ink-3); text-align: right; margin-top: .25rem; font-variant-numeric: tabular-nums; }
.hint.example-file { margin: .5rem 0 0; }
.preview-end p { margin: 1rem 0 0; }
.field-error { color: var(--err); font-weight: 600; font-size: .9rem; margin: .35rem 0 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); border-width: 2px; }
input[aria-invalid="true"] { border-color: var(--err); border-width: 2px; }
.error-summary { border: 3px solid var(--err); padding: 1.25rem 1.5rem; margin-bottom: 2rem; background: var(--white); }
.error-summary h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.error-summary ul { margin: 0; padding-left: 1.2rem; }
.form-aside { background: var(--white); border: 1px solid var(--rule); padding: 1.25rem 1.5rem; margin-bottom: 2.5rem; }
.form-aside h2 { font: 700 .8rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .75rem; }
.form-aside ul { margin: 0; padding-left: 1.1rem; font-size: .95rem; }
.apply-layout { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 4rem; padding-top: 2.5rem; padding-bottom: 5rem; }
.apply-layout aside .sticky { position: sticky; top: 1.5rem; }
@media (max-width: 960px) { .apply-layout { grid-template-columns: 1fr; gap: 0; } .apply-layout aside { order: -1; } }

.receipt { border: 1px solid var(--rule-strong); background: var(--white); padding: 2rem; max-width: 40rem; }
.receipt .id { font: 500 2.25rem/1 var(--serif); letter-spacing: .02em; margin: .5rem 0 1rem; font-variant-numeric: tabular-nums; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-3); color: #dce4ef; padding: 3.5rem 0 2rem; font-size: .9375rem; }
.footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer h2 { font: 700 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .45rem; }
.footer .fine { border-top: 1px solid #2c4b73; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .875rem; color: #c5cfdf; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer .sig { font: italic 500 1.3rem/1.35 var(--serif); color: #fff; max-width: 26ch; margin-bottom: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Staff console ---------- */
/* The site's focus blue is under 3:1 on this grey, so the console uses the link blue (4.8:1). */
.console { background: #f6f7f9; --focus: #0071bb; }
.console .masthead { background: #fff; }
.console .masthead .wrap { max-width: none; }
.masthead-account { display: flex; align-items: center; gap: 1rem; margin: 0; min-width: 0; }
/* A long name gives way to the buttons; it is spelled out in full on My account. */
.masthead-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; color: var(--ink-3); }
.masthead-account .btn { white-space: nowrap; }
.console-layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); min-height: calc(100vh - 4.75rem); }
.console-nav { background: #fff; border-right: 1px solid #dde1e6; padding: 1.25rem 0; }
.console-nav h2 { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 0 1.25rem; margin: 1.25rem 0 .5rem; }
.console-nav a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 1.25rem; color: var(--ink); text-decoration: none; font-size: .9375rem; border-left: 3px solid transparent; }
.console-nav a:hover { background: #f2f4f7; color: var(--ink); }
.console-nav a[aria-current="page"] { border-left-color: var(--brick); background: #f2f4f7; font-weight: 600; }
/* Menu rows and the Menu button run to the edge of the screen, so their focus ring is drawn
   inside them; drawn outside, it would lose its sides. */
.console-nav a:focus-visible, .console-menu-toggle:focus-visible { outline-offset: -3px; }
.console-nav .count { font-size: .75rem; background: var(--brick); color: #fff; padding: .1rem .45rem; border-radius: 9px; font-weight: 700; }
.console-nav .console-nav-site, .console-menu-toggle { display: none; }
.console-main { padding: 2rem clamp(1rem, 3vw, 2.5rem) 4rem; min-width: 0; }
.console-main h1 { font-size: 2rem; margin-bottom: .25rem; }
.console-main h2 { font-size: 1.35rem; margin-top: 2rem; }
.panel { background: #fff; border: 1px solid #dde1e6; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.panel h2:first-child, .panel h3:first-child { margin-top: 0; }
.stats { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #dde1e6; background: #fff; margin: 1.5rem 0; }
.stat { flex: 1 1 10rem; padding: 1rem 1.25rem; border-right: 1px solid #dde1e6; border-bottom: 1px solid #dde1e6; margin-bottom: -1px; }
.stat b { display: block; font: 700 2rem/1.1 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { font-size: .8125rem; color: var(--ink-3); }
/* Status pills. The transparent border becomes an outline in forced-colours mode, where
   backgrounds are dropped. */
.pill { display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.35; padding: .1rem .5rem; border: 1px solid transparent; border-radius: 2px; background: #e8eaee; color: var(--ink-2); white-space: nowrap; }
.pill-action { background: #fbefd5; color: var(--warn); }
.pill-progress { background: #e1e9f5; color: var(--brick-2); }
.pill-done { background: #e3f0e5; color: var(--ok); }
.pill-problem { background: #f4e6e9; color: var(--err); }
/* A mark before the label tells the tones apart without colour: a dot waits on staff, a
   ring is in progress, a tick is done and a cross has gone wrong. */
.pill-action::before, .pill-progress::before, .pill-done::before, .pill-problem::before {
  content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; vertical-align: .05em; forced-color-adjust: none;
}
.pill-action::before { border-radius: 50%; background: currentColor; }
.pill-progress::before { border-radius: 50%; border: 2px solid currentColor; }
.pill-done::before { width: .3rem; height: .55rem; margin: 0 .45rem 0 .1rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); vertical-align: .1em; }
.pill-problem::before { background: linear-gradient(45deg, transparent 40%, currentColor 40% 60%, transparent 60%), linear-gradient(-45deg, transparent 40%, currentColor 40% 60%, transparent 60%); }
.toolbar { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin: 1rem 0; }
.toolbar .field { margin: 0; }
.toolbar select, .toolbar input { width: auto; padding: .5rem .6rem; }
.kv { display: grid; grid-template-columns: fit-content(12rem) minmax(0, 1fr); gap: .5rem 1.25rem; margin: 0; }
.kv dt { color: var(--ink-3); font-size: .9rem; }
.kv dd { margin: 0; overflow-wrap: anywhere; } /* long addresses and folder paths wrap on phones */
.steps { display: inline-flex; flex-wrap: wrap; gap: 2px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.steps span { padding: .2rem .5rem; background: #e8eaee; color: var(--ink-3); }
.steps .done { background: #e3f0e5; color: var(--ok); }
.steps .cur { background: var(--navy); color: #fff; }
.score-sheet { padding: 0; }
.score-row { display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: .75rem 1.5rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid #dde1e6; align-items: start; }
.score-row:last-child { border-bottom: 0; }
.score-q h3 { font-family: var(--sans); font-size: 1rem; margin: 0 0 .2rem; }
.score-q p { margin: 0; font-size: .85rem; }
.score-why { grid-column: 1 / -1; min-height: 3rem !important; font-size: .95rem; }
.rating { display: inline-flex; border: 1px solid #8a8577; border-radius: 2px; overflow: hidden; margin: 0; padding: 0; min-width: 0; }
.rating label { position: relative; cursor: pointer; }
.rating input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rating span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 4.1rem; min-height: 3.4rem; padding: .35rem .3rem; background: #fff; border-left: 1px solid #dde1e6; line-height: 1.1; }
.rating label:first-of-type span { border-left: 0; }
.rating b { font: 600 1.25rem/1 var(--serif); }
.rating small { font-size: .66rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-3); margin-top: .2rem; }
.rating input:checked + span { background: var(--navy); color: #fff; }
.rating input:checked + span small { color: #d5deeb; }
.rating input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: -3px; }
.rating[disabled] span { opacity: .65; cursor: default; }
.cmp-off { background: #fbefd5; font-weight: 700; }
@media (max-width: 900px) { .score-row { grid-template-columns: 1fr; } .rating { width: 100%; } .rating label { flex: 1; } .rating span { min-width: 0; } }
.score-grid td { vertical-align: middle; }
.score-grid select { width: 100%; }
.rating-legend { font-size: .85rem; color: var(--ink-3); }

/* ---------- Staff console: tablets and phones ---------- */
/* A part of a page, and each dashboard panel, may be narrower than its widest table, which
   then scrolls inside its own region (tableRegion in views/components.js). */
.console-main .row2 > *, .attention > * { min-width: 0; }
/* Keeps visually hidden labels inside a scrolled table from widening the page. */
.console-main .table-scroll { position: relative; }
.table-scroll:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* The last column needs no gap after it, and on a phone those 12px can decide whether a
   table fits. */
.console-main :is(th, td):last-child { padding-right: 0; }
.console-main .nowrap, td .steps { white-space: nowrap; flex-wrap: nowrap; }
/* In a table a long status may take two lines, so the columns beside it stay in view. */
.console-main td .pill { white-space: normal; }
/* Row actions wrap onto a second line rather than widening the table, each button whole. */
.console-main td.actions .btn, .user-actions .btn { margin-block: .125rem; white-space: nowrap; }
/* Email addresses and audit details, stored as JSON, have no spaces to wrap at. A cell of
   such text keeps a minimum width, so that a phone does not squeeze it to a few letters a line. */
.console-main :is(.email, .audit-detail) { overflow-wrap: anywhere; }
.console-main td:is(.email, .audit-detail) { min-width: 8rem; }
.app-meta, .attn-list li { max-width: none; }
/* Two-column parts of a page sit side by side only while each gets 22rem. */
.console-main .row2 { grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); }
.mfa-setup { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 2rem; align-items: start; }
.mfa-setup svg { display: block; max-width: 100%; height: auto; }

/* Below 861px the menu leaves the side of the page. Where scripts run it folds away behind
   the Menu button, which site.js works; elsewhere it stays open as one row that scrolls
   sideways. */
@media (max-width: 860px) {
  .console-layout { display: block; min-height: 0; }
  .console-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #dde1e6; padding: .25rem .5rem; }
  .console-nav h2 { display: none; }
  .console-nav-group { display: contents; }
  .console-nav a { flex: none; white-space: nowrap; border-left: 0; padding: .6rem .7rem; }
  .console-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brick); }
  .mfa-setup { grid-template-columns: minmax(0, 220px); }
  .toolbar .field, .toolbar select, .toolbar input { max-width: 100%; min-width: 0; }
}
@media (max-width: 860px) and (scripting: enabled) {
  .console-menu-toggle { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 3rem; padding: .5rem var(--gutter); border: 0; border-bottom: 1px solid #dde1e6; background: #fff; color: var(--ink); font: 600 1rem/1.2 var(--sans); text-align: left; cursor: pointer; }
  .console-menu-toggle:hover { background: #f2f4f7; }
  /* A chevron that points up while the menu is open. */
  .console-menu-toggle::after { content: ""; width: .5rem; height: .5rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.15rem) rotate(45deg); }
  .console-menu-toggle[aria-expanded="true"]::after { transform: translateY(.1rem) rotate(-135deg); }
  .console-nav { display: none; }
  .console-nav.open { display: block; overflow: visible; padding: .25rem 0 .75rem; }
  .console-nav.open h2 { display: block; padding: 0 var(--gutter); margin: 1rem 0 .25rem; }
  .console-nav.open a { min-height: 2.75rem; padding: .5rem var(--gutter); border-left: 3px solid transparent; white-space: normal; }
  .console-nav.open a[aria-current="page"] { border-left-color: var(--brick); box-shadow: none; }
}
/* Small tablets have room for the open menu in two columns. A group never splits across them,
   and its space above is padding, which the top of a column keeps, so both columns line up. */
@media (min-width: 561px) and (max-width: 860px) and (scripting: enabled) {
  .console-nav.open { columns: 2; column-gap: 0; }
  .console-nav.open .console-nav-group { display: block; break-inside: avoid; padding-top: .75rem; }
  .console-nav.open .console-nav-group h2 { margin-top: 0; }
  .console-nav.open a { break-inside: avoid; }
}
/* Phones: the header keeps the console's name and Sign out on one row, and the menu takes
   over View site. */
@media (max-width: 720px) {
  .console .masthead .wrap { gap: .75rem; min-height: 4rem; }
  .console .brand-text span, .masthead-who, .masthead-account .view-site { display: none; }
  .console-nav .console-nav-site { display: flex; }
  .console-main { padding-top: 1.5rem; }
  .console-main h1 { font-size: 1.75rem; }
  .panel { padding: 1rem; }
  .panel.score-sheet { padding: 0; }
  .score-row { padding: 1rem; }
}
/* Phones: the six ratings take two rows of three, so that each keeps its word. */
@media (max-width: 560px) {
  .rating { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rating span { border-top: 1px solid #dde1e6; }
  .rating label:nth-of-type(-n+3) span { border-top: 0; }
  .rating label:nth-of-type(3n+1) span { border-left: 0; }
}
@media (max-width: 480px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .toolbar .field { flex: 1 1 100%; }
  .toolbar .field input, .toolbar .field select { width: 100%; }
}
/* Selected states that forced-colours mode would otherwise flatten to plain text, and
   transparent borders that it would draw on every menu link instead of the current one. */
@media (forced-colors: active) {
  .console-nav a, .console-nav.open a { border-left-color: Canvas; }
  .console-nav a[aria-current="page"], .console-nav.open a[aria-current="page"] { border-left-color: Highlight; }
  .pill::before { color: CanvasText; }
  .rating input:checked + span, .steps .cur { forced-color-adjust: none; background: Highlight; color: HighlightText; }
  .rating input:checked + span small { color: inherit; }
  .steps .done { border-bottom: 2px solid CanvasText; }
  .progress { border: 1px solid CanvasText; }
  .progress span { forced-color-adjust: none; background: Highlight; }
}

@media print {
  .utility, .masthead nav, .footer, .skip, .hero-actions { display: none !important; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Review dialog */
dialog.review { width: min(46rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); border: 1px solid var(--rule-strong); padding: 1.75rem; background: var(--paper); color: var(--ink); border-radius: 2px; }
dialog.review::backdrop { background: rgba(14, 36, 78, .55); }
dialog.review h2 { font-size: 1.75rem; outline: none; }
.review-list { display: grid; grid-template-columns: minmax(10rem, 1fr) 2fr; gap: 0; margin: 1rem 0; border-top: 1px solid var(--rule-strong); }
.review-list dt, .review-list dd { padding: .55rem 0; border-bottom: 1px solid var(--rule); margin: 0; font-size: .95rem; }
.review-list dt { color: var(--ink-3); padding-right: 1rem; }
.review-list dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.review-list dd.missing { color: var(--err); }
.review-checks { font-size: .95rem; padding-left: 1.2rem; }
@media (max-width: 560px) { .review-list { grid-template-columns: 1fr; } .review-list dt { border-bottom: 0; padding-bottom: 0; } }

/* VA iconography (when exported into public/brand/icons) */
.icon { display: block; width: 56px; height: 56px; object-fit: contain; margin-bottom: .6rem; }
.icon-sm { width: 40px; height: 40px; float: right; margin: 0 0 .5rem 1rem; }
.icon-on-dark { background: #fff; border-radius: 50%; padding: 6px; width: 60px; height: 60px; }

/* Staff help */
.howto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(22rem, 100%), 1fr)); gap: 0 1.5rem; align-items: start; }
.howto h2 { font-size: 1.15rem; }
.howto ol { padding-left: 1.2rem; margin: 0 0 .75rem; }
.howto li { margin-bottom: .45rem; font-size: .98rem; }
@media print {
  .console-nav, .console-menu-toggle, .masthead form, [data-print], .skip { display: none !important; }
  .console-layout { display: block; }
  .console-main { padding: 0; }
  .panel { break-inside: avoid; border-color: #999; }
  .howto-grid { display: block; }
}

/* Eligibility self-check */
.qcheck { margin-bottom: 1.75rem; }
.qcheck legend { font: 600 1.15rem/1.35 var(--serif); color: var(--ink); }
.qcheck.has-issue .choice:has(input:checked) { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }

/* Dashboard attention panel */
.attention { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: 1.5rem; margin: 1.25rem 0 0; }
.attn-list ul { list-style: none; margin: 0; padding: 0; }
.attn-list li { border-top: 1px solid #dde1e6; }
.attn-list li:first-child { border-top: 0; }
.attn-list a { display: flex; align-items: center; gap: .85rem; padding: .7rem .5rem .7rem .25rem; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.attn-list a:hover { color: var(--navy-2); background: #f5f8fb; border-left-color: var(--bar); }
.attn-list a span { flex: 1; }
.attn-list a i { font-style: normal; font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
.attn-list b { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; padding: 0 .4rem; border-radius: 1rem; background: #e3f0f8; color: var(--navy); font-size: 1rem; }
.attn-list .urgent b { background: #f4e6e9; }
.attn-list .urgent b, .attn-list .urgent a { color: var(--err); }
.attn-next .big { font: 700 1.8rem/1.1 var(--serif); color: var(--navy); margin: 0 0 .4rem; }
@media (max-width: 860px) { .attention { grid-template-columns: 1fr; } }
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .print-head { border-bottom: 2px solid var(--navy); padding-bottom: .4rem; margin-bottom: 1rem; font-size: 11pt; }
  body.console { background: #fff; }
  .stats { break-inside: avoid; }
  .console-main h1 { font-size: 18pt; }
  .console-main a { color: inherit; text-decoration: none; }
}

/* Staff idle warning */
.idle-warning { position: fixed; right: 1rem; bottom: 1rem; max-width: 26rem; z-index: 50; box-shadow: 0 8px 28px rgba(0, 0, 0, .25); background: #fff; }

/* ---------- Staff sign-in ---------- */
/* The sign-in page and the code step: one narrow card, centred, that fits a 320px screen. */
.auth-main { max-width: 28rem; margin: 3rem auto; }
.auth-card { padding: 2rem; }
.auth-card h1 { font-size: 1.75rem; }
.auth-card .nowrap { white-space: nowrap; }
.auth-card .btn { display: block; width: 100%; text-align: center; }
.auth-account { margin-bottom: .35rem; overflow-wrap: anywhere; }
.auth-hint { font-size: .875rem; color: var(--ink-3); margin: .5rem 0 0; }
.btn-ms { display: inline-flex; align-items: center; gap: .65rem; background: #fff; color: #1b1b1b; border: 1px solid #8c8c8c; font-weight: 600; }
.btn-ms:hover { background: #f3f3f3; color: #1b1b1b; border-color: #5e5e5e; }
.auth-card .btn-ms { display: flex; justify-content: center; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--ink-3); font-size: .875rem; margin: 1.5rem 0 1rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.show-password { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .9375rem; }
.show-password input { width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--navy); }
.show-password label { cursor: pointer; padding: .2rem 0; }
input.otp { font: 600 1.5rem/1.2 var(--sans); letter-spacing: .3em; max-width: 12rem; }
.auth-help { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9375rem; }
.auth-help summary { cursor: pointer; font-weight: 600; color: var(--navy-2); }
.auth-help ul { margin: .75rem 0 0; padding-left: 1.1rem; }
.auth-help li + li { margin-top: .5rem; }
.auth-help p { margin: .75rem 0 0; overflow-wrap: anywhere; }
.auth-help-line { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .9375rem; color: var(--ink-3); }
.auth-foot { text-align: center; font-size: .9375rem; margin: 1rem auto 0; }
@media (max-width: 480px) {
  .auth-main { margin: 1.5rem auto; }
  .auth-card { padding: 1.5rem 1.25rem; }
}

/* Staff console polish */
.console-date { font: 600 .75rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brick); margin: 0 0 .5rem; }
.console-sub { color: var(--ink-3); margin: 0 0 1.5rem; }
.console-main .panel { box-shadow: 0 1px 2px rgba(17, 46, 81, .06); }
.stat span { display: block; line-height: 1.3; margin-top: .25rem; }
.console-main td.nowrap, .console-main td time { white-space: nowrap; }
.console-main table td { vertical-align: top; }

/* Faint diagonal lines over the navy band, page headers and footer */
.ledger-band { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.045) 0 1px, transparent 1px 11px); }
.page-head { background-color: var(--paper-2); background-image: repeating-linear-gradient(135deg, rgba(0,63,114,.035) 0 1px, transparent 1px 11px); }
.footer { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 1px, transparent 1px 11px); }

/* Footer VA line: VA.gov and the MyVA411 number, which public VA products carry */
.va-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding: 1rem 0; margin-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .95rem; }

picture { display: block; }

/* FAQ search */
.faq-search { margin: 0 0 1.75rem; }
.faq-search label { display: block; font-weight: 600; margin-bottom: .35rem; }
.faq-empty { margin-top: 1rem; }

/* Award logo */
.hero-logo { display: block; width: 132px; height: auto; margin: 0 0 1.25rem; }
.footer-logo { display: block; width: 96px; height: auto; background: #fff; border-radius: 50%; padding: 8px; margin-bottom: 1rem; }
@media (max-width: 640px) { .hero-logo { width: 104px; } }

/* Staff console: pagination, view tabs, judge progress */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 1.25rem 0; }
.pager .muted { margin-right: auto; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 2px solid var(--line, #d6dce3); margin: 1rem 0; }
.tabs a { padding: .55rem .9rem; text-decoration: none; color: var(--ink, #1b1b1b); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.tabs a:hover { color: var(--navy, #003F72); }
.tabs a[aria-current="page"] { color: var(--navy, #003F72); border-bottom-color: var(--blue, #0083BE); }
.tabs .count { display: inline-block; min-width: 1.4em; padding: 0 .4em; border-radius: 1em; background: var(--navy, #003F72); color: #fff; font-size: .78rem; text-align: center; }
.progress-panel p { margin: 0 0 .6rem; }
.progress { height: .7rem; background: #e2f1f8; border-radius: .35rem; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--navy, #003F72); }
.db-cols { margin: .4rem 0 0; padding-left: 1rem; font-size: .9rem; }
.db-cols li { margin: .15rem 0; }

/* ---------- Staff console: Users and My account ---------- */
/* On a narrow screen the Users table scrolls inside its own region. The shading at an edge
   shows there is more of the table that way, and goes once the reader reaches that edge.
   The region is positioned so that the hidden names inside its buttons scroll with it
   instead of widening the page. */
.users-scroll {
  --users-edge: color-mix(in srgb, var(--navy-3) 22%, transparent);
  position: relative;
  background:
    linear-gradient(to right, var(--white) 30%, transparent) left / 2.5rem 100% no-repeat local,
    linear-gradient(to left, var(--white) 30%, transparent) right / 2.5rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, var(--users-edge), transparent) left / .75rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, var(--users-edge), transparent) right / .75rem 100% no-repeat scroll;
}
/* The name is the row's header for screen readers, and looks like any other cell. */
.users-table tbody th { font-weight: 400; min-width: 10rem; overflow-wrap: anywhere; }
/* Wide enough for an ordinary address on one line; a longer one wraps rather than widening the table. */
.users-table .user-email { min-width: 13rem; overflow-wrap: anywhere; }
.users-table td:last-child { min-width: 9.5rem; }
.user-email-inline { display: none; }
.user-note { display: block; max-width: 30ch; margin-top: .25rem; font-size: .8125rem; line-height: 1.35; color: var(--ink-3); }
.user-pills { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.user-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: flex-start; }
.user-actions form { margin: 0; }
.manage summary { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .85rem; border: 2px solid var(--navy); border-radius: 2px; color: var(--navy); font: 600 .875rem/1 var(--sans); white-space: nowrap; cursor: pointer; list-style: none; }
.manage summary::-webkit-details-marker { display: none; }
.manage summary::after { content: ""; width: .4em; height: .4em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.manage[open] summary::after { transform: translateY(.1em) rotate(-135deg); }
.manage summary:hover { background: var(--navy); color: var(--white); }
.manage-list { display: grid; justify-items: start; gap: .4rem; margin-top: .5rem; }
.temporary-password { font-size: 1.1rem; overflow-wrap: anywhere; }
.user-form, .password-form { max-width: 32rem; }
.user-form fieldset { margin: 0 0 1.5rem; }
.user-form legend { font: 600 1rem/1.4 var(--sans); margin-bottom: .35rem; letter-spacing: 0; }
@media (max-width: 860px) {
  .users-table .user-email { display: none; }
  .users-table .user-email-inline { display: block; font-size: .875rem; color: var(--ink-3); }
}
@media (pointer: coarse) { .manage summary { min-height: 44px; } }

/* ---------- Touch screens ---------- */
/* Links and buttons that stand alone get a target about 44px high. Where the two utility
   links stack on a narrow phone they keep 36px each, so the bar stays a small part of the screen. */
@media (pointer: coarse) {
  .utility .wrap { padding-block: 0; align-items: center; }
  .utility-links { row-gap: 0; }
  .utility a { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs a, .footer li a, .footer .fine a, .va-line a { display: inline-block; padding-block: .75rem; }
  .footer li { margin-bottom: 0; }
  .nav-toggle, .btn-sm { min-height: 44px; }
  .btn-sm { display: inline-flex; align-items: center; }
  .nav .btn { display: flex; justify-content: center; }
}
@media (pointer: coarse) and (max-width: 379px) { .utility-links a:not(:only-child) { min-height: 36px; } }
