/* =========================================================
   CASE FILE STYLESHEET
   Shared by every Bikerverse lorebook page.
   Change something here and it changes on every club page.
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --paper: #121212;
  --paper-2: #171717;
  --text: #ededed;
  --muted: #8c8c8c;
  --faint: #5a5a5a;
  --line: rgba(255,255,255,0.14);
  --line-strong: rgba(255,255,255,0.35);
  --type: "Special Elite", "Courier New", monospace;
  --mono: "Courier Prime", "Courier New", monospace;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--mono); font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- NAV ---------- */
nav { position: sticky; top: 0; z-index: 10; background: rgba(10,10,10,0.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.brand { font-family: var(--serif); font-size: 20px; letter-spacing: 0.22em; }
.back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.back:hover { color: var(--text); }

/* ---------- FILE COVER ---------- */
.cover { position: relative; margin: 56px 0 40px; border: 1px solid var(--line-strong); background: var(--paper); overflow: hidden; }
.cover-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 28px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.cover-body { padding: 48px 28px 40px; }
.cover h1 { font-family: var(--type); font-weight: 400; font-size: clamp(38px, 7vw, 74px); line-height: 1; letter-spacing: 0.04em; margin-bottom: 14px; }
.cover .sub { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.cover .motto { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; color: #cfcfcf; }
.stamp {
  position: absolute; bottom: 30px; right: 232px; transform: rotate(-9deg);
  font-family: var(--type); font-size: 22px; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55); border: 3px double rgba(255,255,255,0.45);
  padding: 6px 16px; pointer-events: none;
}

/* ---------- SECTIONS ---------- */
.section { margin-bottom: 40px; border: 1px solid var(--line); background: var(--paper); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.section-head h2 { font-family: var(--type); font-weight: 400; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; }
.section-head span { font-size: 11px; letter-spacing: 0.18em; color: var(--faint); text-transform: uppercase; }
.section-body { padding: 28px; }
.section-body p + p { margin-top: 14px; }
.briefing { border-style: dashed; }
.briefing .section-body { color: #d4d4d4; }

/* key / value grid */
.fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 24px; }
.field { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.field:nth-child(odd) { padding-right: 20px; }
.field:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.field b { font-weight: 400; color: var(--muted); min-width: 120px; text-transform: uppercase; font-size: 12px; letter-spacing: 0.12em; padding-top: 2px; }

/* threat meter */
.meter { display: inline-flex; gap: 4px; vertical-align: middle; margin-right: 10px; }
.meter i { width: 14px; height: 10px; border: 1px solid var(--line-strong); }
.meter i.on { background: var(--text); border-color: var(--text); }

/* checklist */
.checklist { list-style: none; columns: 2; column-gap: 40px; }
.checklist li { padding: 6px 0 6px 28px; position: relative; break-inside: avoid; font-size: 14px; }
.checklist li::before { content: "\2612"; position: absolute; left: 0; top: 4px; font-size: 16px; color: var(--muted); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; border-bottom: 1px solid var(--line-strong); }
td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
.pill { display: inline-block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 2px 8px; white-space: nowrap; }
.pill.solid { background: var(--text); color: var(--bg); border-color: var(--text); }

/* redaction bar */
.redact { background: var(--text); color: var(--text); padding: 0 4px; user-select: none; }

/* ---------- PERSONNEL ---------- */
.personnel { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.dossier { background: var(--paper); padding: 24px; display: grid; grid-template-columns: 128px 1fr; gap: 20px; align-items: start; }
.mugshot {
  width: 128px; aspect-ratio: 3 / 4; border: 1px solid var(--line-strong); position: relative; overflow: hidden;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 13px, rgba(255,255,255,0.07) 13px, rgba(255,255,255,0.07) 14px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 9px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; line-height: 1.4;
}
.mugshot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) contrast(1.05); transition: filter .45s ease; }
/* HOVER TO COLOUR: photos are black and white until the card is hovered (or tapped on a phone) */
.dossier { cursor: default; }
.dossier:hover .mugshot img, .dossier.is-color .mugshot img { filter: none; }
.file-no { font-size: 10px; letter-spacing: 0.2em; color: var(--faint); text-transform: uppercase; }
.dossier h3 { font-family: var(--type); font-weight: 400; font-size: 20px; line-height: 1.25; margin: 4px 0 2px; }
.alias { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stats { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.stats span b { font-weight: 400; color: var(--text); }
.intro { font-size: 14px; color: #d4d4d4; }
.dossier .pill { margin-bottom: 4px; }
.credit { margin-top: 10px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
.deceased h3, .deceased .intro { opacity: 0.75; }
/* an odd last file stretches across the full row so there's no empty grey cell */
.dossier:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- CLUB LOGO ---------- */
.cover-body { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.cover-text { flex: 1; min-width: 0; }
.logo { width: 170px; height: 170px; flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-strong); }
.logo img { width: 100%; height: 100%; display: block; }

/* ---------- SLIDESHOW ---------- */
.slideshow { position: relative; background: #000; }
.slide-track { position: relative; height: clamp(300px, 56vw, 600px); overflow: hidden; touch-action: pan-y; }
.slide-track img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transition: opacity .5s ease, filter .45s ease; filter: grayscale(100%) contrast(1.05);
}
.slide-track img.active { opacity: 1; }
.slideshow:hover .slide-track img.active, .slideshow.is-color .slide-track img.active { filter: none; }
/* slideshows marked "colour" stay in full colour all the time */
.slideshow.colour .slide-track img { filter: none; }
.slide-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--paper-2); }
.slide-bar button {
  background: none; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 16px; transition: background .2s, color .2s;
}
.slide-bar button:hover { background: var(--text); color: var(--bg); }
.slide-count { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.hint { font-size: 11px; letter-spacing: 0.14em; color: var(--faint); text-transform: uppercase; }

/* ---------- COLLAPSIBLE ARCHIVE ---------- */
details.archive { margin-bottom: 40px; border: 1px solid var(--line-strong); background: var(--paper); }
details.archive > summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 22px 28px; background: var(--paper-2); transition: background .2s;
}
details.archive > summary::-webkit-details-marker { display: none; }
details.archive > summary:hover { background: #1c1c1c; }
.archive-label { font-size: 11px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; display: block; margin-bottom: 6px; }
.archive-title { font-family: var(--type); font-size: clamp(24px, 4vw, 34px); letter-spacing: 0.06em; }
.toggle { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border: 1px solid var(--line-strong); padding: 8px 16px; white-space: nowrap; }
.toggle::before { content: "[ + ] Open File"; }
details[open] .toggle::before { content: "[ - ] Close File"; }
.archive-body { padding: 28px; border-top: 1px solid var(--line-strong); }
.archive-body .section { margin-bottom: 28px; }
.archive-body .section:last-child { margin-bottom: 0; }
.archive-intro { margin-bottom: 28px; color: #d4d4d4; }
.archive-intro p + p { margin-top: 14px; }

/* ---------- END OF FILE ---------- */
.eof { text-align: center; padding: 24px 0 72px; color: var(--muted); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.eof .rule { border-top: 1px dashed var(--line-strong); margin-bottom: 24px; }
.eof .back { display: inline-block; margin: 18px 0 28px; border: 1px solid var(--line-strong); padding: 12px 24px; color: var(--text); }
.eof .back:hover { background: var(--text); color: var(--bg); }
.eof p { letter-spacing: 0.04em; text-transform: none; font-size: 12px; color: var(--faint); }
.eof p + p { margin-top: 6px; }

/* ---------- MOBILE ---------- */
@media (max-width: 820px) {
  .cover-body { flex-direction: column-reverse; align-items: flex-start; }
  .logo { width: 120px; height: 120px; }
  .archive-body { padding: 16px; }
  .personnel { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .field:nth-child(even) { padding-left: 0; border-left: none; }
  .field:nth-child(odd) { padding-right: 0; }
  .checklist { columns: 1; }
  .stamp { position: static; display: inline-block; margin: 0 0 20px 28px; transform: rotate(-4deg); font-size: 16px; }
}
@media (max-width: 480px) {
  .cover-body, .section-body, .section-head, .cover-top { padding-left: 18px; padding-right: 18px; }
  .dossier { grid-template-columns: 96px 1fr; gap: 14px; padding: 18px; }
  .mugshot { width: 96px; }
  .hint { display: none; }
  .field { flex-direction: column; gap: 2px; }
  table, thead, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  td { border: none; padding: 2px 0; }
}
