/* ============================================================
   MISSION DEBRIEF — the "document" system for gated case studies.
   Loaded ONLY by the 5 password-protected pages, after pixel.css.

   Metaphor: declassified in-game mission files retrieved from a
   terminal behind the security checkpoint. The password gate is
   the clearance system; the auth cookie is the keycard.

   Per-page variation is ONLY the classification label text and
   the page accent — everything else stays identical across the
   five files. That's what keeps the set cohesive.
   ============================================================ */

/* ---------- File header plate ---------- */
[data-skin="pixel"] .dossier-head {
  position: relative;
  background: var(--surface);
  border: 3px solid var(--rule-bright);
  box-shadow:
    inset 0 0 0 2px var(--bg),
    inset 0 0 0 5px var(--px-edge-light),
    6px 6px 0 0 var(--px-shadow);
  padding: calc(var(--s-7) + 5px) calc(var(--s-6) + 5px) calc(var(--s-6) + 5px);
  margin-bottom: var(--s-8);
}

/* classification banner riding the top border */
[data-skin="pixel"] .dossier-class {
  position: absolute;
  top: -14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1;
  text-transform: uppercase;
  padding: 7px 10px;
  border: 3px solid var(--rule-bright);
  box-shadow: 3px 3px 0 0 var(--px-shadow);
}

/* field grid: FILE NO / CLEARANCE / STATUS / ERA */
[data-skin="pixel"] .dossier-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 2px dashed var(--rule);
}
[data-skin="pixel"] .dossier-field__k {
  font-family: var(--font-pixel);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
[data-skin="pixel"] .dossier-field__v {
  font-family: var(--font-crt);
  font-size: 21px;
  line-height: 1.2;
  color: var(--text);
}
[data-skin="pixel"] .dossier-field__v--ok { color: var(--positive); }

/* ---------- Section furniture ---------- */
/* stamped section label, e.g. [03] OPERATIONS — pairs with .sec-h */
[data-skin="pixel"] .dossier-sec-tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid color-mix(in oklch, var(--accent) 55%, transparent);
  padding: 5px 8px;
  margin-bottom: var(--s-3);
}

/* FIELD NOTE margin slip */
[data-skin="pixel"] .dossier-note {
  border-left: 4px solid var(--spot);
  background: color-mix(in oklch, var(--spot) 7%, transparent);
  padding: var(--s-4) var(--s-5);
  margin: var(--s-5) 0;
}
[data-skin="pixel"] .dossier-note__label {
  font-family: var(--font-pixel);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--spot);
  margin-bottom: 8px;
}
[data-skin="pixel"] .dossier-note__body {
  font-family: var(--font-crt);
  font-size: 22px;
  line-height: 1.3;
  color: var(--text);
}

/* decorative-only redaction bar — NEVER over real content */
[data-skin="pixel"] .dossier-redact {
  display: inline-block;
  height: 0.9em;
  background: repeating-linear-gradient(90deg, var(--text) 0 8px, var(--text-faint) 8px 10px);
  vertical-align: -0.1em;
  border-radius: 0;
  user-select: none;
}

/* paperclip corner accent for panels */
[data-skin="pixel"] .dossier-clip::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 22px;
  width: 10px;
  height: 22px;
  border: 3px solid var(--text-dim);
  border-bottom: 0;
  z-index: 1;
}

/* outcome metrics get stamps; wrapper keeps them off the text flow */
[data-skin="pixel"] .dossier-stamp-row {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
  align-items: center;
  margin: var(--s-5) 0;
}

/* paper texture wash for the reading column */
[data-skin="pixel"] .dossier-paper {
  background-image: repeating-conic-gradient(
    oklch(1 0 0 / 0.015) 0% 25%,
    transparent 0% 50%
  );
  background-size: 4px 4px;
}

/* clearance chip shown in the head (the payoff of the password gate) */
[data-skin="pixel"] .dossier-clearance {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 8px;
  text-transform: uppercase;
  color: var(--positive);
  border: 2px solid var(--positive);
  padding: 5px 8px;
}
