/*
Theme Name: Fake Off
Theme URI: https://fake-off.eu
Description: Media literacy and fake news education portal — Signal System design
Author: Katharina Berger
Version: 1.0.0
Text Domain: fakeoff
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — DARK/LIGHT MODE
   ============================================================ */

:root {
  /* Dark Mode (default) */
  --fo-bg:           #0D1117;
  --fo-bg-secondary: #161B22;
  --fo-bg-card:      #1C2333;
  --fo-text:         #F3F4F6;
  --fo-text-muted:   #8B949E;
  --fo-border:       #30363D;

  /* Semantic colours */
  --fo-false:        #E63946;
  --fo-false-light:  rgba(230, 57, 70, 0.12);
  --fo-false-bg:     rgba(230, 57, 70, 0.08);
  --fo-true:         #22C55E;
  --fo-true-light:   rgba(34, 197, 94, 0.12);
  --fo-true-bg:      rgba(34, 197, 94, 0.08);
  --fo-mislead:      #F59E0B;
  --fo-mislead-light:rgba(245, 158, 11, 0.12);

  /* Brand */
  --fo-slate:        #64748B;
  --fo-raven:        #0D1117;
  --fo-newsprint:    #F3F4F6;
  --fo-accent:       #E63946;

  /* Typography */
  --fo-font-heading: 'Syne', system-ui, sans-serif;
  --fo-font-body:    'Libre Franklin', system-ui, sans-serif;

  /* Spacing */
  --fo-space-xs:  0.25rem;
  --fo-space-sm:  0.5rem;
  --fo-space-md:  1rem;
  --fo-space-lg:  1.5rem;
  --fo-space-xl:  2.5rem;
  --fo-space-2xl: 4rem;

  /* Layout */
  --fo-container-max:    1200px;
  --fo-container-narrow: 800px;
  --fo-radius-sm: 4px;
  --fo-radius-md: 8px;
  --fo-radius-lg: 12px;

  /* Header */
  --fo-header-height: 64px;

  /* Transitions */
  --fo-transition: 200ms ease;
}

:root.fo-light {
  --fo-bg:           #F3F4F6;
  --fo-bg-secondary: #FFFFFF;
  --fo-bg-card:      #FFFFFF;
  --fo-text:         #0D1117;
  --fo-text-muted:   #64748B;
  --fo-border:       #E2E8F0;
  --fo-false-light:  #FEE2E2;
  --fo-false-bg:     #FFF5F5;
  --fo-true-light:   #DCFCE7;
  --fo-true-bg:      #F0FFF4;
  --fo-mislead-light:#FEF3C7;
}

@media (prefers-color-scheme: light) {
  :root:not(.fo-dark) {
    --fo-bg:           #F3F4F6;
    --fo-bg-secondary: #FFFFFF;
    --fo-bg-card:      #FFFFFF;
    --fo-text:         #0D1117;
    --fo-text-muted:   #64748B;
    --fo-border:       #E2E8F0;
    --fo-false-light:  #FEE2E2;
    --fo-false-bg:     #FFF5F5;
    --fo-true-light:   #DCFCE7;
    --fo-true-bg:      #F0FFF4;
    --fo-mislead-light:#FEF3C7;
  }
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--fo-font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--fo-text);
  background-color: var(--fo-bg);
  transition: background-color var(--fo-transition), color var(--fo-transition);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fo-false);
  text-decoration: none;
  transition: color var(--fo-transition), opacity var(--fo-transition);
}

a:hover { opacity: 0.8; }

ul, ol { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fo-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fo-text);
  margin-bottom: var(--fo-space-md);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--fo-space-md); }

strong { font-weight: 600; }

em { font-style: italic; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.fo-container {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
}

.fo-container--narrow {
  max-width: var(--fo-container-narrow);
}

.fo-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   COLOUR UTILITIES
   ============================================================ */

.fo-false-text { color: var(--fo-false); }
.fo-true-text  { color: var(--fo-true); }
.fo-muted      { color: var(--fo-text-muted); }

/* ============================================================
   BUTTONS
   ============================================================ */

.fo-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--fo-space-sm);
  padding: 0.65rem 1.5rem;
  font-family: var(--fo-font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--fo-radius-sm);
  transition: opacity var(--fo-transition), transform var(--fo-transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.fo-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  text-decoration: none;
}

.fo-btn-primary {
  background-color: var(--fo-false);
  color: #fff;
  border-color: var(--fo-false);
}

.fo-btn-secondary {
  background-color: transparent;
  color: var(--fo-text);
  border-color: var(--fo-border);
}

.fo-btn-secondary:hover {
  border-color: var(--fo-false);
  color: var(--fo-false);
}

/* ============================================================
   HEADER
   ============================================================ */

.fo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--fo-bg-secondary);
  border-bottom: 1px solid var(--fo-border);
  height: var(--fo-header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--fo-transition), background-color var(--fo-transition);
}

.fo-header--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

.fo-header-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--fo-space-lg);
}

/* Logo */
.fo-logo-link {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  flex-shrink: 0;
}

.fo-logo-fake {
  color: var(--fo-false);
}

.fo-logo-sep {
  color: var(--fo-slate);
}

.fo-logo-off {
  color: var(--fo-true);
}

.fo-logo-domain {
  color: var(--fo-text);
  font-weight: 600;
}

/* Primary nav */
.fo-nav {
  display: flex;
  align-items: center;
  gap: var(--fo-space-xs);
  flex: 1;
}

.fo-nav-item {
  padding: 0.4rem 0.75rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--fo-text-muted);
  border-radius: var(--fo-radius-sm);
  transition: color var(--fo-transition), background-color var(--fo-transition);
  text-decoration: none;
}

.fo-nav-item:hover,
.fo-nav-item.fo-nav-current {
  color: var(--fo-text);
  background-color: var(--fo-false-light);
}

/* Header controls */
.fo-header-controls {
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  margin-left: auto;
}

/* Theme toggle */
.fo-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--fo-bg-card);
  border: 1px solid var(--fo-border);
  font-size: 1rem;
  transition: background-color var(--fo-transition);
}

.fo-theme-toggle:hover {
  background-color: var(--fo-false-light);
}

.fo-toggle-icon::before {
  content: '☀';
}

.fo-dark .fo-toggle-icon::before {
  content: '☽';
}

/* Mobile menu button */
.fo-mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--fo-text);
  background-color: var(--fo-bg-card);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-sm);
}

/* Language switcher */
.fo-lang-switcher {
  display: flex;
  gap: 2px;
}

.fo-lang-item {
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--fo-font-heading);
  color: var(--fo-text-muted);
  border-radius: var(--fo-radius-sm);
  transition: color var(--fo-transition), background-color var(--fo-transition);
  text-decoration: none;
}

.fo-lang-item:hover,
.fo-lang-item.fo-lang-active {
  color: var(--fo-text);
  background-color: var(--fo-false-light);
}

/* ============================================================
   MAIN
   ============================================================ */

.fo-main {
  min-height: calc(100vh - var(--fo-header-height) - 200px);
}

/* ============================================================
   HERO — SPLIT LAYOUT
   ============================================================ */

.fo-hero {
  background-color: var(--fo-bg);
  padding: var(--fo-space-2xl) 0;
  overflow: hidden;
}

.fo-hero-content {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fo-space-2xl);
  align-items: center;
}

.fo-hero-text {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-lg);
}

.fo-hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fo-text-muted);
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
}

.fo-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background-color: var(--fo-false);
  border-radius: 2px;
  flex-shrink: 0;
}

.fo-hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 0;
}

.fo-hero-sub {
  font-size: 1.05rem;
  color: var(--fo-text-muted);
  margin-bottom: 0;
  max-width: 500px;
}

.fo-hero-ctas {
  display: flex;
  gap: var(--fo-space-md);
  flex-wrap: wrap;
}

/* Monitor panel (right side of hero) */
.fo-hero-monitor {
  position: relative;
}

.fo-monitor-panel {
  background-color: var(--fo-bg-secondary);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-lg);
  overflow: hidden;
}

.fo-monitor-header {
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  padding: var(--fo-space-md) var(--fo-space-lg);
  background-color: var(--fo-bg-card);
  border-bottom: 1px solid var(--fo-border);
  font-family: var(--fo-font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fo-text-muted);
}

.fo-monitor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--fo-true);
  animation: fo-pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes fo-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.fo-monitor-title { color: var(--fo-text); }

/* Live monitor list (used in shortcode output too) */
.fo-live-monitor {
  width: 100%;
}

.fo-monitor-list {
  padding: var(--fo-space-sm) 0;
}

.fo-monitor-item {
  display: flex;
  align-items: flex-start;
  gap: var(--fo-space-sm);
  padding: var(--fo-space-sm) var(--fo-space-lg);
  border-bottom: 1px solid var(--fo-border);
  flex-wrap: wrap;
}

.fo-monitor-item:last-child {
  border-bottom: none;
}

.fo-monitor-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--fo-font-heading);
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--fo-radius-sm);
}

.fo-verdict-debunked .fo-monitor-badge {
  background-color: var(--fo-false-light);
  color: var(--fo-false);
}

.fo-verdict-verified .fo-monitor-badge {
  background-color: var(--fo-true-light);
  color: var(--fo-true);
}

.fo-verdict-misleading .fo-monitor-badge {
  background-color: var(--fo-mislead-light);
  color: var(--fo-mislead);
}

.fo-verdict-in_review .fo-monitor-badge {
  background-color: var(--fo-border);
  color: var(--fo-text-muted);
}

.fo-monitor-claim {
  font-size: 0.85rem;
  color: var(--fo-text);
  flex: 1;
  line-height: 1.4;
}

.fo-monitor-source {
  font-size: 0.75rem;
  color: var(--fo-text-muted);
  width: 100%;
  margin-left: calc(2.5rem);
  margin-top: 2px;
}

.fo-monitor-empty {
  padding: var(--fo-space-lg);
  color: var(--fo-text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ============================================================
   DASHBOARD CARDS (Landing — 3-column layout)
   ============================================================ */

.fo-dash-list {
  padding: 0;
  margin: 0;
}

.fo-dash-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--fo-space-sm);
  align-items: center;
  padding: var(--fo-space-sm) var(--fo-space-lg);
  border-bottom: 1px solid var(--fo-border);
}

.fo-dash-item:last-child {
  border-bottom: none;
}

.fo-dash-item__badge {
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--fo-font-heading);
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: var(--fo-radius-sm);
  text-transform: uppercase;
}

.fo-dash-item__text {
  min-width: 0;
}

.fo-dash-item__claim {
  font-size: 0.82rem;
  color: var(--fo-text);
  line-height: 1.4;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fo-dash-item__cat {
  font-size: 0.7rem;
  color: var(--fo-text-muted);
}

.fo-dash-item__meta {
  text-align: right;
  font-size: 0.7rem;
  color: var(--fo-text-muted);
  white-space: nowrap;
}

.fo-dash-item__severity {
  display: block;
  font-weight: 600;
}

.fo-dash-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--fo-space-sm) var(--fo-space-lg);
  border-top: 1px solid var(--fo-border);
  background-color: var(--fo-bg-card);
  font-size: 0.78rem;
  color: var(--fo-text-muted);
}

.fo-dash-footer a {
  font-weight: 600;
  font-size: 0.78rem;
}

/* ============================================================
   FEATURED CASES — Column Headers
   ============================================================ */

.fo-cases-col__head {
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  padding: 0.5rem 0.75rem;
  border-radius: var(--fo-radius-sm);
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--fo-space-sm);
}

.fo-cases-col__head--debunked {
  background-color: var(--fo-false-light);
  color: var(--fo-false);
}

.fo-cases-col__head--verified {
  background-color: var(--fo-true-light);
  color: var(--fo-true);
}

/* ============================================================
   SPREAD BAR (Case Card)
   ============================================================ */

.fo-spread-bar {
  display: flex;
  gap: 3px;
  margin-top: var(--fo-space-xs);
}

.fo-spread-bar span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--fo-border);
}

.fo-spread-bar span.on {
  background-color: var(--fo-false);
}

.fo-case-card--verified .fo-spread-bar span.on {
  background-color: var(--fo-true);
}

/* ============================================================
   LANGUAGE BADGE (Case Card)
   ============================================================ */

.fo-lang-badge {
  position: absolute;
  top: var(--fo-space-sm);
  right: var(--fo-space-sm);
  font-size: 0.6rem;
  font-weight: 700;
  font-family: var(--fo-font-heading);
  letter-spacing: 0.08em;
  padding: 1px 5px;
  border-radius: 2px;
  background-color: var(--fo-bg-secondary);
  color: var(--fo-text-muted);
  border: 1px solid var(--fo-border);
  text-transform: uppercase;
}

/* ============================================================
   WORKSHOP FEATURES CHECKLIST
   ============================================================ */

.fo-workshop-features {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-sm);
  margin: 0;
  padding: 0;
}

.fo-workshop-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--fo-space-sm);
  font-size: 0.92rem;
  color: var(--fo-text);
  line-height: 1.5;
}

.fo-workshop-feature__check {
  color: var(--fo-true);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.5;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.fo-stats-bar {
  background-color: var(--fo-bg);
  border-top: 1px solid var(--fo-border);
  border-bottom: 1px solid var(--fo-border);
  padding: var(--fo-space-xl) 0;
}

.fo-stats-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--fo-space-md);
  text-align: center;
}

.fo-stat {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-xs);
  position: relative;
}

.fo-stat + .fo-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.12);
}

:root.fo-light .fo-stat + .fo-stat::before {
  background-color: rgba(0, 0, 0, 0.1);
}

.fo-stat-num {
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.fo-stat-label {
  font-size: 0.8rem;
  color: var(--fo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   FEATURED CASES — TWO COLUMNS
   ============================================================ */

.fo-featured {
  padding: var(--fo-space-2xl) 0;
}

.fo-featured-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fo-space-xl);
}

.fo-featured-col {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-md);
}

.fo-featured-heading {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 2px solid currentColor;
  padding-bottom: var(--fo-space-sm);
  margin-bottom: var(--fo-space-sm);
}

/* ============================================================
   CASE CARD (template-parts/case-card.php)
   ============================================================ */

.fo-case-card {
  background-color: var(--fo-bg-card);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-md);
  padding: var(--fo-space-md);
  transition: box-shadow var(--fo-transition), border-color var(--fo-transition);
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-sm);
}

.fo-case-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.fo-case-card--debunked {
  border-left: 3px solid var(--fo-false);
  background-color: var(--fo-false-bg);
}

.fo-case-card--verified {
  border-left: 3px solid var(--fo-true);
  background-color: var(--fo-true-bg);
}

.fo-case-card--misleading {
  border-left: 3px solid var(--fo-mislead);
}

.fo-case-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--fo-space-sm);
}

.fo-verdict-badge {
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--fo-font-heading);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.fo-verdict-badge--debunked {
  background-color: var(--fo-false);
  color: #fff;
}

.fo-verdict-badge--verified {
  background-color: var(--fo-true);
  color: #fff;
}

.fo-verdict-badge--misleading {
  background-color: var(--fo-mislead);
  color: #fff;
}

.fo-verdict-badge--in_review,
.fo-verdict-badge--satire {
  background-color: var(--fo-border);
  color: var(--fo-text-muted);
}

.fo-case-card-title {
  font-family: var(--fo-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0;
}

.fo-case-card-title a {
  color: var(--fo-text);
  text-decoration: none;
}

.fo-case-card-title a:hover {
  color: var(--fo-false);
}

.fo-case-card-excerpt {
  font-size: 0.85rem;
  color: var(--fo-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

.fo-case-card-meta {
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  font-size: 0.75rem;
  color: var(--fo-text-muted);
  margin-top: auto;
  flex-wrap: wrap;
}

.fo-case-card-cat {
  background-color: var(--fo-bg-secondary);
  padding: 2px 6px;
  border-radius: var(--fo-radius-sm);
  font-weight: 500;
}

/* ============================================================
   WORKSHOP TEASER
   ============================================================ */

.fo-workshop-teaser {
  background-color: var(--fo-bg-secondary);
  border-top: 1px solid var(--fo-border);
  border-bottom: 1px solid var(--fo-border);
  padding: var(--fo-space-2xl) 0;
}

.fo-workshop-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--fo-space-2xl);
  align-items: center;
}

.fo-workshop-text {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-md);
}

.fo-workshop-text p {
  margin-bottom: 0;
}

.fo-workshop-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fo-false);
}

.fo-workshop-badge-area {
  display: flex;
  justify-content: center;
}

/* ============================================================
   EDUCATIONAL BANNER
   ============================================================ */

.fo-edu-banner {
  background-color: #7C3AED;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--fo-font-heading);
  letter-spacing: 0.03em;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  border-radius: var(--fo-radius-md);
  text-align: center;
  justify-content: center;
}

.fo-edu-banner--sticky {
  border-radius: 0;
  position: sticky;
  top: var(--fo-header-height);
  z-index: 90;
}

.fo-edu-banner--teaser {
  max-width: 380px;
  text-align: left;
  justify-content: flex-start;
  font-size: 0.85rem;
  padding: var(--fo-space-md);
  line-height: 1.5;
}

.fo-edu-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ============================================================
   VERDICT BANNER (single-fake_news_case.php)
   ============================================================ */

.fo-verdict-banner {
  padding: var(--fo-space-lg) 0;
  text-align: center;
}

.fo-verdict-banner--debunked {
  background-color: var(--fo-false);
  color: #fff;
}

.fo-verdict-banner--verified {
  background-color: var(--fo-true);
  color: #fff;
}

.fo-verdict-banner--misleading {
  background-color: var(--fo-mislead);
  color: #fff;
}

.fo-verdict-banner--in_review,
.fo-verdict-banner--satire {
  background-color: var(--fo-slate);
  color: #fff;
}

.fo-verdict-banner-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--fo-space-md);
}

.fo-verdict-banner-label {
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fo-verdict-banner-sub {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* ============================================================
   SINGLE CASE — 2-COLUMN LAYOUT
   ============================================================ */

.fo-single-case {
  padding: var(--fo-space-2xl) 0;
}

.fo-single-case-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--fo-space-2xl);
  align-items: start;
}

.fo-single-content {}

/* Breadcrumb */
.fo-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--fo-space-sm);
  font-size: 0.8rem;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-lg);
  flex-wrap: wrap;
}

.fo-breadcrumb a {
  color: var(--fo-text-muted);
}

.fo-breadcrumb a:hover {
  color: var(--fo-false);
}

.fo-breadcrumb-sep {
  opacity: 0.5;
}

/* Claim vs Reality */
.fo-claim-reality {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--fo-space-md);
  margin: var(--fo-space-xl) 0;
}

.fo-claim-box,
.fo-reality-box {
  padding: var(--fo-space-lg);
  border-radius: var(--fo-radius-md);
  border: 1px solid var(--fo-border);
}

.fo-claim-box {
  background-color: var(--fo-false-light);
  border-color: var(--fo-false);
  border-left-width: 3px;
}

.fo-reality-box {
  background-color: var(--fo-true-light);
  border-color: var(--fo-true);
  border-left-width: 3px;
}

.fo-claim-box h3,
.fo-reality-box h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--fo-space-sm);
}

.fo-claim-box h3 { color: var(--fo-false); }
.fo-reality-box h3 { color: var(--fo-true); }

.fo-claim-box p,
.fo-reality-box p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Patterns */
.fo-patterns {
  margin: var(--fo-space-xl) 0;
}

.fo-patterns-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-md);
}

.fo-patterns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--fo-space-sm);
}

.fo-pattern-tag {
  display: flex;
  align-items: center;
  gap: var(--fo-space-xs);
  padding: 0.4rem 0.75rem;
  background-color: var(--fo-false-light);
  border: 1px solid var(--fo-false);
  border-radius: var(--fo-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fo-false);
}

/* Spread channels */
.fo-spread-channels {
  display: flex;
  gap: var(--fo-space-sm);
  flex-wrap: wrap;
  margin-top: var(--fo-space-sm);
}

.fo-channel-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--fo-radius-sm);
  background-color: var(--fo-bg-secondary);
  border: 1px solid var(--fo-border);
  color: var(--fo-text-muted);
}

/* Sidebar */
.fo-single-sidebar {}

.fo-sidebar-card {
  background-color: var(--fo-bg-card);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-md);
  padding: var(--fo-space-lg);
  margin-bottom: var(--fo-space-md);
}

.fo-sidebar-card h3 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-md);
}

.fo-sidebar-verdict {
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  padding: var(--fo-space-md);
  border-radius: var(--fo-radius-md);
}

.fo-sidebar-verdict--debunked { color: var(--fo-false); background-color: var(--fo-false-light); }
.fo-sidebar-verdict--verified { color: var(--fo-true); background-color: var(--fo-true-light); }
.fo-sidebar-verdict--misleading { color: var(--fo-mislead); background-color: var(--fo-mislead-light); }

.fo-sidebar-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--fo-border);
  font-size: 0.85rem;
}

.fo-sidebar-meta-row:last-child {
  border-bottom: none;
}

.fo-sidebar-meta-label {
  color: var(--fo-text-muted);
  font-weight: 500;
}

.fo-sidebar-meta-value {
  color: var(--fo-text);
  font-weight: 600;
  text-align: right;
}

/* Sources list */
.fo-sources-list {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-sm);
}

.fo-source-item {
  font-size: 0.82rem;
}

.fo-source-item a {
  color: var(--fo-false);
  word-break: break-word;
}

.fo-source-publisher {
  font-size: 0.75rem;
  color: var(--fo-text-muted);
}

/* Author box */
.fo-author-box {
  background-color: var(--fo-bg-card);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-md);
  padding: var(--fo-space-lg);
  display: flex;
  gap: var(--fo-space-md);
  align-items: flex-start;
  margin-top: var(--fo-space-xl);
}

.fo-author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--fo-bg-secondary);
  border: 2px solid var(--fo-border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--fo-text-muted);
}

.fo-author-name {
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--fo-space-xs);
}

.fo-author-role {
  font-size: 0.8rem;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-sm);
}

.fo-author-bio {
  font-size: 0.88rem;
  color: var(--fo-text-muted);
  margin-bottom: 0;
}

/* ============================================================
   ARCHIVE — DATABASE
   ============================================================ */

.fo-archive-header {
  background-color: var(--fo-bg-secondary);
  border-bottom: 1px solid var(--fo-border);
  padding: var(--fo-space-2xl) 0 var(--fo-space-xl);
}

.fo-archive-header-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
}

.fo-archive-title {
  margin-bottom: var(--fo-space-sm);
}

.fo-archive-desc {
  color: var(--fo-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-bottom: 0;
}

/* Filter bar */
.fo-filter-bar {
  background-color: var(--fo-bg-secondary);
  border-bottom: 1px solid var(--fo-border);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.fo-filter-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  display: flex;
  gap: 0;
}

.fo-filter-tab {
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--fo-font-heading);
  color: var(--fo-text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color var(--fo-transition), border-color var(--fo-transition);
}

.fo-filter-tab:hover,
.fo-filter-tab.fo-filter-active {
  color: var(--fo-false);
  border-color: var(--fo-false);
}

/* Archive grid */
.fo-archive-grid {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
  padding-top: var(--fo-space-xl);
  padding-bottom: var(--fo-space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fo-space-lg);
}

/* ============================================================
   WORKSHOP PAGE
   ============================================================ */

.fo-workshop-page {
  max-width: var(--fo-container-narrow);
  margin-inline: auto;
  padding: var(--fo-space-2xl) var(--fo-space-md);
}

.fo-workshop-page h1,
.fo-workshop-page h2 {
  margin-top: var(--fo-space-xl);
}

.fo-workshop-page h1:first-child {
  margin-top: 0;
}

/* ============================================================
   RELATED CASES
   ============================================================ */

.fo-related {
  border-top: 1px solid var(--fo-border);
  padding: var(--fo-space-xl) 0;
  margin-top: var(--fo-space-xl);
}

.fo-related-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
}

.fo-related-heading {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-lg);
}

.fo-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--fo-space-md);
}

/* ============================================================
   FOOTER
   ============================================================ */

.fo-footer {
  background-color: var(--fo-bg-secondary);
  border-top: 1px solid var(--fo-border);
  padding: var(--fo-space-2xl) 0 var(--fo-space-lg);
  margin-top: auto;
}

.fo-footer-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
}

.fo-footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--fo-space-2xl);
  margin-bottom: var(--fo-space-xl);
  padding-bottom: var(--fo-space-xl);
  border-bottom: 1px solid var(--fo-border);
  align-items: start;
}

.fo-footer-brand {}

.fo-footer-logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--fo-font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: var(--fo-space-md);
  text-decoration: none;
}

.fo-footer-tagline {
  font-size: 0.85rem;
  color: var(--fo-text-muted);
  max-width: 280px;
  margin-bottom: 0;
}

.fo-footer-nav-col {}

.fo-footer-nav-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fo-text-muted);
  margin-bottom: var(--fo-space-md);
}

.fo-footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--fo-space-sm);
}

.fo-footer-nav-list a {
  font-size: 0.88rem;
  color: var(--fo-text-muted);
  transition: color var(--fo-transition);
}

.fo-footer-nav-list a:hover {
  color: var(--fo-false);
}

.fo-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--fo-text-muted);
  flex-wrap: wrap;
  gap: var(--fo-space-sm);
}

/* ============================================================
   STANDARD PAGE / SINGLE POST
   ============================================================ */

.fo-page-header {
  background-color: var(--fo-bg-secondary);
  border-bottom: 1px solid var(--fo-border);
  padding: var(--fo-space-2xl) 0;
}

.fo-page-header-inner {
  max-width: var(--fo-container-max);
  margin-inline: auto;
  padding-inline: var(--fo-space-md);
}

.fo-page-content {
  max-width: var(--fo-container-narrow);
  margin-inline: auto;
  padding: var(--fo-space-2xl) var(--fo-space-md);
}

.fo-featured-img {
  margin: 0 0 var(--fo-space-lg);
  border-radius: 8px;
  overflow: hidden;
}

.fo-featured-img__img {
  width: 100%;
  height: auto;
  display: block;
}

.fo-page-content h2,
.fo-page-content h3 {
  margin-top: var(--fo-space-xl);
}

.fo-page-content ul,
.fo-page-content ol {
  list-style: disc;
  padding-left: var(--fo-space-lg);
  margin-bottom: var(--fo-space-md);
}

.fo-page-content ol {
  list-style: decimal;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.fo-pagination {
  display: flex;
  justify-content: center;
  gap: var(--fo-space-sm);
  padding: var(--fo-space-xl) 0;
  flex-wrap: wrap;
}

.fo-pagination a,
.fo-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--fo-space-sm);
  border: 1px solid var(--fo-border);
  border-radius: var(--fo-radius-sm);
  font-size: 0.9rem;
  color: var(--fo-text);
  text-decoration: none;
  transition: background-color var(--fo-transition), border-color var(--fo-transition);
}

.fo-pagination a:hover {
  border-color: var(--fo-false);
  color: var(--fo-false);
}

.fo-pagination .current {
  background-color: var(--fo-false);
  border-color: var(--fo-false);
  color: #fff;
}

/* ============================================================
   404 PAGE
   ============================================================ */

.fo-404 {
  text-align: center;
  padding: var(--fo-space-2xl) var(--fo-space-md);
  max-width: 600px;
  margin-inline: auto;
}

.fo-404-code {
  font-size: clamp(5rem, 15vw, 8rem);
  font-family: var(--fo-font-heading);
  font-weight: 700;
  color: var(--fo-false);
  line-height: 1;
  margin-bottom: var(--fo-space-md);
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */

@media (max-width: 1200px) {
  .fo-hero-content {
    gap: var(--fo-space-xl);
  }

  .fo-archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 960px
   ============================================================ */

@media (max-width: 960px) {
  .fo-hero-content {
    grid-template-columns: 1fr;
  }

  .fo-hero-monitor {
    display: none;
  }

  .fo-featured-inner {
    grid-template-columns: 1fr;
  }

  .fo-workshop-inner {
    grid-template-columns: 1fr;
  }

  .fo-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .fo-single-case-inner {
    grid-template-columns: 1fr;
  }

  .fo-single-sidebar {
    order: -1;
  }

  .fo-footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .fo-footer-brand {
    grid-column: 1 / -1;
  }

  .fo-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */

@media (max-width: 768px) {
  .fo-nav {
    display: none;
    position: absolute;
    top: var(--fo-header-height);
    left: 0;
    right: 0;
    background-color: var(--fo-bg-secondary);
    border-bottom: 1px solid var(--fo-border);
    flex-direction: column;
    padding: var(--fo-space-md);
    gap: var(--fo-space-xs);
    z-index: 99;
  }

  .fo-nav.fo-nav--open {
    display: flex;
  }

  .fo-nav-item {
    width: 100%;
    padding: 0.65rem 1rem;
  }

  .fo-mobile-menu-btn {
    display: flex;
  }

  .fo-lang-switcher {
    display: none;
  }

  .fo-header {
    position: relative;
  }

  .fo-archive-grid {
    grid-template-columns: 1fr;
  }

  .fo-claim-reality {
    grid-template-columns: 1fr;
  }

  .fo-related-grid {
    grid-template-columns: 1fr;
  }

  .fo-footer-top {
    grid-template-columns: 1fr;
  }

  .fo-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */

@media (max-width: 480px) {
  .fo-stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .fo-hero-ctas {
    flex-direction: column;
  }

  .fo-btn {
    text-align: center;
    justify-content: center;
  }

  .fo-patterns-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .fo-header,
  .fo-footer,
  .fo-edu-banner--sticky,
  .fo-theme-toggle,
  .fo-mobile-menu-btn { display: none; }

  body { background: #fff; color: #000; }
}
