/* THE RANTER -- Case File Brand CSS */
/* Brand Guide v1.0 | Declassified Document Aesthetic */

@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&family=Source+Sans+Pro:wght@400;600&family=Special+Elite&family=JetBrains+Mono&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #F5F0E6; /* Aged Paper */
  color: #1A1A1A; /* Typewriter Black */
  font-family: 'Source Sans Pro', -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* --- HEADER / CLASSIFICATION --- */
.classification-bar {
  text-align: center;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: #4A4A4A;
  border-top: 2px solid #B8A590;
  border-bottom: 2px solid #B8A590;
  padding: 8px 0;
  margin-bottom: 24px;
}

.episode-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: #4A4A4A;
  margin-bottom: 4px;
}

.doc-title {
  font-family: 'Courier Prime', monospace;
  font-size: 42px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.doc-subtitle {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  color: #4A4A4A;
  margin-bottom: 4px;
}

.doc-version {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: #4A4A4A;
  margin-bottom: 24px;
}

.stamp {
  display: inline-block;
  font-family: 'Special Elite', Impact, sans-serif;
  font-size: 20px;
  color: #C41E3A;
  text-transform: uppercase;
  border: 2px solid #C41E3A;
  padding: 6px 16px;
  transform: rotate(-3deg);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

/* --- STATS BAR --- */
.stats-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  background: #E8DCC8; /* Manila */
  border: 1px solid #B8A590;
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-family: 'Courier Prime', monospace;
  font-size: 14px;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-value {
  font-weight: 700;
  font-size: 22px;
  color: #C41E3A;
}

.stat-label {
  color: #4A4A4A;
}

/* --- CROSS-REFERENCE INTRO --- */
.cross-ref-intro {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  color: #4A4A4A;
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #B8A590;
}

/* --- SEGMENT HEADERS --- */
.segment-header {
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 8px;
  border-bottom: 2px solid #C41E3A;
  margin: 40px 0 24px 0;
}

/* --- CLAIM CARDS --- */
.claim-card {
  background: #E8DCC8;
  border: 1px solid #B8A590;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
  position: relative;
}

.claim-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.claim-number {
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
  font-size: 16px;
  color: #1A1A1A;
  background: #F5F0E6;
  border: 1px solid #B8A590;
  border-radius: 4px;
  padding: 2px 10px;
  white-space: nowrap;
}

.claim-timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #4A4A4A;
}

.source-badge {
  font-family: 'Courier Prime', monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.source-badge.primary {
  background: #C41E3A;
  color: #F5F0E6;
}

.source-badge.journalism {
  background: #1A1A1A;
  color: #F5F0E6;
}

.source-badge.secondary {
  background: #B8A590;
  color: #1A1A1A;
}

.source-badge.allegation {
  background: #D4A017;
  color: #1A1A1A;
}

.claim-text {
  font-family: 'Courier Prime', monospace;
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.4;
}

.claim-evidence {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  color: #1A1A1A;
  margin-bottom: 12px;
  line-height: 1.5;
}

.claim-sources {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #4A4A4A;
  line-height: 1.5;
}

.claim-sources a {
  color: #C41E3A;
  text-decoration: none;
  word-break: break-all;
}

.claim-sources a:hover {
  text-decoration: underline;
}

.claim-note {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #D4A017;
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(212, 160, 23, 0.1);
  border-left: 3px solid #D4A017;
  border-radius: 0 4px 4px 0;
}

/* --- SECTION HEADERS (for non-Evidence docs) --- */
.section-header {
  font-family: 'Courier Prime', monospace;
  font-size: 22px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 40px 0 16px 0;
}

.section-number {
  color: #C41E3A;
}

/* --- STEP CARDS (Protect Yourself, Your Move) --- */
.step-card {
  background: #E8DCC8;
  border: 1px solid #B8A590;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.step-title {
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 4px;
}

.step-meta {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  color: #4A4A4A;
  margin-bottom: 12px;
}

.step-body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* --- MAGIC SENTENCE / SCRIPT BLOCKS --- */
.magic-sentence {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  line-height: 1.5;
  color: #1A1A1A;
  background: #F5F0E6;
  border-left: 3px solid #C41E3A;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 0 6px 6px 0;
}

/* --- TRANSLATION KEY ENTRIES --- */
.translation-entry {
  background: #E8DCC8;
  border: 1px solid #B8A590;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.translation-acronym {
  font-family: 'Courier Prime', monospace;
  font-size: 24px;
  font-weight: 700;
  color: #C41E3A;
  margin-bottom: 12px;
}

.translation-row {
  margin-bottom: 12px;
}

.translation-label {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4A4A4A;
  margin-bottom: 4px;
}

.translation-value {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.translation-verdict {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid #B8A590;
}

/* --- TIER BADGES (Your Move) --- */
.tier-header {
  font-family: 'Courier Prime', monospace;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 10px 20px;
  border-radius: 6px;
  margin: 40px 0 20px 0;
}

.tier-header.green {
  background: #2D5A27;
  color: #F5F0E6;
}

.tier-header.yellow {
  background: #D4A017;
  color: #1A1A1A;
}

.tier-header.red {
  background: #C41E3A;
  color: #F5F0E6;
}

/* --- DATA TABLES --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
}

.data-table th {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #1A1A1A;
  color: #F5F0E6;
  padding: 10px 14px;
  text-align: left;
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #B8A590;
  vertical-align: top;
}

.data-table tr:nth-child(even) td {
  background: #E8DCC8;
}

/* --- QUICK REFERENCE TABLE --- */
.quick-ref-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px 0;
}

.quick-ref-table th {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  background: #1A1A1A;
  color: #F5F0E6;
  padding: 10px 14px;
  text-align: left;
}

.quick-ref-table td {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  padding: 10px 14px;
  border-bottom: 1px solid #B8A590;
}

/* --- FOOTER --- */
.doc-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 2px solid #B8A590;
  text-align: center;
}

.doc-footer .disclaimer {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  font-style: italic;
  color: #4A4A4A;
  margin-bottom: 16px;
}

.doc-footer .cross-links {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 15px;
  color: #4A4A4A;
  line-height: 1.8;
  margin-bottom: 16px;
}

.doc-footer .cross-links a {
  color: #C41E3A;
  text-decoration: none;
  font-weight: 600;
}

.doc-footer .tagline {
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 8px;
}

.doc-footer .site-line {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  color: #4A4A4A;
}

/* --- SPOKEN HANDLE CALLOUT --- */
.spoken-handle {
  text-align: center;
  margin: 32px 0;
  padding: 24px;
  background: #E8DCC8;
  border: 2px solid #C41E3A;
  border-radius: 8px;
}

.spoken-handle .label {
  font-family: 'Courier Prime', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4A4A4A;
  margin-bottom: 8px;
}

.spoken-handle .handle-text {
  font-family: 'Courier Prime', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #C41E3A;
}

/* --- ACF FIELD ANNOTATIONS (for contractor) --- */
.acf-annotation {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #F5F0E6;
  background: #C41E3A;
  padding: 2px 8px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  body {
    padding: 20px 16px;
    font-size: 16px;
  }
  .doc-title { font-size: 28px; }
  .stats-bar { flex-direction: column; gap: 8px; }
  .claim-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stat-value { font-size: 18px; }
  .data-table, .quick-ref-table { font-size: 13px; }
  .data-table th, .data-table td,
  .quick-ref-table th, .quick-ref-table td { padding: 8px 10px; }
}