/* =========================================================
   Federal Bureau of Johns — official stylesheet
   Form FBJ-CSS-1. Do not remove this tag under penalty of law.
   ========================================================= */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* The notice */
  --navy: #0b1a33;
  --navy-deep: #07122a;
  --navy-raised: #132a52;
  --on-navy: #ffffff;
  --on-navy-muted: #b9c6e0;
  --on-navy-faint: #8fa1c4;
  --navy-rule: #2a4170;

  /* Enforcement red: strips, stamps, warnings */
  --red: #c8102e;
  --red-deep: #9e0c24;
  --on-red: #ffffff;

  /* Seal metal */
  --gold: #d8b45a;
  --gold-deep: #a9852f;

  /* Exhibits: paper documents */
  --paper: #f5f6f8;
  --paper-raised: #ffffff;
  --ink: #0f1a2b;
  --ink-muted: #47546b;
  --paper-rule: #c7cedb;
  --manila: #ead9ab;
  --manila-deep: #c9b27a;

  --ok: #1d6b3a;
  --warn: #8a5a00;

  --font-sans: "Public Sans", system-ui, sans-serif;
  --font-type: "Courier Prime", "Courier New", monospace;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --measure: 68ch;
  --page: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-doc: 0 1.25rem 2.5rem -1rem rgb(0 0 0 / 0.55), 0 0.25rem 0.75rem rgb(0 0 0 / 0.25);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--navy-rule) var(--navy-deep);
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--on-navy);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  caret-color: var(--red);
  overflow-x: hidden;
}

::selection {
  background: var(--red);
  color: var(--on-red);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.doc :focus-visible {
  outline-color: var(--red);
}

.visually-hidden {
  position: absolute !important;
  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: var(--space-4);
  top: -4rem;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

/* ---------- Classification strip ---------- */
.strip {
  background: var(--red);
  color: var(--on-red);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
  padding-block: var(--space-2);
}
.strip span:last-child {
  font-variant-numeric: tabular-nums;
}

/* ---------- Bureau header (sub-pages) ---------- */
.bureau {
  border-bottom: 1px solid var(--navy-rule);
  background: var(--navy-deep);
}
.bureau .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
  padding-block: var(--space-4);
}
.bureau-id {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.bureau-id img {
  width: 3rem;
  height: 3rem;
  flex: none;
}
.bureau-id strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}
.bureau-id small {
  display: block;
  color: var(--on-navy-muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.exhibit-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}
.exhibit-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  color: var(--on-navy-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.exhibit-nav a:hover {
  color: var(--on-navy);
  border-color: var(--navy-rule);
}
.exhibit-nav a[aria-current="page"] {
  color: var(--on-navy);
  border-color: var(--on-navy);
}

/* ---------- The notice (home) ---------- */
.notice {
  padding-block: var(--space-7) var(--space-8);
  overflow-x: clip;
}

.seals {
  display: grid;
  grid-template-columns: 1fr 1.45fr 1fr 1fr;
  align-items: center;
  gap: var(--space-5);
  max-width: 48rem;
  margin: 0 auto var(--space-7);
  padding: 0;
  list-style: none;
}
.seals li {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  text-align: center;
}
.seals svg {
  width: 100%;
  max-width: 8.25rem;
  height: auto;
  filter: drop-shadow(0 0.4rem 0.8rem rgb(0 0 0 / 0.45));
}
.seals .seal-lead svg {
  max-width: 12rem;
}
.seals .seal-lead .seal-name {
  color: var(--on-navy);
}
.seals .seal-name {
  color: var(--on-navy-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.headline-block {
  text-align: center;
}
.headline {
  position: relative;
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.6rem, 8.4vw, 6rem);
}

.notice h1 {
  margin: 0 auto;
  max-width: 15ch;
  font-size: clamp(2.6rem, 8.4vw, 6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.notice .sub {
  max-width: 40ch;
  margin: var(--space-5) auto 0;
  color: var(--on-navy-muted);
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.notice .sub strong {
  color: var(--on-navy);
  font-weight: 800;
}

/* The rubber stamp */
.stamp {
  --stamp-rotate: -11deg;
  display: inline-block;
  padding: 0.18em 0.45em 0.12em;
  border: 0.14em solid currentColor;
  outline: 0.05em solid currentColor;
  outline-offset: 0.12em;
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(var(--stamp-rotate));
  filter: url("#ink");
  user-select: none;
}

.notice .stamp {
  position: absolute;
  right: -1.4em;
  top: -1.35em;
  font-size: 0.4em;
  color: #ff3b57;
  filter: none;
}

@media (prefers-reduced-motion: no-preference) {
  .notice .stamp {
    animation: stamp-slam 520ms var(--ease-out) 650ms both;
  }
}

@keyframes stamp-slam {
  0% {
    opacity: 0;
    transform: rotate(var(--stamp-rotate)) scale(2.4);
  }
  55% {
    opacity: 1;
    transform: rotate(var(--stamp-rotate)) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: rotate(var(--stamp-rotate)) scale(1);
  }
}

.schedule {
  margin: var(--space-6) auto 0;
  max-width: 64rem;
}
.schedule ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--on-navy);
  border-bottom: 1px solid var(--navy-rule);
}
.schedule li + li {
  border-left: 1px solid var(--navy-rule);
}
.schedule a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4);
  text-align: left;
  text-decoration: none;
  transition: background-color 200ms var(--ease-out);
}
.schedule a:hover {
  background: var(--navy-raised);
}
.schedule .letter {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--red);
  color: var(--on-red);
  font-size: 0.95rem;
  font-weight: 900;
}
.schedule .t {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.3;
}
.schedule .d {
  display: block;
  margin-top: var(--space-1);
  color: var(--on-navy-muted);
  font-size: 0.85rem;
  font-weight: 500;
}
.schedule .go {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.3rem;
  color: var(--on-navy-faint);
  transition: transform 220ms var(--ease-out), color 220ms var(--ease-out);
}
.schedule a:hover .go {
  color: var(--on-navy);
  transform: translateX(0.25rem);
}

.legal {
  max-width: var(--measure);
  margin: var(--space-7) auto 0;
  color: var(--on-navy-muted);
  font-size: 1rem;
}
.legal p {
  margin: 0 0 var(--space-4);
}
.legal strong {
  color: var(--on-navy);
}
.legal cite {
  color: var(--on-navy);
  font-style: normal;
  font-weight: 700;
}

.grounds {
  margin: var(--space-5) 0;
  padding: 0;
  list-style: none;
  counter-reset: ground;
  border-top: 1px solid var(--navy-rule);
}
.grounds li {
  counter-increment: ground;
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: var(--space-3);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--navy-rule);
}
.grounds li::before {
  content: "(" counter(ground, lower-alpha) ")";
  color: var(--on-navy-faint);
  font-weight: 700;
}

.acknowledgement {
  max-width: var(--measure);
  margin: var(--space-6) auto 0;
  padding: var(--space-5);
  border: 1px solid var(--on-navy-faint);
  background: var(--navy-raised);
  color: var(--on-navy-muted);
  font-size: 0.97rem;
}
.acknowledgement h2 {
  margin: 0 0 var(--space-2);
  color: var(--on-navy);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.acknowledgement p {
  margin: 0 0 var(--space-3);
}
.acknowledgement p:last-child {
  margin-bottom: 0;
}

/* ---------- Section headings on navy ---------- */
.section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--navy-rule);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  margin-bottom: var(--space-5);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.6vw, 2.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.section-head p {
  margin: 0;
  max-width: 44ch;
  color: var(--on-navy-muted);
  font-size: 0.95rem;
}

/* ---------- Detention ledger ---------- */
.ledger-totals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0 0 var(--space-5);
  color: var(--on-navy-muted);
  font-size: 0.95rem;
}
.ledger-totals dt {
  display: inline;
}
.ledger-totals dd {
  display: inline;
  margin: 0 0 0 0.35em;
  color: var(--on-navy);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.ledger caption {
  padding-bottom: var(--space-2);
  color: var(--on-navy-faint);
  font-size: 0.8rem;
  text-align: left;
}
.ledger th {
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid var(--on-navy);
  color: var(--on-navy-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
.ledger td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--navy-rule);
  vertical-align: top;
}
.ledger td:first-child {
  color: var(--on-navy-faint);
}
.ledger .name {
  font-weight: 700;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 0.6em;
  height: 0.6em;
  flex: none;
  background: currentColor;
}
.status[data-state="processing"] { color: var(--gold); }
.status[data-state="processing"]::before { border-radius: 50%; }
.status[data-state="approved"] { color: #7fdc9f; }
.status[data-state="denied"] { color: #ff7a8c; }
.status[data-state="released"] { color: var(--on-navy-muted); }
.status[data-state="released"]::before { background: transparent; border: 2px solid currentColor; }

@media (prefers-reduced-motion: no-preference) {
  .ledger tr.is-new td {
    animation: row-in 1400ms var(--ease-out);
  }
  .status[data-state="processing"]::before {
    animation: blink 900ms steps(2, jump-none) infinite;
  }
}
@keyframes row-in {
  from { background: rgb(200 16 46 / 0.35); }
  to { background: transparent; }
}
@keyframes blink {
  50% { opacity: 0.2; }
}

/* ---------- Cooperating agencies / disclaimer footer ---------- */
.site-foot {
  padding-block: var(--space-7);
  border-top: 1px solid var(--navy-rule);
  background: var(--navy-deep);
  color: var(--on-navy-faint);
  font-size: 0.88rem;
}
.site-foot .wrap {
  display: grid;
  gap: var(--space-5);
}
.site-foot p {
  max-width: var(--measure);
  margin: 0;
}
.site-foot .form-no {
  color: var(--on-navy-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-foot strong {
  color: var(--on-navy-muted);
}
.site-foot nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-foot nav a {
  color: var(--on-navy-muted);
  font-weight: 600;
}
.site-foot nav a:hover {
  color: var(--on-navy);
}

/* =========================================================
   Exhibit documents
   ========================================================= */
.exhibit-page {
  padding-block: var(--space-7) var(--space-8);
}

.doc {
  color-scheme: light;
  position: relative;
  max-width: 62rem;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-doc);
}
.doc + .doc {
  margin-top: var(--space-7);
}
.doc ::selection {
  background: var(--navy);
  color: var(--on-navy);
}

.docket {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1) var(--space-5);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--ink);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.exhibit-sticker {
  position: absolute;
  top: clamp(-1.1rem, -2vw, -0.8rem);
  right: clamp(1rem, 4vw, 3rem);
  padding: 0.4rem 0.8rem;
  background: var(--paper-raised);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0.35rem 0.8rem -0.2rem rgb(0 0 0 / 0.35);
}

.doc h1 {
  max-width: 22ch;
  margin: 0 0 var(--space-4);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.doc .lede {
  max-width: 56ch;
  margin: 0 0 var(--space-6);
  color: var(--ink-muted);
  font-size: 1.15rem;
  line-height: 1.5;
}
.doc h2 {
  margin: var(--space-7) 0 var(--space-3);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
  text-wrap: balance;
}
.doc h3 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  text-wrap: balance;
}
.doc p,
.doc li {
  max-width: var(--measure);
}
.doc p {
  margin: 0 0 var(--space-4);
}
.doc a {
  color: var(--navy);
  font-weight: 700;
}
.doc a:hover {
  color: var(--red);
}
.doc hr {
  margin: var(--space-7) 0;
  border: 0;
  border-top: 1px solid var(--paper-rule);
}
.small-print {
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* ---------- Case file (Exhibit A) ---------- */
.doc.manila {
  background: var(--manila);
}
.doc.manila .docket {
  color: #5d4a1c;
  border-color: #3b2f12;
}
.doc.manila .lede,
.doc.manila .small-print {
  color: #4f3f16;
}

.dossier {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}
.mugshot {
  margin: 0;
  background: var(--paper-raised);
  padding: var(--space-3);
  box-shadow: 0 0.5rem 1rem -0.4rem rgb(0 0 0 / 0.4);
  transform: rotate(-1.5deg);
}
.mugshot figcaption {
  padding-top: var(--space-2);
  color: var(--ink-muted);
  font-family: var(--font-type);
  font-size: 0.8rem;
  text-align: center;
}

.typed {
  font-family: var(--font-type);
}

.particulars {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0;
  margin: 0;
  font-family: var(--font-type);
  font-size: 1rem;
  border-top: 1px solid #3b2f12;
}
.particulars dt,
.particulars dd {
  padding: var(--space-2) 0;
  border-bottom: 1px dashed #a08a52;
}
.particulars dt {
  padding-right: var(--space-5);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.particulars dd {
  margin: 0;
}

.intel {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid #3b2f12;
}
.intel li {
  display: grid;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: var(--space-2) var(--space-5);
  align-items: center;
  padding-block: var(--space-3);
  border-bottom: 1px dashed #a08a52;
  font-family: var(--font-type);
}
.intel .label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.redact {
  position: relative;
  justify-self: start;
  display: inline-block;
  min-width: min(12rem, 100%);
  max-width: 100%;
  min-height: 2.25rem;
  padding: 0.3rem 0;
  vertical-align: middle;
}
.redact .secret {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.js .redact:not(.is-open) .secret {
  visibility: hidden;
}
.redact .bar {
  position: absolute;
  inset: 0.1rem -0.35rem;
  display: none;
  align-items: center;
  justify-content: flex-end;
  padding: 0 0.6rem;
  border: 0;
  background: #121212;
  color: #a8a8a8;
  font: inherit;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transform-origin: right center;
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out), color 160ms var(--ease-out);
}
.js .redact .bar {
  display: flex;
}
.redact .bar:hover {
  color: #ffffff;
}
.redact .bar:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.redact.is-open .bar {
  transform: scaleX(0);
  opacity: 0;
  pointer-events: none;
}
.redact .bar[hidden] {
  display: none;
}
.declassify-all {
  margin-top: var(--space-5);
}
.declassify-all[hidden] {
  display: none;
}

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 2.9rem;
  padding: 0.7rem 1.4rem;
  border: 2px solid var(--navy);
  background: var(--navy);
  color: var(--on-navy);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:hover {
  background: var(--navy-raised);
  border-color: var(--navy-raised);
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: transparent;
  color: var(--navy);
}
.btn.secondary:hover {
  background: rgb(11 26 51 / 0.07);
}
.btn.danger {
  background: var(--red);
  border-color: var(--red);
}
.btn.danger:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}

.form {
  display: grid;
  gap: var(--space-5);
  max-width: 40rem;
}
.field {
  display: grid;
  gap: var(--space-2);
}
.field label,
.field legend {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field .hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6b7486;
}
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}
.field textarea {
  min-height: 7rem;
  resize: vertical;
}
.field[data-invalid] input,
.field[data-invalid] textarea {
  border-color: var(--red);
}
.field .error {
  margin: 0;
  color: var(--red-deep);
  font-size: 0.92rem;
  font-weight: 700;
}
.field .error:empty {
  display: none;
}
.field label .hint {
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.field .check-row {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}
.check-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
  font-weight: 600;
}
.check-row input {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.15rem 0 0;
  accent-color: var(--navy);
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: end;
}
.inline-form .field {
  flex: 1 1 16rem;
}
.inline-form .btn {
  min-height: 3.45rem;
}

/* ---------- Verdict certificate ---------- */
.verdict {
  position: relative;
  margin-top: var(--space-6);
  padding: var(--space-6) clamp(1.25rem, 4vw, 2.5rem);
  border: 2px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: -0.5rem;
  background: var(--paper-raised);
}
.verdict[hidden] {
  display: none;
}
.verdict .class {
  margin: 0 0 var(--space-4);
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.verdict h3 {
  margin: 0 0 var(--space-3);
  padding-right: 8rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.verdict p {
  margin: 0 0 var(--space-3);
  overflow-wrap: anywhere;
}
.verdict p:last-child {
  margin-bottom: 0;
}
.verdict .stamp {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  font-size: clamp(1rem, 2.4vw, 1.4rem);
}
.verdict[data-tone="ok"] .stamp {
  color: var(--ok);
}
.verdict[data-tone="warn"] .stamp {
  color: var(--warn);
}
@media (prefers-reduced-motion: no-preference) {
  .verdict.is-fresh .stamp {
    animation: stamp-slam 420ms var(--ease-out) both;
  }
}

.denial-count {
  margin: var(--space-3) 0 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Treaty ---------- */
.treaty-preamble {
  font-size: 1.1rem;
}
.articles {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: article;
}
.articles > li {
  counter-increment: article;
  padding-block: var(--space-5);
  border-top: 1px solid var(--paper-rule);
}
.articles h2 {
  margin: 0 0 var(--space-3);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}
.articles h2::before {
  content: "Article " counter(article, upper-roman) ". ";
  color: var(--red);
}
.articles p:last-child {
  margin-bottom: 0;
}
.signatures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-6);
  border-top: 2px solid var(--ink);
}
.signatures figure {
  margin: 0;
}
.signatures svg {
  width: 100%;
  height: 4.5rem;
  color: var(--navy);
}
.signatures figcaption {
  padding-top: var(--space-2);
  border-top: 1px solid var(--ink);
  font-size: 0.9rem;
}
.signatures figcaption strong {
  display: block;
}
.signatures .absent {
  display: grid;
  place-items: center;
  height: 4.5rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ---------- FAQ & press ---------- */
.faq {
  margin: 0;
  border-top: 2px solid var(--ink);
}
.faq details {
  border-bottom: 1px solid var(--paper-rule);
}
.faq summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--red);
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary svg {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--red-deep);
}
.faq .answer {
  padding-bottom: var(--space-5);
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

.press {
  margin: 0;
  padding: 0;
  list-style: none;
}
.press article {
  padding-block: var(--space-6);
  border-top: 1px solid var(--paper-rule);
}
.press h3 {
  margin-top: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 900;
}
.press .dateline {
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.press .end {
  color: var(--ink-muted);
  font-weight: 800;
  letter-spacing: 0.3em;
}

/* Buttons on the navy notice */
.btn.ghost {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--on-navy-faint);
  min-height: 2.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}
.btn.ghost:hover {
  background: var(--navy-raised);
  border-color: var(--on-navy);
}
.btn[hidden] {
  display: none;
}
.ledger-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  margin-bottom: var(--space-5);
}
.ledger-bar .ledger-totals {
  margin: 0;
}

/* ---------- 404 ---------- */
.notice.compact {
  padding-block: var(--space-8);
}
.notice .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.notice .btn {
  background: var(--on-navy);
  color: var(--navy);
  border-color: var(--on-navy);
}
.notice .btn:hover {
  background: var(--on-navy-muted);
  border-color: var(--on-navy-muted);
}
.notice .btn.secondary {
  background: transparent;
  color: var(--on-navy);
  border-color: var(--on-navy-faint);
}
.notice .btn.secondary:hover {
  border-color: var(--on-navy);
  background: var(--navy-raised);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 64rem) {
  .schedule ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule li:nth-child(3) {
    border-left: 0;
  }
  .schedule li:nth-child(n + 3) {
    border-top: 1px solid var(--navy-rule);
  }
}

@media (max-width: 52rem) {
  .dossier {
    grid-template-columns: 1fr;
  }
  .mugshot {
    max-width: 15rem;
  }
}

@media (max-width: 40rem) {
  body {
    font-size: 1rem;
  }
  .seals {
    grid-template-columns: 1fr 1.9fr 1fr 1fr;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
  }
  .seals li:not(.seal-lead) .ring-text {
    display: none;
  }
  .seals .seal-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .strip {
    letter-spacing: 0.08em;
  }
  .strip .wrap {
    justify-content: center;
  }
  .strip span:last-child {
    display: none;
  }
  .notice {
    padding-block: var(--space-6) var(--space-7);
  }
  .notice .stamp {
    right: -0.2em;
    top: -1.3em;
    font-size: 0.36em;
  }
  .schedule a {
    padding: var(--space-3) var(--space-2);
    gap: var(--space-2);
  }
  .schedule .go,
  .schedule .d {
    display: none;
  }
  .schedule a {
    grid-template-columns: auto 1fr;
  }
  .schedule .t {
    font-size: 0.92rem;
  }
  .ledger .col-case {
    display: none;
  }
  .ledger td,
  .ledger th {
    padding-inline: var(--space-2);
  }
  .ledger td:first-child,
  .ledger th:first-child {
    padding-left: 0;
  }
  .status {
    white-space: normal;
    align-items: baseline;
  }
  .intel li {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
  .redact {
    min-width: 100%;
  }
  .particulars {
    grid-template-columns: 1fr;
  }
  .particulars dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  .verdict h3 {
    padding-right: 0;
    margin-top: var(--space-6);
  }
  .verdict .stamp {
    top: var(--space-4);
    right: var(--space-4);
  }
  .bureau-id small {
    display: none;
  }
  .bureau .wrap {
    gap: var(--space-3);
  }
  .exhibit-nav {
    margin-inline: -0.5rem;
  }
  .exhibit-nav a {
    padding: 0.4rem 0.5rem;
    font-size: 0.76rem;
    letter-spacing: 0.02em;
  }
  .doc {
    padding-top: 2.75rem;
  }
}
