/* ============================================================
   BCIA F-7.2 — recruitment portal stylesheet
   Sibling to the live mothership dashboard (dashboard/src/styles/).
   Same dark CRT chrome: Press Start 2P + VT323, scanlines, vignette,
   phosphor / cyan / coral palette.
   ============================================================ */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/PressStart2P.woff2') format('woff2');
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/VT323.woff2') format('woff2');
}

:root {
  --bg:            #050a14;
  --bg-panel:      #0a1530;
  --bg-panel-dim:  #07101f;
  --hull:          #d8d4c4;
  --hull-shadow:   #6a6458;
  --frame:         #4a4438;

  --online:  #5cff8a;
  --partial: #ffb84d;
  --shield:  #5cd9d8;
  --core:    #e63950;
  --alert:   #ff4060;
  --sun:     #ffcb47;

  --text-body: #aaa8c8;
  --text-dim:  #6a6884;

  --chrome-font:  'Press Start 2P', ui-monospace, monospace;
  --term-font:    'VT323', ui-monospace, monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.5em; }
li { margin-bottom: 0.25em; }
a { color: var(--shield); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--sun); text-shadow: 0 0 6px var(--sun); }

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--term-font);
  font-size: 22px;
  line-height: 1.35;
  min-height: 100vh;
  position: relative;
}

/* Static star field — generated via radial-gradient, no JS */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(2px 2px at 12% 18%, #cfe9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 30% 70%, #e9e6c8 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 33%, #8ed8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 12%, #f5d0b0 50%, transparent 51%),
    radial-gradient(2px 2px at 81% 78%, #ffe6a8 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 44%, #c0d8ff 50%, transparent 51%),
    radial-gradient(1px 1px at 7%  88%, #d0c8ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 45% 90%, #d8e9ff 50%, transparent 51%),
    radial-gradient(1px 1px at 65% 60%, #ffd8d0 50%, transparent 51%);
  background-size: 100% 100%;
}

/* Scanlines + vignette overlay (kept slightly lighter than the TV display
   so long-form reading is still comfortable) */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0) 0px,
      rgba(0,0,0,0) 2px,
      rgba(0,0,0,0.10) 3px,
      rgba(0,0,0,0.10) 4px),
    radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.55) 100%);
}

/* ---------- console strip (top nav) ---------- */
.console-strip {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #07101f 0%, #050a14 100%);
  border-bottom: 2px solid var(--hull-shadow);
  font-family: var(--chrome-font);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.console-strip__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.console-strip__brand { color: var(--alert); }
.console-strip__file  { color: var(--sun); margin-left: -10px; }

.console-strip__eta {
  margin-left: auto;
  color: var(--online);
  text-shadow: 0 0 6px var(--online);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.eta-value { font-weight: normal; }

.console-strip__nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.console-strip__nav a {
  color: var(--shield);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.console-strip__nav a:hover,
.console-strip__nav a:focus {
  color: var(--sun);
  border-bottom-color: currentColor;
  text-shadow: 0 0 6px var(--sun);
}

/* ---------- main + panels ---------- */
main {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 18px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.folio {
  position: relative;
  border: 2px solid var(--hull-shadow);
  background: var(--bg-panel-dim);
  padding: 24px 26px 26px;
}

/* Panel-style heading rail (matches dashboard .panel-title) */
.folio > h2 {
  font-family: var(--chrome-font);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--shield);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hull-shadow);
  text-transform: uppercase;
}

.folio__corner {
  position: absolute;
  top: 8px;
  right: 12px;
  font-family: var(--chrome-font);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

/* ---------- typography ---------- */
h1 {
  font-family: var(--chrome-font);
  font-size: 22px;
  letter-spacing: 0.18em;
  color: var(--sun);
  text-shadow: 0 0 12px rgba(255,203,71,0.55);
  margin: 0 0 12px;
  text-transform: uppercase;
}
h3 {
  font-family: var(--chrome-font);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--partial);
  text-transform: uppercase;
  margin: 22px 0 10px;
}
p { margin: 0 0 12px; }
strong { color: var(--sun); font-weight: normal; }
em { color: var(--text-body); font-style: italic; }
code {
  font-family: var(--term-font);
  background: #02060d;
  border: 1px solid var(--hull-shadow);
  padding: 1px 6px;
  color: var(--online);
  font-size: 0.95em;
}

/* ---------- stamps & callouts ---------- */
.stamp {
  position: absolute;
  font-family: var(--chrome-font);
  font-size: 10px;
  letter-spacing: 0.22em;
  padding: 4px 9px;
  border: 2px solid currentColor;
  text-transform: uppercase;
  pointer-events: none;
}
.stamp--classified {
  top: 16px;
  right: 16px;
  color: var(--alert);
  text-shadow: 0 0 10px rgba(255,64,96,0.6);
  transform: rotate(-6deg);
}
.stamp--eyes {
  top: 56px;
  right: 32px;
  color: var(--shield);
  font-size: 8px;
  opacity: 0.85;
  transform: rotate(4deg);
}

.callout {
  border: 1px solid var(--partial);
  background: rgba(255,184,77,0.06);
  padding: 14px 18px;
  margin: 18px 0;
  position: relative;
}
.callout::before {
  content: '⚠';
  position: absolute;
  left: -14px;
  top: -14px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--partial);
  border: 1px solid var(--partial);
  font-size: 14px;
}
.callout--strong {
  border-color: var(--alert);
  background: rgba(255,64,96,0.07);
  box-shadow: 0 0 0 1px rgba(255,64,96,0.15) inset;
}
.callout--strong::before {
  color: var(--alert);
  border-color: var(--alert);
  content: '!';
  font-family: var(--chrome-font);
  text-shadow: 0 0 8px var(--alert);
}
.callout__heading {
  font-family: var(--chrome-font);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--alert);
  text-shadow: 0 0 10px rgba(255,64,96,0.5);
  margin: 0 0 8px;
}

/* ---------- hero ---------- */
.hero {
  padding-top: 36px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92,217,216,0.08), transparent 60%),
    var(--bg-panel-dim);
}
.letterhead { margin-bottom: 12px; }
.letterhead__agency {
  font-family: var(--chrome-font);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--shield);
}
.letterhead__file {
  font-family: var(--chrome-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-top: 4px;
}
.tagline {
  font-family: var(--term-font);
  font-size: 22px;
  color: var(--text-body);
  font-style: italic;
  margin: 6px 0 22px;
}

.hero__chips {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-block;
  font-family: var(--chrome-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-decoration: none;
  color: var(--online);
  border: 1px solid var(--online);
  padding: 9px 14px;
  background: rgba(92,255,138,0.05);
  text-shadow: 0 0 6px rgba(92,255,138,0.45);
}
.chip:hover, .chip:focus {
  background: rgba(92,255,138,0.18);
  text-shadow: 0 0 10px var(--online);
  color: var(--online);
}

/* ---------- tactical map (re-skinned for space-dark) ---------- */
.map {
  margin: 12px 0 6px;
  border: 2px solid var(--hull-shadow);
  background: #02060d;
  padding: 10px;
}
.map__title {
  font-family: var(--chrome-font);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--shield);
  text-align: center;
  padding: 4px 0 8px;
  border-bottom: 1px dashed var(--hull-shadow);
  margin-bottom: 10px;
}
.map__svg          { width: 100%; height: auto; background: #03081a; }
.map__svg .grid    { stroke: rgba(92,217,216,0.18); stroke-width: 1; stroke-dasharray: 2 4; }
.map__svg .grid-label {
  font-family: 'VT323', monospace;
  font-size: 10px;
  fill: var(--text-dim);
  letter-spacing: 0.1em;
}
.map__svg .land  { fill: #0d2a2a; stroke: var(--shield); stroke-width: 1.25; opacity: 0.95; }
.map__svg .ocean { fill: #03081a; stroke: none; }
.map__svg .ocean-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  fill: rgba(92,217,216,0.45);
  letter-spacing: 0.45em;
}
.map__svg .flight-path {
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.5;
  stroke-dasharray: 4 3;
  filter: drop-shadow(0 0 3px rgba(255,203,71,0.6));
}
.map__svg .pin           { stroke: #0a1530; stroke-width: 1; }
.map__svg .pin--crash    { fill: var(--alert); filter: drop-shadow(0 0 6px rgba(255,64,96,0.7)); }
.map__svg .pin--triangle { fill: var(--online); filter: drop-shadow(0 0 6px rgba(92,255,138,0.7)); }
.map__svg .pin--star     { fill: var(--sun); filter: drop-shadow(0 0 6px rgba(255,203,71,0.7)); }
.map__svg .pin--hostile  { fill: var(--core); filter: drop-shadow(0 0 6px rgba(230,57,80,0.7)); }
.map__svg .pin--minor    { fill: var(--shield); opacity: 0.6; }
.map__svg .pin-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  fill: var(--shield);
  letter-spacing: 0.1em;
}
.map__svg .pin-sub {
  font-family: 'VT323', monospace;
  font-size: 10px;
  fill: var(--text-dim);
  letter-spacing: 0.04em;
}
.map__svg .compass circle  { fill: var(--bg-panel-dim); stroke: var(--shield); }
.map__svg .compass text {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  fill: var(--shield);
}
.map__svg .compass-needle  { fill: var(--alert); stroke: var(--shield); stroke-width: 0.5; }

/* ---------- tables ---------- */
.dossier-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 18px;
  font-family: var(--term-font);
  font-size: 18px;
}
.dossier-table th,
.dossier-table td {
  border: 1px solid var(--hull-shadow);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  color: var(--text-body);
}
.dossier-table th {
  background: rgba(92,217,216,0.08);
  color: var(--shield);
  font-family: var(--chrome-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: normal;
}
.dossier-table tr td:first-child {
  color: var(--partial);
  white-space: nowrap;
}

/* ---------- lists / cells ---------- */
.cell-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
  font-family: var(--chrome-font);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--sun);
  text-shadow: 0 0 6px rgba(255,203,71,0.35);
  margin: 8px 0 12px;
}
.cell-list li::before {
  content: '▸ ';
  color: var(--shield);
}

.note { color: var(--text-dim); font-style: italic; }

/* ---------- kit grid ---------- */
.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.kit-col h3:first-child { margin-top: 0; }

/* ---------- redacted bars (kept; restyled) ---------- */
.redacted-name {
  background: linear-gradient(transparent 0 35%, var(--shield) 35% 70%, transparent 70%);
  color: var(--shield);
  padding: 0 4px;
}
.redacted {
  background: var(--shield);
  color: transparent;
  user-select: none;
  padding: 0 4px;
}

/* ---------- cheat sheet ---------- */
.folio--cheat {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,203,71,0.06), transparent 60%),
    var(--bg-panel-dim);
}
.cheat {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 22px;
  margin: 12px 0 0;
  font-family: var(--term-font);
  font-size: 20px;
}
.cheat dt {
  font-family: var(--chrome-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--shield);
  text-transform: uppercase;
}
.cheat dd { margin: 0; color: var(--text-body); }
.cheat dd a { color: var(--sun); }

/* ---------- footer ---------- */
.page-footer {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  font-family: var(--chrome-font);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-align: center;
}
.page-footer p { margin: 6px 0; }
.page-footer a { color: var(--shield); }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  body { font-size: 19px; }
  main { padding: 16px 12px 40px; gap: 18px; }
  .folio { padding: 18px 16px; }
  h1 { font-size: 16px; }
  .folio > h2 { font-size: 12px; }
  h3 { font-size: 10px; }
  .console-strip__inner { padding: 8px 12px; gap: 10px; }
  .console-strip__nav { font-size: 10px; gap: 8px; }
  .console-strip__eta { width: 100%; order: 10; }
  .kit-grid, .cell-list { grid-template-columns: 1fr; }
  .stamp--eyes { display: none; }
  .cheat { grid-template-columns: 1fr; gap: 2px 0; }
  .cheat dt { margin-top: 10px; }
  .dossier-table, .cheat { font-size: 16px; }
}

/* ---------- print (handout) ---------- */
@media print {
  body { background: white; color: black; }
  body::before, body::after { display: none; }
  .console-strip { display: none; }
  .folio { border: 1px solid #888; background: white; box-shadow: none; page-break-inside: avoid; }
  a { color: black; }
  .stamp--classified { color: #7a1d1d; }
}

/* ---------- folio 08: live ops board ---------- */
.folio--ops {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(92,217,216,0.08), transparent 60%),
    var(--bg-panel-dim);
}
.ops__winner {
  margin: 18px 0 24px;
  padding: 22px 24px;
  border: 1px solid var(--shield);
  background: rgba(92,217,216,0.04);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ops__winner::before,
.ops__winner::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 14px;
  border-top: 1px solid var(--shield);
  border-bottom: 1px solid var(--shield);
  opacity: 0.6;
}
.ops__winner::before { left: 0; border-left: 1px solid var(--shield); }
.ops__winner::after  { right: 0; border-right: 1px solid var(--shield); }
.ops__winner-label {
  font-family: var(--chrome-font);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: var(--shield);
  margin-bottom: 12px;
}
.ops__winner-name {
  font-family: var(--chrome-font);
  font-size: 56px;
  letter-spacing: 0.06em;
  color: var(--sun);
  text-shadow: 0 0 16px rgba(255,203,71,0.55), 0 0 32px rgba(255,203,71,0.25);
  word-break: break-word;
  line-height: 1.05;
}
.ops__winner-meta {
  margin-top: 10px;
  font-family: var(--term-font);
  font-size: 18px;
  color: var(--text-body);
  letter-spacing: 0.05em;
}
.ops__winner-sep { color: var(--text-dim); margin: 0 10px; }

.ops__facts {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
  counter-reset: ops-fact;
}
.ops__facts li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 8px 12px;
  border-left: 2px solid var(--shield);
  background: rgba(92,217,216,0.03);
}
.ops__facts li::before {
  counter-increment: ops-fact;
  content: "0" counter(ops-fact);
  font-family: var(--chrome-font);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--shield);
}
.ops__fact-label {
  font-family: var(--chrome-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.ops__fact-value {
  font-family: var(--term-font);
  font-size: 20px;
  color: var(--sun);
  letter-spacing: 0.04em;
  text-align: right;
  word-break: break-word;
}
.ops__caveat {
  margin: 14px 0 0;
  font-family: var(--chrome-font);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
}

.ops__standings {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  font-family: var(--term-font);
  font-size: 18px;
  color: var(--text-body);
}
.ops__standings th,
.ops__standings td {
  padding: 6px 12px;
  text-align: left;
  border-bottom: 1px dashed rgba(92,217,216,0.18);
}
.ops__standings th {
  font-family: var(--chrome-font);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--shield);
  text-transform: uppercase;
  border-bottom-color: var(--shield);
}
.ops__standings tbody tr:first-child td { color: var(--sun); }
.ops__standings td:nth-child(3),
.ops__standings td:nth-child(4),
.ops__standings th:nth-child(3),
.ops__standings th:nth-child(4) { text-align: right; }

@media (max-width: 600px) {
  .ops__winner-name  { font-size: 36px; }
  .ops__fact-value   { font-size: 16px; }
  .ops__facts li     { grid-template-columns: 22px 1fr; }
  .ops__fact-value   { grid-column: 1 / -1; text-align: left; }
}
