/* ==========================================================================
   Vehicle Lab Zone — design system
   Direction C, "The Decision Record"
   The organising unit of this site is the decision.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colour — warm paper, mineral grey, ink, one controlled accent.
     Contrast, measured against --paper:
       --ink      13.6:1   body and headings
       --ink-2     7.1:1   secondary text
       --ink-3     4.73:1  captions and labels, worst case (on --paper-3)
       --accent    6.2:1   links, decision marks
       --mineral   3.75:1  form and control borders (AA non-text minimum is 3:1)
       --mineral-2 2.2:1   decorative hairline rules only, never a control edge  */
  --paper:      #f7f4ef;
  --paper-2:    #efeae1;
  --paper-3:    #e6e0d4;
  --ink:        #1c1a17;
  --ink-2:      #55504a;
  --ink-3:      #666058;   /* 5.66:1 paper, 5.19:1 paper-2, 4.73:1 paper-3 */
  --mineral:    #847c70;   /* 3.75:1 on paper — UI borders and form outlines */
  --mineral-2:  #c9c1b3;   /* hairline rules only, never a control edge */
  --accent:     #7a4426;   /* oxidised copper */
  --accent-ink: #5e3319;   /* accent on hover / small text */
  --accent-bg:  #f0e6dd;

  /* Type. Swap --font-sans and --font-serif for the licensed families in
     Phase 3; nothing else needs to change. Self-host and subset — no CDN. */
  --font-sans: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Palatino,
                "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Fluid scale, 360px → 1440px */
  --step--1: clamp(0.79rem, 0.77rem + 0.10vw, 0.85rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.19vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.36vw, 1.44rem);
  --step-2:  clamp(1.44rem, 1.30rem + 0.62vw, 1.85rem);
  --step-3:  clamp(1.73rem, 1.50rem + 1.00vw, 2.37rem);
  --step-4:  clamp(2.07rem, 1.72rem + 1.55vw, 3.04rem);
  --step-5:  clamp(2.49rem, 1.95rem + 2.36vw, 3.89rem);

  /* Space */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --measure: 34rem;          /* body text max line length */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --wrap: 78rem;

  --radius: 2px;             /* almost none — this is a technical system */
  --border: 1px solid var(--mineral-2);
  --focus: 3px solid var(--accent);
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;      /* belt and braces — nothing should overflow anyway */
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.15; text-wrap: balance; }
p, ul, ol, dl { margin: 0 0 var(--sp-4); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }

hr { border: 0; border-top: var(--border); margin: var(--sp-7) 0; }

/* --------------------------------------------------------------------------
   3. Accessibility primitives
   These are load-bearing. The previous site failed on every one of them.
   -------------------------------------------------------------------------- */

/* Visible keyboard focus, everywhere, always. Never remove without replacing. */
:focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -6rem;
  z-index: 999;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-3) var(--sp-4);
  text-decoration: none;
  transition: top 120ms ease;
}
.skip-link:focus { top: var(--sp-4); color: var(--paper); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* Reveal animation.
   CRITICAL: text is opaque and readable at all times. The reveal only moves
   the element. If JS never runs, if the observer never fires, if motion is
   reduced — the content is still fully legible. This is the F1 fix and it
   must never be reverted to an opacity fade. */
.reveal { transform: translateY(8px); transition: transform 500ms ease; }
.reveal.is-in, .no-js .reveal { transform: none; }

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

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

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

.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink a { color: var(--paper); }

@media (min-width: 48em) {
  .section { padding-block: var(--sp-9); }
}

.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--sp-4); }

/* Body copy is left-aligned. Centred multi-line paragraphs are a readability
   failure at narrow widths — the previous About page did exactly this. */
.prose p { text-align: left; }

/* --------------------------------------------------------------------------
   5. Typography roles
   -------------------------------------------------------------------------- */

.t-display {
  font-family: var(--font-serif);
  font-size: var(--step-5);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.t-h1 { font-family: var(--font-serif); font-size: var(--step-4); font-weight: 400; letter-spacing: -0.01em; }
.t-h2 { font-size: var(--step-3); font-weight: 500; letter-spacing: -0.005em; }
.t-h3 { font-size: var(--step-1); font-weight: 600; }
.t-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 38rem; }

/* The serif always means "this is the idea". Project names and governing
   ideas only — nothing else. */
.t-idea {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  line-height: 1.3;
  font-weight: 400;
  max-width: 30ch;
}

/* System labels — the controlled vocabulary */
.t-label {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--sp-2);
}
.t-label--accent { color: var(--accent-ink); }

.t-code {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.t-meta { font-size: var(--step--1); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   6. The decision block — the signature component
   -------------------------------------------------------------------------- */

.decision {
  border-top: 2px solid var(--ink);
  padding-top: var(--sp-4);
  margin-block: var(--sp-6);
  max-width: 42rem;
}
.decision__system {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 var(--sp-3);
}
.decision__row { display: grid; gap: var(--sp-1); padding-block: var(--sp-3); border-bottom: var(--border); }
.decision__row:last-child { border-bottom: 0; }
.decision__key {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.decision__val { margin: 0; }

@media (min-width: 40em) {
  .decision__row { grid-template-columns: 9rem 1fr; gap: var(--sp-5); align-items: start; }
  .decision__key { padding-top: 0.15em; }
}

/* What was deliberately retained — no competitor publishes this */
.retained {
  background: var(--accent-bg);
  border-left: 3px solid var(--accent);
  padding: var(--sp-5);
  margin-block: var(--sp-6);
  max-width: 42rem;
}
.retained h3 { margin-bottom: var(--sp-3); }
.retained ul { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   7. Header and navigation
   Rebuilt from scratch: one toggle, one drawer, one close control.
   The previous site had three duplicated link sets and two close buttons.
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
}
.wordmark {
  font-family: var(--font-serif);
  font-size: var(--step-0);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px; min-width: 44px;
  padding: var(--sp-2) var(--sp-3);
  background: none; border: var(--border); border-radius: var(--radius);
  font: inherit; font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--paper-2); }

.nav-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: var(--gutter);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-7); }
.nav-drawer__list { list-style: none; margin: 0; padding: 0; }
.nav-drawer__list li { margin-bottom: var(--sp-4); }
.nav-drawer__list a {
  font-family: var(--font-serif);
  font-size: var(--step-3);
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding-block: var(--sp-1);
}
.nav-drawer__list a:hover,
.nav-drawer__list a[aria-current="page"] { color: var(--accent-ink); text-decoration: underline; }
.nav-drawer__foot { margin-top: auto; padding-top: var(--sp-7); }

/* Desktop: inline nav, drawer never used */
.nav-inline { display: none; }
@media (min-width: 60em) {
  .nav-toggle { display: none; }
  .nav-inline { display: flex; gap: var(--sp-5); list-style: none; margin: 0; padding: 0; align-items: center; }
  .nav-inline a {
    color: var(--ink); text-decoration: none;
    font-size: var(--step--1); font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding-block: var(--sp-2);
    border-bottom: 2px solid transparent;
  }
  .nav-inline a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
  .nav-inline a[aria-current="page"] { border-bottom-color: var(--ink); }
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-5);
  font: inherit; font-size: var(--step-0); font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  transition: background 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--paper); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-5); }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.link-arrow:hover { border-bottom-color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   9. Cards and grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48em) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.project-card { border-top: 2px solid var(--ink); padding-top: var(--sp-4); }
.project-card__media {
  background: var(--paper-3);
  aspect-ratio: 3 / 2;
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card h3 { font-family: var(--font-serif); font-size: var(--step-2); font-weight: 400; margin-bottom: var(--sp-2); }

/* Capability / process blocks */
.stack-block { border-top: var(--border); padding-block: var(--sp-6); }
.stack-block:first-of-type { border-top: 2px solid var(--ink); }
.stack-block h2, .stack-block h3 { margin-bottom: var(--sp-3); }
.stack-block dl { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 0; }
.stack-block dt {
  font-size: var(--step--1); font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
}
.stack-block dd { margin: 0 0 var(--sp-3); max-width: var(--measure); }
@media (min-width: 44em) {
  .stack-block dl { grid-template-columns: 11rem 1fr; column-gap: var(--sp-5); row-gap: var(--sp-2); }
  .stack-block dd { margin-bottom: var(--sp-2); }
}

.stage-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   10. Responsibility table → stacks on mobile, never scrolls sideways
   -------------------------------------------------------------------------- */

.resp { display: grid; gap: var(--sp-5); margin-block: var(--sp-6); }
.resp__party { border-top: 2px solid var(--ink); padding-top: var(--sp-4); }
.resp__party h3 { margin-bottom: var(--sp-3); }
.resp__party ul { margin-bottom: 0; padding-left: 1.1em; }
.resp__party li { font-size: var(--step--1); }
@media (min-width: 52em) { .resp { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72em) { .resp { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   11. Specification table
   -------------------------------------------------------------------------- */

.spec { width: 100%; border-collapse: collapse; margin-block: var(--sp-5); font-size: var(--step--1); }
.spec caption { text-align: left; font-weight: 600; margin-bottom: var(--sp-3); color: var(--ink-3); }
.spec th, .spec td { text-align: left; padding: var(--sp-3) var(--sp-3) var(--sp-3) 0; border-bottom: var(--border); vertical-align: top; }
.spec th { font-weight: 600; color: var(--ink-3); width: 40%; }

/* --------------------------------------------------------------------------
   12. Video — poster + click to load. No third-party iframe before interaction.
   -------------------------------------------------------------------------- */

.video-embed { max-width: 52rem; }
.video-embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-3);
  border: var(--border);
  overflow: hidden;
}
.video-embed__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__btn {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--sp-3);
  background: var(--paper-3);
  border: 0; cursor: pointer;
  font: inherit; color: var(--ink);
}
.video-embed__btn:hover { background: var(--mineral-2); }
.video-embed__play {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 1.5rem;
}
.video-embed figcaption { margin-top: var(--sp-3); font-size: var(--step--1); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   13. Forms
   Labels are real <label for>. Placeholders are hints, never labels.
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--sp-5); max-width: 34rem; }
.field > label,
.fieldset__legend {
  display: block;
  font-weight: 600;
  font-size: var(--step-0);
  margin-bottom: var(--sp-2);
}
.field__hint { display: block; font-size: var(--step--1); color: var(--ink-3); margin-bottom: var(--sp-2); font-weight: 400; }
.req { color: var(--accent-ink); font-weight: 600; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="number"], select, textarea {
  width: 100%;
  /* 16px minimum prevents iOS zoom-on-focus */
  font: inherit; font-size: max(16px, var(--step-0));
  padding: var(--sp-3);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--mineral);
  border-radius: var(--radius);
  min-height: 48px;
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: #8a2216; }

fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
legend { padding: 0; }

.choice-list { display: grid; gap: var(--sp-2); }
.choice {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3);
  border: 2px solid var(--mineral-2);
  border-radius: var(--radius);
  cursor: pointer;
  min-height: 48px;
  background: var(--paper);
}
.choice:hover { border-color: var(--ink-3); background: var(--paper-2); }
.choice input { width: 20px; height: 20px; margin: 0.2em 0 0; flex: none; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--accent-bg); }
.choice:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }

.form-note {
  background: var(--paper-2);
  border-left: 3px solid var(--ink);
  padding: var(--sp-5);
  margin-block: var(--sp-6);
  max-width: 42rem;
}
.form-note ul { margin-bottom: 0; }

.error-summary {
  border: 2px solid #8a2216;
  background: #fbeeec;
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  max-width: 42rem;
}
.error-summary[hidden] { display: none; }
.error-summary h2 { font-size: var(--step-1); margin-bottom: var(--sp-2); color: #7a1d13; }
.field__error { display: block; color: #7a1d13; font-size: var(--step--1); font-weight: 600; margin-top: var(--sp-2); }

/* Multi-step */
.step[hidden] { display: none; }
.step__count {
  font-family: var(--font-mono); font-size: var(--step--1);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: var(--sp-2);
}
.progress { display: flex; gap: 4px; margin-bottom: var(--sp-6); max-width: 34rem; }
.progress__seg { height: 4px; flex: 1; background: var(--mineral-2); }
.progress__seg.is-done { background: var(--ink); }
.step-nav { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Without JavaScript every step is shown as one long form. */
.no-js .step[hidden] { display: block; }
.no-js .step-nav .btn[data-step-back],
.no-js .step-nav .btn[data-step-next],
.no-js .progress { display: none; }

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: var(--paper); padding-block: var(--sp-8); margin-top: var(--sp-9); }
.site-footer a { color: var(--paper); text-decoration-color: var(--mineral); }
.site-footer a:hover { color: var(--mineral-2); }
.site-footer .wordmark { color: var(--paper); }
.site-footer__line { font-family: var(--font-serif); font-size: var(--step-1); margin: var(--sp-4) 0 var(--sp-6); color: var(--paper); }
.site-footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 48em) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: var(--sp-2); font-size: var(--step--1); }
.site-footer__legal { border-top: 1px solid #3a352f; margin-top: var(--sp-7); padding-top: var(--sp-5); font-size: var(--step--1); color: var(--mineral); }
.site-footer__legal a { color: var(--mineral-2); }

/* --------------------------------------------------------------------------
   15. Cookie notice
   Bottom sheet. Never overlays inputs or the submit control.
   Suppressed entirely on the enquiry page while a field has focus.
   -------------------------------------------------------------------------- */

.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--ink); color: var(--paper);
  padding: var(--sp-4) var(--gutter);
  padding-bottom: calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  display: grid; gap: var(--sp-3);
  border-top: 2px solid var(--accent);
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; font-size: var(--step--1); max-width: 46rem; }
.cookie__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.cookie .btn { min-height: 44px; background: var(--paper); color: var(--ink); border-color: var(--paper); font-size: var(--step--1); }
.cookie .btn--secondary { background: transparent; color: var(--paper); }
@media (min-width: 52em) {
  .cookie { grid-template-columns: 1fr auto; align-items: center; }
}
/* When the notice is showing, keep the page bottom clear of it. */
body.has-cookie { padding-bottom: 8rem; }

/* --------------------------------------------------------------------------
   16. Editorial placeholder
   Marks content that is NOT publishable. Deliberately loud — it must be
   impossible to ship one of these by accident.
   -------------------------------------------------------------------------- */

.pending {
  border: 2px dashed var(--accent);
  background: var(--accent-bg);
  padding: var(--sp-5);
  margin-block: var(--sp-5);
  max-width: 46rem;
}
.pending::before {
  content: "CONTENT PENDING — NOT FOR PUBLICATION";
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.pending p:last-child, .pending ul:last-child { margin-bottom: 0; }
.pending ul { font-size: var(--step--1); }

.media-slot {
  background: var(--paper-3);
  border: 2px dashed var(--mineral);
  aspect-ratio: 3 / 2;
  display: grid; place-items: center;
  padding: var(--sp-5);
  text-align: center;
  color: var(--ink-3);
  font-size: var(--step--1);
  margin-block: var(--sp-5);
}

/* --------------------------------------------------------------------------
   17. Image plates
   -------------------------------------------------------------------------- */

.plate { margin: 0 0 var(--sp-5); }
.plate img {
  width: 100%;
  background: var(--paper-3);
  border: 1px solid var(--mineral-2);
}
.plate figcaption {
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--ink-3);
  max-width: 34rem;
}

/* --------------------------------------------------------------------------
   18. Drafted content — written from supplied material, awaiting sign-off.
   Distinct from .pending, which marks content that does not exist at all.
   -------------------------------------------------------------------------- */

.drafted {
  border-left: 3px solid var(--ink);
  padding: var(--sp-4) 0 var(--sp-1) var(--sp-5);
  margin-block: var(--sp-4);
}
.drafted__flag {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-3);
  font-weight: 700;
}
.drafted .decision:first-of-type { margin-top: 0; }
