/* ==========================================================================
   U.S. Recall Registry — design system
   One token set, one component library. Every page pulls from this file.
   Load order: registry.css, then the page's own markup. No page-level CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* Surface + structure */
  --ink-900: #0d1626;   /* top status bar, dark bands */
  --ink-800: #142138;
  --ink-700: #1a2a4a;   /* primary navy: headings, nav, rules */
  --ink-600: #2c3f63;
  --ink-500: #5b6472;   /* secondary text */
  --ink-400: #78818f;   /* tertiary, timestamps */

  --paper:    #ffffff;
  --paper-2:  #f7f8fa;  /* section wash */
  --paper-3:  #eef1f5;  /* filter panels, inset blocks */

  --rule:      #d8dce3; /* standard border */
  --rule-soft: #e7eaf0; /* internal dividers */
  --rule-hard: var(--ink-700);

  /* Severity + agency. Red is reserved for critical hazard and urgent action. */
  --alert:      #c22a22;
  --alert-dark: #9e1b16;
  --alert-wash: #fdf2f1;

  --fda:   #1b5fa8;
  --cpsc:  #9a4a00;
  --nhtsa: #1f6b34;
  --usda:  #5a3b8c;

  --ok:    #1f6b34;
  --warn:  #9a4a00;

  /* Type */
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --t-micro: 0.6875rem;  /* 11px — labels, badges */
  --t-small: 0.75rem;    /* 12px — meta */
  --t-body:  0.875rem;   /* 14px — dense body */
  --t-read:  0.9375rem;  /* 15px — reading body */
  --t-lead:  1.0625rem;
  --t-h3:    1.125rem;
  --t-h2:    1.5rem;
  --t-h1:    2rem;
  --t-display: 2.5rem;

  /* Space — 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px;

  --radius: 2px;        /* square by default; 2px only to soften hairlines */
  --wrap: 1280px;
  --gutter: 32px;

  --bar-status: 34px;
  --row-tools: 40px;        /* height of the Search Database button row */
  --row-agency: 36px;       /* height of the All agencies chip row */
  --head-row-gap: 12px;
  --head-pad-y: 10px;
  /* The brand spans both rows plus the gap between them. */
  --bar-nav: calc(var(--row-tools) + var(--head-row-gap) + var(--row-agency)
                  + (2 * var(--head-pad-y)));
  --safe-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px; --row-tools: 38px; --row-agency: 34px;
    --t-display: 1.75rem; --t-h1: 1.5rem; --t-h2: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. Reset + base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--s-4);
}

body {
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--paper-2);
  color: var(--ink-700);
  font-family: var(--font-ui);
  font-size: var(--t-read);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
p { margin: 0; }
img, svg { max-width: 100%; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--s-4); }

.u-hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

:focus-visible { outline: 2px solid var(--alert); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute; left: var(--s-2); top: -60px; z-index: 300;
  background: var(--paper); color: var(--ink-700);
  border: 2px solid var(--ink-700); padding: var(--s-3) var(--s-4);
  font-size: var(--t-body); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(var(--safe-top) + var(--s-2)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Header — status bar, primary nav, agency filter
   -------------------------------------------------------------------------- */
.site-head { position: relative; z-index: 100; }

.statusbar {
  background: var(--ink-900);
  color: rgba(255,255,255,0.82);
  padding-top: var(--safe-top);
  font-size: var(--t-small);
}
.statusbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  min-height: var(--bar-status);
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
}
.statusbar__live {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: #fff; font-weight: 700; font-size: var(--t-micro);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--alert);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: 0.3 } }
.statusbar__sep { color: rgba(255,255,255,0.28); }
.statusbar__item { white-space: nowrap; }
.statusbar__count { color: #fff; font-weight: 600; }

/* The tool row and the agency row share one grid so the brand can occupy
   both. Row heights are explicit rather than content-derived: an element that
   spans auto-sized rows while asking for height:100% is circular, and the
   browser resolves it by falling back to the SVG's intrinsic size — which is
   what a cap like 54px was papering over. Fixed rows make 100% resolvable. */
.headbar { background: var(--paper); border-bottom: 1px solid var(--rule); }
.headbar__inner {
  max-width: var(--wrap); margin: 0 auto;
  padding: var(--head-pad-y) var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: var(--row-tools) var(--row-agency);
  column-gap: var(--s-6);
  row-gap: var(--head-row-gap);
  align-items: center;
}

/* Spans both rows, so its box runs from the top edge of the tool buttons to
   the bottom edge of the agency chips. */
.brand {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  display: block;
  line-height: 0;          /* no text line reserved under the inline SVG */
  text-decoration: none;
  min-width: 0;
}
.brand__logo { display: block; height: 100%; width: auto; }
.brand__logo--compact { display: none; }
/* object-fit keeps the supplied artwork's proportions exactly as drawn,
   whatever box the grid gives it. */
img.brand__logo { object-fit: contain; object-position: left center; }

/* Outside the header grid the brand has no definite height, so height:100%
   would resolve to the SVG's intrinsic size. The footer sets its own. */
/* The one white area in the footer. The logo and the description sit side by
   side inside it; everything else in the footer stays on the dark ground. */
.foot__brand {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  background: #fff;
  padding: var(--s-6) var(--s-8);
  margin-bottom: var(--s-8);
  border-radius: var(--radius);
}
.site-foot .brand { display: inline-block; align-self: center; flex-shrink: 0; }
.site-foot .brand__logo { height: 92px; }

.foot__brandtext { min-width: 0; }
/* Dark text, because this block alone has a light background. */
.foot__brandtext p { font-size: var(--t-body); color: var(--ink-600); max-width: 68ch; }
.foot__brandtext p + p { margin-top: var(--s-3); }
.foot__polling { color: var(--ink-500); }
.foot__polling em { font-style: normal; color: var(--ok); font-weight: 600; }

@media (max-width: 760px) {
  .foot__brand { flex-direction: column; align-items: flex-start; gap: var(--s-5); padding: var(--s-5); }
  .site-foot .brand__logo { height: 64px; }
}

.toolnav {
  grid-column: 2; grid-row: 1;
  justify-self: end; align-self: center;
  display: flex; align-items: stretch; gap: var(--s-2);
}
.toolnav__item {
  display: flex; align-items: center; gap: var(--s-2);
  height: var(--row-tools);        /* buttons define the top boundary */
  padding: 0 var(--s-4);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-700);
  font-size: var(--t-body); font-weight: 500; text-decoration: none;
  white-space: nowrap;
}
.toolnav__item:hover { border-color: var(--ink-700); background: var(--paper-2); }
.toolnav__item[aria-current="page"] { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.toolnav__item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.agencybar__inner {
  grid-column: 2; grid-row: 2;
  justify-self: end; align-self: center;
  display: flex; gap: var(--s-2); flex-wrap: nowrap;
}
.agencychip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: var(--row-agency);       /* chips define the bottom boundary */
  padding: 0 var(--s-3);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-600);
  font-size: var(--t-body); font-weight: 600; font-family: inherit;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.agencychip:hover { border-color: var(--ink-700); color: var(--ink-700); }
.agencychip[aria-pressed="true"] { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.agencychip__n { font-size: var(--t-small); font-weight: 600; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.agencychip[aria-pressed="true"] .agencychip__n { color: rgba(255,255,255,0.75); }

.navtoggle {
  display: none; align-items: center; gap: var(--s-2);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: var(--s-2) var(--s-3); font-family: inherit; font-size: var(--t-body);
  font-weight: 600; color: var(--ink-700); cursor: pointer;
}

@media (max-width: 1080px) {
  .toolnav__item span { display: none; }
  .toolnav__item { padding: var(--s-2) var(--s-3); }
}
@media (max-width: 760px) {
  .headbar__inner { position: relative; grid-template-columns: auto 1fr; }
  .navtoggle { display: inline-flex; grid-column: 2; grid-row: 1; justify-self: end; }
  .toolnav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    z-index: 20;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--rule); padding: var(--s-2);
  }
  .toolnav.is-open { display: flex; }
  .toolnav__item { height: auto; border: none; border-bottom: 1px solid var(--rule-soft); justify-content: flex-start; padding: var(--s-3); }
  .toolnav__item span { display: inline; }

  /* With the tool row collapsed there is nothing to span, so the wordmark
     gives way to the mark on a single row. */
  .brand { grid-row: 1; align-self: center; }
  .brand__logo { display: none; }
  .brand__logo--compact { display: block; height: var(--row-tools); width: auto; }

  .agencybar__inner {
    grid-column: 1 / -1; grid-row: 2;
    justify-self: stretch; justify-content: flex-start;
    overflow-x: auto;
  }
  .statusbar__item--long { display: none; }
}

/* --------------------------------------------------------------------------
   4. Urgent alert strip
   -------------------------------------------------------------------------- */
.urgent {
  background: var(--alert); color: #fff;
  border-top: 1px solid var(--alert-dark); border-bottom: 1px solid var(--alert-dark);
}
.urgent__inner {
  max-width: var(--wrap); margin: 0 auto; padding: var(--s-3) var(--gutter);
  display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap;
}
.urgent__tag {
  display: inline-flex; align-items: center; gap: var(--s-2);
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.4);
  padding: 2px var(--s-2); border-radius: var(--radius);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.urgent__body { flex: 1 1 320px; font-size: var(--t-body); min-width: 0; }
.urgent__agency { font-weight: 700; }
.urgent__impact { color: rgba(255,255,255,0.85); }
.urgent__cta {
  background: #fff; color: var(--alert-dark); border: 1px solid #fff;
  border-radius: var(--radius); padding: var(--s-2) var(--s-4);
  font-size: var(--t-body); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.urgent__cta:hover { background: var(--alert-wash); }
.urgent__close {
  background: transparent; border: none; color: rgba(255,255,255,0.8);
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: var(--s-1) var(--s-2);
}
.urgent__close:hover { color: #fff; }

/* --------------------------------------------------------------------------
   5. Section furniture
   -------------------------------------------------------------------------- */
.section { padding: var(--s-12) 0; }
.section--wash { background: var(--paper-2); }
.section--paper { background: var(--paper); }

.sectionhead {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-6); flex-wrap: wrap;
  border-bottom: 2px solid var(--rule-hard);
  padding-bottom: var(--s-3); margin-bottom: var(--s-6);
}
.sectionhead__eyebrow {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-700); margin-bottom: var(--s-2);
}
.sectionhead__eyebrow::before {
  content: ""; width: 10px; height: 10px; background: var(--alert); flex-shrink: 0;
}
.sectionhead h2 { font-size: var(--t-h2); }
.sectionhead p { font-size: var(--t-body); color: var(--ink-500); margin-top: var(--s-2); max-width: 70ch; }
.sectionhead__meta { font-size: var(--t-small); color: var(--ink-400); white-space: nowrap; }

/* --------------------------------------------------------------------------
   6. Badges, severity, agency marks
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 3px var(--s-2); border-radius: var(--radius);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; white-space: nowrap;
}
.badge--critical { background: var(--alert); color: #fff; }
.badge--high     { background: var(--warn); color: #fff; }
.badge--moderate { background: var(--paper-3); color: var(--ink-700); border: 1px solid var(--rule); }
.badge--low      { background: var(--paper-3); color: var(--ink-500); border: 1px solid var(--rule); }
.badge--ghost    { background: var(--paper-3); color: var(--ink-600); border: 1px solid var(--rule); font-weight: 600; }

.agencytag {
  display: inline-flex; align-items: center;
  padding: 3px var(--s-2); border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--paper-3);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.04em; color: var(--ink-700);
}
[data-agency="FDA"]   .agencytag { color: var(--fda); }
[data-agency="CPSC"]  .agencytag { color: var(--cpsc); }
[data-agency="NHTSA"] .agencytag { color: var(--nhtsa); }
[data-agency="USDA"]  .agencytag { color: var(--usda); }

.docket {
  font-family: var(--font-mono); font-size: var(--t-small);
  color: var(--ink-600); background: var(--paper-3);
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 2px var(--s-2);
}

/* Severity is conveyed by text, not colour alone (WCAG 1.4.1). */
.sev-rail { width: 4px; align-self: stretch; background: var(--rule); flex-shrink: 0; }
[data-severity="critical"] .sev-rail { background: var(--alert); }
[data-severity="high"]     .sev-rail { background: var(--warn); }
[data-severity="moderate"] .sev-rail { background: var(--fda); }
[data-severity="low"]      .sev-rail { background: var(--rule); }

/* --------------------------------------------------------------------------
   7. Briefing (lead record) + dispatch wire
   -------------------------------------------------------------------------- */
.briefing { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.briefing__lead { padding: var(--s-8); border-right: 1px solid var(--rule); min-width: 0; }
.briefing__side { background: var(--paper-2); min-width: 0; }

.lead__topline { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.lead__time { font-size: var(--t-small); color: var(--ink-400); }
.lead__title { font-size: var(--t-display); line-height: 1.15; margin-bottom: var(--s-4); }
.lead__firm { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: var(--t-body); color: var(--ink-600); margin-bottom: var(--s-2); }
.lead__firm strong { color: var(--ink-700); font-weight: 600; }
.lead__impact { font-size: var(--t-body); color: var(--ink-500); margin-bottom: var(--s-5); }

.lead__hazard { border-top: 1px solid var(--rule-soft); padding-top: var(--s-4); margin-bottom: var(--s-5); }
.lead__label {
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); display: block; margin-bottom: var(--s-2);
}
.lead__hazard p { font-size: var(--t-read); color: var(--ink-700); }

.directive {
  border-left: 4px solid var(--alert); background: var(--alert-wash);
  padding: var(--s-4) var(--s-5); margin-bottom: var(--s-5);
}
.directive__head {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--alert-dark); margin-bottom: var(--s-2);
}
.directive p { font-size: var(--t-body); color: var(--ink-700); }

.wire__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--rule);
}
.wire__title {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.wire__title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.wire__more { font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); text-decoration: none; }
.wire__more:hover { color: var(--ink-700); }

.wire__list { list-style: none; margin: 0; padding: 0; }
.wire__item { border-bottom: 1px solid var(--rule-soft); }
.wire__link { display: block; padding: var(--s-4) var(--s-5); text-decoration: none; }
.wire__link:hover { background: var(--paper); }
.wire__meta { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-2); }
.wire__age { margin-left: auto; font-size: var(--t-small); color: var(--ink-400); white-space: nowrap; }
.wire__headline { font-size: var(--t-body); font-weight: 600; color: var(--ink-700); margin-bottom: var(--s-1); }
.wire__firm { font-size: var(--t-small); color: var(--ink-500); }
.wire__sev { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
[data-severity="critical"] .wire__sev { color: var(--alert); }
[data-severity="high"] .wire__sev { color: var(--warn); }

@media (max-width: 1000px) {
  .briefing { grid-template-columns: 1fr; }
  .briefing__lead { border-right: none; border-bottom: 1px solid var(--rule); padding: var(--s-6); }
}

/* --------------------------------------------------------------------------
   8. Ledger — the continuous dossier list
   -------------------------------------------------------------------------- */
.ledger { border: 1px solid var(--rule); background: var(--paper); }
.ledger__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--rule);
  background: var(--paper-2); flex-wrap: wrap;
}
.ledger__title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ledger__title::before { content: ""; width: 10px; height: 10px; background: var(--ink-700); }
.ledger__tools { display: flex; gap: var(--s-2); flex-wrap: wrap; }

.viewtoggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.viewtoggle button {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); background: var(--paper); border: none;
  font-family: inherit; font-size: var(--t-body); font-weight: 600; color: var(--ink-600); cursor: pointer;
}
.viewtoggle button + button { border-left: 1px solid var(--rule); }
.viewtoggle button[aria-pressed="true"] { background: var(--ink-700); color: #fff; }
.viewtoggle svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-4); border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink-700);
  font-family: inherit; font-size: var(--t-body); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { border-color: var(--ink-700); background: var(--paper-2); }
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.btn--solid { background: var(--ink-700); color: #fff; border-color: var(--ink-700); }
.btn--solid:hover { background: var(--ink-800); color: #fff; }
.btn--alert { background: var(--alert); color: #fff; border-color: var(--alert); }
.btn--alert:hover { background: var(--alert-dark); border-color: var(--alert-dark); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Dossier row */
.dossier {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  gap: var(--s-6);
  padding: var(--s-6);
  border-bottom: 1px solid var(--rule-soft);
}
.dossier:last-child { border-bottom: none; }
.dossier:hover { background: var(--paper-2); }

.dossier__rail { min-width: 0; font-size: var(--t-small); color: var(--ink-500); }
.dossier__ids { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-3); }
.dossier__date { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); color: var(--ink-600); }
.dossier__date svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; flex-shrink: 0; }
.dossier__rail dl { margin: 0; }
.dossier__rail dt { font-size: var(--t-micro); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); margin-top: var(--s-2); }
.dossier__rail dd { margin: 0; color: var(--ink-600); }

.dossier__main { min-width: 0; }
.dossier__firm { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; font-size: var(--t-body); color: var(--ink-600); margin-bottom: var(--s-1); }
.dossier__firm strong { color: var(--ink-700); font-weight: 600; }
.dossier__cat { font-size: var(--t-small); color: var(--ink-500); margin-bottom: var(--s-2); }
.dossier__title { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.dossier__title a { text-decoration: none; }
.dossier__title a:hover { color: var(--fda); text-decoration: underline; }
.dossier__summary { font-size: var(--t-body); color: var(--ink-600); margin-bottom: var(--s-3); max-width: 78ch; }
.dossier__dist { font-size: var(--t-body); color: var(--ink-500); }
.dossier__dist strong { color: var(--ink-700); font-weight: 600; }

.dossier__action { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2); }
.dossier__remedy { font-size: var(--t-small); color: var(--ink-500); }
.dossier__remedy strong { color: var(--ink-700); font-weight: 700; }
.dossier__srcnote { font-size: var(--t-micro); color: var(--ink-400); }

@media (max-width: 1100px) {
  .dossier { grid-template-columns: 200px minmax(0,1fr); }
  .dossier__action { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; text-align: left; }
}
@media (max-width: 760px) {
  .dossier { grid-template-columns: 1fr; gap: var(--s-4); padding: var(--s-5) var(--s-4); }
  .dossier__rail { order: 2; border-top: 1px solid var(--rule-soft); padding-top: var(--s-3); }
  .dossier__main { order: 1; }
  .dossier__action { order: 3; }
}

/* Table view */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ledgertable { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.ledgertable caption { text-align: left; padding: var(--s-3) var(--s-4); color: var(--ink-500); font-size: var(--t-small); }
.ledgertable th, .ledgertable td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.ledgertable th { background: var(--paper-2); font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-500); white-space: nowrap; position: sticky; top: 0; }
.ledgertable tbody tr:hover { background: var(--paper-2); }
.ledgertable a { color: var(--fda); }

/* --------------------------------------------------------------------------
   9. States — loading, empty, unavailable
   -------------------------------------------------------------------------- */
.state { padding: var(--s-10) var(--s-6); text-align: center; background: var(--paper); }
.state__title { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.state__body { font-size: var(--t-body); color: var(--ink-500); max-width: 62ch; margin: 0 auto var(--s-4); }
.state--error { border-left: 4px solid var(--alert); text-align: left; }
.state--error .state__body { margin-left: 0; }

.skel { padding: var(--s-6); border-bottom: 1px solid var(--rule-soft); }
.skel span { display: block; height: 11px; background: var(--rule-soft); margin-bottom: var(--s-3); }
.skel span:nth-child(1) { width: 26%; }
.skel span:nth-child(2) { width: 68%; height: 16px; }
.skel span:nth-child(3) { width: 84%; }
.skel span:nth-child(4) { width: 42%; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Search panel
   -------------------------------------------------------------------------- */
.searchpanel { border: 1px solid var(--rule); background: var(--paper-3); padding: var(--s-6); }
.modetabs { display: flex; gap: 0; border: 1px solid var(--rule); background: var(--paper); border-radius: var(--radius); width: fit-content; max-width: 100%; overflow-x: auto; }
.modetab {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5); background: transparent; border: none;
  font-family: inherit; font-size: var(--t-body); font-weight: 600; color: var(--ink-600);
  cursor: pointer; white-space: nowrap;
}
.modetab + .modetab { border-left: 1px solid var(--rule); }
.modetab[aria-selected="true"] { background: var(--ink-700); color: #fff; }
.modetab svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.searchpanel__hint { font-size: var(--t-body); color: var(--ink-600); margin: var(--s-4) 0 var(--s-3); font-weight: 500; }

.searchfield { display: flex; border: 1px solid var(--ink-500); background: var(--paper); border-radius: var(--radius); }
.searchfield__icon { display: flex; align-items: center; padding-left: var(--s-4); color: var(--ink-400); }
.searchfield__icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.searchfield input {
  flex: 1; min-width: 0; padding: var(--s-4); border: none; background: transparent;
  font-family: inherit; font-size: var(--t-read); color: var(--ink-700);
}
.searchfield input::placeholder { color: var(--ink-400); }
.searchfield input:focus { outline: none; }
.searchfield:focus-within { border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.searchfield button { border-radius: 0; }

.filterrow {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4);
  margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--rule);
}
.field label {
  display: block; font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--s-2);
}
.field select, .field input[type="date"] {
  width: 100%; padding: var(--s-3); border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); font-family: inherit; font-size: var(--t-body); color: var(--ink-700);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }

.resultcount { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--rule); font-size: var(--t-body); color: var(--ink-500); }
.resultcount strong { color: var(--ink-700); font-weight: 700; }

@media (max-width: 900px) { .filterrow { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .filterrow { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   11. Stats
   -------------------------------------------------------------------------- */
.statgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.stat { padding: var(--s-6); border-right: 1px solid var(--rule-soft); }
.stat:last-child { border-right: none; }
.stat__label { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--s-2); }
.stat__value { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat__note { font-size: var(--t-small); color: var(--ink-400); margin-top: var(--s-2); }
@media (max-width: 860px) {
  .statgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--rule-soft); }
}

/* --------------------------------------------------------------------------
   12. Category grid
   -------------------------------------------------------------------------- */
.catgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.cat { padding: var(--s-6); border-right: 1px solid var(--rule-soft); text-decoration: none; display: block; }
.cat:last-child { border-right: none; }
.cat:hover { background: var(--paper-2); }
.cat__icon { margin-bottom: var(--s-4); }
.cat__icon svg { width: 26px; height: 26px; stroke: var(--ink-700); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cat__name { font-size: var(--t-h3); margin-bottom: var(--s-1); }
.cat__n { font-size: var(--t-body); color: var(--ink-500); font-variant-numeric: tabular-nums; }
.cat__go { font-size: var(--t-body); font-weight: 600; color: var(--fda); margin-top: var(--s-3); display: inline-block; }
@media (max-width: 860px) {
  .catgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cat:nth-child(2) { border-right: none; }
  .cat:nth-child(1), .cat:nth-child(2) { border-bottom: 1px solid var(--rule-soft); }
}
@media (max-width: 480px) {
  .catgrid { grid-template-columns: 1fr; }
  .cat { border-right: none; border-bottom: 1px solid var(--rule-soft); }
}

/* --------------------------------------------------------------------------
   12b. Alerts call-to-action
   Two sizes. The full banner carries a section on its own; the slim one runs
   inside the header and footer, where a full-height block four times on one
   page would be noise rather than emphasis.
   -------------------------------------------------------------------------- */
.ctaband {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--alert);
  background: var(--paper);
  padding: var(--s-6) var(--s-5);
  text-align: center;
}
.ctaband__title { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.ctaband__dek { font-size: var(--t-body); color: var(--ink-500); max-width: 58ch; margin: 0 auto var(--s-4); }
.ctaband__actions { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }
.ctaband__primary {
  display: inline-flex; align-items: center; gap: var(--s-2);
  height: 38px; padding: 0 var(--s-5);
  background: var(--ink-700); color: #fff; border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  font-size: var(--t-body); font-weight: 600; text-decoration: none;
}
.ctaband__primary svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.ctaband__primary:hover { background: var(--ink-800); color: #fff; }
.ctaband__secondary {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 var(--s-5);
  background: var(--paper); color: var(--ink-700); border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  font-size: var(--t-body); font-weight: 600; text-decoration: none;
}
.ctaband__secondary:hover { background: var(--paper-2); }

/* Slim variant: one row, used in the header and footer. */
.ctaband--slim {
  display: flex; align-items: center; justify-content: center;
  gap: var(--s-4) var(--s-5); flex-wrap: wrap;
  text-align: left;
  padding: var(--s-3) var(--gutter);
  border: none; border-top: none;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-3);
}
.ctaband--slim .ctaband__title { font-size: var(--t-body); font-weight: 700; margin: 0; }
.ctaband--slim .ctaband__dek { font-size: var(--t-body); margin: 0; max-width: none; }
.ctaband--slim .ctaband__actions { margin: 0; }
.ctaband--slim .ctaband__primary { height: 32px; padding: 0 var(--s-4); font-size: var(--t-small); }
.ctaband--slim .ctaband__primary svg { width: 13px; height: 13px; }
.ctaband--slim .ctaband__secondary { display: none; }

.site-foot .ctaband--slim {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  margin-bottom: var(--s-8);
  padding: var(--s-4) var(--s-5);
}
.site-foot .ctaband--slim .ctaband__title { color: #fff; }
.site-foot .ctaband--slim .ctaband__dek { color: rgba(255,255,255,0.78); }
.site-foot .ctaband__primary { background: var(--alert); border-color: var(--alert); }
.site-foot .ctaband__primary:hover { background: var(--alert-dark); border-color: var(--alert-dark); }

@media (max-width: 600px) {
  .ctaband--slim { justify-content: flex-start; }
  .ctaband__actions { width: 100%; }
}

/* --------------------------------------------------------------------------
   13. Recall alert enrollment
   -------------------------------------------------------------------------- */
.enroll { border: 1px solid var(--rule); background: var(--paper); max-width: 760px; }
.enroll__head { padding: var(--s-5) var(--s-6); border-bottom: 2px solid var(--rule-hard); }
.enroll__title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-h3); }
.enroll__title svg { width: 18px; height: 18px; stroke: var(--alert); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.enroll__dek { font-size: var(--t-body); color: var(--ink-500); margin-top: var(--s-2); }

.step { padding: var(--s-6); border-bottom: 1px solid var(--rule-soft); }
.step:last-of-type { border-bottom: none; }
.step__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.step__num {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%;
  background: var(--ink-700); color: #fff;
  font-size: var(--t-micro); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.step__label { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-700); }

/* Option cards. The whole card is the label, so the hit area is the card. */
.optgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-3); }
.optlist { display: flex; flex-direction: column; gap: var(--s-3); }
.opt {
  display: grid; grid-template-columns: 18px minmax(0,1fr); gap: var(--s-3);
  align-items: start;
  padding: var(--s-4);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); cursor: pointer;
}
.opt:hover { border-color: var(--ink-600); background: var(--paper-2); }
.opt.is-selected { border-color: var(--ink-700); background: rgba(26,42,74,0.05); box-shadow: inset 2px 0 0 var(--ink-700); }
.opt input { width: 18px; height: 18px; margin: 2px 0 0; cursor: pointer; accent-color: var(--ink-700); }
.opt__name { font-size: var(--t-body); font-weight: 600; color: var(--ink-700); }
.opt__hint { font-size: var(--t-small); color: var(--ink-500); margin-top: 2px; }
.opt:focus-within { outline: 2px solid var(--alert); outline-offset: 2px; }

.enroll__field { padding: 0 var(--s-6) var(--s-6); }
.enroll__field input[type="email"] {
  width: 100%; padding: var(--s-4);
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); font-family: inherit; font-size: var(--t-read); color: var(--ink-700);
}
.enroll__field input[type="email"]:focus { outline: none; border-color: var(--alert); box-shadow: 0 0 0 1px var(--alert); }
.enroll__note { font-size: var(--t-small); color: var(--ink-500); margin-top: var(--s-2); }

.enroll__submit {
  width: 100%; padding: var(--s-4);
  background: var(--ink-700); color: #fff; border: 1px solid var(--ink-700);
  border-radius: var(--radius);
  font-family: inherit; font-size: var(--t-read); font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
}
.enroll__submit:hover { background: var(--ink-800); }
.enroll__submit[disabled] { opacity: 0.6; cursor: progress; }

.enroll__msg { font-size: var(--t-body); font-weight: 600; margin-top: var(--s-3); min-height: 1.4em; text-align: center; }
.enroll__msg[data-state="ok"] { color: var(--ok); }
.enroll__msg[data-state="err"] { color: var(--alert-dark); }
.enroll__fine { font-size: var(--t-small); color: var(--ink-400); text-align: center; padding: 0 var(--s-6) var(--s-6); }
.enroll__fine a { color: var(--ink-500); }

@media (max-width: 640px) {
  .optgrid { grid-template-columns: 1fr; }
  .step, .enroll__field, .enroll__head { padding-left: var(--s-4); padding-right: var(--s-4); }
}

/* --------------------------------------------------------------------------
   14. Explainer columns (classifications / rights / reporting)
   -------------------------------------------------------------------------- */
.explaingrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-5); }
.explain { border: 1px solid var(--rule); background: var(--paper); padding: var(--s-6); }
.explain--dark { background: var(--ink-900); border-color: var(--ink-800); color: rgba(255,255,255,0.88); }
.explain__eyebrow { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-bottom: var(--s-3); }
.explain--dark .explain__eyebrow { color: var(--alert); }
.explain h3 { font-size: var(--t-h3); margin-bottom: var(--s-4); }
.explain--dark h3 { color: #fff; }
.explain p { font-size: var(--t-body); color: var(--ink-600); }
.explain--dark p { color: rgba(255,255,255,0.8); }

.tier { border-left: 4px solid var(--rule); background: var(--paper-2); padding: var(--s-3) var(--s-4); margin-top: var(--s-3); }
.tier--i { border-left-color: var(--alert); background: var(--alert-wash); }
.tier--ii { border-left-color: var(--ink-700); }
.tier__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.tier__name { font-size: var(--t-body); font-weight: 700; }
.tier--i .tier__name { color: var(--alert-dark); }
.tier p { font-size: var(--t-body); color: var(--ink-600); }

.rights { list-style: none; margin: 0; padding: 0; }
.rights li { padding-top: var(--s-4); }
.rights li + li { border-top: 1px solid var(--rule-soft); }
.rights__title { font-size: var(--t-body); font-weight: 700; margin-bottom: var(--s-1); }
.rights__cite { font-size: var(--t-small); color: var(--ink-400); margin-top: var(--s-2); font-style: normal; display: block; }

.reportlist { list-style: none; margin: 0; padding: 0; }
.reportlist li + li { margin-top: var(--s-3); }
.reportlist a { display: block; padding: var(--s-3) var(--s-4); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); text-decoration: none; }
.reportlist a:hover { background: rgba(255,255,255,0.12); }
.reportlist strong { display: block; color: #fff; font-size: var(--t-body); }
.reportlist span { font-size: var(--t-small); color: rgba(255,255,255,0.7); }

@media (max-width: 1000px) { .explaingrid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   15. Sources band
   -------------------------------------------------------------------------- */
.sources { background: var(--ink-900); color: rgba(255,255,255,0.85); padding: var(--s-10) 0; border-top: 3px solid var(--alert); }
.sources__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-bottom: var(--s-4); border-bottom: 1px solid rgba(255,255,255,0.14); margin-bottom: var(--s-5); }
.sources__title { display: flex; align-items: center; gap: var(--s-2); font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
.sources__note { font-size: var(--t-small); color: rgba(255,255,255,0.6); }
.sources__grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); }
.source { display: block; padding: var(--s-4); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); background: rgba(255,255,255,0.04); text-decoration: none; }
.source:hover { background: rgba(255,255,255,0.09); }
.source__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-2); }
.source__abbr { font-size: var(--t-h3); font-weight: 800; color: #fff; }
.source__top svg { width: 14px; height: 14px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.8; }
.source__name { font-size: var(--t-body); color: rgba(255,255,255,0.86); margin-bottom: var(--s-1); }
.source__stat { font-size: var(--t-small); color: rgba(255,255,255,0.55); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .sources__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .sources__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-foot { background: var(--ink-900); color: rgba(255,255,255,0.72); padding: var(--s-12) 0 var(--s-6); }
.foot__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--s-10); padding-bottom: var(--s-8); border-bottom: 1px solid rgba(255,255,255,0.14); }
.foot__about p { font-size: var(--t-body); color: rgba(255,255,255,0.72); margin-bottom: var(--s-4); max-width: 46ch; }
.foot__kv { font-size: var(--t-body); margin-bottom: var(--s-1); }
.foot__kv strong { color: #fff; font-weight: 600; }
.foot__kv em { font-style: normal; color: var(--ok); font-weight: 600; }
.foot h4 { font-size: var(--t-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; padding-bottom: var(--s-3); border-bottom: 1px solid rgba(255,255,255,0.18); margin-bottom: var(--s-3); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.foot li a { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; font-size: var(--t-body); text-decoration: none; color: rgba(255,255,255,0.78); }
.foot li a:hover { color: #fff; }
.foot li a span { font-size: var(--t-small); color: rgba(255,255,255,0.45); white-space: nowrap; }

.disclosure { padding: var(--s-6) 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
.disclosure h4 { border: none; padding: 0; margin-bottom: var(--s-3); }
.disclosure p { font-size: var(--t-body); color: rgba(255,255,255,0.8); margin-bottom: var(--s-3); max-width: 100ch; }
.disclosure strong { color: #fff; }
.disclosure p:last-child { font-size: var(--t-small); color: rgba(255,255,255,0.55); margin-bottom: 0; }

.foot__base { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding-top: var(--s-5); font-size: var(--t-small); color: rgba(255,255,255,0.5); }
@media (max-width: 900px) { .foot__grid { grid-template-columns: 1fr; gap: var(--s-8); } }

/* --------------------------------------------------------------------------
   17. Pagination
   -------------------------------------------------------------------------- */
.pager { display: flex; justify-content: center; align-items: center; gap: var(--s-2); padding: var(--s-6); flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 var(--s-3); border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-600); font-size: var(--t-body); text-decoration: none;
}
.pager a:hover { border-color: var(--ink-700); color: var(--ink-700); }
.pager [aria-current="page"] { background: var(--ink-700); color: #fff; border-color: var(--ink-700); font-weight: 700; }
.pager .is-disabled { opacity: 0.4; pointer-events: none; }

/* --------------------------------------------------------------------------
   18. Detail page
   -------------------------------------------------------------------------- */
.crumbs { font-size: var(--t-small); color: var(--ink-500); padding: var(--s-4) 0; }
.crumbs a { color: var(--ink-600); }
.crumbs span { margin: 0 var(--s-2); color: var(--rule); }

.record { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: var(--s-8); align-items: start; }
.record__head { border-bottom: 2px solid var(--rule-hard); padding-bottom: var(--s-5); margin-bottom: var(--s-6); }
.record__title { font-size: var(--t-display); margin: var(--s-3) 0; }
.record__section { border-top: 1px solid var(--rule); padding-top: var(--s-5); margin-top: var(--s-6); }
.record__section h2 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.record__section p { font-size: var(--t-read); color: var(--ink-700); }

.factsheet { border: 1px solid var(--rule); background: var(--paper); position: sticky; top: var(--s-5); }
.factsheet h2 { font-size: var(--t-micro); letter-spacing: 0.08em; text-transform: uppercase; padding: var(--s-4); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.factsheet dl { margin: 0; padding: var(--s-4); }
.factsheet dt { font-size: var(--t-micro); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-400); margin-top: var(--s-4); }
.factsheet dt:first-child { margin-top: 0; }
.factsheet dd { margin: var(--s-1) 0 0; font-size: var(--t-body); color: var(--ink-700); word-break: break-word; }

.provenance { border-left: 4px solid var(--fda); background: var(--paper-3); padding: var(--s-4) var(--s-5); font-size: var(--t-body); color: var(--ink-600); }
.provenance strong { color: var(--ink-700); }

@media (max-width: 1000px) {
  .record { grid-template-columns: 1fr; }
  .factsheet { position: static; }
}

/* --------------------------------------------------------------------------
   19. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-head, .urgent, .site-foot, .enrol, .ledger__tools, .pager, .skip-link, .sources { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .dossier { break-inside: avoid; border-bottom: 1px solid #999; }
  .ledger { border-color: #999; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* --------------------------------------------------------------------------
   20. Featured recall cards
   Fixed min-height so the column does not jump as cards rotate.
   -------------------------------------------------------------------------- */
.featured-shell { border: 1px solid var(--rule); background: var(--paper); border-top: 3px solid var(--alert); min-height: 328px; position: relative; }
.featured { padding: var(--s-6); }
.featured__head { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.featured__date { font-size: var(--t-small); color: var(--ink-400); margin-left: auto; font-variant-numeric: tabular-nums; }
.featured__title { font-size: 1.5rem; line-height: 1.25; margin-bottom: var(--s-2); }
.featured__title a { text-decoration: none; }
.featured__title a:hover { color: var(--alert-dark); }
.featured__firm { font-size: var(--t-body); font-weight: 600; color: var(--ink-600); margin-bottom: var(--s-3); }
.featured__reason { font-size: var(--t-body); color: var(--ink-600); margin-bottom: var(--s-4); max-width: 68ch; }
.featured__foot { display: flex; gap: var(--s-4); flex-wrap: wrap; font-size: var(--t-small); color: var(--ink-500); margin-bottom: var(--s-5); }
.featured__nav { display: flex; gap: var(--s-2); padding: 0 var(--s-6) var(--s-5); }
.featured__dot { width: 30px; height: 4px; border: none; padding: 0; background: var(--rule); cursor: pointer; }
.featured__dot[aria-current="true"] { background: var(--alert); }
.featured__dot:hover { background: var(--ink-500); }

@media (max-width: 1000px) {
  .featured-shell { min-height: 0; }
}

/* --------------------------------------------------------------------------
   21. Featured resources and paid placements
   -------------------------------------------------------------------------- */
/* Two equal columns, so the pair reads as a matched set rather than a stack. */
.resource-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-5);
}
.resource {
  border: 1px solid var(--rule); background: var(--paper);
  width: 100%; overflow: hidden;
  display: flex; flex-direction: column;   /* equal heights across the row */
  height: 100%;
}
.resource__art { display: block; width: 100%; height: 132px; object-fit: cover; }
.resource__body { padding: var(--s-5); display: flex; flex-direction: column; flex: 1; }
.resource__cta { margin-top: auto; }   /* links align across both cards */
.resource__title { font-size: var(--t-h3); font-weight: 700; margin-bottom: var(--s-1); }
.resource__line { font-size: var(--t-body); color: var(--ink-500); margin-bottom: var(--s-3); }
.resource__cta { font-size: var(--t-body); font-weight: 600; color: var(--fda); text-decoration: none; }
.resource__cta:hover { text-decoration: underline; }

.adslot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-2); padding: var(--s-3);
  border: 1px dashed var(--rule); background: var(--paper-2);
}
.adslot__label { font-size: var(--t-micro); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-400); }
.adslot__inner { width: 100%; display: flex; align-items: center; justify-content: center; }

/* --------------------------------------------------------------------------
   22. Show more
   -------------------------------------------------------------------------- */
.showmore { padding: var(--s-5); text-align: center; border-top: 1px solid var(--rule-soft); background: var(--paper-2); }
.showmore button { min-width: 240px; }
.dossier:focus { outline: 2px solid var(--alert); outline-offset: -2px; }

/* --------------------------------------------------------------------------
   23. Last-checked strip
   -------------------------------------------------------------------------- */
.lastcheck {
  display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  font-size: var(--t-small); color: var(--ink-500);
  padding: var(--s-3) 0;
}
.lastcheck strong { color: var(--ink-700); font-weight: 600; font-variant-numeric: tabular-nums; }
.lastcheck__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

/* --------------------------------------------------------------------------
   24. Share toolbar
   -------------------------------------------------------------------------- */
.share { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; padding-top: var(--s-4); margin-top: var(--s-4); border-top: 1px solid var(--rule-soft); }
.share__label { font-size: var(--t-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-400); margin-right: var(--s-1); }
.share__btn {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-2) var(--s-3); border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--paper); color: var(--ink-600);
  font-family: inherit; font-size: var(--t-small); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.share__btn:hover { border-color: var(--ink-700); color: var(--ink-700); background: var(--paper-2); }
.share__btn svg { width: 14px; height: 14px; fill: currentColor; }
.share__btn[data-copied="true"] { border-color: var(--ok); color: var(--ok); }
.share__status { font-size: var(--t-small); color: var(--ok); }

/* --------------------------------------------------------------------------
   25. Prose pages — guides, methodology, editorial
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { font-size: var(--t-h2); margin-top: var(--s-10); padding-top: var(--s-5); border-top: 2px solid var(--rule-hard); }
.prose h3 { font-size: var(--t-h3); margin-top: var(--s-6); }
.prose p, .prose li { font-size: var(--t-read); color: var(--ink-700); line-height: 1.65; }
.prose ul, .prose ol { padding-left: var(--s-5); }
.prose li + li { margin-top: var(--s-2); }
.prose strong { font-weight: 700; color: var(--navy, var(--ink-700)); }
.prose blockquote { border-left: 4px solid var(--fda); background: var(--paper-3); padding: var(--s-4) var(--s-5); margin-left: 0; margin-right: 0; }
.prose blockquote p { font-size: var(--t-body); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.prose th, .prose td { text-align: left; padding: var(--s-3); border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.prose th { background: var(--paper-2); font-size: var(--t-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.prose figcaption, .prose .cite { font-size: var(--t-small); color: var(--ink-400); }

.byline { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; font-size: var(--t-small); color: var(--ink-500); padding-bottom: var(--s-4); border-bottom: 1px solid var(--rule); }
.updated-tag { font-variant-numeric: tabular-nums; }

.keytakeaway { border: 1px solid var(--rule); border-left: 4px solid var(--alert); background: var(--paper); padding: var(--s-5); }
.keytakeaway h3 { margin-top: 0; font-size: var(--t-body); letter-spacing: .06em; text-transform: uppercase; color: var(--alert-dark); }
.keytakeaway ul { margin-top: var(--s-3); }

.guidegrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); }
.guidecard { border: 1px solid var(--rule); background: var(--paper); padding: var(--s-5); display: block; text-decoration: none; }
.guidecard:hover { border-color: var(--ink-700); background: var(--paper-2); }
.guidecard__kicker { font-size: var(--t-micro); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--alert); margin-bottom: var(--s-2); }
.guidecard__title { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.guidecard__dek { font-size: var(--t-body); color: var(--ink-500); }
@media (max-width: 900px) { .guidegrid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   26. Differentiator strip
   -------------------------------------------------------------------------- */
.diffgrid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.diff { padding: var(--s-6); border-right: 1px solid var(--rule-soft); }
.diff:last-child { border-right: none; }
.diff__n { font-size: var(--t-micro); font-weight: 700; letter-spacing: .08em; color: var(--alert); margin-bottom: var(--s-3); }
.diff h3 { font-size: var(--t-body); font-weight: 700; margin-bottom: var(--s-2); }
.diff p { font-size: var(--t-body); color: var(--ink-500); }
@media (max-width: 900px) {
  .diffgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .diff:nth-child(2) { border-right: none; }
  .diff:nth-child(1), .diff:nth-child(2) { border-bottom: 1px solid var(--rule-soft); }
}
@media (max-width: 520px) { .diffgrid { grid-template-columns: 1fr; } .diff { border-right: none; border-bottom: 1px solid var(--rule-soft); } }
