/* ============================================
   CONSPIRACY FILES — daily leak site chrome
   The document itself is styled by /documents/top-secret.css;
   everything here is the shell around it.
   Served immutable for 30 days, so bump CSS_V in inc/view.php with any edit.
   ============================================ */

:root {
  --ink:   #14140f;
  --ink2:  #1b1b14;
  --line:  #2f2f24;
  --cream: #efe9dc;
  --muted: #938d7c;
  --red:   #b3231c;
  --amber: #e0a23c;
}

body.leak {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.leak a { color: var(--cream); }
body.leak a:hover { color: #fff; }

/* ---- top classification strip ---- */
.strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--red);
  color: #fff;
  font: 600 11px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  padding: 8px 18px;
  text-transform: uppercase;
}

/* ---- masthead ---- */
.mast {
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 18px 18px;
  border-bottom: 1px solid var(--line);
}

.mast .wm {
  display: inline-block;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.5px;
  line-height: 1.1;
  text-decoration: none;
}
.mast .wm span { color: var(--red); }

.mast .tag {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
}

.mast .nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 16px;
  font-size: 14px;
}
.mast .nav a { text-decoration: none; color: var(--cream); border-bottom: 1px solid transparent; }
.mast .nav a:hover { border-bottom-color: var(--red); }

.mast .nav .count {
  margin-left: auto;
  color: var(--muted);
  font: 12px ui-monospace, Menlo, Consolas, monospace;
}

/* ---- page blocks ---- */
.page { max-width: 900px; margin: 0 auto; padding: 0 18px 40px; }

.lead { padding: 26px 0 6px; }

.lead h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.6px;
  margin: 10px 0 0;
}

.dateline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: baseline;
  margin: 0;
  font: 12px ui-monospace, Menlo, Consolas, monospace;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.dateline .red { color: var(--red); font-weight: 700; }
.dateline.red { color: var(--red); font-weight: 700; }
.dateline .vol.v1 { color: var(--amber); }
.dateline .vol.v2 { color: #7fb2d9; }

.launch { padding: 26px 0 6px; }

.launch h1 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -.8px;
  margin: 10px 0 14px;
}
.lede { color: #d9d2c4; font-size: 17px; margin: 0 0 14px; text-wrap: pretty; }

.nextup {
  font-size: 15px;
  color: var(--cream);
  border-left: 2px solid var(--red);
  padding: 2px 0 2px 12px;
  margin: 18px 0 0;
}
.nextup .when { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; }

/* ---- the document, as written ---- */
.doc-wrap {
  max-width: 900px;
  margin: 22px auto 26px;

  /* The document relies on inherited colour for its metadata, title and sources.
     Without this they inherit this page's cream text and vanish on the paper. */
  color: #1a1a1a;
}

/* the 120px "TOP SECRET" watermark is wider than a phone screen: clip it to the sheet */
.document-container { overflow: hidden; }

/* ---- previous / next ---- */
.strip-nav {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 14px;
}

.strip-nav a, .strip-nav span {
  display: block;
  text-decoration: none;
  max-width: 46ch;
}

.strip-nav span > span, .strip-nav a > span {
  display: block;
  color: var(--muted);
  font: 11.5px ui-monospace, Menlo, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.strip-nav .locked strong { color: var(--amber); }
.strip-nav .ghost { display: none; }
.strip-nav .next { text-align: right; margin-left: auto; }
.strip-nav .next a { border-bottom: 1px solid var(--line); }

.after { padding: 20px 0 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }

/* ---- lists ---- */
.list { margin-top: 30px; }

.list h2 {
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 22px;
  margin: 0 0 4px;
}
.list h2 .n { color: var(--muted); font-family: inherit; }
.list .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.rows { list-style: none; margin: 0; padding: 0; }

.rows .month {
  font: 600 11.5px ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 18px 0 6px;
  border-bottom: 1px solid var(--line);
}

.rows .row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 62px;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid #232319;
}
.rows .row:hover { background: #191912; }
.rows .date { color: var(--muted); font: 12px ui-monospace, Menlo, Consolas, monospace; }
.rows .ttl { color: var(--cream); text-decoration: none; line-height: 1.35; text-wrap: pretty; }
.rows .ttl:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--red); }
.rows .vol { font: 600 11px ui-monospace, Menlo, Consolas, monospace; text-align: right; }
.rows .vol.v1 { color: var(--amber); }
.rows .vol.v2 { color: #7fb2d9; }

/* ---- footer ---- */
.foot {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 22px 18px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot p { margin: 0 0 8px; text-wrap: pretty; }
.foot strong { color: #c9c2b4; font-weight: 600; }
.foot .links a { color: var(--muted); }

.missing { color: var(--red); }

/* ---- small screens ---- */
@media (width <= 680px) {
  .mast .wm { font-size: 25px; }
  .lead h1, .launch h1 { font-size: 25px; }
  .lede { font-size: 16px; }
  .mast .nav .count { margin-left: 0; width: 100%; }
  .rows .row { grid-template-columns: 1fr; gap: 3px; }
  .rows .vol { text-align: left; }
  .strip { font-size: 9.5px; padding: 7px 12px; }
  .strip span:last-child { display: none; }
  .strip-nav { flex-direction: column; }
  .strip-nav .next { text-align: left; margin-left: 0; }

  /* the document's own padding is tight on a phone */
  .doc-content { padding: 18px 16px; }
  .doc-header { padding: 16px 16px 10px; }
  .doc-title { padding: 14px 16px; font-size: 16px; }
  .doc-sources, .doc-footer-disclaimer, .handling-instructions { padding-left: 16px; padding-right: 16px; }
  .watermark { font-size: 58px; letter-spacing: 8px; }

  /* The rotated stamp takes 197px of a 348px header on a phone, squeezing the ref
     block into a column (115px of wrapped lines) — and at that size it reads as a
     box, not a stamp. Dropped below the breakpoint; the classification banner above
     still carries the handling marking. */
  .doc-header .stamp-area { display: none; }
}
