/* ==========================================================================
   uswds-bootstrap-bridge.css
   Makes Bootstrap 5.3 components render with USWDS 3.x visual language.

   Every value below was read out of your compiled theme:
   /uswds/dist/css/ia-uswds.css  (USWDS default palette, primary = #005ea2)

   --------------------------------------------------------------------------
   VERIFIED INTEGRATION FOR THIS SOLUTION
   --------------------------------------------------------------------------
   RCL: IA-USWDS.csproj. It sets no <PackageId>, <AssemblyName> or
   <StaticWebAssetBasePath>, so the static web asset base path is the project
   name: _content/IA-USWDS/. Your _Layout.cshtml already relies on this.

   Drop this file at:  IA-USWDS/wwwroot/css/uswds-bootstrap-bridge.css

   Do NOT place it under wwwroot/uswds/dist/css/ -- the CleanCompiledCss
   target in IA-USWDS.csproj deletes that entire directory on Clean, and the
   CompileSass target owns it.

   Every url() below is relative to this stylesheet, so:
     /_content/IA-USWDS/css/uswds-bootstrap-bridge.css
       + ../uswds/dist/img/usa-icons/info.svg
       = /_content/IA-USWDS/uswds/dist/img/usa-icons/info.svg
   All 7 icons and both font families were confirmed present at those paths.
   No package ID is hardcoded, so the file survives a rename of the RCL and
   works under a virtual directory or UsePathBase.

   --------------------------------------------------------------------------
   LOAD ORDER -- MUST BE THE LAST STYLESHEET
   --------------------------------------------------------------------------
   In _Layout.cshtml, add it immediately after the ia-uswds.css link:

     <link rel="stylesheet" href="~/_content/IA-USWDS/uswds/dist/css/ia-uswds.css" />
     <link rel="stylesheet" href="~/_content/IA-USWDS/css/uswds-bootstrap-bridge.css"
           asp-append-version="true" />

   It has to come last because it must outrank four things loaded above it:
     1. bootstrap.css
     2. css.min.css
     3. bootstrap.modified.5.3.css  (!important on .btn, .form-control,
        .container, .row, .col-*, .card-*, .table-sm, label)
     4. the four DataTables stylesheets
   and USWDS's own normalize-layer rules for bare h1/body/img.

   --------------------------------------------------------------------------
   CORNER RADIUS ON FORM CONTROLS
   --------------------------------------------------------------------------
   USWDS draws inputs with square corners. This app rounds them slightly
   via a single token:

     --u-control-radius: 0.25rem;   (section 2)

   Every input, select, textarea, file input, input-group addon, the
   DataTables filter box and .searchTableInput read from it, so the whole
   app changes from that one line. 0.25rem matches the button radius, so
   a field and the button next to it share the same corner. For something
   subtler use 2px (var(--u-radius-sm)); for square, set it to 0.

   Checkboxes keep their own 2px radius and radios stay circular, since
   4px on a 20px box reads as a rounded square rather than a checkbox.

   --------------------------------------------------------------------------
   WHY THIS FILE DOES NOT TOUCH USWDS UTILITIES
   --------------------------------------------------------------------------
   ia-uswds.css and Bootstrap share utility class names, and USWDS emits them
   WITHOUT !important. Since this file loads last, any !important rule here
   would silently win on USWDS pages too. So the following are deliberately
   left alone and remain owned by ia-uswds.css:

     .text-primary  .text-secondary  .text-success  .text-warning  .text-info
     .bg-primary    .bg-secondary    .bg-success    .bg-warning    .bg-info
     .border        .border-primary  .border-secondary  .border-success
     .font-sans-md  .font-serif-md   .font-mono-md
     .usa-sr-only   .usa-label--required  .usa-form-group--error  .header-text

   This matters most for "secondary": USWDS paints it red (#d83933), Bootstrap
   paints it gray. Overriding it here would have turned every USWDS
   .bg-secondary element gray. .bg-* is still restyled for badges, but only
   via .badge.bg-*, which cannot match a USWDS element.

   One deliberate exception: legend.usa-legend--large is restated below,
   because this file needs !important on bare `legend` to beat
   bootstrap.modified.5.3.css, and that would otherwise flatten it.

   --------------------------------------------------------------------------
   .NET 10 NOTES
   --------------------------------------------------------------------------
   MapStaticAssets fingerprints assets and emits hashed URLs through tag
   helpers / @Assets[...], but it also keeps serving each asset at its
   original unfingerprinted route. url() references inside CSS are never
   rewritten by the build, so the relative paths above resolve normally.
   The trade-off is that fonts and icons are cache-busted by content only,
   not by filename; the stylesheet itself still gets asp-append-version.

   --------------------------------------------------------------------------
   CONFIGURATION DECISIONS (agreed for this app)
   --------------------------------------------------------------------------
   1. SCOPE: global. Bare h1-h6, labels, links and inputs are restyled for
      every page, Bootstrap and USWDS alike, so the two halves of the app
      match. Note the side effect: headings outside .usa-prose on USWDS
      pages previously fell back to browser defaults and now render in
      Merriweather at the USWDS type scale. That is intended.

   2. DATATABLES: excluded. Every ruling and header-band rule in section 8
      carries :not(.dataTable), so DataTables keeps its own borders, sort
      arrows, striping and FixedHeader behaviour. DT grids still inherit
      USWDS font and color so text matches. Opt a single grid back in with
      class="table-ruled".

   3. DENSITY: full USWDS sizing (17px text, 40px inputs) everywhere. This
      is a real increase over the app's current ~12.8px text and 24px
      inputs, so expect data-entry screens to grow taller and some fixed
      column widths to need a second look. The .uswds-compact class in
      section 17 stays available as a per-container escape hatch, but is
      applied nowhere by default.

   --------------------------------------------------------------------------
   MAPPING NOTES (semantic, not literal)
   --------------------------------------------------------------------------
   Bootstrap and USWDS disagree on what "secondary" means, so:
     .btn-secondary  -> usa-button--base        (neutral gray)
     .btn-danger     -> usa-button--secondary   (USWDS red #d83933)
     .btn-info       -> usa-button--accent-cool
     .btn-warning    -> usa-button--accent-warm
   ========================================================================== */


/* ==========================================================================
   1. FONTS
   Redundant in this app (_Layout.cshtml loads ia-uswds.css on every page),
   but harmless, and keeps the file self-contained if reused elsewhere.
   Harmless (deduped by the browser) if it does.
   Paths assume this file sits at <RCL>/wwwroot/css/. See header notes.
   ========================================================================== */

@font-face {
    font-family: "Source Sans Pro Web";
    font-style: normal;
    font-weight: 300;
    font-display: fallback;
    src: url(../uswds/dist/fonts/source-sans-pro/sourcesanspro-light-webfont.woff2) format("woff2");
}

@font-face {
    font-family: "Source Sans Pro Web";
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../uswds/dist/fonts/source-sans-pro/sourcesanspro-regular-webfont.woff2) format("woff2");
}

@font-face {
    font-family: "Source Sans Pro Web";
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../uswds/dist/fonts/source-sans-pro/sourcesanspro-bold-webfont.woff2) format("woff2");
}

@font-face {
    font-family: "Source Sans Pro Web";
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../uswds/dist/fonts/source-sans-pro/sourcesanspro-italic-webfont.woff2) format("woff2");
}

@font-face {
    font-family: "Source Sans Pro Web";
    font-style: italic;
    font-weight: 700;
    font-display: fallback;
    src: url(../uswds/dist/fonts/source-sans-pro/sourcesanspro-bolditalic-webfont.woff2) format("woff2");
}

@font-face {
    font-family: "Merriweather Web";
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../uswds/dist/fonts/merriweather/Latin-Merriweather-Regular.woff2) format("woff2");
}

@font-face {
    font-family: "Merriweather Web";
    font-style: normal;
    font-weight: 700;
    font-display: fallback;
    src: url(../uswds/dist/fonts/merriweather/Latin-Merriweather-Bold.woff2) format("woff2");
}

@font-face {
    font-family: "Merriweather Web";
    font-style: italic;
    font-weight: 400;
    font-display: fallback;
    src: url(../uswds/dist/fonts/merriweather/Latin-Merriweather-Italic.woff2) format("woff2");
}

@font-face {
    font-family: "Roboto Mono Web";
    font-style: normal;
    font-weight: 400;
    font-display: fallback;
    src: url(../uswds/dist/fonts/roboto-mono/roboto-mono-v5-latin-regular.woff2) format("woff2");
}


/* ==========================================================================
   2. USWDS DESIGN TOKENS
   Single source of truth. Change a value here, every component follows.
   ========================================================================== */

:root {
    /* ---- Type stacks ---- */
    --u-font-sans: "Source Sans Pro Web", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    --u-font-serif: "Merriweather Web", Georgia, Cambria, "Times New Roman", Times, serif;
    --u-font-mono: "Roboto Mono Web", "Bitstream Vera Sans Mono", Consolas, Courier, monospace;
    /* ---- Type scale (USWDS "ui" scale, root = 16px) ---- */
    --u-text-3xs: 0.87rem;
    --u-text-2xs: 0.91rem;
    --u-text-xs: 0.93rem;
    --u-text-sm: 0.98rem;
    --u-text-md: 1.06rem; /* body / control default */
    --u-text-md2: 1.13rem; /* real USWDS steps, used by the .h4/.h5 */
    --u-text-md3: 1.22rem; /* utility classes -- see section 4 */
    --u-text-lg: 1.34rem;
    --u-text-xl: 1.46rem;
    --u-text-2xl: 1.95rem;
    --u-text-3xl: 2.13rem;
    --u-text-4xl: 2.44rem;
    --u-text-5xl: 2.93rem;
    /* ---- Line heights ---- */
    --u-lh-1: 0.9;
    --u-lh-2: 1.2;
    --u-lh-3: 1.3;
    --u-lh-4: 1.4;
    --u-lh-5: 1.5;
    --u-lh-6: 1.8;
    /* ---- Spacing (USWDS 8px grid) ---- */
    --u-space-05: 0.25rem;
    --u-space-1: 0.5rem;
    --u-space-105: 0.75rem;
    --u-space-2: 1rem;
    --u-space-205: 1.25rem;
    --u-space-3: 1.5rem;
    --u-space-4: 2rem;
    --u-space-5: 2.5rem;
    --u-space-6: 3rem;
    /* ---- Ink / surface ---- */
    --u-ink: #1b1b1b;
    --u-base-darkest: #3d4551;
    --u-base-darker: #565c65;
    --u-base-dark: #71767a;
    --u-base: #757575;
    --u-base-light: #a9aeb1;
    --u-base-lighter: #dfe1e2;
    --u-base-lightest: #f0f0f0;
    --u-gray-2: #e6e6e6;
    --u-gray-1: #f9f9f9;
    --u-white: #ffffff;
    /* ---- Primary (blue) ---- */
    --u-primary-vivid: #0050d8;
    --u-primary: #005ea2;
    --u-primary-dark: #1a4480;
    --u-primary-darker: #162e51;
    --u-primary-light: #73b3e7;
    --u-primary-lighter: #d9e8f6;
    /* ---- Secondary (red) ---- */
    --u-secondary: #d83933;
    --u-secondary-dark: #b50909;
    --u-secondary-darker: #8b0a03;
    /* ---- Accents ---- */
    --u-accent-cool: #00bde3;
    --u-accent-cool-dark: #009ec1;
    --u-accent-cool-darker: #07648d;
    --u-accent-warm: #fa9441;
    --u-accent-warm-dark: #c05600;
    --u-accent-warm-darker: #775540;
    /* ---- Status ---- */
    --u-success: #00a91c;
    --u-success-dark: #008817;
    --u-success-lighter: #ecf3ec;
    --u-warning: #ffbe2e;
    --u-warning-lighter: #faf3d1;
    --u-error: #d54309;
    --u-error-dark: #b50909;
    --u-error-lighter: #f4e3db;
    --u-info: #00bde3;
    --u-info-lighter: #e7f6f8;
    --u-info-border: #99deea;
    /* ---- Interaction ---- */
    --u-focus: #2491ff;
    --u-focus-width: 0.25rem;
    --u-visited: #54278f;
    /* Legacy app variable. It is DEFINED in bootstrap_modified_5_3.css and
       CONSUMED by .btn-outline-primary.selected in css.min.css. Redefined
       here, mapped to USWDS primary, so the selected state cannot silently
       collapse if that file is ever dropped from the page again. */
    --dnr-primary-selected: var(--u-primary);
    --u-disabled-bg: #c9c9c9;
    --u-disabled-text: #454545;
    /* ---- Radii ---- */
    --u-radius-sm: 2px;
    --u-radius-md: 0.25rem;
    --u-radius-lg: 0.5rem;
    --u-radius-pill: 99rem;
    /* ---- Component density knobs (see DENSITY section) ---- */
    --u-body-size: 1.06rem;
    --u-control-size: 1.06rem;
    --u-control-height: 2.5rem;
    --u-control-pad-y: 0.5rem;
    --u-control-pad-x: 0.5rem;
    --u-control-max-width: 30rem;
    --u-control-radius: 0.25rem; /* corner radius for inputs, selects, textareas */
    --u-btn-pad-y: 0.75rem;
    --u-btn-pad-x: 1.25rem;
    --u-cell-pad-y: 0.5rem;
    --u-cell-pad-x: 1rem;
    --u-card-pad: 1.5rem;
    --u-gutter: 1rem;
}


/* ==========================================================================
   3. BOOTSTRAP VARIABLE REMAP
   Rewires Bootstrap's own CSS custom properties so hundreds of components
   and utilities (text-*, bg-*, border-*, link-*, focus rings, tables,
   dropdowns, list groups) inherit USWDS color without per-class rules.
   ========================================================================== */

:root,
[data-bs-theme="light"] {
    /* Theme colors */
    --bs-primary: var(--u-primary);
    --bs-primary-rgb: 0, 94, 162;
    --bs-secondary: var(--u-base-dark);
    --bs-secondary-rgb: 113, 118, 122;
    --bs-success: var(--u-success-dark);
    --bs-success-rgb: 0, 136, 23;
    --bs-info: var(--u-accent-cool);
    --bs-info-rgb: 0, 189, 227;
    --bs-warning: var(--u-accent-warm);
    --bs-warning-rgb: 250, 148, 65;
    --bs-danger: var(--u-secondary);
    --bs-danger-rgb: 216, 57, 51;
    --bs-light: var(--u-base-lightest);
    --bs-light-rgb: 240, 240, 240;
    --bs-dark: var(--u-ink);
    --bs-dark-rgb: 27, 27, 27;
    /* Subtle / emphasis pairs used by alerts, list-groups, tables */
    --bs-primary-bg-subtle: var(--u-primary-lighter);
    --bs-secondary-bg-subtle: var(--u-base-lightest);
    --bs-success-bg-subtle: var(--u-success-lighter);
    --bs-info-bg-subtle: var(--u-info-lighter);
    --bs-warning-bg-subtle: var(--u-warning-lighter);
    --bs-danger-bg-subtle: var(--u-error-lighter);
    --bs-light-bg-subtle: var(--u-gray-1);
    --bs-dark-bg-subtle: var(--u-base-lighter);
    --bs-primary-border-subtle: var(--u-primary-light);
    --bs-secondary-border-subtle: var(--u-base-light);
    --bs-success-border-subtle: var(--u-success);
    --bs-info-border-subtle: var(--u-info-border);
    --bs-warning-border-subtle: var(--u-warning);
    --bs-danger-border-subtle: var(--u-error);
    --bs-primary-text-emphasis: var(--u-primary-darker);
    --bs-secondary-text-emphasis: var(--u-base-darker);
    --bs-success-text-emphasis: var(--u-success-dark);
    --bs-info-text-emphasis: var(--u-accent-cool-darker);
    --bs-warning-text-emphasis: var(--u-accent-warm-dark);
    --bs-danger-text-emphasis: var(--u-secondary-darker);
    /* Body + surface */
    --bs-body-color: var(--u-ink);
    --bs-body-color-rgb: 27, 27, 27;
    --bs-body-bg: var(--u-white);
    --bs-body-bg-rgb: 255, 255, 255;
    --bs-emphasis-color: var(--u-ink);
    --bs-secondary-color: var(--u-base-darker);
    --bs-secondary-bg: var(--u-base-lightest);
    --bs-tertiary-color: var(--u-base-dark);
    --bs-tertiary-bg: var(--u-gray-1);
    /* Type */
    --bs-font-sans-serif: var(--u-font-sans);
    --bs-font-monospace: var(--u-font-mono);
    --bs-body-font-family: var(--u-font-sans);
    --bs-body-font-size: var(--u-body-size);
    --bs-body-font-weight: 400;
    --bs-body-line-height: var(--u-lh-5);
    --bs-heading-color: inherit;
    /* Links */
    --bs-link-color: var(--u-primary);
    --bs-link-color-rgb: 0, 94, 162;
    --bs-link-hover-color: var(--u-primary-dark);
    --bs-link-hover-color-rgb: 26, 68, 128;
    --bs-link-decoration: underline;
    /* Borders + radii: USWDS is squarer than Bootstrap */
    --bs-border-width: 1px;
    --bs-border-color: var(--u-base-lighter);
    --bs-border-color-translucent: rgba(27, 27, 27, 0.2);
    --bs-border-radius: var(--u-radius-md);
    --bs-border-radius-sm: var(--u-radius-sm);
    --bs-border-radius-lg: var(--u-radius-lg);
    --bs-border-radius-xl: var(--u-radius-lg);
    --bs-border-radius-2xl: var(--u-radius-lg);
    --bs-border-radius-pill: var(--u-radius-pill);
    /* Focus ring -> USWDS focus outline color */
    --bs-focus-ring-width: var(--u-focus-width);
    --bs-focus-ring-opacity: 1;
    --bs-focus-ring-color: var(--u-focus);
    /* Code + highlight */
    --bs-code-color: var(--u-secondary-dark);
    --bs-highlight-bg: var(--u-warning-lighter);
}


/* ==========================================================================
   4. BASE ELEMENTS
   ========================================================================== */

html {
    font-feature-settings: "kern" 1;
    font-kerning: normal;
    font-size: 100%;
}

body {
    font-family: var(--u-font-sans);
    font-size: var(--u-body-size) !important; /* beats body{font-size:.8rem!important} */
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    background-color: var(--u-white);
}

/* Your current shell paints the page gray and the content white. USWDS pages
   are white edge to edge. Delete this block if you want the gray frame back. */
.body-content {
    background-color: var(--u-white);
}

/* ---- Headings: Merriweather, USWDS scale ----

   ELEMENTS and UTILITY CLASSES are scaled separately, on purpose.

   The USWDS scale descends below body size at the bottom end:
     h1 2.44  h2 1.95  h3 1.34  h4 0.98  h5 0.91  h6 0.87
   Body copy is 1.06rem, so a real <h4> is SMALLER than the paragraph under
   it. That is authentic USWDS -- h4-h6 are meant for dense label-like
   headings, not section titles -- and <h1>-<h6> elements follow it exactly.

   Bootstrap's .h1-.h6 are a different thing: a size utility, applied to
   divs and spans to mean "heading-sized text", descending 2.5rem to 1rem
   and never below body size. Mapping them onto the USWDS element scale
   made markup like

     <div class="h4">How will this permit be used?</div>

   render at 0.98rem -- smaller than the body text beside it.

   So the classes get their own scale: monotonic, never below body size,
   and identical to the elements for .h1-.h3 where the two already agreed.
   1.13rem and 1.22rem are genuine USWDS type steps, not invented values.

     class   size     element  size
     .h1     2.44     h1       2.44
     .h2     1.95     h2       1.95
     .h3     1.34     h3       1.34
     .h4     1.22     h4       0.98
     .h5     1.13     h5       0.91
     .h6     1.06     h6       0.87 + uppercase

   Use an element when it is a real document heading; use a class when you
   only want the size. */
h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--u-font-serif);
    line-height: var(--u-lh-2);
    font-weight: 700;
    color: var(--u-ink);
    margin-top: 0;
    margin-bottom: var(--u-space-1);
}

/* Heading elements -- USWDS scale, unmodified */
h1 {
    font-size: var(--u-text-4xl);
}

h2 {
    font-size: var(--u-text-2xl);
}

h3 {
    font-size: var(--u-text-lg);
}

h4 {
    font-size: var(--u-text-sm);
}

h5 {
    font-size: var(--u-text-2xs);
}

/* h6 is the one sans-serif heading in USWDS: small, uppercase, tracked.
   The .h6 CLASS deliberately does NOT inherit that treatment. */
h6 {
    font-family: var(--u-font-sans);
    font-size: var(--u-text-3xs);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: var(--u-ink);
    margin-top: 0;
    margin-bottom: var(--u-space-1);
}

/* Heading utility classes -- never smaller than body copy */
.h1 {
    font-size: var(--u-text-4xl);
}

.h2 {
    font-size: var(--u-text-2xl);
}

.h3 {
    font-size: var(--u-text-lg);
}

.h4 {
    font-size: var(--u-text-md3);
}

.h5 {
    font-size: var(--u-text-md2);
}

.h6 {
    font-size: var(--u-text-md);
    text-transform: none;
    letter-spacing: normal;
}

/* .display-* -> usa-display */
.display-1, .display-2, .display-3,
.display-4, .display-5, .display-6 {
    font-family: var(--u-font-serif);
    font-weight: 700;
    line-height: var(--u-lh-2);
}

.display-1 {
    font-size: var(--u-text-5xl);
}

.display-2 {
    font-size: var(--u-text-4xl);
}

.display-3, .display-4 {
    font-size: var(--u-text-3xl);
}

.display-5, .display-6 {
    font-size: var(--u-text-2xl);
}

/* .lead -> usa-intro */
.lead {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-lg);
    line-height: var(--u-lh-6);
    font-weight: 400;
    max-width: 88ex;
}

.lead-sm {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-md) !important;
    line-height: var(--u-lh-6);
    font-weight: 400;
}

p {
    line-height: var(--u-lh-5);
}

small, .small {
    font-size: var(--u-text-xs);
}

code, kbd, samp, pre {
    font-family: var(--u-font-mono);
}

/* ---- Links: USWDS underlines links by default ---- */
a {
    color: var(--u-primary);
    text-decoration: underline;
}

    a:visited {
        color: var(--u-visited);
    }

    a:hover {
        color: var(--u-primary-dark);
    }

    a:active {
        color: var(--u-primary-darker);
    }

    /* ---- Focus: one visible treatment everywhere ---- */
    a:focus,
    button:not([disabled]):focus,
    input:not([disabled]):focus,
    select:not([disabled]):focus,
    textarea:not([disabled]):focus,
    [tabindex]:focus,
    [contenteditable="true"]:focus,
    .btn:focus,
    .btn:focus-visible,
    .form-control:focus,
    .form-select:focus,
    .form-check-input:focus,
    .page-link:focus,
    .dropdown-item:focus,
    .nav-link:focus,
    .accordion-button:focus {
        outline: var(--u-focus-width) solid var(--u-focus);
        outline-offset: 0;
        box-shadow: none;
    }

hr {
    border-top: 1px solid var(--u-base-lighter);
    color: var(--u-base-lighter);
    opacity: 1;
    margin-top: var(--u-space-2);
    margin-bottom: var(--u-space-2);
}

img {
    max-width: 100%;
    border-radius: 0; /* USWDS does not round images */
}

::selection {
    background-color: var(--u-primary-lighter);
}


/* ==========================================================================
   5. LAYOUT — container, grid gutters
   USWDS grid-container uses 1rem side padding (2rem at desktop) and a 2rem
   gutter between columns. Your current file zeroes these out to 5px.
   ========================================================================== */

.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
    padding-right: var(--u-space-2) !important;
    padding-left: var(--u-space-2) !important;
}

@media (min-width: 64em) {
    .container,
    .container-fluid,
    .container-sm,
    .container-md,
    .container-lg,
    .container-xl,
    .container-xxl {
        padding-right: var(--u-space-4) !important;
        padding-left: var(--u-space-4) !important;
    }
}

.row {
    --bs-gutter-x: var(--u-gutter);
    --bs-gutter-y: 0;
    margin-left: calc(var(--u-gutter) / -2) !important;
    margin-right: calc(var(--u-gutter) / -2) !important;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto,
.col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto,
.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto,
.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto,
.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
    padding-right: calc(var(--u-gutter) / 2) !important;
    padding-left: calc(var(--u-gutter) / 2) !important;
}

/* .hero (your renamed .jumbotron) -> USWDS hero proportions */
.hero {
    padding: var(--u-space-6) var(--u-space-2);
    margin-bottom: var(--u-space-4);
    border-radius: 0;
    background-color: var(--u-base-lightest) !important;
    color: var(--u-ink);
}


/* ==========================================================================
   6. BUTTONS — .btn maps to .usa-button
   USWDS buttons: bold, 4px radius, generous padding, no gradient, no shadow,
   full width on mobile and auto width from 30em up.
   ========================================================================== */

.btn {
    --bs-btn-font-family: var(--u-font-sans);
    --bs-btn-font-size: var(--u-control-size);
    --bs-btn-font-weight: 700;
    --bs-btn-line-height: var(--u-lh-1);
    --bs-btn-padding-y: var(--u-btn-pad-y);
    --bs-btn-padding-x: var(--u-btn-pad-x);
    --bs-btn-border-width: 0;
    --bs-btn-border-radius: var(--u-radius-md);
    --bs-btn-box-shadow: none;
    --bs-btn-focus-box-shadow: none;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-opacity: 1;
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important; /* beats .btn{font-size:.8rem!important} */
    font-weight: 700;
    line-height: var(--u-lh-1);
    /* Section 4 sets colour on .h1-.h6 at (0,1,0). This rule is also
       (0,1,0) but declared later, so a button carrying a heading class
       still takes its own variant colour instead of heading ink. */
    color: var(--bs-btn-color);
    align-items: center;
    justify-content: center;
    column-gap: var(--u-space-1);
    display: inline-flex;
    margin-right: var(--u-space-1);
    padding: var(--u-btn-pad-y) var(--u-btn-pad-x);
    border: 0;
    border-radius: var(--u-radius-md);
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    max-width: none;
    cursor: pointer;
}

    .btn:last-child,
    .btn:only-of-type {
        margin-right: 0;
    }

    /* Disabled is a flat gray in USWDS, never a faded copy of the variant */
    .btn:disabled,
    .btn.disabled,
    .btn[aria-disabled="true"],
    fieldset:disabled .btn {
        color: var(--u-disabled-text) !important;
        background-color: var(--u-disabled-bg) !important;
        box-shadow: none !important;
        border-color: var(--u-disabled-bg) !important;
        opacity: 1;
        cursor: not-allowed;
        pointer-events: auto;
    }

/* ---- Primary -> usa-button ---- */
.btn-primary {
    --bs-btn-color: var(--u-white);
    --bs-btn-bg: var(--u-primary);
    --bs-btn-border-color: var(--u-primary);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: var(--u-primary-dark);
    --bs-btn-hover-border-color: var(--u-primary-dark);
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: var(--u-primary-darker);
    --bs-btn-active-border-color: var(--u-primary-darker);
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: var(--u-disabled-text);
    --bs-btn-disabled-bg: var(--u-disabled-bg);
    --bs-btn-disabled-border-color: var(--u-disabled-bg);
}

/* ---- Secondary -> usa-button--base (neutral gray) ---- */
.btn-secondary {
    --bs-btn-color: var(--u-white);
    --bs-btn-bg: var(--u-base-dark);
    --bs-btn-border-color: var(--u-base-dark);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: var(--u-base-darker);
    --bs-btn-hover-border-color: var(--u-base-darker);
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: var(--u-base-darkest);
    --bs-btn-active-border-color: var(--u-base-darkest);
}

/* ---- Danger -> usa-button--secondary (USWDS red) ---- */
.btn-danger {
    --bs-btn-color: var(--u-white);
    --bs-btn-bg: var(--u-secondary);
    --bs-btn-border-color: var(--u-secondary);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: var(--u-secondary-dark);
    --bs-btn-hover-border-color: var(--u-secondary-dark);
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: var(--u-secondary-darker);
    --bs-btn-active-border-color: var(--u-secondary-darker);
}

/* ---- Success -> USWDS success-dark (passes AA on white text) ---- */
.btn-success {
    --bs-btn-color: var(--u-white);
    --bs-btn-bg: var(--u-success-dark);
    --bs-btn-border-color: var(--u-success-dark);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: #216e1f;
    --bs-btn-hover-border-color: #216e1f;
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: #154c21;
    --bs-btn-active-border-color: #154c21;
    background-color: var(--u-success-dark) !important; /* beats existing !important */
    border-color: var(--u-success-dark) !important;
}

    .btn-success:hover,
    .btn-success:focus {
        background-color: #216e1f !important;
        border-color: #216e1f !important;
    }

/* ---- Info -> usa-button--accent-cool (dark text, per USWDS) ---- */
.btn-info {
    --bs-btn-color: var(--u-ink);
    --bs-btn-bg: var(--u-accent-cool);
    --bs-btn-border-color: var(--u-accent-cool);
    --bs-btn-hover-color: var(--u-ink);
    --bs-btn-hover-bg: #28a0cb;
    --bs-btn-hover-border-color: #28a0cb;
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: var(--u-accent-cool-darker);
    --bs-btn-active-border-color: var(--u-accent-cool-darker);
    background-color: var(--u-accent-cool);
    color: var(--u-ink);
}

/* ---- Warning -> usa-button--accent-warm ---- */
.btn-warning {
    --bs-btn-color: var(--u-ink);
    --bs-btn-bg: var(--u-accent-warm);
    --bs-btn-border-color: var(--u-accent-warm);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: var(--u-accent-warm-dark);
    --bs-btn-hover-border-color: var(--u-accent-warm-dark);
    --bs-btn-active-color: var(--u-white);
    --bs-btn-active-bg: var(--u-accent-warm-darker);
    --bs-btn-active-border-color: var(--u-accent-warm-darker);
}

/* ---- Light / Dark ---- */
.btn-light {
    --bs-btn-color: var(--u-ink);
    --bs-btn-bg: var(--u-base-lightest);
    --bs-btn-border-color: var(--u-base-lightest);
    --bs-btn-hover-color: var(--u-ink);
    --bs-btn-hover-bg: var(--u-base-lighter);
    --bs-btn-hover-border-color: var(--u-base-lighter);
    --bs-btn-active-bg: var(--u-gray-2);
}

.btn-dark {
    --bs-btn-color: var(--u-white);
    --bs-btn-bg: var(--u-ink);
    --bs-btn-border-color: var(--u-ink);
    --bs-btn-hover-color: var(--u-white);
    --bs-btn-hover-bg: var(--u-base-darkest);
    --bs-btn-hover-border-color: var(--u-base-darkest);
    --bs-btn-active-bg: var(--u-base-darkest);
}

/* ---- Outline buttons -> usa-button--outline
   USWDS draws the ring with an inset box-shadow, not a border, so the
   button keeps the same footprint as a filled one. ---- */
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-light,
.btn-outline-dark {
    background-color: transparent;
    border: 0;
}

.btn-outline-primary {
    --bs-btn-color: var(--u-primary);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--u-primary-dark);
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: var(--u-primary-darker);
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    color: var(--u-primary);
    box-shadow: inset 0 0 0 2px var(--u-primary);
}

    .btn-outline-primary:hover {
        color: var(--u-primary-dark);
        background-color: transparent;
        box-shadow: inset 0 0 0 2px var(--u-primary-dark);
    }

    .btn-outline-primary:active {
        color: var(--u-primary-darker);
        background-color: transparent;
        box-shadow: inset 0 0 0 2px var(--u-primary-darker);
    }

.btn-outline-secondary {
    --bs-btn-color: var(--u-base-darker);
    --bs-btn-hover-color: var(--u-base-darkest);
    --bs-btn-hover-bg: transparent;
    color: var(--u-base-darker);
    box-shadow: inset 0 0 0 2px var(--u-base-darker);
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:active {
        color: var(--u-base-darkest);
        background-color: transparent;
        box-shadow: inset 0 0 0 2px var(--u-base-darkest);
    }

.btn-outline-success {
    --bs-btn-color: var(--u-success-dark);
    --bs-btn-hover-color: #216e1f;
    --bs-btn-hover-bg: transparent;
    color: var(--u-success-dark);
    box-shadow: inset 0 0 0 2px var(--u-success-dark);
}

    .btn-outline-success:hover,
    .btn-outline-success:active {
        color: #216e1f;
        background-color: transparent;
        box-shadow: inset 0 0 0 2px #216e1f;
    }

.btn-outline-danger {
    --bs-btn-color: var(--u-secondary-dark);
    --bs-btn-hover-color: var(--u-secondary-darker);
    --bs-btn-hover-bg: transparent;
    color: var(--u-secondary-dark);
    box-shadow: inset 0 0 0 2px var(--u-secondary-dark);
}

    .btn-outline-danger:hover,
    .btn-outline-danger:active {
        color: var(--u-secondary-darker);
        background-color: transparent;
        box-shadow: inset 0 0 0 2px var(--u-secondary-darker);
    }

.btn-outline-info {
    color: var(--u-accent-cool-darker);
    box-shadow: inset 0 0 0 2px var(--u-accent-cool-dark);
}

.btn-outline-warning {
    color: var(--u-accent-warm-dark);
    box-shadow: inset 0 0 0 2px var(--u-accent-warm-dark);
}

.btn-outline-dark {
    color: var(--u-ink);
    box-shadow: inset 0 0 0 2px var(--u-ink);
}

.btn-outline-light {
    color: var(--u-base-darker);
    box-shadow: inset 0 0 0 2px var(--u-base-light);
}

/* ---- TOGGLED (selected) outline buttons ----
   Two different things are both called "active" and they mean opposite
   things on an outline button:

     :active   the finger is down right now. USWDS keeps an outline button
               transparent while pressed, only darkening the ring. Handled
               above.
     .active   the control is SELECTED / toggled on. Bootstrap fills it.

   An earlier version of this file listed .btn-outline-primary:active and
   .btn-outline-primary.active together with background-color: transparent,
   which reversed Bootstrap's filled selected state. They are separated now.

   NOTE ON .selected: this app's real toggled class is .selected, not
   .active. css.min.css declares

     .btn-outline-primary.selected { color:#fff;
       background-color: var(--dnr-primary-selected); }

   but --dnr-primary-selected is defined in bootstrap_modified_5_3.css. If
   that file is missing from the page the var() has no fallback, so the
   declaration is invalid at computed-value time and background-color falls
   back to its initial value, transparent -- while color:#fff still applies
   because it is a literal. That produces white text on no fill. The
   variable is therefore also defined in section 2 of this file, and
   .selected is matched explicitly below.

   The :has() selectors below cover the pattern where the radio lives INSIDE
   the label:

     <label class="btn btn-outline-primary">
       Standard (Private)
       <input type="radio" name="classType" class="d-none">
     </label>

   Bootstrap's own toggle CSS (.btn-check:checked + .btn) cannot match that,
   because it needs the input to be a SIBLING that precedes the label and to
   carry .btn-check. With :has() the fill works from the radio's own checked
   state, so it needs no JavaScript and stays correct if a control is
   pre-checked on server render or reset by form.reset(). */
.btn-outline-primary.active,
.btn-outline-primary.selected,
.btn-outline-primary.selected:focus,
.btn-outline-primary[aria-pressed="true"],
label.btn-outline-primary:has(input:checked) {
    color: var(--u-white);
    background-color: var(--u-primary);
    box-shadow: inset 0 0 0 2px var(--u-primary);
}

    .btn-outline-primary.active:hover,
    .btn-outline-primary.selected:hover,
    label.btn-outline-primary:has(input:checked):hover {
        color: var(--u-white);
        background-color: var(--u-primary-dark);
        box-shadow: inset 0 0 0 2px var(--u-primary-dark);
    }

.btn-outline-secondary.active,
.btn-outline-secondary.selected,
label.btn-outline-secondary:has(input:checked) {
    color: var(--u-white);
    background-color: var(--u-base-darker);
    box-shadow: inset 0 0 0 2px var(--u-base-darker);
}

.btn-outline-success.active,
.btn-outline-success.selected,
label.btn-outline-success:has(input:checked) {
    color: var(--u-white);
    background-color: var(--u-success-dark);
    box-shadow: inset 0 0 0 2px var(--u-success-dark);
}

.btn-outline-danger.active,
.btn-outline-danger.selected,
label.btn-outline-danger:has(input:checked) {
    color: var(--u-white);
    background-color: var(--u-secondary-dark);
    box-shadow: inset 0 0 0 2px var(--u-secondary-dark);
}

.btn-outline-info.active,
.btn-outline-info.selected,
label.btn-outline-info:has(input:checked) {
    color: var(--u-ink);
    background-color: var(--u-accent-cool);
    box-shadow: inset 0 0 0 2px var(--u-accent-cool);
}

.btn-outline-warning.active,
.btn-outline-warning.selected,
label.btn-outline-warning:has(input:checked) {
    color: var(--u-ink);
    background-color: var(--u-accent-warm);
    box-shadow: inset 0 0 0 2px var(--u-accent-warm);
}

.btn-outline-dark.active,
.btn-outline-dark.selected,
label.btn-outline-dark:has(input:checked) {
    color: var(--u-white);
    background-color: var(--u-ink);
    box-shadow: inset 0 0 0 2px var(--u-ink);
}

/* Keyboard users need to see which radio has focus even though the input
   itself is display:none. */
label.btn:has(input:focus-visible),
label.btn:has(input:focus) {
    outline: var(--u-focus-width) solid var(--u-focus);
    outline-offset: 0;
}

/* A label carrying BOTH .btn and .form-check gets .form-check's 2rem
   left padding, which shoves the button text off centre. When the two are
   combined the button wins. */
.btn.form-check {
    padding-left: var(--u-btn-pad-x);
    padding-right: var(--u-btn-pad-x);
    margin-top: 0;
    display: inline-flex;
}

/* ---- Link button -> usa-button--unstyled ---- */
.btn-link {
    --bs-btn-color: var(--u-primary);
    --bs-btn-hover-color: var(--u-primary-dark);
    --bs-btn-active-color: var(--u-primary-darker);
    color: var(--u-primary) !important; /* beats .btn-link{color:#2f5e8c!important} */
    background-color: transparent;
    border: 0;
    box-shadow: none;
    font-weight: 400;
    text-decoration: underline;
    padding: 0;
    margin-right: 0;
    height: auto;
    width: auto;
}

    .btn-link:hover {
        color: var(--u-primary-dark) !important;
        text-decoration: underline;
    }

    .btn-link:visited {
        color: var(--u-visited) !important;
    }

/* ---- Sizes -> usa-button--big / small ---- */
.btn-lg,
.btn-group-lg > .btn {
    font-size: var(--u-text-xl) !important;
    padding: var(--u-space-2) var(--u-space-3);
    border-radius: var(--u-radius-md);
}

.btn-sm,
.btn-group-sm > .btn {
    font-size: var(--u-text-xs) !important;
    padding: var(--u-space-1) var(--u-space-105);
    border-radius: var(--u-radius-md);
}

/* ---- Button groups: USWDS has no segmented control, so keep the group
   shape but use USWDS borders and radii. ---- */
.btn-group > .btn,
.btn-group-vertical > .btn {
    border: 1px solid var(--u-base-darker);
    margin-right: 0;
}

.btn-group > .btn-check:checked + .btn,
input.btn-check + .btn.btn-secondary {
    border: 1px solid var(--u-primary);
}

.btn-check:checked + .btn,
.btn-check:active + .btn {
    background-color: var(--u-primary);
    border-color: var(--u-primary);
    color: var(--u-white);
}

.btn-check:focus-visible + .btn {
    outline: var(--u-focus-width) solid var(--u-focus);
    outline-offset: 0;
    box-shadow: none;
}

/* ---- Close button (modal X) -> usa-modal__close ---- */
.btn-close {
    --bs-btn-close-color: var(--u-base-dark);
    --bs-btn-close-opacity: 1;
    --bs-btn-close-hover-opacity: 1;
    --bs-btn-close-focus-shadow: none;
    color: var(--u-base-dark);
    border-radius: var(--u-radius-md);
    padding: var(--u-space-05);
}

    .btn-close:hover {
        color: var(--u-ink);
        background-color: var(--u-base-lightest);
    }


/* ==========================================================================
   7. FORMS — .form-control / .form-select map to .usa-input / .usa-select
   USWDS inputs: 1px #565c65 border, square corners, 40px tall, 8px padding,
   capped at 30rem, and a label that sits above with real breathing room.
   ========================================================================== */

/* ---- Labels -> usa-label ---- */
label,
.form-label,
.col-form-label {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    font-weight: 400;
    color: var(--u-ink);
    display: block;
    max-width: var(--u-control-max-width);
    margin-top: var(--u-space-3);
    margin-bottom: 0 !important; /* beats label{margin-bottom:2px!important}; the input's own margin-top provides the gap */
}

/* Inside grids, tables and inline groups the big top margin is wrong */
.row > label,
.row > [class*="col-"] > label,
.input-group label,
td label,
th label,
.form-check label,
.col-form-label,
.form-floating > label {
    margin-top: 0;
}

/* USWDS labels that are meant to run the full width of their container.
   Section 7's `label` rule caps every label at --u-control-max-width
   (30rem), which is right for a field label sitting above a 30rem input.
   It is wrong for a checkbox or radio label, where the text is a sentence
   or a paragraph of certification language and should wrap at the width of
   its container.

   USWDS is explicit about which is which: .usa-label and .usa-legend
   declare max-width: 30rem themselves, while .usa-checkbox__label,
   .usa-radio__label, .usa-hint and .usa-error-message deliberately do NOT.
   The ones USWDS leaves uncapped are uncapped here too. Only max-width is
   released -- .usa-checkbox__label is (0,1,0) and already wins on display,
   padding and margin, so nothing else needs restating. */
.usa-checkbox__label,
.usa-radio__label,
.usa-hint,
.usa-error-message,
.usa-checkbox label,
.usa-radio label {
    max-width: none;
}

/* ---- Text inputs, selects, textareas -> usa-input ---- */
.form-control,
.form-select,
textarea.form-control,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"] {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important; /* beats .form-control{font-size:.8rem!important} */
    line-height: var(--u-lh-3);
    color: var(--u-ink);
    background-color: var(--u-white);
    border: 1px solid var(--u-base-darker);
    border-radius: var(--u-control-radius);
    appearance: none;
    display: block;
    width: 100%;
    max-width: var(--u-control-max-width);
    height: var(--u-control-height);
    padding: var(--u-control-pad-y) var(--u-control-pad-x) !important; /* beats .form-control{padding:.1rem!important} */
    margin-top: var(--u-space-1);
    box-shadow: none;
}

/* Height has to beat input.form-control{height:24.19px!important}.
   Selects are handled by the consolidated block further down. */
input.form-control {
    height: var(--u-control-height) !important;
    min-height: var(--u-control-height) !important;
}

/* Textareas must stay resizable — no fixed height */
textarea.form-control {
    height: auto !important;
    min-height: 10rem;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--u-base-darker);
    background-color: var(--u-white);
    color: var(--u-ink);
}

.form-control::placeholder {
    color: var(--u-base);
    opacity: 1;
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
    background-color: var(--u-gray-2);
    color: var(--u-disabled-text);
    border-color: var(--u-base-light);
    cursor: not-allowed;
}

/* ---- SELECTS: one declaration drives both design systems ----
   Bootstrap selects and .usa-select are listed together on purpose. Two
   separate rules that happen to share the same numbers will drift the
   moment either side is touched; one rule cannot. Every select-like class
   this app could emit is enumerated, because a select that matches none of
   them falls back to the browser's intrinsic height (~21-28px depending on
   platform) and looks short next to a 40px usa-select.

   Specificity note: bootstrap_modified_5_3.css declares
   select.form-control{height:24.19px!important} at (0,1,1), so the
   compound select.form-control MUST stay in this list. A rule using only
   .form-select (0,1,0) loses to it and the select renders at 24px. */
select,
select.form-control,
select.form-select,
.form-select,
.custom-select,
.usa-select {
    box-sizing: border-box;
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important;
    line-height: var(--u-lh-3) !important;
    height: var(--u-control-height) !important;
    min-height: var(--u-control-height) !important;
    padding: var(--u-control-pad-y) 2rem var(--u-control-pad-y) var(--u-control-pad-x) !important;
    border: 1px solid var(--u-base-darker);
    border-radius: var(--u-control-radius);
    appearance: none;
    -webkit-appearance: none;
    color: var(--u-ink);
    background-color: var(--u-white);
    background-image: url("../uswds/dist/img/usa-icons/unfold_more.svg"), linear-gradient(transparent, transparent);
    background-repeat: no-repeat;
    background-position: right var(--u-space-1) center;
    background-size: 1.25rem;
    vertical-align: top;
}

    /* Bootstrap-classed selects also take USWDS width + top margin.
   .usa-select is deliberately excluded here: usa-form already manages it. */
    select.form-control,
    select.form-select,
    .form-select,
    .custom-select {
        width: 100% !important; /* beats select.form-control{width:auto!important} */
        max-width: var(--u-control-max-width);
        margin-top: var(--u-space-1);
    }

        /* Multi-selects and list boxes must grow with their content */
        select[multiple],
        select[size]:not([size="1"]),
        .form-select[multiple],
        .usa-select[multiple] {
            height: auto !important;
            min-height: var(--u-control-height) !important;
            background-image: none;
            padding-right: var(--u-control-pad-x) !important;
        }

    /* ---- Sizes ----
   These follow the consolidated block and carry the compound select.
   form so they outrank it; otherwise select.form-select (0,1,1) above
   would flatten .form-select-sm (0,1,0) back to the default height. */
    .form-control-lg,
    .form-select-lg,
    select.form-select-lg,
    select.form-control-lg {
        font-size: var(--u-text-xl) !important;
        height: 3rem !important;
        min-height: 3rem !important;
        padding: var(--u-space-105) var(--u-space-2) !important;
    }

    .form-control-sm,
    .form-select-sm,
    select.form-select-sm,
    select.form-control-sm {
        font-size: var(--u-text-xs) !important;
        height: 2rem !important;
        min-height: 2rem !important;
        padding: var(--u-space-05) var(--u-space-1) !important;
    }

/* ---- Search inputs: contain the USWDS [type=search] leak ----
   ia-uswds.css styles its search component with a bare attribute selector:

     [type=search], .usa-search__input { float: left; height: 2rem;
       border-right: none; padding-top: 0; padding-bottom: 0; ... }

   That is (0,1,0) and unscoped, so it hits EVERY <input type="search"> in
   the app, including DataTables' filter box and any Bootstrap search field
   -- giving them half a USWDS search widget: floated out of flow, 32px
   tall, and missing their right border.

   Section 7's input[type="search"] rule is (0,1,1) and already wins on
   height, border and padding. `float` is the one that slipped through,
   because nothing here declared it. This block reclaims the rest
   explicitly so the leak cannot resurface if USWDS is upgraded. Real
   USWDS search widgets are excluded and keep their intended styling. */
input[type="search"]:not(.usa-search__input) {
    float: none;
    height: var(--u-control-height);
    padding-top: var(--u-control-pad-y) !important;
    padding-bottom: var(--u-control-pad-y) !important;
    border: 1px solid var(--u-base-darker);
    border-radius: var(--u-control-radius);
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

/* ---- Help text -> usa-hint ---- */
.form-text,
.help-block {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    color: var(--u-base-dark);
    margin-top: var(--u-space-05);
    max-width: var(--u-control-max-width);
}

/* ---- Required marker -> usa-label--required ---- */
.required:before,
.requiredBefore:before,
.requiredAfter:after {
    color: var(--u-error-dark);
    font-weight: 700;
}

/* ---- Validation -> usa-input--error / usa-error-message
   Covers both Bootstrap classes and ASP.NET unobtrusive validation. ---- */
.invalid-feedback,
.field-validation-error,
.validation-summary-errors {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    color: var(--u-error-dark);
    font-weight: 700;
    display: block;
    padding-top: var(--u-space-05);
    padding-bottom: var(--u-space-05);
}

    .validation-summary-errors ul {
        padding-left: 3ch;
        margin-bottom: 0;
    }

.form-control.is-invalid,
.form-select.is-invalid,
.was-validated .form-control:invalid,
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
    border-width: var(--u-focus-width);
    border-style: solid;
    border-color: var(--u-error-dark);
    background-image: none; /* drop Bootstrap's inline warning glyph */
    padding-top: calc(var(--u-control-pad-y) - var(--u-focus-width)) !important;
    padding-bottom: calc(var(--u-control-pad-y) - var(--u-focus-width)) !important;
}

/* USWDS marks the whole field group with a left rule, not just the input */
.has-error {
    border-left: var(--u-focus-width) solid var(--u-error-dark);
    padding-left: var(--u-space-2);
    margin-left: 0;
}

.form-control.is-valid,
.was-validated .form-control:valid {
    border-width: var(--u-focus-width);
    border-color: var(--u-success);
    background-image: none;
}

.valid-feedback {
    color: var(--u-success-dark);
    font-weight: 700;
}

/* ---- Checkboxes and radios -> usa-checkbox / usa-radio
   Native controls are kept (so validation and JS keep working) but resized
   and recolored to USWDS: 20px box, 2px ink ring, primary fill when on. ---- */
.form-check {
    padding-left: 2rem;
    margin-top: var(--u-space-105); /* the wrapper carries the gap so box and text stay aligned */
    margin-bottom: 0;
    min-height: auto;
}

.form-check-inline {
    margin-right: var(--u-space-3);
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.2rem;
    margin-left: -2rem;
    background-color: var(--u-white);
    border: 0;
    box-shadow: 0 0 0 2px var(--u-ink);
    border-radius: var(--u-radius-sm);
    cursor: pointer;
    flex-shrink: 0;
}

    .form-check-input[type="radio"] {
        border-radius: 50%;
    }

    .form-check-input:checked {
        background-color: var(--u-primary);
        border-color: var(--u-primary);
        box-shadow: 0 0 0 2px var(--u-primary);
    }

    .form-check-input:disabled {
        background-color: var(--u-base-lightest);
        box-shadow: 0 0 0 2px var(--u-base-light);
        cursor: not-allowed;
    }

        .form-check-input:disabled ~ .form-check-label {
            color: var(--u-base);
            opacity: 1;
        }

.form-check-label {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    font-weight: 400;
    color: var(--u-ink);
    cursor: pointer;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0;
    display: inline-block;
    max-width: none;
}

/* Switch -> USWDS has no switch; keep the pill but recolor it */
.form-switch .form-check-input {
    width: 2.5rem;
    border-radius: var(--u-radius-pill);
    box-shadow: 0 0 0 2px var(--u-base-darker);
    margin-left: -2.75rem;
}

.form-switch {
    padding-left: 2.75rem;
}

    .form-switch .form-check-input:checked {
        box-shadow: 0 0 0 2px var(--u-primary);
    }

/* ---- File input -> usa-file-input ---- */
input[type="file"],
input[type="file"].form-control {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important;
    border: 1px dashed var(--u-base-light);
    border-radius: var(--u-control-radius);
    background-color: var(--u-white);
    height: auto !important;
    max-width: var(--u-control-max-width);
    margin-top: var(--u-space-1);
    padding: var(--u-space-105) !important;
}

    input[type="file"].form-control::file-selector-button {
        font-family: var(--u-font-sans);
        font-size: var(--u-control-size);
        font-weight: 700;
        color: var(--u-white);
        background-color: var(--u-primary);
        border: 0;
        border-radius: var(--u-radius-md);
        height: auto;
        padding: var(--u-space-1) var(--u-space-2);
        margin-right: var(--u-space-2);
        cursor: pointer;
    }

    /* Bootstrap declares the hover state as

         .form-control:hover:not(:disabled):not([readonly])::file-selector-button
           { background-color: var(--bs-secondary-bg); }

       :not() contributes its argument's specificity, so that selector is
       (0,4,0) -- .form-control + :hover + :disabled + [readonly]. A rule
       written as input[type="file"].form-control:hover is only (0,3,1) and
       LOSES, which left the button reverting to --bs-secondary-bg (remapped
       here to USWDS gray-5, #f0f0f0) on hover. Matching Bootstrap's own
       :not() chain takes this to (0,5,1). */
    input[type="file"].form-control:hover:not(:disabled):not([readonly])::file-selector-button,
    input[type="file"].form-control:focus:not(:disabled):not([readonly])::file-selector-button {
        color: var(--u-white);
        background-color: var(--u-primary-dark);
    }

    input[type="file"].form-control:active:not(:disabled):not([readonly])::file-selector-button {
        color: var(--u-white);
        background-color: var(--u-primary-darker);
    }

    /* USWDS disabled buttons are a flat gray, never a faded variant */
    input[type="file"].form-control:disabled::file-selector-button,
    input[type="file"].form-control[readonly]::file-selector-button {
        color: var(--u-disabled-text);
        background-color: var(--u-disabled-bg);
        cursor: not-allowed;
    }

/* ---- Input group -> usa-input-group ---- */
.input-group {
    max-width: var(--u-control-max-width);
    align-items: stretch;
}

    .input-group > .form-control,
    .input-group > .form-select {
        max-width: none;
        margin-top: 0;
    }

.input-group-text {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    color: var(--u-ink);
    background-color: var(--u-base-lightest);
    border: 1px solid var(--u-base-darker);
    border-radius: var(--u-control-radius);
    padding: var(--u-control-pad-y) var(--u-control-pad-x);
}

.input-group > .btn {
    margin-right: 0;
    border-radius: var(--u-control-radius);
}

/* Inside an input group, only the outer corners round. Without this the
   radius appears on the interior edges too and the addon stops meeting the
   field flush, leaving a visible notch between them. */
.input-group > .form-control,
.input-group > .form-select,
.input-group > select,
.input-group > .input-group-text,
.input-group > .btn {
    border-radius: 0;
}

.input-group > :first-child {
    border-top-left-radius: var(--u-control-radius);
    border-bottom-left-radius: var(--u-control-radius);
}

.input-group > :last-child {
    border-top-right-radius: var(--u-control-radius);
    border-bottom-right-radius: var(--u-control-radius);
}

/* ---- Fieldset and legend -> usa-fieldset / usa-legend
   USWDS strips the groove border entirely. Your current CSS draws one, so
   this reverses it; keep .fieldset-bordered if you want the old look. ---- */
fieldset {
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

legend {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important;
    line-height: var(--u-lh-3);
    font-weight: 400;
    color: var(--u-ink);
    display: block;
    width: auto !important;
    max-width: var(--u-control-max-width);
    margin-bottom: 0 !important;
    padding: 0 !important;
}

    .legend-large > legend,
    legend.legend-large,
    legend.usa-legend--large {
        font-size: var(--u-text-3xl) !important;
        font-weight: 700;
        margin-top: var(--u-space-2);
    }

/* Opt back in to a visible group box */
fieldset.fieldset-bordered {
    border: 1px solid var(--u-base-lighter) !important;
    padding: var(--u-space-2) !important;
    margin-bottom: var(--u-space-2) !important;
}

    fieldset.fieldset-bordered > legend {
        font-weight: 700;
        padding: 0 var(--u-space-1) !important;
        width: auto !important;
    }

/* ---- Floating labels: keep working with the taller control ---- */
.form-floating > .form-control,
.form-floating > .form-select {
    height: calc(var(--u-control-height) + 1rem) !important;
    padding-top: 1.25rem !important;
    padding-bottom: var(--u-space-05) !important;
}

.form-floating > label {
    padding: var(--u-space-05) var(--u-control-pad-x);
    color: var(--u-base-darker);
}

/* ---- Range ---- */
.form-range::-webkit-slider-thumb {
    background-color: var(--u-primary);
}

.form-range::-moz-range-thumb {
    background-color: var(--u-primary);
}

/* Old global input cap from your Site.css lineage — USWDS uses 30rem */
input,
select,
textarea {
    max-width: var(--u-control-max-width);
}


/* ==========================================================================
   8. TABLES — .table maps to .usa-table
   USWDS tables are fully ruled (1px ink on every cell), left aligned, with
   a gray header band.

   DataTables grids are EXCLUDED from the ruling and the header band via
   :not(.dataTable), so DataTables keeps owning its own chrome — sort
   arrows, row highlight, striping, FixedHeader clones and Buttons all
   behave exactly as they do today. They still pick up USWDS typography
   and color from the .table base rule below, so the text matches the rest
   of the page. If you ever want a specific grid ruled anyway, add
   class="table-ruled" to that table.
   ========================================================================== */

.table {
    --bs-table-color: var(--u-ink);
    --bs-table-bg: var(--u-white);
    --bs-table-border-color: var(--u-ink);
    --bs-table-striped-bg: var(--u-base-lightest);
    --bs-table-striped-color: var(--u-ink);
    --bs-table-hover-bg: var(--u-primary-lighter);
    --bs-table-hover-color: var(--u-ink);
    --bs-table-active-bg: #c3ebfa;
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    border-collapse: collapse;
    border-spacing: 0;
    margin: var(--u-space-205) 0;
    text-align: left;
}

    /* Gray header band — plain tables only */
    .table:not(.dataTable) > thead > tr > th,
    .table:not(.dataTable) > thead > tr > td,
    .table:not(.dataTable) > tfoot > tr > td,
    .table:not(.dataTable) th,
    .table.table-ruled > thead > tr > th {
        background-color: var(--u-base-lighter);
        background-clip: padding-box;
        color: var(--u-ink);
        font-weight: 700;
        line-height: var(--u-lh-3);
        vertical-align: bottom;
    }

    /* Full ruling — plain tables only */
    .table:not(.dataTable) th,
    .table:not(.dataTable) td,
    .table.table-ruled th,
    .table.table-ruled td {
        border: 1px solid var(--u-ink) !important; /* beats .table thead th{border-top:0!important} */
        padding: var(--u-cell-pad-y) var(--u-cell-pad-x) !important; /* beats .table thead th{padding:.4rem!important} */
        line-height: var(--u-lh-5) !important;
    }

    .table:not(.dataTable) > tbody > tr > td {
        background-color: var(--u-white);
        font-weight: 400;
    }

    .table caption {
        font-family: var(--u-font-sans);
        font-size: 1rem;
        font-weight: 700;
        color: var(--u-ink);
        caption-side: top;
        margin-bottom: var(--u-space-105);
        text-align: left;
    }

/* .table-sm keeps USWDS type but tightens the box */
.table-sm:not(.dataTable) > :not(caption) > * > * {
    padding: var(--u-space-05) var(--u-space-1) !important; /* beats .table-sm tbody tr td{padding:1px 2px!important} */
    line-height: var(--u-lh-3) !important;
}

.table-sm tbody tr td a {
    margin-top: 0;
    font-size: var(--u-text-xs) !important;
    padding: var(--u-space-05) var(--u-space-1) !important;
}

/* Striped -> USWDS gray-5 odd rows */
.table-striped:not(.dataTable) > tbody > tr:nth-of-type(odd) > * {
    background-color: var(--u-base-lightest);
    color: var(--u-ink);
}

/* Borderless variant for layout tables */
.table-borderless th,
.table-borderless td {
    border: 0 !important;
}

/* Sortable headers (your .sort_* classes) get the USWDS active-column tint.
   Scoped away from DataTables, which sets aria-sort itself. */
.sort {
    cursor: pointer;
}

.table:not(.dataTable) th[aria-sort],
.table:not(.dataTable) td[data-sort-active] {
    background-color: #c3ebfa;
}

/* ---- DataTables harmony ----
   DT keeps its own borders and backgrounds; these rules only align the
   surrounding furniture (controls, pager, info text) with USWDS type. */
.dt-container,
.dataTables_wrapper,
table.dataTable {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    color: var(--u-ink);
}

    .dt-container .dt-search input,
    .dt-container .dt-length select,
    .dataTables_wrapper .dataTables_filter input,
    .dataTables_wrapper .dataTables_length select {
        font-family: var(--u-font-sans);
        font-size: var(--u-control-size) !important;
        border: 1px solid var(--u-base-darker);
        border-radius: var(--u-control-radius);
        height: var(--u-control-height) !important;
        margin-top: 0;
    }

/* ---- DataTables length menu + search box: layout ----
   Two defects were introduced by rules earlier in this file:

   1. The label broke onto its own line. Section 7 sets
      label { display: block } to match usa-label, and DT lays its controls
      out as an inline label + control pair. The reset list in section 7
      covers .row, table cells and .form-check, but not DT's wrappers.

   2. The select was too narrow and its text collided with the chevron.
      The consolidated select rule reserves a 2rem right gutter for the
      USWDS unfold_more icon. The DataTables rule above then reset padding
      to 0.5rem on all sides with !important while the chevron stayed put,
      so the arrow sat on top of the value and DT's intrinsic auto width
      had nothing to size against.

   Fixed by laying each control group out as a flex row and restoring the
   chevron gutter with an explicit min-width. min-width is 6rem so the
   widest option, "100", clears the icon without reflowing the row. */
.dt-length,
.dt-search,
.dataTables_length,
.dataTables_filter {
    display: flex;
    align-items: center;
    gap: var(--u-space-1);
    flex-wrap: nowrap;
    white-space: nowrap;
}

    /* inline-flex covers both DT versions: in 2.x the label is a sibling of
       the control, in 1.x the label wraps it. */
    .dt-length label,
    .dt-search label,
    .dataTables_length label,
    .dataTables_filter label {
        display: inline-flex;
        align-items: center;
        gap: var(--u-space-1);
        width: auto;
        max-width: none;
        margin: 0 !important;
        line-height: var(--u-lh-3);
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .dt-length select,
    .dt-length select.dt-input,
    div.dt-container .dt-length select,
    .dataTables_length select,
    div.dataTables_wrapper .dataTables_length select {
        width: auto !important;
        min-width: 6rem;
        max-width: none;
        margin: 0 !important;
        padding: var(--u-control-pad-y) 2rem var(--u-control-pad-y) var(--u-control-pad-x) !important;
        flex: 0 0 auto;
        text-align: left;
    }

    .dt-search input,
    .dt-search input.dt-input,
    div.dt-container .dt-search input,
    .dataTables_filter input,
    div.dataTables_wrapper .dataTables_filter input {
        width: auto;
        min-width: 15rem;
        max-width: none;
        margin: 0 !important;
        padding: var(--u-control-pad-y) var(--u-control-pad-x) !important;
        float: none;
        flex: 0 1 auto;
    }

/* DT's layout cells stop stretching their children so the flex rows above
   keep their natural width instead of filling the column. */
.dt-layout-cell > .dt-length,
.dt-layout-cell > .dt-search {
    width: auto;
}

.dt-container .dt-info,
.dt-container .dt-paging,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-size: var(--u-control-size);
    color: var(--u-ink);
}

/* Sticky header inside scrolling results panes */
.searchResultsDiv thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.searchResultsDiv table:not(.dataTable) thead th {
    background-color: var(--u-base-lighter);
}


/* ==========================================================================
   9. CARDS — .card maps to .usa-card__container
   USWDS: 2px gray-cool border, 8px radius, 24px padding, serif heading,
   and no filled header band.
   ========================================================================== */

.card {
    --bs-card-bg: var(--u-white);
    --bs-card-border-color: var(--u-base-lighter);
    --bs-card-border-width: 2px;
    --bs-card-border-radius: var(--u-radius-lg);
    --bs-card-inner-border-radius: calc(var(--u-radius-lg) - 2px);
    --bs-card-spacer-y: var(--u-card-pad);
    --bs-card-spacer-x: var(--u-card-pad);
    --bs-card-cap-bg: transparent;
    --bs-card-color: var(--u-ink);
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    background-color: var(--u-white);
    border: 2px solid var(--u-base-lighter);
    border-radius: var(--u-radius-lg);
    margin-bottom: var(--u-space-2);
}

.card-header {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-lg);
    line-height: var(--u-lh-2);
    font-weight: 700;
    color: var(--u-ink);
    background-color: transparent;
    border-bottom: 0;
    padding: var(--u-card-pad) var(--u-card-pad) var(--u-space-1) !important; /* beats .card-header{padding:.5rem .75rem!important} */
}

    .card-header .btn,
    .card-header .btn-sm {
        font-family: var(--u-font-sans);
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Opt-in: keep a filled header band where the app relies on it for scanning */
    .card-header.card-header--filled {
        background-color: var(--u-base-lightest);
        border-bottom: 2px solid var(--u-base-lighter);
        border-top-left-radius: calc(var(--u-radius-lg) - 2px);
        border-top-right-radius: calc(var(--u-radius-lg) - 2px);
    }

.card-title {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-lg);
    line-height: var(--u-lh-2);
    font-weight: 700;
    margin: 0 0 var(--u-space-1);
}

.card-subtitle {
    font-family: var(--u-font-sans);
    font-size: var(--u-text-xs);
    color: var(--u-base-darker);
}

.card-body {
    padding: var(--u-space-1) var(--u-card-pad) !important; /* beats .card-body{padding:.5rem .75rem!important} */
    flex: 1 1 auto;
}

    .card-body:first-child {
        padding-top: var(--u-card-pad) !important;
    }

    .card-body:last-child,
    .card-body:only-child {
        padding-bottom: var(--u-card-pad) !important;
    }

.card-footer {
    background-color: transparent;
    border-top: 0;
    padding: var(--u-space-1) var(--u-card-pad) var(--u-card-pad) !important;
}

.card-img,
.card-img-top {
    background-color: var(--u-base-lightest);
    border-top-left-radius: calc(var(--u-radius-lg) - 2px);
    border-top-right-radius: calc(var(--u-radius-lg) - 2px);
}

#accordion .card {
    margin-bottom: 0;
}


/* ==========================================================================
   10. ALERTS — .alert maps to .usa-alert
   Left status rule + tinted body + status icon, no rounded corners.
   ========================================================================== */

.alert {
    --bs-alert-border-radius: 0;
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    background-color: var(--u-base-lightest);
    border: 0;
    border-left: var(--u-space-1) solid var(--u-base-light);
    border-radius: 0;
    padding: var(--u-space-2) var(--u-space-205) var(--u-space-2) 4rem;
    margin-top: var(--u-space-2);
    margin-bottom: var(--u-space-2);
    position: relative;
}

    .alert::before {
        content: "";
        position: absolute;
        left: 1.0833333333rem;
        top: var(--u-space-2);
        height: 2rem;
        width: 2rem;
        background-color: var(--u-ink);
        -webkit-mask-position: center center;
        mask-position: center center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: 2rem 2rem;
        mask-size: 2rem 2rem;
    }

    /* No icon slot for the neutral/default alert */
    .alert:not([class*="alert-"])::before {
        display: none;
    }

.alert-heading {
    font-family: var(--u-font-sans);
    font-size: var(--u-text-xl);
    line-height: var(--u-lh-1);
    font-weight: 700;
    color: var(--u-ink);
    margin-top: 0;
    margin-bottom: var(--u-space-1);
}

.alert-success {
    color: var(--u-ink);
    background-color: var(--u-success-lighter);
    border-left-color: var(--u-success);
}

    .alert-success::before {
        -webkit-mask-image: url("../uswds/dist/img/usa-icons/check_circle.svg");
        mask-image: url("../uswds/dist/img/usa-icons/check_circle.svg");
    }

.alert-warning {
    color: var(--u-ink);
    background-color: var(--u-warning-lighter);
    border-left-color: var(--u-warning);
}

    .alert-warning::before {
        -webkit-mask-image: url("../uswds/dist/img/usa-icons/warning.svg");
        mask-image: url("../uswds/dist/img/usa-icons/warning.svg");
    }

.alert-danger {
    color: var(--u-ink);
    background-color: var(--u-error-lighter);
    border-left-color: var(--u-error);
}

    .alert-danger::before {
        -webkit-mask-image: url("../uswds/dist/img/usa-icons/error.svg");
        mask-image: url("../uswds/dist/img/usa-icons/error.svg");
    }

.alert-info,
.alert-primary {
    color: var(--u-ink);
    background-color: var(--u-info-lighter);
    border-left-color: var(--u-info);
}

    .alert-info::before,
    .alert-primary::before {
        -webkit-mask-image: url("../uswds/dist/img/usa-icons/info.svg");
        mask-image: url("../uswds/dist/img/usa-icons/info.svg");
    }

.alert-secondary,
.alert-light,
.alert-dark {
    color: var(--u-ink);
    background-color: var(--u-base-lightest);
    border-left-color: var(--u-base-light);
}

    .alert-secondary::before,
    .alert-light::before,
    .alert-dark::before {
        display: none;
    }

.alert-dismissible {
    padding-right: 3rem;
}

/* Fallback for browsers without mask support */
@supports not (mask-image: url("")) {
    .alert::before {
        display: none;
    }

    .alert {
        padding-left: var(--u-space-205);
    }
}

/* Summary box pattern -> .alert.alert-summary */
.alert.alert-summary {
    background-color: var(--u-info-lighter);
    border: 1px solid var(--u-info-border);
    border-radius: var(--u-radius-md);
    padding: var(--u-space-3);
}

    .alert.alert-summary::before {
        display: none;
    }


/* ==========================================================================
   11. NAVIGATION
   .navbar          -> usa-header--basic
   .nav-tabs        -> your .usa-tab component (same shapes/colors)
   .flex-column nav -> usa-sidenav
   .breadcrumb      -> usa-breadcrumb
   ========================================================================== */

/* ---- Header / navbar ---- */
.navbar {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    background-color: var(--u-white) !important;
    border-bottom: 1px solid var(--u-base-lighter);
    padding: 0 var(--u-space-2) !important; /* beats .navbar{padding:5px!important} */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.navbar-brand {
    font-family: var(--u-font-sans);
    font-size: var(--u-text-lg);
    font-weight: 700;
    color: var(--u-ink);
    text-decoration: none;
    padding-top: var(--u-space-1);
    padding-bottom: var(--u-space-1);
}

.navbar-toggler {
    border: 0;
    border-radius: var(--u-radius-md);
    color: var(--u-primary);
    padding: var(--u-space-1);
}

/* Base nav-link: this supersedes the side-nav mimicry currently in
   bootstrap_modified_5_3.css so one rule doesn't fight another. */
.nav-link {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    color: var(--u-base-darker);
    text-decoration: none;
    border-left: 0;
    padding: var(--u-space-1) var(--u-space-2);
    transition: none;
}

    .nav-link:hover,
    .nav-link:focus {
        color: var(--u-primary);
        background-color: transparent;
    }

    .nav-link.active {
        color: var(--u-primary);
        font-weight: 700;
        background-color: transparent;
    }

/* Horizontal header nav: bold items, underline on the current one */
.navbar-nav .nav-link {
    font-weight: 700;
    padding: var(--u-space-2);
    line-height: var(--u-lh-1);
    position: relative;
}

    .navbar-nav .nav-link.active::after {
        content: "";
        position: absolute;
        left: var(--u-space-2);
        right: var(--u-space-2);
        bottom: 0;
        height: var(--u-space-05);
        background-color: var(--u-primary);
        border-radius: var(--u-radius-pill);
    }

.navbar-nav .nav-item {
    font-size: var(--u-control-size);
}

/* ---- Vertical nav -> usa-sidenav ---- */
.nav.flex-column,
.nav-sidenav {
    border-bottom: 1px solid var(--u-base-lighter);
}

    .nav.flex-column .nav-item,
    .nav-sidenav .nav-item {
        border-top: 1px solid var(--u-base-lighter);
    }

    .nav.flex-column .nav-link,
    .nav-sidenav .nav-link {
        display: block;
        padding: var(--u-space-1) var(--u-space-2);
        color: var(--u-base-darker);
        line-height: var(--u-lh-3);
    }

        .nav.flex-column .nav-link:hover,
        .nav-sidenav .nav-link:hover {
            background-color: var(--u-base-lightest);
            color: var(--u-primary);
        }

        .nav.flex-column .nav-link.active,
        .nav-sidenav .nav-link.active {
            color: var(--u-primary);
            font-weight: 700;
            background-color: transparent;
            position: relative;
        }

            .nav.flex-column .nav-link.active::after,
            .nav-sidenav .nav-link.active::after {
                content: "";
                position: absolute;
                left: var(--u-space-05);
                top: var(--u-space-05);
                bottom: var(--u-space-05);
                width: var(--u-space-05);
                background-color: var(--u-primary);
                border-radius: var(--u-radius-pill);
            }

/* ---- Tabs -> matches the .usa-tab component in ia-uswds.css ---- */
.nav-tabs {
    border-bottom: 1px solid var(--u-base-lighter);
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

    .nav-tabs .nav-link {
        border: 1px solid var(--u-base-lighter);
        border-radius: 0;
        border-top-left-radius: var(--u-radius-lg);
        border-top-right-radius: var(--u-radius-lg);
        background: transparent;
        color: var(--u-ink);
        font-weight: 400;
        padding: var(--u-space-05) var(--u-space-1);
        margin-right: var(--u-space-05);
        margin-bottom: -1px;
    }

        .nav-tabs .nav-link:hover {
            color: var(--u-primary-darker);
            background-color: var(--u-base-lightest);
            border-color: var(--u-base-lighter);
        }

        .nav-tabs .nav-link.active,
        .nav-tabs .nav-item.show .nav-link {
            color: var(--u-ink);
            background-color: var(--u-primary-lighter);
            border-color: var(--u-base-lighter);
            border-bottom: var(--u-space-05) solid var(--u-primary);
        }

/* ---- Pills ---- */
.nav-pills .nav-link {
    border-radius: var(--u-radius-md);
    color: var(--u-primary);
    font-weight: 700;
}

    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        background-color: var(--u-primary);
        color: var(--u-white);
    }

/* Card header tabs sit on a transparent header now */
.card-header-tabs {
    background-color: transparent;
    margin-bottom: calc(var(--u-space-1) * -1) !important;
}

/* ---- Breadcrumb -> usa-breadcrumb ---- */
.breadcrumb {
    --bs-breadcrumb-divider-color: var(--u-base-darker);
    --bs-breadcrumb-item-active-color: var(--u-ink);
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    background-color: transparent;
    color: var(--u-ink);
    padding: var(--u-space-2) 0;
    margin-bottom: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "\203A"; /* USWDS uses a single angle quote */
    color: var(--u-base-darker);
    padding-right: var(--u-space-1);
}

.breadcrumb-item a {
    color: var(--u-primary);
    text-decoration: none;
}

    .breadcrumb-item a:hover {
        color: var(--u-primary-dark);
        text-decoration: underline;
    }

.breadcrumb-item.active {
    color: var(--u-ink);
}

/* ---- Dropdown -> usa-nav__submenu ---- */
.dropdown-menu {
    --bs-dropdown-bg: var(--u-white);
    --bs-dropdown-border-color: var(--u-base-lighter);
    --bs-dropdown-border-radius: 0;
    --bs-dropdown-link-color: var(--u-ink);
    --bs-dropdown-link-hover-color: var(--u-ink);
    --bs-dropdown-link-hover-bg: var(--u-base-lightest);
    --bs-dropdown-link-active-color: var(--u-white);
    --bs-dropdown-link-active-bg: var(--u-primary);
    --bs-dropdown-item-padding-y: var(--u-space-1);
    --bs-dropdown-item-padding-x: var(--u-space-2);
    --bs-dropdown-font-size: var(--u-control-size);
    font-family: var(--u-font-sans);
    border-radius: 0;
    box-shadow: none;
    border: 1px solid var(--u-base-lighter);
    padding: 0;
}

.dropdown-item {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-3);
    padding: var(--u-space-1) var(--u-space-2);
    text-decoration: none;
}

.dropdown-divider {
    border-top-color: var(--u-base-lighter);
    margin: 0;
}

.dropdown-header {
    font-weight: 700;
    color: var(--u-ink);
    font-size: var(--u-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


/* ==========================================================================
   12. PAGINATION — .pagination maps to .usa-pagination
   ========================================================================== */

.pagination {
    --bs-pagination-color: var(--u-primary);
    --bs-pagination-bg: var(--u-white);
    --bs-pagination-border-color: rgba(27, 27, 27, 0.2);
    --bs-pagination-border-radius: var(--u-radius-md);
    --bs-pagination-hover-color: var(--u-primary-dark);
    --bs-pagination-hover-bg: var(--u-white);
    --bs-pagination-hover-border-color: var(--u-primary-dark);
    --bs-pagination-focus-color: var(--u-primary-dark);
    --bs-pagination-focus-bg: var(--u-white);
    --bs-pagination-focus-box-shadow: none;
    --bs-pagination-active-color: var(--u-white);
    --bs-pagination-active-bg: var(--u-primary);
    --bs-pagination-active-border-color: var(--u-primary);
    --bs-pagination-disabled-color: var(--u-base);
    --bs-pagination-disabled-bg: var(--u-white);
    --bs-pagination-padding-x: var(--u-space-1);
    --bs-pagination-padding-y: var(--u-space-1);
    --bs-pagination-font-size: var(--u-control-size);
    font-family: var(--u-font-sans);
    justify-content: center;
    gap: var(--u-space-05);
    margin-top: var(--u-space-2);
    margin-bottom: var(--u-space-2);
}

.page-link {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    border-radius: var(--u-radius-md);
    text-decoration: none;
    min-width: 2.5rem;
    text-align: center;
}

.page-item.active .page-link {
    font-weight: 700;
}

/* Your custom .table-footer pager */
.table-footer > td > a {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    color: var(--u-primary);
    background-color: var(--u-white);
    border: 1px solid rgba(27, 27, 27, 0.2);
    border-radius: var(--u-radius-md);
    padding: var(--u-space-1);
    text-decoration: none;
}

    .table-footer > td > a:hover {
        color: var(--u-primary-dark);
        border-color: var(--u-primary-dark);
        background-color: var(--u-white);
    }


/* ==========================================================================
   13. MODALS — .modal maps to .usa-modal
   ========================================================================== */

.modal-content {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    background-color: var(--u-white);
    border: 0;
    border-radius: var(--u-radius-lg);
    box-shadow: none;
}

.modal-dialog {
    padding-top: var(--u-space-205);
    margin: var(--u-space-205) auto;
}

.modal-backdrop {
    background-color: var(--u-ink);
}

    .modal-backdrop.show {
        opacity: 0.75;
    }

.modal-header {
    border-bottom: 0;
    padding: var(--u-space-4) var(--u-space-4) 0;
    align-items: flex-start;
}

.modal-title {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-lg);
    line-height: var(--u-lh-4);
    font-weight: 700;
    color: var(--u-ink);
    margin-top: 0;
}

.modal-body {
    padding: var(--u-space-1) var(--u-space-4) var(--u-space-4);
    max-height: calc(100vh - 12rem);
    overflow-y: auto;
}

.modal-footer {
    border-top: 0;
    padding: 0 var(--u-space-4) var(--u-space-4);
    justify-content: flex-start;
    gap: 0;
}

.modal-lg,
.modal-xl {
    max-width: 55rem !important; /* beats .modal-xl{max-width:1000px!important} */
}

.modal-sm {
    max-width: 30rem;
}

/* Offcanvas gets the same surface treatment */
.offcanvas {
    font-family: var(--u-font-sans);
    background-color: var(--u-white);
    color: var(--u-ink);
    border-color: var(--u-base-lighter);
}

.offcanvas-header,
.offcanvas-body {
    padding: var(--u-space-3);
}

.offcanvas-title {
    font-family: var(--u-font-serif);
    font-size: var(--u-text-lg);
    font-weight: 700;
}


/* ==========================================================================
   14. BADGES, LIST GROUPS, ACCORDION, PROGRESS, TOOLTIPS, SPINNERS
   ========================================================================== */

/* ---- Badge -> usa-tag ---- */
.badge {
    font-family: var(--u-font-sans);
    font-size: var(--u-text-xs);
    font-weight: 400;
    line-height: var(--u-lh-3);
    color: var(--u-white);
    background-color: var(--u-base-darker);
    text-transform: uppercase;
    border-radius: var(--u-radius-sm);
    padding: 1px var(--u-space-1);
    margin-right: var(--u-space-05);
}

    .badge:only-of-type {
        margin-right: 0;
    }

    .badge.bg-primary {
        background-color: var(--u-primary) !important;
    }

    .badge.bg-secondary {
        background-color: var(--u-base-darker) !important;
    }

    .badge.bg-success {
        background-color: var(--u-success-dark) !important;
    }

    .badge.bg-danger {
        background-color: var(--u-secondary-dark) !important;
    }

    .badge.bg-warning {
        background-color: var(--u-accent-warm) !important;
        color: var(--u-ink) !important;
    }

    .badge.bg-info {
        background-color: var(--u-accent-cool) !important;
        color: var(--u-ink) !important;
    }

    .badge.rounded-pill {
        border-radius: var(--u-radius-pill);
        padding-left: var(--u-space-1);
        padding-right: var(--u-space-1);
    }

/* ---- List group -> usa-sidenav / usa-collection ---- */
.list-group {
    --bs-list-group-color: var(--u-ink);
    --bs-list-group-bg: var(--u-white);
    --bs-list-group-border-color: var(--u-base-lighter);
    --bs-list-group-border-radius: 0;
    --bs-list-group-item-padding-y: var(--u-space-1);
    --bs-list-group-item-padding-x: var(--u-space-2);
    --bs-list-group-action-hover-bg: var(--u-base-lightest);
    --bs-list-group-action-hover-color: var(--u-primary);
    --bs-list-group-active-bg: var(--u-white);
    --bs-list-group-active-color: var(--u-primary);
    --bs-list-group-active-border-color: var(--u-base-lighter);
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    border-radius: 0;
}

.list-group-item {
    border-left: 0;
    border-right: 0;
    line-height: var(--u-lh-3);
}

    .list-group-item:first-child {
        border-top: 1px solid var(--u-base-lighter);
    }

    .list-group-item.active {
        font-weight: 700;
        position: relative;
    }

        .list-group-item.active::after {
            content: "";
            position: absolute;
            left: var(--u-space-05);
            top: var(--u-space-05);
            bottom: var(--u-space-05);
            width: var(--u-space-05);
            background-color: var(--u-primary);
            border-radius: var(--u-radius-pill);
        }

/* ---- Accordion -> usa-accordion ---- */
.accordion {
    --bs-accordion-bg: var(--u-white);
    --bs-accordion-border-color: transparent;
    --bs-accordion-border-radius: 0;
    --bs-accordion-btn-color: var(--u-ink);
    --bs-accordion-btn-bg: var(--u-base-lightest);
    --bs-accordion-active-color: var(--u-ink);
    --bs-accordion-active-bg: var(--u-base-lightest);
    --bs-accordion-btn-focus-box-shadow: none;
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-ink);
    border-radius: 0;
}

.accordion-item {
    border: 0;
    border-radius: 0;
    background-color: var(--u-white);
    margin-bottom: var(--u-space-05);
}

.accordion-button {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-1);
    font-weight: 700;
    color: var(--u-ink);
    background-color: var(--u-base-lightest);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: var(--u-space-2) 3.5rem var(--u-space-2) var(--u-space-205);
    text-decoration: none;
}

    .accordion-button:not(.collapsed) {
        color: var(--u-ink);
        background-color: var(--u-base-lightest);
        box-shadow: none;
    }

    .accordion-button:hover {
        background-color: var(--u-base-lighter);
    }

    /* USWDS uses +/- rather than a rotating chevron */
    .accordion-button::after {
        width: 1.5rem;
        height: 1.5rem;
        background-image: url("../uswds/dist/img/usa-icons/remove.svg");
        background-size: 1.5rem;
        background-repeat: no-repeat;
        transform: none;
        position: absolute;
        right: var(--u-space-205);
    }

    .accordion-button.collapsed::after {
        background-image: url("../uswds/dist/img/usa-icons/add.svg");
        transform: none;
    }

.accordion-body {
    background-color: var(--u-white);
    color: var(--u-ink);
    padding: var(--u-space-2) var(--u-space-205) calc(var(--u-space-2) - var(--u-space-05));
}

/* Bordered variant */
.accordion.accordion-flush .accordion-body,
.accordion--bordered .accordion-body {
    border-bottom: var(--u-space-05) solid var(--u-base-lightest);
    border-left: var(--u-space-05) solid var(--u-base-lightest);
    border-right: var(--u-space-05) solid var(--u-base-lightest);
}

/* ---- Progress -> usa-step-indicator bar colors ---- */
.progress {
    --bs-progress-bg: var(--u-base-lighter);
    --bs-progress-bar-bg: var(--u-primary);
    --bs-progress-border-radius: var(--u-radius-pill);
    --bs-progress-font-size: var(--u-text-xs);
    height: var(--u-space-1);
}

/* ---- Tooltip / popover -> usa-tooltip ---- */
.tooltip {
    --bs-tooltip-bg: var(--u-ink);
    --bs-tooltip-color: var(--u-white);
    --bs-tooltip-border-radius: var(--u-radius-md);
    --bs-tooltip-font-size: var(--u-text-xs);
    --bs-tooltip-opacity: 1;
    font-family: var(--u-font-sans);
}

.tooltip-inner {
    padding: var(--u-space-1) var(--u-space-105);
    line-height: var(--u-lh-3);
    max-width: 20rem;
    text-align: left;
}

.popover {
    --bs-popover-bg: var(--u-white);
    --bs-popover-border-color: var(--u-base-lighter);
    --bs-popover-border-radius: var(--u-radius-md);
    --bs-popover-header-bg: var(--u-base-lightest);
    --bs-popover-font-size: var(--u-control-size);
    font-family: var(--u-font-sans);
    box-shadow: none;
}

.popover-header {
    font-weight: 700;
    color: var(--u-ink);
    border-bottom-color: var(--u-base-lighter);
}

/* ---- Spinner ---- */
.spinner-border,
.spinner-grow {
    color: var(--u-primary);
}


/* ==========================================================================
   15. APP CHROME — header, footer, hero and the bits from your Site.css
   ========================================================================== */

.fixed-top {
    background-color: var(--u-white) !important;
    border-bottom: 1px solid var(--u-base-lighter);
}

.appname,
#logoTextContainer #logoTextTop,
#logoTextContainer #logoTextBottom {
    font-family: "Work Sans", var(--u-font-sans);
}

.appname {
    font-variant: small-caps;
    color: var(--u-primary);
    background-color: transparent;
}

.footer {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    line-height: var(--u-lh-5);
    color: var(--u-white);
    background-color: var(--u-base-darkest);
    border-radius: 0;
    padding: var(--u-space-2);
}

    .footer a {
        color: var(--u-base-lighter);
    }

        .footer a:visited {
            color: var(--u-base-lighter);
        }

        .footer a:hover {
            color: var(--u-base-lightest);
        }

.searchTableInput {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size);
    border: 1px solid var(--u-base-darker);
    border-radius: var(--u-control-radius);
    padding: var(--u-control-pad-y) var(--u-control-pad-x) var(--u-control-pad-y) 2.5rem;
    max-width: var(--u-control-max-width) !important;
    margin-bottom: var(--u-space-2);
}


/* ==========================================================================
   16. COLOR + TYPE UTILITIES
   Bootstrap compiles utility values literally, so the ones that carry brand
   color are restated here against USWDS tokens.
   ========================================================================== */




.text-danger {
    color: var(--u-secondary-dark) !important;
}



.text-muted,
.text-body-secondary {
    color: var(--u-base-dark) !important;
}

.text-dark {
    color: var(--u-ink) !important;
}




.bg-danger {
    background-color: var(--u-secondary) !important;
}



.bg-light {
    background-color: var(--u-base-lightest) !important;
}

.bg-dark {
    background-color: var(--u-ink) !important;
}




.border-danger {
    border-color: var(--u-secondary) !important;
}


.font-sans {
    font-family: var(--u-font-sans);
}

.font-serif {
    font-family: var(--u-font-serif);
}

.font-mono {
    font-family: var(--u-font-mono);
}

/* Bootstrap's .text-decoration-none must still win over the global link rule */
.text-decoration-none {
    text-decoration: none !important;
}


/* ==========================================================================
   17. DENSITY
   Full USWDS sizing is the default. Add class="uswds-compact" to <body>
   (or to any wrapper) to keep USWDS color, type and borders while pulling
   sizing back toward the density your data-entry screens use today.
   ========================================================================== */

.uswds-compact {
    --u-body-size: 0.93rem;
    --u-control-size: 0.93rem;
    --u-control-height: 2rem;
    --u-control-pad-y: 0.25rem;
    --u-control-pad-x: 0.5rem;
    --u-btn-pad-y: 0.5rem;
    --u-btn-pad-x: 0.75rem;
    --u-cell-pad-y: 0.25rem;
    --u-cell-pad-x: 0.5rem;
    --u-card-pad: 0.75rem;
    --u-gutter: 1rem;
    font-size: 0.93rem;
}

    .uswds-compact label,
    .uswds-compact .form-label {
        margin-top: var(--u-space-2);
    }

    .uswds-compact .table {
        margin: var(--u-space-2) 0;
    }

    .uswds-compact h1, .uswds-compact .h1 {
        font-size: var(--u-text-2xl);
    }

    .uswds-compact h2, .uswds-compact .h2 {
        font-size: var(--u-text-lg);
    }

    .uswds-compact h3, .uswds-compact .h3 {
        font-size: var(--u-text-sm);
    }


/* ==========================================================================
   18. ACCESSIBILITY + MOTION
   ========================================================================== */

.sr-only {
    position: absolute;
    left: -999em;
    right: auto;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (forced-colors: active) {
    .btn,
    .form-control,
    .form-select,
    .card,
    .alert {
        border: 1px solid transparent;
    }

        .btn:disabled,
        .btn[aria-disabled="true"] {
            color: GrayText !important;
        }
}


/* ==========================================================================
   18b. VISITED-STATE GUARDS
   This file styles bare `a` elements to USWDS link colors, including
   a:visited -> #54278f. That selector is (0,1,1). Most Bootstrap
   components color their anchors with a single class -- .btn, .nav-link,
   .page-link, .dropdown-item -- which is only (0,1,0), and Bootstrap
   never declares :visited for them. So the moment a user clicks an
   <a class="btn">, the global visited rule outranks the component and the
   label turns purple.

   USWDS solves this by declaring .usa-button:visited explicitly, and the
   same fix is applied here. Each guard reads its color from the component's
   own Bootstrap variable, so it stays correct for every variant, including
   ones added later, with no per-variant maintenance.

   The :hover and :active pairs are required, not decorative. A visited
   button that is also hovered matches both .btn:visited (0,2,0, declared
   here) and .btn:hover (0,2,0, declared earlier in bootstrap.css). Equal
   specificity means the later rule wins, so without these the hover color
   would never appear on a visited button.
   ========================================================================== */

.btn:visited {
    color: var(--bs-btn-color);
}

    .btn:visited:hover,
    .btn:visited:focus {
        color: var(--bs-btn-hover-color);
    }

    .btn:visited:active,
    .btn:visited.active {
        color: var(--bs-btn-active-color);
    }

    .btn:visited:disabled,
    .btn:visited[aria-disabled="true"],
    .btn:visited.disabled {
        color: var(--u-disabled-text) !important;
    }

/* Outline variants set color directly rather than only through the variable */
.btn-outline-primary:visited {
    color: var(--u-primary);
}

.btn-outline-secondary:visited {
    color: var(--u-base-darker);
}

.btn-outline-success:visited {
    color: var(--u-success-dark);
}

.btn-outline-danger:visited {
    color: var(--u-secondary-dark);
}

.btn-outline-info:visited {
    color: var(--u-accent-cool-darker);
}

.btn-outline-warning:visited {
    color: var(--u-accent-warm-dark);
}

.btn-outline-dark:visited {
    color: var(--u-ink);
}

.btn-outline-light:visited {
    color: var(--u-base-darker);
}

/* .btn-link is the one exception: it reads as a link, so USWDS's
   usa-button--unstyled keeps the visited color. Change this to
   var(--u-primary) if you would rather it behave like a button. */
.btn-link:visited {
    color: var(--u-visited) !important;
}

    .btn-link:visited:hover {
        color: var(--u-primary-dark) !important;
    }

/* Same (0,1,0) exposure across the other components that color anchors */
.nav-link:visited {
    color: var(--u-base-darker);
}

    .nav-link:visited:hover {
        color: var(--u-primary);
    }

.nav-link.active:visited,
.navbar-nav .nav-link.active:visited {
    color: var(--u-primary);
}

.navbar-nav .nav-link:visited {
    color: var(--u-base-darker);
}

.nav-pills .nav-link.active:visited,
.nav-pills .show > .nav-link:visited {
    color: var(--u-white);
}

.nav-tabs .nav-link:visited,
.nav-tabs .nav-link.active:visited {
    color: var(--u-ink);
}

.navbar-brand:visited {
    color: var(--u-ink);
}

.page-link:visited {
    color: var(--u-primary);
}

.page-item.active .page-link:visited {
    color: var(--u-white);
}

.dropdown-item:visited {
    color: var(--u-ink);
}

    .dropdown-item:visited:hover,
    .dropdown-item:visited:focus {
        color: var(--u-ink);
    }

.dropdown-item.active:visited {
    color: var(--u-white);
}

.list-group-item:visited {
    color: var(--u-ink);
}

.list-group-item.active:visited {
    color: var(--u-primary);
}

.accordion-button:visited {
    color: var(--u-ink);
}

.badge:visited {
    color: var(--u-white);
}

.badge.bg-warning:visited,
.badge.bg-info:visited {
    color: var(--u-ink);
}

.alert-link:visited {
    color: var(--u-primary-darker);
}

.breadcrumb-item a:visited {
    color: var(--u-primary);
}

.table-footer > td > a:visited {
    color: var(--u-primary);
}

.card-header a:visited,
.card-title a:visited {
    color: inherit;
}


/* ==========================================================================
   18b2. APP COMPATIBILITY (Custom.css)
   Custom.css is bundled into css.min.css and loads BEFORE this file. Its
   rules are more specific than the base element rules here, so they win on
   the properties they declare -- and inherit this file's values for the
   ones they don't. That gap is what these guards close.
   ========================================================================== */

/* .h1-.h6 used as a SIZE utility ON a button.
   RiparianDockAddress.cshtml has
     <label class="btn btn-outline-primary form-check h6">Government</label>
   Section 4 maps .h6 to usa-heading h6, which is uppercase with letter
   spacing -- correct for a heading, wrong for a button label. It also
   applies to only two of the three dock-type buttons, so "Government" and
   "Commercial" would render uppercase while "Standard (Private)" would not.
   When .btn and a heading class collide, the button wins. */
.btn.h1,
.btn.h2,
.btn.h3,
.btn.h4,
.btn.h5,
.btn.h6 {
    font-family: var(--u-font-sans);
    font-size: var(--u-control-size) !important;
    font-weight: 700;
    line-height: var(--u-lh-1);
    text-transform: none;
    letter-spacing: normal;
    /* No `color` here on purpose. `color: inherit` looked right but
       inherited from the PARENT ELEMENT -- the black body text -- rather
       than from the button variant, so .h6 buttons went black while the
       plain .btn next to them stayed blue. Colour is left to the .btn base
       rule and the variant rules in section 6. */
}

/* Heading classes INSIDE a button.
   Questions.cshtml wraps the label text in a child element:

     <label class="btn btn-outline-primary">
       <input type="radio" class="d-none buttonRadio">
       <span class="h6 my-auto py-1">Yes</span>
     </label>

   The rule above only covers .h6 ON the .btn, so it never matched. And
   because section 4 declares colour and font-family directly on .h6, the
   child had its OWN matching declaration -- inheritance from the label
   never happened. Setting color on the label, as the selected-state rules
   do, could not reach the text.

   That is why these read black and serif in both states while the
   RiparianDockAddress buttons, whose text is a direct child of the label,
   were correct.

   Everything typographic is handed back to the button so the text tracks
   the label in every state -- outline, hover, selected -- with no
   per-state rules. .btn .h6 is (0,2,0) and .btn h6 is (0,1,1), so both
   outrank section 4 regardless of source order. */
.btn h1,
.btn h2,
.btn h3,
.btn h4,
.btn h5,
.btn h6,
.btn .h1,
.btn .h2,
.btn .h3,
.btn .h4,
.btn .h5,
.btn .h6 {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    margin-top: 0;
    margin-bottom: 0;
}

/* Custom.css sets font-size on .rt-usa-card__heading but not font-family,
   so it inherited Merriweather from the h3 rule in section 4. These are
   fieldset-style legends sitting on a border with a top: -0.6em offset,
   which serif metrics shift off the line. */
h3.rt-usa-card__heading,
.rt-usa-card__heading {
    font-family: var(--u-font-sans);
    line-height: var(--u-lh-3);
}

/* The .selected box-shadow in Custom.css is Bootstrap's default blue glow,
   rgba(13,110,253,.25), which is the one off-palette color left in that
   file. Section 18b already replaces it with the USWDS ring; this keeps the
   focus ring on-palette too. */
.btn-outline-primary.selected:focus-visible {
    outline: var(--u-focus-width) solid var(--u-focus);
    outline-offset: 0;
    box-shadow: inset 0 0 0 2px var(--u-primary);
}


/* ==========================================================================
   18c. THIRD-PARTY WIDGET GUARDS
   css.min.css bundles bootstrap-datepicker, jquery.gritter and toastr.
   Each ships its own anchor styling, and each loses to section 4's global
   `a` rules:

     a          (0,0,1) -- loses to almost anything, harmless
     a:visited  (0,1,1) -- BEATS a single class like .toast-close-button

   So their close buttons and calendar controls pick up a USWDS underline
   and, once clicked, the purple visited color. These widgets own their own
   look, so they are exempted rather than restyled. Same root cause as the
   .btn:visited problem in 18b: a pseudo-class on a bare element outranks a
   plain class.
   ========================================================================== */

.datepicker a,
.datepicker a:visited,
.datepicker a:hover,
.datepicker th a,
.datepicker td a,
#gritter-notice-wrapper a,
#gritter-notice-wrapper a:visited,
.gritter-item-wrapper a,
.gritter-item-wrapper a:visited,
.gritter-close,
.gritter-close:visited,
#toast-container a,
#toast-container a:visited,
.toast-close-button,
.toast-close-button:visited,
.toast-message a,
.toast-message a:visited {
    color: inherit;
    text-decoration: none;
}

/* The datepicker draws a calendar grid with its own <table>. It uses
   .table-condensed, not .table, so section 8's ruling rules do not reach
   it -- but it does inherit the 1.06rem body size, which makes the popup
   noticeably larger than it was at 0.8rem. Kept at the small UI step so
   the calendar stays compact. */
.datepicker {
    font-size: var(--u-text-xs);
}

    .datepicker table th,
    .datepicker table td {
        border: 0;
        padding: var(--u-space-05);
        line-height: var(--u-lh-3);
        background-color: transparent;
    }


/* ==========================================================================
   19. PRINT
   ========================================================================== */

@media print {
    body {
        font-size: 11pt;
        color: #000;
        background-color: #fff;
    }

    a,
    .nav-link,
    .btn-link {
        color: #000 !important;
        text-decoration: underline;
    }

        a[href]:after {
            content: none !important;
        }

    .btn,
    .navbar,
    .no-print {
        display: none !important;
    }

    .table th,
    .table td {
        border: 1px solid #000 !important;
        padding: 2pt 4pt !important;
    }

    .card {
        border: 1px solid #000;
        break-inside: avoid;
    }

    .alert {
        border-left-width: 3pt;
    }

    .pagebreak {
        page-break-after: always;
    }
}
