:root {
  --paper: #f4efe5;
  --sheet: #fffaf0;
  --ink: #171312;
  --muted: #655c55;
  --line: #d9d0c2;
  --red: #c1121f;
  --red-deep: #5f1214;
  --yellow: #f2c230;
  --graphite: #242a2e;
  --green: #2f6f58;
  --shadow: 0 18px 40px rgba(25, 19, 16, .13);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(23,19,18,.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23,19,18,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  line-height: 1.58;
}
a { color: inherit; text-decoration: none; }

.masthead {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  min-height: 92px;
  border-bottom: 4px solid var(--ink);
  background: var(--sheet);
}
.wordmark {
  display: grid;
  align-content: center;
  padding: 18px clamp(18px, 3vw, 34px);
  background: var(--red);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: .92;
}
.wordmark span { font-size: .86rem; font-weight: 900; }
.wordmark strong { font-size: clamp(1.45rem, 2.4vw, 2.2rem); }
.rail-nav {
  display: flex;
  align-items: stretch;
  border-left: 4px solid var(--ink);
}
.rail-nav a {
  display: grid;
  place-items: center;
  min-width: 128px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .82rem;
}
.rail-nav a:hover { background: var(--yellow); }
.mast-note {
  display: grid;
  place-items: center;
  padding: 14px 24px;
  font-weight: 800;
  color: var(--muted);
  border-left: 1px solid var(--line);
}

.edition {
  max-width: 1440px;
  margin: 0 auto;
  background: rgba(244,239,229,.6);
}
.cover {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(300px, 440px);
  min-height: 560px;
  border-bottom: 4px solid var(--ink);
  background:
    radial-gradient(circle at 78% 24%, rgba(193,18,31,.18), transparent 28%),
    linear-gradient(135deg, var(--sheet) 0 68%, #211819 68% 100%);
}
.cover-kicker {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 30px;
  border-left: 4px solid var(--ink);
  border-right: 1px solid var(--line);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--red);
}
.cover-title {
  align-self: center;
  padding: clamp(30px, 6vw, 72px);
  max-width: 920px;
}
h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: 0; }
h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.55rem, 5.6vw, 5.85rem);
  max-width: 840px;
}
h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}
h3 { font-size: 1.05rem; }
p { color: var(--muted); }
.cover-title p {
  max-width: 700px;
  font-size: clamp(1.05rem, 1.8vw, 1.34rem);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.control-search {
  align-self: end;
  margin: 0;
  padding: 28px;
  background: var(--graphite);
  color: white;
  border-left: 4px solid var(--ink);
}
.control-search label {
  display: block;
  margin-bottom: 10px;
  color: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .78rem;
}
.control-search div:first-of-type { display: grid; grid-template-columns: 1fr 64px; gap: 8px; }
.control-search input,
.control-search button {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 14px;
  font: inherit;
}
.control-search button {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}
.search-results {
  display: grid;
  margin-top: 10px;
  gap: 6px;
}
.search-results a {
  padding: 9px 10px;
  background: rgba(255,255,255,.09);
  color: white;
  border-left: 3px solid var(--yellow);
}

.inspection-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) minmax(210px, .65fr);
  border-bottom: 4px solid var(--ink);
  background: var(--sheet);
}
.inspection-strip div,
.inspection-strip a {
  min-height: 132px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}
.inspection-strip span {
  display: block;
  color: var(--red);
  font: 900 clamp(2.3rem, 5vw, 4.4rem)/.9 Georgia, 'Times New Roman', serif;
}
.inspection-strip small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}
.inspection-strip a {
  display: grid;
  place-items: center;
  background: var(--yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 0;
  border-bottom: 4px solid var(--ink);
}
.workbench aside {
  padding: clamp(28px, 5vw, 58px);
  background: #25191a;
  color: white;
}
.workbench aside p { color: var(--yellow); }
.workbench aside ol {
  margin: 28px 0 0;
  padding-left: 22px;
}
.workbench aside li {
  margin: 14px 0;
  color: rgba(255,255,255,.82);
  font-weight: 700;
}
.workbench > div {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255,250,240,.72);
}
.module-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.operative-list,
.archive-index,
.dossier-list {
  display: grid;
  border-top: 1px solid var(--line);
}
.list-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(180px, 260px) 28px;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .18s ease, color .18s ease;
}
.list-row:hover {
  padding-left: 10px;
  color: var(--red);
}
.list-row span {
  color: var(--red);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.list-row strong {
  line-height: 1.15;
  font-size: 1.02rem;
}
.list-row small {
  color: var(--muted);
  font-weight: 700;
}
.list-row b {
  color: var(--red);
  transition: transform .18s ease;
}
.list-row:hover b { transform: translateX(4px); }

.dossier {
  padding: clamp(32px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(193,18,31,.08), transparent 30%),
    var(--paper);
}
.dossier-head {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 28px;
  margin-bottom: 24px;
}

.archive-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: end;
  padding: clamp(34px, 7vw, 88px);
  border-bottom: 4px solid var(--ink);
  background: var(--sheet);
}
.archive-head .eyebrow { writing-mode: vertical-rl; transform: rotate(180deg); margin: 0; }
.archive-head h1 {
  font-size: clamp(2.25rem, 4.8vw, 4.85rem);
}
.archive-head p {
  max-width: 760px;
  font-size: 1.1rem;
}
.archive-shell {
  padding: clamp(28px, 5vw, 58px);
  background: rgba(255,250,240,.7);
}

.manual {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 60px);
}
.manual-head {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 4px solid var(--ink);
}
.manual-head span {
  display: inline-grid;
  place-items: center;
  min-height: 96px;
  padding: 16px;
  background: var(--red);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
}
.manual-head h1 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}
.manual-head p {
  grid-column: 2;
  max-width: 760px;
  font-size: 1.12rem;
}
.manual-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 58px);
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.stamp {
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 4px solid var(--ink);
  background: var(--yellow);
  transform: rotate(-1deg);
}
.stamp strong {
  font-size: 1.28rem;
  line-height: 1.05;
  text-transform: uppercase;
}
.stamp span {
  padding-top: 10px;
  border-top: 1px solid rgba(23,19,18,.25);
  font-weight: 800;
}
.manual-copy {
  max-width: 760px;
}
.manual-copy h2,
.procedure h2,
.faq h2 {
  font-size: clamp(1.45rem, 2.35vw, 2.1rem);
  margin-bottom: 14px;
}
.procedure {
  margin: 38px 0;
  padding: 28px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-left: 10px solid var(--red);
}
.procedure ol {
  margin: 0;
  padding-left: 24px;
  columns: 2;
  column-gap: 44px;
}
.procedure li {
  break-inside: avoid;
  margin: 0 0 12px;
}
.faq {
  margin-top: 42px;
  border-top: 4px solid var(--ink);
  padding-top: 24px;
}
details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 900;
}
.related {
  margin-top: 42px;
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 32px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}
.site-footer p { color: rgba(255,255,255,.68); max-width: 760px; }
.site-footer a {
  display: inline-flex;
  margin-left: 16px;
  color: var(--yellow);
  font-weight: 900;
}

@media (max-width: 900px) {
  .masthead,
  .cover,
  .inspection-strip,
  .workbench,
  .archive-head,
  .manual-head,
  .manual-grid {
    grid-template-columns: 1fr;
  }
  .masthead { min-height: auto; }
  .rail-nav { border-left: 0; overflow-x: auto; }
  .rail-nav a { min-width: 110px; }
  .mast-note { display: none; }
  .cover { min-height: auto; }
  .cover-kicker {
    writing-mode: horizontal-tb;
    transform: none;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 22px;
  }
  .cover-title { padding: 34px 22px; }
  .control-search { border-left: 0; }
  .inspection-strip div,
  .inspection-strip a { min-height: 96px; }
  .module-title { display: block; }
  .list-row {
    grid-template-columns: 1fr 24px;
    gap: 6px 12px;
  }
  .list-row span,
  .list-row small { grid-column: 1; }
  .list-row b { grid-row: 1 / span 3; grid-column: 2; }
  .archive-head .eyebrow { writing-mode: horizontal-tb; transform: none; }
  .manual-head p { grid-column: 1; }
  .procedure ol { columns: 1; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer a { margin: 0 14px 0 0; }
}
