@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(../fonts/dmsans.woff2) format("woff2");
  }
  :root {
    /* eMudhra design tokens, verified against the rendered emudhra.com */
    --primary: #1C64F2;
    --primary-strong: #1A56DB;
    --primary-tint: #EBF5FF;
    --on-primary: #FFFFFF;
    --indigo: #5850EC;
    --accent: #FF5A1F;
    --accent-tint: #FEECDC;
    --paper: #FFFFFF;
    --wash-cream: #FFF8F1;
    --wash-lav: #F6F5FF;
    --wash-indigo: #F0F5FF;
    --wash-blue: #ECF5FF;
    --surface: #FFFFFF;
    --surface-2: #F3F4F6;
    --ink: #111928;
    --body: #374151;
    --muted: #6B7280;
    --line: #E5E7EB;
    --line-strong: #D1D5DB;
    --panel-a: #6156c3;
    --panel-b: #00123a;
    --panel-c: #000000;
    --footer-tint: #E1EFFE;
    --footer-ink: #374151;
    --c-emsign: #1C64F2;
    --c-incommon: #6156C3;
    --c-qtsp: #0E9F6E;
    --c-tsa: #C27803;
    --c-private: #B43403;
    --warn-bg: #FFF8F1;
    --warn-border: #FBD5B5;
    --warn-ink: #8A2C0D;
    --shadow-1: 0 1px 2px rgba(17, 25, 40, 0.06);
    --shadow-2: 0 4px 10px rgba(17, 25, 40, 0.07), 0 12px 28px rgba(17, 25, 40, 0.06);
    --r-card: 12px;
    --r-btn: 8px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --primary: #76A9FA;
      --primary-strong: #A4CAFE;
      --primary-tint: #17233A;
      --on-primary: #0B1120;
      --indigo: #8DA2FB;
      --accent: #FF8A4C;
      --accent-tint: #3A2416;
      --paper: #0B1120;
      --wash-cream: #171320;
      --wash-lav: #12142A;
      --wash-indigo: #0E1630;
      --wash-blue: #0D1930;
      --surface: #151C2C;
      --surface-2: #1D2536;
      --ink: #E5EAF3;
      --body: #C3CCDA;
      --muted: #94A3B8;
      --line: #263042;
      --line-strong: #3A4760;
      --footer-tint: #0F1A2E;
      --footer-ink: #94A3B8;
      --c-emsign: #76A9FA;
      --c-incommon: #A79BE8;
      --c-qtsp: #4FC493;
      --c-tsa: #E3A008;
      --c-private: #E58562;
      --warn-bg: #2A2012;
      --warn-border: #4A3620;
      --warn-ink: #F0B98A;
      --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
      --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.4);
    }
  }
  :root[data-theme="dark"] {
    --primary: #76A9FA;
    --primary-strong: #A4CAFE;
    --primary-tint: #17233A;
    --on-primary: #0B1120;
    --indigo: #8DA2FB;
    --accent: #FF8A4C;
    --accent-tint: #3A2416;
    --paper: #0B1120;
    --wash-cream: #171320;
    --wash-lav: #12142A;
    --wash-indigo: #0E1630;
    --wash-blue: #0D1930;
    --surface: #151C2C;
    --surface-2: #1D2536;
    --ink: #E5EAF3;
    --body: #C3CCDA;
    --muted: #94A3B8;
    --line: #263042;
    --line-strong: #3A4760;
    --footer-tint: #0F1A2E;
    --footer-ink: #94A3B8;
    --c-emsign: #76A9FA;
    --c-incommon: #A79BE8;
    --c-qtsp: #4FC493;
    --c-tsa: #E3A008;
    --c-private: #E58562;
    --warn-bg: #2A2012;
    --warn-border: #4A3620;
    --warn-ink: #F0B98A;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-2: 0 4px 10px rgba(0, 0, 0, 0.5), 0 12px 28px rgba(0, 0, 0, 0.4);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--body);
    font-family: "DM Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }
  h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
  a { color: var(--primary); }
  a:hover { color: var(--primary-strong); }
  button { font-family: inherit; }
  .mono { font-family: ui-monospace, Consolas, "Cascadia Code", "Courier New", monospace; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip-link {
    position: absolute; left: 8px; top: -48px;
    background: var(--surface); color: var(--primary);
    padding: 8px 16px; border-radius: 0 0 8px 8px;
    z-index: 100; transition: top 0.15s ease;
  }
  .skip-link:focus { top: 0; }
  :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

  /* ---------- Site header ---------- */
  .site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
  .site-header .container { display: flex; align-items: center; gap: 28px; height: 72px; }
  .logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
  .logo img { height: 46px; width: auto; display: block; }
  .logo .byline {
    font-size: 11.5px; font-weight: 600; color: var(--muted);
    letter-spacing: 0.08em; text-transform: uppercase;
    border-left: 1px solid var(--line-strong); padding-left: 14px;
  }
  .site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
  .site-nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink); padding: 6px 0; }
  .site-nav a:hover { color: var(--primary); }
  .site-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--primary); }
  .site-nav .nav-cta {
    background: var(--primary); color: var(--on-primary);
    border: 1px solid var(--primary); border-radius: var(--r-btn);
    padding: 8px 18px; font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .site-nav .nav-cta:hover { background: transparent; color: var(--primary); }
  /* the generic current-page rule would paint blue text on the blue button */
  .site-nav a.nav-cta[aria-current="page"] { color: var(--on-primary); box-shadow: none; }
  .site-nav a.nav-cta[aria-current="page"]:hover { color: var(--primary); }

  /* ---------- Hero (warm cream, exactly like the emudhra.com banner-section) ---------- */
  .banner {
    background: linear-gradient(180deg, var(--wash-cream) 0%, color-mix(in srgb, var(--wash-cream) 45%, var(--paper)) 70%, var(--paper) 100%);
    padding: 52px 0 44px;
  }
  .banner-grid { display: flex; flex-wrap: wrap; gap: 34px; justify-content: space-between; align-items: flex-start; }
  .banner .eyebrow { margin-bottom: 8px; }
  .banner h1 { font-size: 44px; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; }
  .banner .lede { margin: 14px 0 0; max-width: 62ch; font-size: 16px; line-height: 1.7; color: var(--muted); }
  /* steel-blue stats bar, matching the emudhra.com hero numbers strip */
  .hero-numbers {
    background: linear-gradient(135deg, #1E3A5F 0%, #2D5F8A 100%);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 30px;
    display: flex;
  }
  .bstat {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    padding: 16px 14px;
    position: relative;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
  }
  .bstat:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 20%;
    height: 60%; width: 1px;
    background: rgba(255, 255, 255, 0.25);
  }
  .bstat .si {
    width: 36px; height: 36px; min-width: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.12);
  }
  .bstat .si svg { width: 18px; height: 18px; stroke: #ffffff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bstat b { display: block; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; color: #ffffff; }
  .banner-updates {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    min-width: min(290px, 100%); max-width: 370px;
    font-size: 13.5px;
    box-shadow: var(--shadow-1);
  }
  .banner-updates h2 {
    font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink);
    margin: 0; padding: 12px 20px;
    background: linear-gradient(90deg, var(--accent-tint) 0%, color-mix(in srgb, var(--accent-tint) 35%, var(--surface)) 100%);
  }
  .banner-updates ul { margin: 0; padding: 14px 20px 16px; list-style: none; }
  .banner-updates li { margin-bottom: 10px; color: var(--muted); }
  .banner-updates b { color: var(--ink); font-weight: 600; }

  /* ---------- Sticky toolbar ---------- */
  .toolbar {
    position: sticky; top: 0; z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-1);
  }
  /* two balanced rows: search + section links, then the program filters */
  .toolbar .container { padding-top: 10px; padding-bottom: 10px; }
  .tb-row { display: flex; align-items: center; gap: 16px; margin-bottom: 9px; }
  .search-wrap { position: relative; flex: 1 1 280px; max-width: 440px; }
  .search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); }
  .search-wrap input {
    width: 100%;
    padding: 10px 40px 10px 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    background: var(--surface-2);
    color: var(--ink);
    font: inherit; font-size: 14.5px;
  }
  .search-wrap input::placeholder { color: var(--muted); }
  .search-wrap input:focus { outline: 2px solid var(--primary); outline-offset: -1px; background: var(--surface); }
  .search-wrap kbd {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: 1px solid var(--line-strong); border-radius: 5px;
    padding: 0 7px; font-size: 11px; color: var(--muted); background: var(--surface);
  }
  /* becomes a clickable "Enter" affordance once a search has matches */
  .search-wrap kbd.is-jump {
    background: var(--primary); border-color: var(--primary); color: var(--on-primary);
    cursor: pointer; font-weight: 600;
  }
  .search-wrap kbd.is-jump:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
  .program-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .pbtn {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 15px 8px 11px;
    font-size: 13.5px; font-weight: 500;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  .pbtn .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  .pbtn .n { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }
  .pbtn:hover { border-color: var(--primary); color: var(--primary); }
  .pbtn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
  .pbtn[aria-pressed="true"] .n { color: inherit; opacity: 0.75; }
  .anchors { margin-left: auto; display: flex; gap: 20px; font-size: 14px; font-weight: 500; }
  .anchors a { color: var(--muted); text-decoration: none; }
  .anchors a:hover { color: var(--primary); }

  /* ---------- Section bands ---------- */
  .band { padding: 60px 0 64px; scroll-margin-top: 122px; }
  .band-wash { background: var(--wash-lav); }
  .band-cream { background: var(--wash-cream); }
  .eyebrow {
    font-size: 13px; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--indigo);
    margin-bottom: 6px;
  }
  .sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 18px; margin-bottom: 24px; }
  .sec-head h2 { font-size: 30px; font-weight: 700; }
  .sec-head .count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; padding-bottom: 5px; }
  .sec-head .sec-tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 4px; }
  .tbtn {
    border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink);
    border-radius: var(--r-btn);
    padding: 6px 14px; font-size: 13px; font-weight: 500; cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  }
  .tbtn:hover { border-color: var(--primary); color: var(--primary); }
  .tbtn[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

  /* ---------- Documents ---------- */
  .doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
  .doc {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 20px 20px 16px;
    display: flex; flex-direction: column; gap: 10px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }
  .doc:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); transform: translateY(-2px); }
  .doc-top { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
  .chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 500;
    border-radius: 999px; padding: 3px 11px 3px 8px;
    border: 1px solid var(--line);
    background: var(--surface-2);
    color: var(--muted);
    white-space: nowrap;
  }
  .chip .dot { width: 8px; height: 8px; border-radius: 50%; }
  .cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-left: auto; white-space: nowrap; }
  .doc h3 { font-size: 16.5px; font-weight: 600; }
  /* flex-grow pins the action buttons to a consistent height across a card row */
  .doc-meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
  .doc-meta .oid {
    cursor: pointer; align-self: flex-start;
    background: none; border: 0; padding: 0;
    color: var(--muted); font-size: 13px; text-align: left;
  }
  .doc-meta .oid:hover { color: var(--primary); }
  .doc-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 2px; }
  .btn {
    display: inline-flex; align-items: center; gap: 6px;
    border-radius: var(--r-btn); padding: 8px 18px;
    font-size: 14px; font-weight: 500; text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .btn-cta { background: var(--primary); border: 1px solid var(--primary); color: var(--on-primary); }
  .btn svg, .dl svg { flex: none; }
  .btn-cta:hover { background: transparent; color: var(--primary); }
  .btn-ghost { color: var(--primary); border: 1px solid var(--primary); background: transparent; }
  .btn-ghost:hover { background: var(--primary-tint); color: var(--primary-strong); }
  .history { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; font-size: 13.5px; }
  .history summary { cursor: pointer; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 7px; font-weight: 500; transition: color 0.3s ease; }
  .history summary:hover { color: var(--primary); }
  .history summary::-webkit-details-marker { display: none; }
  .history summary::before { content: "+"; font-weight: 700; color: var(--primary); width: 12px; }
  .history[open] summary::before { content: "-"; }
  .history ul { margin: 8px 0 2px; padding: 0; list-style: none; max-height: 216px; overflow-y: auto; }
  .history li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 2px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
  .history li:last-child { border-bottom: 0; }
  .history .hd { color: var(--muted); font-size: 12px; white-space: nowrap; }
  .first-version { border-top: 1px dashed var(--line); margin-top: 12px; padding-top: 10px; color: var(--muted); font-size: 13.5px; }

  /* ---------- Certificates ---------- */
  .prog-block { margin-bottom: 30px; }
  #tsu { scroll-margin-top: 130px; }

  /* ---------- CA finder ---------- */
  .ca-finder { position: relative; max-width: 560px; margin: 0 0 20px; }
  .ca-finder svg { position: absolute; left: 13px; top: 21px; transform: translateY(-50%); width: 15px; height: 15px; fill: var(--muted); }
  .ca-finder input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    background: var(--surface);
    color: var(--ink);
    font: inherit; font-size: 14.5px;
  }
  .ca-finder input::placeholder { color: var(--muted); }
  .ca-finder input:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
  .finder-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 45;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    box-shadow: var(--shadow-2);
    max-height: 330px; overflow-y: auto;
    z-index: 60;
  }
  .finder-item { padding: 9px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; color: var(--ink); }
  .finder-item + .finder-item { border-top: 1px solid var(--line); }
  .finder-item .fi-path { font-size: 11.5px; color: var(--muted); }
  .finder-item:hover, .finder-item.active { background: var(--primary-tint); }
  .finder-item[aria-disabled="true"] { cursor: default; color: var(--muted); }
  @keyframes rowflash { 0% { background: var(--accent-tint); } 100% { background: transparent; } }
  .flash-row td { animation: rowflash 2.4s ease-out; }
  /* used when a search jump lands on a card or a whole CA group */
  @keyframes elflash {
    0% { box-shadow: 0 0 0 3px var(--accent); }
    100% { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0); }
  }
  .flash-el { animation: elflash 2.4s ease-out; border-color: var(--accent) !important; }

  /* hierarchy connector on subordinate CA rows.
     Selector must out-rank `table.ca td`, hence the table.ca prefix. */
  table.ca td.subcell { padding-left: 46px; position: relative; }
  /* vertical rail: spans the full row so consecutive rows form one line */
  table.ca td.subcell::before {
    content: ""; position: absolute; left: 26px; top: 0; bottom: 0; width: 1px;
    background: var(--line-strong);
  }
  /* last child stops the rail at the tick so it does not dangle */
  table.ca tbody tr:last-child td.subcell::before { bottom: auto; height: 21px; }
  /* horizontal tick, aligned to the first text line of the cell */
  table.ca td.subcell::after {
    content: ""; position: absolute; left: 26px; top: 21px; width: 13px; height: 1px;
    background: var(--line-strong);
  }
  .prog-block > h3 {
    font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 9px;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .prog-block > h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
  .ca-group {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    margin-bottom: 10px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
  }
  .ca-group:hover { border-color: var(--line-strong); }
  .ca-group.open { box-shadow: var(--shadow-1); }
  /* two-line group header: identity on top, fingerprint beneath */
  .ca-head { display: flex; flex-direction: column; }
  .ca-root {
    width: 100%;
    display: flex; align-items: center; gap: 10px;
    padding: 13px 18px 9px;
    background: transparent; border: 0; color: inherit;
    font: inherit; text-align: left; cursor: pointer;
  }
  .ca-group:hover .ca-root { background: var(--primary-tint); }
  .ca-root .tw {
    width: 26px; height: 26px; flex: none;
    border: 1px solid var(--line-strong); border-radius: 7px;
    display: grid; place-items: center;
    color: var(--primary);
    transition: background-color 0.25s ease, border-color 0.25s ease;
  }
  .ca-root .tw svg { width: 14px; height: 14px; transition: transform 0.25s ease; }
  .ca-group.open .tw svg { transform: rotate(90deg); }
  .ca-root .rname { font-weight: 600; font-size: 15px; color: var(--ink); }
  .rtags { display: inline-flex; flex-wrap: wrap; gap: 5px; }
  .rtag {
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em;
    color: var(--muted); background: var(--surface-2);
    border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px;
    white-space: nowrap;
  }
  .rtag-more { background: transparent; }
  .rcount { margin-left: auto; color: var(--muted); font-size: 12.5px; white-space: nowrap; padding-left: 12px; }
  /* fingerprint line, indented to sit under the CA name */
  .ca-fpline {
    display: flex; align-items: center; gap: 9px;
    padding: 0 18px 12px 54px;
    font-size: 11px;
  }
  .fp-label {
    font-size: 9.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
    color: var(--muted); flex: none;
  }
  .ca-fpline .rfp {
    color: var(--muted); min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .ca-fpline .copy { margin-left: 2px; }
  .root-actions { margin-left: auto; display: inline-flex; gap: 16px; padding-left: 16px; flex: none; }
  .ca-subs { display: none; border-top: 1px solid var(--line); }
  .ca-group.open .ca-subs { display: block; }
  .ca-group.open .tw { background: var(--primary-tint); border-color: var(--primary); }
  .ca-table-wrap { overflow-x: auto; }
  /* fixed layout makes the colgroup widths authoritative, so the fingerprint
     column can no longer starve the CA name column */
  table.ca { width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed; }
  table.ca col.c-name { width: 30%; }
  table.ca col.c-act { width: 104px; }
  /* the TSU table carries two more columns than the CA table, so its name and
     issuer columns give way to keep the fingerprint on two lines.
     c-date is 128px because a dd-Mmm-yyyy date plus the 18px cell padding
     measures 120px, and a wrapped date reads as two separate values */
  table.ca col.c-tsu-name { width: 22%; }
  table.ca col.c-date { width: 128px; }
  table.ca col.c-issuer { width: 18%; }
  table.ca th {
    text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--muted);
    padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
  }
  table.ca td { padding: 10px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
  table.ca td:first-child { font-weight: 500; }
  table.ca tbody tr:first-child td:first-child { font-weight: 600; }
  table.ca td > div:first-child { color: var(--ink); }
  table.ca tbody tr:last-child td { border-bottom: 0; }
  table.ca tbody tr:hover { background: var(--primary-tint); }
  td.fp { font-size: 11.5px; color: var(--muted); }
  /* the fingerprint wraps within its column so the table never scrolls
     sideways and the full value stays visible next to its Copy button */
  .fp-line { display: flex; align-items: flex-start; gap: 10px; }
  .fp-line .mono { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.5; }
  .copy {
    border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted);
    border-radius: 6px; font-size: 10.5px; font-weight: 500; padding: 2px 9px; cursor: pointer; flex: none;
    transition: color 0.3s ease, border-color 0.3s ease;
  }
  .copy:hover { color: var(--primary); border-color: var(--primary); }
  .dl { text-decoration: none; font-size: 13px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
  .test-links { font-size: 11.5px; color: var(--muted); margin-top: 3px; font-weight: 400; white-space: nowrap; }
  .badge-root {
    font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--primary); background: var(--primary-tint);
    border-radius: 5px; padding: 1px 7px; vertical-align: 1px;
  }
  .badge-pending {
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-border);
    border-radius: 5px; padding: 1px 8px; vertical-align: 1px;
  }
  /* the certificate is the same subject re-issued by another root, so it is
     annotated rather than renamed: the name column stays the true subject CN */
  .badge-cross {
    font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
    border-radius: 5px; padding: 1px 7px; vertical-align: 1px; white-space: nowrap;
  }
  .note {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: var(--warn-ink);
    border-radius: var(--r-card);
    padding: 12px 18px; font-size: 13.5px; margin: 0 0 18px;
  }
  mark { background: var(--accent-tint); color: inherit; border-radius: 3px; padding: 0 2px; }
  .empty {
    display: none;
    color: var(--muted); font-size: 14px;
    background: var(--surface); border: 1px dashed var(--line-strong);
    border-radius: var(--r-card); padding: 18px 20px; margin: 0;
  }
  .empty b { color: var(--ink); font-weight: 600; }
  .empty a { font-weight: 500; }

  /* ---------- Audits ---------- */
  .seal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 900px) { .seal-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .seal-grid { grid-template-columns: 1fr; } }
  .seal {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 4px;
    text-decoration: none; color: inherit;
    text-align: center; align-items: center;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  }
  .seal-img {
    width: 100px; height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
  }
  .seal:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-2px); color: inherit; }
  .seal .s-kind { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
  .seal .s-name { font-weight: 600; font-size: 14.5px; color: var(--ink); }
  .seal .s-link { font-size: 12.5px; font-weight: 500; color: var(--primary); margin-top: 4px; }

  /* ---------- Contact page ---------- */
  .contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 20px; }
  .contact-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px 26px; box-shadow: var(--shadow-1);
    display: flex; flex-direction: column; gap: 10px;
  }
  .contact-card h3 { font-size: 18px; font-weight: 600; }
  .contact-card .c-sub { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
  .contact-card address { font-style: normal; font-size: 14px; color: var(--body); line-height: 1.7; }
  .c-rows { margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 18px 32px; }
  .c-rows > div { display: flex; flex-direction: column; gap: 2px; }
  .c-rows dt {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em;
    text-transform: uppercase; color: var(--muted);
  }
  .c-rows dd { margin: 0; font-size: 15px; font-weight: 500; }
  .c-rows dd a { text-decoration: none; }
  .c-rows dd a:hover { text-decoration: underline; }
  .note-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 24px 26px; max-width: 78ch;
  }
  .offices-note { margin: 22px 2px 0; font-size: 14px; color: var(--muted); }
  .office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 16px; }
  .office-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
    padding: 18px 20px;
    display: flex; flex-direction: column; gap: 5px;
  }
  .office-card h3 { font-size: 15px; font-weight: 600; }
  .office-card .o-entity { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--primary); }
  .office-card address { font-style: normal; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
  .office-card .o-phone { margin: auto 0 0; padding-top: 4px; font-size: 13.5px; font-weight: 500; }
  .office-card .o-phone a { text-decoration: none; }
  .office-card .o-phone a:hover { text-decoration: underline; }
  .note-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
  .note-card p { margin: 0 0 10px; font-size: 14.5px; color: var(--body); }
  .note-card ul { margin: 0 0 14px; padding-left: 20px; font-size: 14.5px; color: var(--body); }
  .note-card li { margin-bottom: 4px; }

  /* ---------- Footer ---------- */
  .site-footer {
    background: linear-gradient(180deg, rgba(225, 239, 254, 0) 0%, var(--footer-tint) 100%);
    color: var(--footer-ink);
  }
  .site-footer .container { padding-top: 44px; padding-bottom: 10px; }
  .foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr 1fr; gap: 30px; font-size: 13.5px; }
  @media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; max-width: 420px; } }
  @media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
  .foot-brand img { display: block; margin-bottom: 14px; height: 40px; width: auto; }
  .foot-brand p { max-width: 34ch; }
  .foot-grid h4 { color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
  .foot-grid .foot-sub { margin-top: 18px; }
  .foot-grid p { margin: 0; }
  .foot-grid ul { margin: 0; padding: 0; list-style: none; }
  .foot-grid li { margin-bottom: 8px; }
  .foot-grid a { color: var(--footer-ink); text-decoration: none; }
  .foot-grid a:hover { color: var(--primary); text-decoration: underline; }
  .foot-social { display: inline-flex; gap: 16px; }
  .foot-social a { color: var(--footer-ink); }
  .foot-social a:hover { color: var(--primary); }
  .foot-social svg { width: 18px; height: 18px; display: block; }
  .foot-bottom {
    border-top: 1px solid var(--line);
    margin-top: 32px; padding: 16px 0 20px;
    display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
    font-size: 12.5px;
  }
  .foot-bottom a { color: var(--footer-ink); }

  .to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: var(--on-primary); border: 1px solid var(--primary);
    font-size: 18px; cursor: pointer;
    box-shadow: var(--shadow-2);
    display: none;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .to-top:hover { background: var(--surface); color: var(--primary); }
  .to-top.show { display: block; }

  noscript .note { display: block; margin: 20px auto; max-width: 1160px; }

  @media (max-width: 860px) {
    .site-nav .nav-cta { padding: 7px 14px; font-size: 13.5px; white-space: nowrap; }
    .logo .byline { display: none; }
    .anchors { display: none; }
    .banner h1 { font-size: 32px; }
    .sec-head h2 { font-size: 25px; }
    .ca-fpline { padding-left: 18px; }
    .ca-fpline .fp-label { display: none; }
    .search-wrap { max-width: none; flex-basis: 100%; }
    /* 16px stops iOS Safari from auto-zooming the page on focus */
    .search-wrap input { font-size: 16px; }
    section { scroll-margin-top: 156px; }
    .program-chips {
      width: 100%; flex-wrap: nowrap; overflow-x: auto;
      padding-bottom: 4px; scrollbar-width: thin;
    }
    .pbtn { flex: none; white-space: nowrap; }
  }
  @media (max-width: 700px) {
    .hero-numbers { flex-wrap: wrap; }
    .bstat { flex: 1 1 50%; padding: 12px 10px; gap: 8px; }
    .bstat:nth-child(2n)::after { display: none; }
    .bstat:last-child:nth-child(odd) { flex-basis: 100%; justify-content: center; }
    .bstat:last-child:nth-child(odd)::after { display: none; }
    .bstat .si { width: 30px; height: 30px; min-width: 30px; border-radius: 8px; }
    .bstat .si svg { width: 15px; height: 15px; }
    .bstat b { font-size: 18px; }
    /* certificate tables stack into cards instead of sideways scrolling.
       The table must drop out of table layout entirely, otherwise the fixed
       layout and colgroup keep constraining the stacked rows. */
    table.ca { display: block; width: 100%; min-width: 0; table-layout: auto; }
    table.ca colgroup { display: none; }
    table.ca thead { display: none; }
    table.ca tbody { display: block; width: 100%; }
    table.ca tbody tr {
      display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
      padding: 12px 16px; border-bottom: 1px solid var(--line);
    }
    table.ca tbody tr:last-child { border-bottom: 0; }
    table.ca td { display: block; padding: 0; border-bottom: 0; }
    table.ca td:first-child, table.ca td.fp { grid-column: 1 / -1; }
    table.ca td[data-label]:not([data-label=""])::before {
      content: attr(data-label);
      display: block;
      font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
      color: var(--muted); margin-bottom: 2px;
    }
    table.ca td.fp .mono { word-break: break-all; white-space: normal; }
    table.ca tbody tr:hover { background: none; }
    /* test endpoint links may wrap once the row is a stacked card */
    .test-links { white-space: normal; }
    /* must match the specificity of the desktop rule (table.ca td.subcell) */
    table.ca td.subcell { padding-left: 0; }
    table.ca td.subcell::before,
    table.ca td.subcell::after { display: none; }
    .fp-line { align-items: flex-start; }
    .copy { padding: 4px 12px; }
    .dl { padding: 3px 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
  }
  @media print {
    .toolbar, .site-nav, .to-top, .search-wrap, .sec-tools, .program-chips { display: none !important; }
    .banner { background: none; color: #000; padding: 10px 0; }
    .banner h1, .banner .lede, .banner-updates li, .banner-updates b, .bstat, .bstat b { color: #000; }
    .hero-numbers, .banner-updates { border: 1px solid #999; background: none; box-shadow: none; }
    .band, .band-wash, .band-cream, .band-lav { background: none; padding: 16px 0; }
    .ca-subs { display: block !important; }
    .history ul { max-height: none; }
    .doc, .ca-group, .seal, .res { box-shadow: none; break-inside: avoid; }
    a { color: #000; text-decoration: none; }
  }
