/* Restricted terminal / paper record. The reading surface retains its measure. */
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "SCP Technical Mono";
  src: url("fonts/ibm-plex-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "SCP Technical Mono";
  src: url("fonts/ibm-plex-mono-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
:root {
  --mono: "SCP Technical Mono", "Archive Sans", "Consolas", monospace;
  --identifier: "Barlow Condensed", "Archive Sans", sans-serif;
  --terminal: #202225;
  --terminal-deep: #121416;
  --terminal-line: #4b4f52;
  --terminal-text: #f0f0eb;
  --terminal-muted: #b9bdbf;
  --signal: #9e2330;
}

/* Stamps sit at record boundaries, never behind paragraphs. */
.clearance-emblem { display: block; width: 42px; height: 42px; filter: brightness(0) invert(1); }
.record-seal { display: inline-flex; align-items: center; gap: 12px; }
.record-seal img { width: 24px; height: 24px; flex: 0 0 auto; }
.cognitive-mark { display: block; flex: 0 0 auto; }
.warning-body h2 { display: flex; align-items: center; gap: 12px; }
.classification-band .class-cell strong { display: flex; align-items: center; gap: 8px; }

@media screen {
  body { background: var(--terminal); color: var(--terminal-text); }
  .dossier-cover, .document-sheet, .warning-dialog, .search-dialog { color: var(--ink); }
  .boot-message, noscript { color: var(--terminal-text); }
  ::selection { background: #9e2330; color: #fff; }
  html { scrollbar-color: #7f8487 var(--terminal-deep); }
  :focus-visible { outline: 2px solid #c14a56; outline-offset: 4px; }
  .institution-header { background: var(--terminal-deep); border-bottom-color: #7e202b; }
  .security-line { color: var(--terminal-muted); font-size: 11px; letter-spacing: .04em; }
  .masthead-dept { border-color: var(--terminal-line); }
  .masthead-dept > span { color: #e2e3de; }
  .masthead-dept > strong { color: var(--terminal-muted); }
  .masthead-dept > small { font-weight: 500; }
  .masthead-level { border-color: #7b8082; background: #272a2c; }
  .masthead-level > strong { font-family: var(--identifier); font-size: 48px; font-weight: 700; line-height: 1; }
  .masthead-level > small { color: var(--terminal-text); }
  .masthead-level .level-bars { display: flex; gap: 3px; align-items: flex-end; height: 7px; }
  .level-bars i { width: 11px; height: 7px; background: #b74854; }
  .global-nav { background: #0b0d0e; border-top-color: #373b3e; }
  .global-nav-inner > a.selected { color: #fff; }
  .global-nav .nav-divider { color: var(--terminal-muted); }
  .search-trigger { border-color: #41464a; }
  .search-trigger:hover { color: #fff; background: #292d2f; }

  /* The surrounding terminal stays dark even when the paper theme changes. */
  .sidebar { color: var(--terminal-text); }
  .sidebar-heading { border-top: 2px solid #dfe2df; border-bottom-color: var(--terminal-line); }
  .sidebar-heading > span, .nav-caption, .nav-num, .nav-range,
  .nav-home > span:last-child, .reading-state, .reading-state small { color: var(--terminal-muted); }
  .nav-home { border-bottom-color: var(--terminal-line); }
  .nav-home.active { color: #fff; }
  .nav-home.active > svg { color: #e17d86; }
  .nav-item, .nav-extra { color: #dce0df; }
  .nav-item:hover, .nav-extra:hover { color: #fff; background: #353a3e; }
  .nav-item.active, .theme-night .nav-item.active { position: relative; background: #81222e; color: #fff; }
  .nav-item.active .nav-num, .nav-item.active .nav-range { color: #f4e5e7; }
  .nav-extra.active { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
  .sidebar-separator, .reading-state { border-color: var(--terminal-line); }
  .progress-track { background: #454a4d; }
  .progress-track > i { background: #ce626e; }
  .breadcrumb, .breadcrumb a, .breadcrumb span { color: var(--terminal-muted); }
  .breadcrumb b { color: var(--terminal-text); }
  .breadcrumb a:hover { color: #fff; }
  .site-footer { color: var(--terminal-muted); border-top-color: var(--terminal-line); }
  .site-footer a:hover { color: #fff; }

  /* Cover classification: large identifiers and a physical permission plate. */
  .dossier-cover, .theme-night .dossier-cover { border-color: #a5a8a7; }
  .dossier-topline { background: #111315; color: #e9ece9; border-bottom: 1px solid #656b6e; font-weight: 500; letter-spacing: .03em; }
  .classification-band { grid-template-columns: 1.35fr .85fr .85fr 1fr; min-height: 114px; border-bottom: 4px solid var(--signal); }
  .classification-band > div { padding: 16px 20px; }
  .classification-band .item-number strong { font: 700 58px/1 var(--identifier); letter-spacing: .015em; margin-top: 8px; }
  .classification-band .class-cell strong { font-size: 23px; margin-top: 12px; line-height: 1.2; }
  .classification-band .object-class { font: 700 34px/1 var(--identifier); letter-spacing: .025em; }
  .classification-band .class-cell .cognitive-mark { color: var(--red); width: 22px; height: 22px; }
  .classification-band .clearance-cell { display: grid; grid-template-columns: 1fr 42px; grid-template-rows: auto auto; gap: 8px 12px; align-content: center; align-items: center; background: #81222e; color: #fff; }
  .classification-band .clearance-cell > span { color: #f4e2e5; }
  .clearance-cell strong { grid-column: 1; font: 700 34px/1 var(--identifier); letter-spacing: .02em; margin: 0; white-space: nowrap; }
  .clearance-cell .clearance-emblem { grid-column: 2; grid-row: 1 / 3; }
  .cover-photograph { padding: 5px; border: 1px solid var(--ink); }
  .cover-folio { background: var(--paper-alt); font-size: 11px; border-top: 1px solid var(--line); }
  .cover-folio .record-seal { gap: 8px; }
  .cover-folio .record-seal img { width: 20px; height: 20px; }
  .button { font-weight: 600; }
  .button-red, .theme-night .button-red { background: #81222e; border-color: #81222e; color: #fff; }
  .button-red:hover, .theme-night .button-red:hover { background: #a52638; border-color: #a52638; }
  .hazard-banner, .theme-night .hazard-banner { position: relative; background: #262022; color: #fff; border-block: 1px solid #7d4b51; }
  .hazard-banner small, .theme-night .hazard-banner small { color: #e0c7ca; }
  .hazard-banner .hazard-sign { color: #eb8b95; }
  .hazard-banner:hover { background: #38262b; }
  .hazard-banner::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: #9e2330; }
  .hazard-link { color: #f5dcdf; }

  /* Existing index tables, without turning every row into a card. */
  .directory-section { color: var(--terminal-text); }
  .index-heading { border-color: var(--terminal-line); }
  .index-heading > p { color: var(--terminal-muted); }
  .file-index, .supplementary-list { color: var(--ink); background: var(--paper); border: 1px solid #a5a8a7; }
  .file-table-head { background: var(--paper-alt); border-color: var(--line); }
  .file-index-number { font: 700 32px/1 var(--identifier); }
  .file-row:last-child, .supplementary-list > a:last-child { border-bottom: 0; }
  .file-row:hover, .supplementary-list > a:hover { background: var(--paper-alt); }
  .session-strip { color: var(--terminal-muted); border-color: var(--terminal-line); }
  .session-strip > span { color: var(--terminal-muted); }
  .session-strip .text-link { color: var(--terminal-text); }

  /* Active file tabs are part of the terminal, not part of the manuscript. */
  .section-tabs { border-bottom: 1px solid #8f9698; }
  .section-tabs a, .theme-night .section-tabs a { background: #303538; color: #d7dddf; border: 1px solid #5d6467; border-bottom: 0; }
  .section-tabs a:hover { color: #fff; background: #41484c; }
  .section-tabs a.selected, .theme-night .section-tabs a.selected { color: #fff; background: #81222e; border-color: #b5515f; }
  .section-tabs .tab-check { color: #f1cbd1; }
  .reader-tools > span, .interaction-jump { color: var(--terminal-muted); }
  .interaction-jump:hover { color: #fff; }
  .tool-button { color: #e6e9e7; border-color: #5d6467; background: #292e31; }
  .tool-button:hover { background: #454d51; border-color: #a1aaaf; color: #fff; }
  .document-sheet, .theme-night .document-sheet { border: 1px solid #a5a8a7; }
  .document-heading { align-items: center; border-bottom-color: var(--ink); font-weight: 500; }
  .document-heading > span:first-child { color: var(--ink); }
  .document-original { font: 500 11px/1.4 var(--mono); border: 1px solid var(--red); padding: 5px 8px; color: var(--red); }
  .document-end { align-items: center; }
  .document-end .record-seal { max-width: 80%; }
  .document-end a { text-decoration: underline; text-underline-offset: 3px; }
  .theme-night .record-seal img { filter: brightness(0) invert(1); }
  .chapter-navigation { color: var(--terminal-muted); }
  .chapter-navigation > span { color: var(--terminal-muted); }
  .chapter-navigation > a:not(.button) { color: var(--terminal-muted); }
  .chapter-navigation > a:not(.button):hover { color: #fff; }
  .chapter-navigation .button-dark { background: #eceee9; color: #171a1b; border-color: #eceee9; }
  .chapter-navigation .button-dark:hover { background: #fff; border-color: #fff; }
  .page-heading { color: var(--terminal-text); }
  .page-heading p { color: var(--terminal-muted); }

  /* Evidence identification plates: no invented data and no photographic overlays. */
  .evidence-figure { border: 1px solid #555d60; }
  .evidence-figure figcaption { position: relative; background: #202527; color: #e4e9e6; padding: 12px 16px 12px 58px; border: 0; border-top: 1px solid #798183; }
  .evidence-figure figcaption::before { content: ""; position: absolute; width: 26px; height: 26px; top: 14px; left: 16px; background: url("scp-logo.svg") center / contain no-repeat; filter: brightness(0) invert(1); }
  .evidence-figure figcaption > span { color: #bdc7c8; }

  /* A safety placard earns its stripe; the rest of the interface stays still. */
  .warning-dialog { border-color: #939c9f; }
  dialog::backdrop { background: #080b0ef0; backdrop-filter: none; }
  .warning-stripe { height: 8px; background: repeating-linear-gradient(135deg, #a92b3b 0, #a92b3b 12px, #171a1c 12px, #171a1c 24px); }
  .warning-document-header { margin: -28px -32px 22px; padding: 20px 62px 20px 28px; color: #f4f3ec; background: #1b1f21; border-bottom: 1px solid #596165; }
  .warning-document-header > div > span { color: #bdc5c6; }
  .warning-logo { filter: brightness(0) invert(1); }
  .warning-dialog .dialog-close { color: #e9eeeb; top: 20px; }
  .warning-dialog .dialog-close:hover { background: #3a4448; color: #fff; }
  .warning-body h2 { margin-top: 0; font-size: 27px; letter-spacing: 0; }
  .warning-body h2 .cognitive-mark { color: var(--red); }
  .clearance-lines { border-color: var(--ink); }
  .warning-quote { font-weight: 600; }
  .warning-alternative .button-outline { border-color: var(--ink); }
  .search-head { border-bottom-color: var(--ink); }
  .search-head input { caret-color: var(--red); }
}

@media screen and (max-width:1180px) {
  .classification-band > div { padding-inline: 14px; }
  .classification-band .item-number strong { font-size: 50px; }
  .classification-band .clearance-cell { column-gap: 8px; grid-template-columns: 1fr 34px; }
  .clearance-cell .clearance-emblem { width: 34px; height: 34px; }
}
@media screen and (max-width:1000px) {
  .classification-band { grid-template-columns: 1.2fr .85fr .85fr 1fr; }
  .classification-band > div { padding-inline: 10px; }
  .classification-band .item-number strong { font-size: 44px; }
  .classification-band .object-class { font-size: 30px; }
  .classification-band .class-cell strong { gap: 5px; font-size: 21px; }
  .classification-band .class-cell .cognitive-mark { width: 18px; height: 18px; }
  .classification-band .clearance-cell { grid-template-columns: 1fr; }
  .clearance-cell .clearance-emblem { display: none; }
  .clearance-cell strong { font-size: 30px; }
}
@media screen and (max-width:760px) {
  .sidebar { background: var(--terminal-deep); border-right: 1px solid #687174; }
  .masthead-level > strong { font-size: 35px; }
  .masthead-level .level-bars { display: none; }
  .dossier-topline { letter-spacing: 0; }
  .classification-band { min-height: 100px; }
  .classification-band .item-number strong { font-size: 42px; }
  .classification-band .class-cell strong { margin-top: 10px; }
  .warning-document-header { padding-left: 24px; }
}
@media screen and (max-width:520px) {
  .supplementary-list > a { padding-inline: 12px; grid-template-columns: 48px minmax(0,1fr) 16px; gap: 12px; }
  .classification-band { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr); }
  .classification-band .clearance-cell { display: none; }
  .classification-band > div { padding: 14px 10px; min-width: 0; gap: 0; }
  .classification-band > div > span { min-height: 28px; line-height: 1.4; }
  .classification-band .item-number strong, .classification-band .class-cell strong { margin-top: 10px; }
  .classification-band .item-number strong { font-size: 35px; }
  .classification-band .object-class { font-size: 28px; }
  .classification-band .class-cell strong { font-size: 19px; }
  .classification-band .class-cell .cognitive-mark { width: 16px; height: 16px; }
  .cover-folio .record-seal img { width: 18px; height: 18px; }
  .warning-document-header { margin: -24px -24px 22px; padding: 18px 50px 18px 20px; font-size: 12px; gap: 10px; }
  .warning-document-header .warning-logo { width: 36px; height: 36px; }
  .warning-body h2 { font-size: 23px; gap: 10px; }
  .warning-body h2 .cognitive-mark { width: 28px; height: 28px; }
  .document-heading { gap: 10px; }
  .document-original { font-size: 10px; padding: 4px 6px; }
  .document-end .record-seal { gap: 8px; }
  .record-seal img { width: 20px; height: 20px; }
  .evidence-figure figcaption { padding-left: 48px; }
  .evidence-figure figcaption::before { left: 12px; width: 23px; height: 23px; }
}
@media screen and (max-width:360px) {
  .brand img { width: 48px; height: 48px; }
  .brand, body:not([data-page="index"]) .brand { gap: 8px; }
  .brand strong, body:not([data-page="index"]) .brand strong { font-size: 21px; }
  .masthead-level { flex-shrink: 0; min-width: 70px; }
  .masthead { gap: 10px; }
  .classification-band .item-number strong { font-size: 28px; }
  .classification-band .object-class { font-size: 25px; }
  .classification-band .class-cell .cognitive-mark { display: none; }
  .classification-band .class-cell strong { font-size: 18px; }
}
@media print {
  .clearance-emblem { filter: none; }
  .record-seal img { filter: none; }
}

/* The file is an access boundary. The document inside remains a reading surface. */
@media screen {
  :root { --terminal: #1c1d1f; --terminal-deep: #101113; }
  .masthead, body:not([data-page="index"]) .masthead { min-height: 78px; padding-block: 12px; gap: 24px; }
  .brand, body:not([data-page="index"]) .brand { gap: 14px; }
  .brand img, body:not([data-page="index"]) .brand img { width: 50px; height: 50px; }
  .brand strong, body:not([data-page="index"]) .brand strong { font-size: 25px; letter-spacing: .01em; }
  .brand small { font-size: 11px; margin-top: 5px; }
  .brand em, .masthead-dept strong, .masthead-level .level-bars { display: none; }
  .masthead-level, body:not([data-page="index"]) .masthead-level { min-width: 140px; border: 0; border-left: 1px solid #575b5e; padding: 0 0 0 18px; background: transparent; }
  .masthead-level > strong, body:not([data-page="index"]) .masthead-level > strong { font-size: 36px; }
  .masthead-dept small { margin-top: 5px; }
  .global-nav-inner { min-height: 38px; }
  .security-line { padding-block: 7px; border-bottom: 1px solid #34383a; }
  body[data-page="index"] .site-frame { max-width: 1040px; display: block; padding-top: 24px; }
  body[data-page="index"] .sidebar { display: none; }
  body[data-page="index"] .breadcrumb { margin-bottom: 16px; }
  body[data-page="index"] .breadcrumb-right { font-family: var(--mono); }

  .restricted-cover { background: #eeeee8; color: #151719; border: 1px solid #979c9b; }
  .file-binding { display: flex; justify-content: space-between; gap: 20px; padding: 11px 28px; border-bottom: 1px solid #181b1d; color: #e8e8e3; background: #181b1d; font: 11px/1.5 var(--mono); }
  .file-cover-main { padding: 28px 32px 0; }
  .cover-identity { display: grid; grid-template-columns: minmax(0,1fr) auto 76px; align-items: center; gap: 32px; padding-bottom: 24px; }
  .cover-item > span { display: block; font-size: 12px; }
  .cover-item > strong { display: block; font: 700 clamp(64px,7.5vw,96px)/1 var(--identifier); letter-spacing: -.015em; margin-top: 7px; }
  .cover-name { padding-right: 28px; border-right: 1px solid #999d9b; }
  .cover-name h1 { font-size: 40px; font-weight: 750; letter-spacing: .12em; margin: 0 0 10px; line-height: 1.15; }
  .cover-name p { margin: 0; font-size: 12px; }
  .cover-emblem { width: 76px; height: 76px; }
  .cover-register { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 0; border-block: 1px solid #9c9f9b; }
  .cover-register > div { display: flex; gap: 16px; align-items: center; padding: 13px 0; }
  .cover-register > div + div { border-left: 1px solid #9c9f9b; padding-left: 24px; }
  .cover-register dt { font-size: 11px; color: #555b59; }
  .cover-register dd { font-size: 17px; font-weight: 650; margin: 0; }
  .cover-register > div:first-child dd { font: 700 26px/1 var(--identifier); }
  .cover-register > div:nth-child(2) dd { color: #85222c; }
  .definition-aperture { min-height: 78px; display: flex; gap: 20px; align-items: center; }
  .definition-aperture > span { font-size: 12px; flex: 0 0 auto; }
  .definition-aperture > strong { font-size: 12px; font-weight: 500; color: #f0f0e9; background: #252829; flex: 1; padding: 10px 16px; }
  .access-boundary { display: grid; grid-template-columns: 96px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 26px 32px; background: #6f1823; color: #fff2ee; border-top: 7px solid #17191b; border-bottom: 7px solid #17191b; }
  .boundary-symbol .cognitive-mark { color: #fff2ee; --paper: #6f1823; }
  .boundary-copy h2 { font-size: 34px; font-weight: 750; line-height: 1.2; letter-spacing: .07em; margin: 0 0 12px; }
  .boundary-copy p { font-size: 12px; line-height: 1.85; color: #eed7d8; margin: 0; }
  .boundary-notice { border: 0; background: transparent; color: #fff0e9; display: flex; gap: 12px; align-items: center; cursor: pointer; font: 11px var(--sans); min-height: 44px; padding: 8px 0; }
  .boundary-notice:hover { text-decoration: underline; text-underline-offset: 5px; }
  .restricted-folio { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 28px; font: 11px/1.6 var(--mono); }
  .folio-actions { display: flex; gap: 24px; align-items: center; }
  .folio-actions a { font: 12px var(--sans); color: #343b38; text-underline-offset: 5px; }
  .folio-actions a:hover { text-decoration: underline; }
  .restricted-folio #start-reading { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; background: #252829; color: #f4f2e9; border: 1px solid #252829; min-height: 44px; padding: 12px 18px; cursor: pointer; font: 600 13px var(--sans); }
  .restricted-folio #start-reading:hover { background: #6f1823; border-color: #6f1823; }

  .cover-enclosure { display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 30px; padding: 28px 32px 32px; margin-bottom: 48px; color: var(--ink); background: var(--paper); border: 1px solid #979c9b; border-top: 0; }
  .enclosure-photograph { margin: 0; padding-top: 4px; }
  .enclosure-photograph img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
  .enclosure-photograph figcaption { display: block; padding-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
  .enclosure-photograph figcaption span { display: block; font: 10px/1.8 var(--mono); margin-top: 3px; }
  .cover-enclosure .intro-note { padding: 0; border: 0; background: none; min-width: 0; }
  .cover-enclosure .intro-note p { font-size: 14px; line-height: 1.9; }
  .cover-enclosure .intro-note .note-signature { font-size: 12px; }
  .access-perimeter { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #d8d9d3; border-block: 1px solid #646968; padding: 9px 0; margin-bottom: 17px; font: 10px/1.5 var(--mono); }
  .access-perimeter > span { display: flex; align-items: center; gap: 8px; }
  .perimeter-divider { width: 30px; height: 10px; border-bottom: 1px solid #b26d72; border-right: 1px solid #b26d72; margin: -4px 5px 0 0; }
  .document-sheet { border-top: 4px solid #8e2834; }

  .isolation-dialog { width: min(900px,calc(100% - 48px)); max-height: calc(100dvh - 48px); margin: 4vh auto auto; padding: 0; background: #eeeee8; color: #1a1d1e; border: 1px solid #a3a8a5; border-top: 7px solid #a53543; border-radius: 0; }
  .isolation-dialog::backdrop { background: #08090bf2; }
  .isolation-header { display: flex; align-items: center; gap: 14px; padding: 15px 64px 15px 24px; background: #16191b; color: #f4f3ec; border-bottom: 1px solid #5d6363; font-size: 12px; }
  .isolation-header img { filter: invert(1); }
  .isolation-header b { font: 500 13px var(--mono); margin-left: auto; }
  .isolation-dialog .dialog-close { top: 16px; right: 17px; }
  .isolation-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); }
  .isolation-sign { display: flex; flex-direction: column; align-items: center; padding: 54px 20px 28px; color: #fff0e9; background: #6f1823; border-right: 1px solid #952b38; }
  .isolation-sign .cognitive-mark { --paper: #6f1823; }
  .isolation-sign > span { font: 500 11px var(--mono); margin-top: 26px; }
  .isolation-sign > strong { font-size: 24px; font-weight: 650; letter-spacing: .15em; margin-top: 14px; }
  .isolation-content { padding: 32px 36px 26px; }
  .isolation-content h2 { font-size: 32px; line-height: 1.3; letter-spacing: 0; margin: 0 0 20px; }
  .isolation-content > p { font-size: 14px; line-height: 1.85; margin: 0 0 24px; }
  .isolation-status { border-block: 1px solid #8f9690; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font: 11px/1.6 var(--mono); }
  .isolation-status > span { display: flex; align-items: center; gap: 8px; }
  .isolation-status b { color: #85222c; font-weight: 500; }
  .isolation-content .isolation-quote { font-size: 14px; font-weight: 600; padding-top: 20px; margin-bottom: 22px; }
  .isolation-accept { width: 100%; justify-content: space-between; font-size: 15px; min-height: 50px; color: #fff4ed; background: #711b27; border: 1px solid #711b27; padding-inline: 18px; }
  .isolation-accept:hover { background: #912436; border-color: #912436; }
  .isolation-alternative { padding-top: 20px; }
  .isolation-alternative a { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: #252a28; text-decoration: underline; text-underline-offset: 5px; padding: 6px 0; min-height: 44px; }
  .isolation-alternative a:hover { color: #85222c; }
  .isolation-alternative p { font-size: 12px; line-height: 1.85; color: #555d57; margin: 12px 0 0; }
  .isolation-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 24px; background: #171a1c; color: #c8ceca; }
  .isolation-footer > span { font-size: 11px; flex-shrink: 0; }
  .isolation-footer small { font-size: 10px; line-height: 1.7; }
}
@media screen and (prefers-reduced-motion:no-preference) {
  .isolation-dialog[open] { animation: isolation-open 220ms cubic-bezier(.16,1,.3,1); }
  @keyframes isolation-open { from { clip-path: inset(0 0 12% 0); transform: translateY(-8px); } to { clip-path: inset(0); transform: translateY(0); } }
}
@media screen and (min-width:761px) {
  body[data-page="index"] #menu-toggle { display: inline-flex!important; margin-left: 16px; }
  body[data-page="index"].nav-open .sidebar { display: block; position: fixed; top: 0; bottom: 0; left: 0; width: 250px; padding: 28px 24px; z-index: 55; background: #101113; overflow-y: auto; }
  body[data-page="index"].nav-open .nav-scrim { display: block; position: fixed; inset: 0; z-index: 50; background: #08090bbf; border: 0; width: 100%; height: 100%; }
}
@media screen and (max-width:760px) {
  body[data-page="index"] .sidebar { display: block; }
  .masthead-level, body:not([data-page="index"]) .masthead-level { min-width: 80px; padding-left: 14px; }
  .masthead, body:not([data-page="index"]) .masthead { gap: 12px; }
  .file-cover-main { padding: 24px 24px 0; }
  .cover-identity { gap: 22px; grid-template-columns: minmax(0,1fr) auto; }
  .cover-emblem { display: none; }
  .cover-name { padding-right: 0; border: 0; }
  .cover-name h1 { font-size: 32px; }
  .cover-register > div { gap: 10px; }
  .cover-register > div + div { padding-left: 16px; }
  .cover-register dd { font-size: 15px; }
  .access-boundary { grid-template-columns: 70px minmax(0,1fr); padding: 24px; gap: 18px; }
  .boundary-symbol .cognitive-mark { width: 66px; height: 64px; }
  .boundary-copy h2 { font-size: 29px; }
  .boundary-copy p br { display: none; }
  .boundary-notice { grid-column: 2; padding: 0; margin-top: -6px; }
  .restricted-folio { flex-wrap: wrap; padding: 16px 24px; gap: 12px; }
  .folio-actions { margin-left: auto; }
  .cover-enclosure { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .enclosure-photograph { max-width: 260px; }
  .cover-enclosure .intro-note { grid-row: 1; }
  .isolation-dialog { width: calc(100% - 32px); max-height: calc(100dvh - 32px); margin-top: 16px; }
  .isolation-layout { grid-template-columns: 150px minmax(0,1fr); }
  .isolation-sign { padding: 36px 16px; }
  .isolation-sign .cognitive-mark { width: 95px; height: 90px; }
  .isolation-sign > span { font-size: 9px; }
  .isolation-sign > strong { font-size: 19px; }
  .isolation-content { padding: 28px 24px 24px; }
  .isolation-content h2 { font-size: 26px; }
  .isolation-footer { align-items: flex-start; flex-direction: column; gap: 5px; padding-inline: 20px; }
}
@media screen and (max-width:520px) {
  .brand strong, body:not([data-page="index"]) .brand strong { font-size: 23px; }
  .masthead-level > strong, body:not([data-page="index"]) .masthead-level > strong { font-size: 31px; }
  .file-binding { padding: 10px 16px; font-size: 10px; gap: 12px; }
  .file-binding > span:first-child { max-width: 130px; }
  .file-cover-main { padding: 20px 18px 0; }
  .cover-identity { gap: 16px; padding-bottom: 20px; }
  .cover-item > strong { font-size: 56px; }
  .cover-name h1 { font-size: 29px; }
  .cover-name p { font-size: 10px; }
  .cover-register > div { display: block; padding: 12px 0; }
  .cover-register > div + div { padding-left: 12px; }
  .cover-register dt { font-size: 10px; }
  .cover-register dd { font-size: 14px; margin-top: 8px; line-height: 1.3; }
  .cover-register > div:first-child dd { font-size: 21px; }
  .definition-aperture { min-height: 66px; gap: 14px; }
  .definition-aperture > span, .definition-aperture > strong { font-size: 11px; }
  .access-boundary { padding: 21px 18px; grid-template-columns: 56px minmax(0,1fr); gap: 16px; }
  .boundary-symbol .cognitive-mark { width: 54px; height: 52px; }
  .boundary-copy h2 { font-size: 27px; }
  .boundary-copy p { font-size: 11px; }
  .restricted-folio { padding: 16px 18px; font-size: 10px; }
  .restricted-folio > span { max-width: none; }
  .folio-actions { width: 100%; gap: 14px; justify-content: space-between; flex-direction: row-reverse; }
  .folio-actions a { font-size: 11px; }
  .restricted-folio #start-reading { gap: 14px; padding: 12px 14px; }
  .cover-enclosure { padding: 24px 20px; }
  .access-perimeter { font-size: 10px; gap: 8px; flex-wrap: wrap; }
  .access-perimeter > span { gap: 5px; }
  .perimeter-divider { width: 12px; margin-right: 0; }
  .isolation-header { padding: 12px 44px 12px 16px; gap: 10px; font-size: 10px; }
  .isolation-header img { width: 28px; height: 28px; }
  .isolation-header b { font-size: 10px; }
  .isolation-dialog .dialog-close { top: 12px; right: 8px; }
  .isolation-layout { display: block; }
  .isolation-sign { flex-direction: row; justify-content: space-between; gap: 14px; padding: 14px 20px; border: 0; }
  .isolation-sign .cognitive-mark { width: 42px; height: 40px; }
  .isolation-sign > span { margin: 0; font-size: 10px; }
  .isolation-sign > strong { margin: 0; font-size: 16px; letter-spacing: .03em; }
  .isolation-content { padding: 24px 20px; }
  .isolation-content h2 { font-size: 24px; margin-bottom: 16px; }
  .isolation-content > p { font-size: 13px; margin-bottom: 18px; }
  .isolation-status { font-size: 10px; gap: 12px; }
  .isolation-content .isolation-quote { font-size: 13px; margin-bottom: 18px; }
  .isolation-alternative p { font-size: 11px; }
  .isolation-footer small { font-size: 10px; }
}
@media screen and (max-width:360px) {
  .cover-item > strong { font-size: 46px; }
  .cover-name h1 { font-size: 25px; }
  .cover-name p { font-size: 9px; }
  .isolation-header > span { max-width: 100px; }
  .isolation-sign { gap: 10px; padding-inline: 16px; }
  .isolation-sign > span { font-size: 9px; }
  .isolation-sign > strong { font-size: 14px; }
  .isolation-content { padding: 22px 16px; }
  .isolation-content h2 { font-size: 22px; }
  .isolation-status > span { gap: 4px; }
}
@media print {
  .access-perimeter, .access-boundary, .restricted-folio button { display: none; }
  .restricted-cover { border: 1px solid #333; padding: 20px; }
  .cover-item > strong { font-size: 30px; }
  .cover-name h1 { font-size: 26px; }
  .cover-emblem { display: none; }
  .definition-void { display: none; }
  .enclosure-photograph { max-width: 250px; }
  .enclosure-photograph img { width: 100%; }
}
