/* ============================================================
   WALLACHIA LEGION — STYLES
   Do not edit unless you know CSS.
   All content, links, and asset paths are in config.js
   ============================================================ */

@font-face {
  font-family: 'SaveryOutline';
  src: url('assets/savery_outline.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0041-005A, U+0061-007A, U+00C0-00FF; /* letters only, no numerals */
}

@font-face {
  font-family: 'SaveryRegular';
  src: url('assets/savery_regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --black:       #080808;
  --dark:        #111113;
  --surface:     #18181b;
  --border:      rgba(255,255,255,0.07);
  --red:         #bb0a1e;
  --red-bright:  #cc1100;
  --red-glow:    rgba(187,10,30,0.35);
  --red-soft:    rgba(187,10,30,0.12);
  --silver:      #a8adb8;
  --silver-dim:  #5c6070;
  --white:       #eeeef0;
  --font-display: 'Bebas Neue', sans-serif;
  --font-custom:  'SaveryOutline', 'Bebas Neue', sans-serif; /* custom font — swap file in assets/ and update @font-face above */
  --font-body:    'Rajdhani', sans-serif;
  --font-mono:    'Share Tech Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }

/* ── PAGES ─────────────────────────────────────────────── */
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 0 40px;
  height: 90px;
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.7) 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 73px;
  width: 73px;
  object-fit: contain;
  transition: opacity 0.3s;
}

.nav-brand:hover .nav-logo {
  opacity: 0.8;
}

.nav-org-name {
  font-family: var(--font-custom);
  font-size: 26px;
  letter-spacing: 0.12em;
  color: var(--red-bright);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver-dim);
  padding: 8px 16px;
  border-radius: 3px;
  border: 1px solid transparent;
  transition: all 0.25s;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--white);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}
.nav-link.active {
  color: var(--red-bright);
  border-color: var(--red);
  background: var(--red-soft);
  box-shadow: 0 0 10px var(--red-glow);
}

.nav-btn {
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 20px;
  transition: all 0.25s;
}

.nav-btn-discord { border-color: var(--border); color: var(--silver) !important; }
.nav-btn-discord:hover {
  border-color: #5865F2;
  color: #7289da !important;
  background: rgba(88,101,242,0.08);
}

.nav-btn-join {
  background: var(--red);
  border-color: var(--red);
  color: var(--white) !important;
  box-shadow: 0 0 16px var(--red-glow);
}
.nav-btn-join:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--silver);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── ZONE B — HERO BANNER ───────────────────────────────── */
.hero-banner {
  width: 100%;
  padding-top: 90px; /* offset for fixed navbar */
  position: relative;
  overflow: hidden;
  max-height: 320px;
}

.hero-banner img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.75);
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.6) 100%);
}

/* ── ZONE C — MAIN BODY BACKGROUND ─────────────────────── */
.home-body {
  position: relative;
  min-height: calc(100vh - 390px);
  padding-top: 90px;
  isolation: isolate;
  z-index: 2;
}

.home-body-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.25);
  overflow: hidden;
}

/* ── ZONE C — TWO COLUMN LAYOUT ─────────────────────────── */
.home-columns {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 40px 40px 28px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── ZONE D — NEWS BOX (left) ───────────────────────────── */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-box {
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(12px);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 700px;
  max-height: 700px;
  overflow-y: auto;
  box-shadow: 0 0 12px var(--red-glow);
}

.news-box-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.news-box-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  text-transform: uppercase;
}

.news-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.news-item:last-child { border-bottom: none; padding-bottom: 0; }

.news-date {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--silver-dim);
  margin-bottom: 6px;
}

.news-headline {
  font-family: var(--font-custom);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.news-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
}

/* ── NEWS BOX BUTTONS ────────────────────────────────────── */
.news-box-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.news-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
  flex: 1;
  text-align: center;
}

.news-btn-discord {
  background: rgba(88,101,242,0.1);
  border-color: rgba(88,101,242,0.35);
  color: #7289da;
}
.news-btn-discord:hover {
  background: rgba(88,101,242,0.2);
  border-color: #7289da;
  box-shadow: 0 0 16px rgba(88,101,242,0.2);
}

.news-btn-join {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  box-shadow: 0 0 16px var(--red-glow);
}
.news-btn-join:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 0 28px var(--red-glow);
  transform: translateY(-1px);
}

/* ── ZONE E — RIGHT PANEL ────────────────────────────────── */
.right-panel {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  min-height: 700px;
  height: 700px;
  border: 1px solid var(--red);
  box-shadow: 0 0 12px var(--red-glow);
  isolation: isolate;
  z-index: 2;
}

.right-panel-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45);
}

.right-panel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(8,8,8,0.85) 100%);
}

.right-panel-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 36px 74px;
}

.right-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  margin-bottom: 10px;
}

.right-panel-title {
  font-family: var(--font-custom);
  font-size: clamp(36px, 4vw, 60px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--red-bright);
  margin-bottom: 8px;
}

.right-panel-subtitle {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 16px;
}

.right-panel-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin-bottom: 16px;
  box-shadow: 0 0 8px var(--red-glow);
}

.right-panel-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

/* ── ZONE F — FIXED LOGO ─────────────────────────────────── */
.fixed-logo {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 86px;
  height: 86px;
  opacity: 1;
  transition: opacity 0.3s;
  pointer-events: none;
}
.fixed-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── HISTORY PAGE ────────────────────────────────────────── */
#page-history { position: relative; min-height: 100vh; }

.history-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.2);
  z-index: 0;
}

.history-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
  padding-top: 90px;
}

.history-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(16px);
  padding: 40px 0;
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 28px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--red-bright);
}

.chapter-nav { display: flex; flex-direction: column; }

.chapter-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-dim);
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  transition: all 0.25s;
  border-left: 2px solid transparent;
  width: 100%;
}
.chapter-btn:hover { color: var(--silver); background: rgba(255,255,255,0.03); }
.chapter-btn.active { color: var(--white); border-left-color: var(--red); background: rgba(187,10,30,0.08); }

.chapter-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--red-bright);
  opacity: 0.7;
  min-width: 22px;
}
.chapter-btn.active .chapter-num { opacity: 1; }

.history-main { padding: 60px 80px; overflow-y: auto; }

.chapter-display {
  max-width: 780px;
  animation: chapterIn 0.4s ease;
}

@keyframes chapterIn {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.chapter-number-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--red-bright);
  margin-bottom: 12px;
  display: block;
}

.chapter-title {
  font-family: var(--font-custom);
  font-size: clamp(48px, 7vw, 80px);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--red-bright);
}

.chapter-subtitle {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 40px;
}

.chapter-divider {
  width: 60px;
  height: 2px;
  background: var(--red);
  margin-bottom: 40px;
  box-shadow: 0 0 10px var(--red-glow);
}

.chapter-body { font-size: 17px; line-height: 1.85; color: var(--silver); }
.chapter-body p { margin-bottom: 20px; }
.chapter-body p:last-child { margin-bottom: 0; }
.chapter-body strong { color: var(--white); font-weight: 700; }
.chapter-body em { color: var(--red-bright); font-style: normal; }

.chapter-nav-arrows {
  display: flex;
  gap: 14px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.arrow-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  background: none;
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s;
}
.arrow-btn:hover { color: var(--white); border-color: var(--red); background: var(--red-soft); }
.arrow-btn:disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }

/* ── INTEL HERO BUTTON ───────────────────────────────────── */
.hero-btn-intel {
  background: transparent;
  border-color: var(--red);
  color: var(--red-bright);
}
.hero-btn-intel:hover {
  border-color: var(--red-bright);
  color: var(--white);
  background: var(--red-soft);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .history-main { padding: 48px 40px; }
  .home-columns { grid-template-columns: 1fr; }
  .right-panel  { min-height: 400px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: 70px; right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 0;
    border-left: 1px solid var(--border);
    transition: right 0.35s ease;
    gap: 0;
  }
  .nav-links.open { right: 0; }
  .nav-links li   { width: 100%; }
  .nav-link       { display: block; padding: 16px 24px; font-size: 14px; }
  .nav-btn        { margin: 4px 16px; border-radius: 3px; }
  .nav-toggle     { display: flex; }

  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar {
    position: static; height: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .history-main  { padding: 32px 24px; }
  .chapter-title { font-size: 42px; }

  .home-columns  { padding: 24px 20px 40px; gap: 20px; }
  .fixed-logo    { width: 44px; height: 44px; bottom: 16px; right: 16px; }
}

/* ── SIMPLE PAGES (Leadership, Activity, Dossiers, Rules) ── */
.simple-page-layout {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 60px 80px;
  min-height: 100vh;
}

.simple-page-header {
  margin-bottom: 40px;
}

.simple-page-body {
  font-size: 17px;
  line-height: 1.85;
  color: var(--silver);
}

@media (max-width: 768px) {
  .simple-page-layout { padding: 100px 24px 60px; }
}

/* ── COLUMN FRAMES ───────────────────────────────────────────
   When your frame artwork is ready:
   1. Drop the PNG into assets/ (e.g. assets/frame-left.png, assets/frame-right.png)
   2. Uncomment the border-image lines below and set the slice value
      (the number = how many pixels inward the corners are cut in your PNG)

.news-box {
  /* border-image: url('assets/frame-left.png') 40 fill / 40px / 0px; */
}

.right-panel {
  /* border-image: url('assets/frame-right.png') 40 fill / 40px / 0px; */
}

   If you want the same frame on both columns, point both at the same file.
   border-image guide:
     url('...')   — your frame PNG
     40           — slice (px inward from edge where corners are defined)
     fill         — keeps the center visible (required for backgrounds)
     / 40px       — rendered border width (match your slice or scale up/down)
   ────────────────────────────────────────────────────────── */

/* ── GALLERY ─────────────────────────────────────────────── */
.gallery-main {
  padding: 40px 60px 80px;
  overflow-y: auto;
}

.gallery-display {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1100px;
}

.gallery-album-header {
  margin-bottom: 8px;
}

.gallery-image-block {
  position: relative;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.gallery-image-block img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 520px;
}

.gallery-image-placeholder {
  width: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--silver-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.gallery-caption {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: 0.06em;
  border-top: 1px solid var(--border);
  background: rgba(8,8,8,0.4);
}

.gallery-image-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--red-bright);
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  display: block;
}

@media (max-width: 768px) {
  .gallery-main { padding: 24px 20px 60px; }
}

/* ── RIGHT PANEL TRADEMARK LOGO ──────────────────────────── */
.right-panel-trademark {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  object-fit: contain;
  z-index: 3;
  opacity: 0.75;
}

/* ── HOME TAGLINE FOOTER ─────────────────────────────────── */
.home-tagline {
  width: 100%;
  text-align: center;
  padding: 40px 0 28px;
  font-family: var(--font-custom);
  font-size: 23px;
  letter-spacing: 0.3em;
  color: var(--red-bright);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* ── SC DATE ─────────────────────────────────────────────── */
.news-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.sc-date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--silver-dim);
  text-align: right;
  line-height: 1.5;
  white-space: pre;
}

/* ── TOOLS PAGE ──────────────────────────────────────────── */
.tools-layout {
  position: relative;
  z-index: 1;
  padding: 100px 40px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.tools-header {
  margin-bottom: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.tool-card {
  background: rgba(8,8,8,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.tool-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--red-bright);
  text-transform: uppercase;
}

.tool-source {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
}

.tool-frame-wrap {
  width: 100%;
  height: 480px;
  overflow: hidden;
  position: relative;
}

.tool-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--dark);
}

.tool-btn {
  display: block;
  text-align: center;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  border-top: 1px solid var(--border);
  transition: all 0.25s;
  background: rgba(8,8,8,0.4);
}

.tool-btn:hover {
  color: var(--white);
  background: var(--red-soft);
  border-top-color: var(--red);
}

.tools-links-header {
  margin-bottom: 20px;
}

.tools-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.tool-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 40px;
  background: rgba(8,8,8,0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.25s;
  min-width: 200px;
}

.tool-link-btn:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.tool-link-label {
  font-family: var(--font-custom);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}

.tool-link-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
}

@media (max-width: 1024px) {
  .tools-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .tools-layout { padding: 90px 20px 60px; }
  .tool-frame-wrap { height: 340px; }
}

/* ── TOOLS FRAME ─────────────────────────────────────────── */
.tools-main {
  padding: 60px 80px;
  overflow-y: auto;
}

.tool-frame-wrap {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tool-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: var(--dark);
}

.tool-btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
  border: 1px solid var(--border);
  border-radius: 2px;
  transition: all 0.25s;
  background: rgba(8,8,8,0.4);
}

.tool-btn:hover {
  color: var(--white);
  background: var(--red-soft);
  border-color: var(--red);
}

.tool-link-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 40px;
  background: rgba(8,8,8,0.6);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.25s;
  min-width: 200px;
}

.tool-link-btn:hover {
  border-color: var(--red);
  background: var(--red-soft);
}

.tool-link-label {
  font-family: var(--font-custom);
  font-size: 22px;
  letter-spacing: 0.1em;
  color: var(--red-bright);
}

.tool-link-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
}

@media (max-width: 768px) {
  .tools-main { padding: 32px 24px; }
  .tool-frame-wrap { height: 400px; }
}

/* ── TOOL REDIRECT ARROW ─────────────────────────────────── */
.tool-redirect-arrow {
  margin-left: auto;
  color: var(--red-bright);
  font-size: 13px;
}

/* ── ACCORDION ───────────────────────────────────────────── */
.accordion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
}

.accordion-entry {
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.accordion-entry.open { border-color: rgba(187,10,30,0.4); }

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: rgba(8,8,8,0.5);
  transition: background 0.25s;
  user-select: none;
}
.accordion-header:hover { background: rgba(187,10,30,0.06); }
.accordion-entry.open .accordion-header {
  background: rgba(187,10,30,0.1);
  border-bottom: 1px solid rgba(187,10,30,0.2);
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}
.entry-role {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red-bright);
  margin-top: 3px;
}
.entry-arrow {
  color: var(--silver-dim);
  font-size: 12px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.accordion-entry.open .entry-arrow {
  transform: rotate(180deg);
  color: var(--red-bright);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.3s;
  padding: 0 24px;
}
.accordion-entry.open .accordion-body {
  max-height: 800px;
  padding: 24px;
}

/* Dossier layout inside accordion */
.dossier-content {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 24px;
  align-items: start;
}

.dossier-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--silver);
}
.dossier-text p { margin-bottom: 12px; }
.dossier-text p:last-child { margin-bottom: 0; }
.dossier-text strong { color: var(--white); }

.dossier-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dossier-portrait img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(187,10,30,0.3);
}
.dossier-portrait-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--silver-dim);
  text-align: center;
}

@media (max-width: 768px) {
  .dossier-content { grid-template-columns: 1fr; }
  .dossier-portrait { flex-direction: row; justify-content: flex-start; }
}

/* ── DISCORD WIDGET ──────────────────────────────────────── */
/* DISCORD WIDGET GRID — uncomment when Discord widget is active in index.html
.home-columns {
  grid-template-columns: 240px 1fr 1fr !important;
}
*/
.discord-widget-col {
  display: flex;
  flex-direction: column;
  height: 700px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(12px);
}
.discord-widget-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.discord-widget-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  text-transform: uppercase;
}
.discord-widget-frame {
  width: 100%;
  flex: 1;
  border: none;
  display: block;
}

/* ── QUOTE BAR ───────────────────────────────────────────── */
.quote-bar {
  background: rgba(8,8,8,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--red);
  border-radius: 4px;
  padding: 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 0 12px var(--red-glow);
  min-height: 90px;
  position: relative;
  z-index: 1;
  max-width: calc(1400px - 80px);
  margin: 0 auto;
  box-sizing: border-box;
}

.home-bottom-buttons {
  position: relative;
  z-index: 1;
  max-width: calc(1400px - 80px);
  margin: 0 auto;
  padding: 12px 0 20px;
  box-sizing: border-box;
}

.quote-bar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red-bright);
  text-transform: uppercase;
  border-bottom: 1px solid rgba(187,10,30,0.25);
  padding-bottom: 8px;
}

.quote-bar-text {
  font-family: var(--font-custom);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1.5;
  transition: opacity 0.6s ease;
}

.quote-bar-author {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--silver-dim);
  margin-top: 4px;
}

/* ── FIXED LOGO SPIN ─────────────────────────────────────── */
@keyframes spin {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(0deg); }
  55%  { transform: rotateY(180deg); }
  60%  { transform: rotateY(360deg); }
  100% { transform: rotateY(360deg); }
}

.fixed-logo img {
  animation: spin 40s linear infinite;
}

/* ── NAV LOGO GLITCH ─────────────────────────────────────── */
.nav-logo-wrap {
  position: relative;
  width: 73px;
  height: 73px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glitch-particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1001;
}

.glitch-tear {
  position: absolute;
  left: 0;
  width: 100%;
  background: #cc1100;
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1001;
}

.glitch-chroma {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
}

/* ── NAV LOGO STRIP GLITCH ───────────────────────────────── */
.nav-logo-strips {
  position: relative;
  width: 73px;
  height: 73px;
}

.nav-logo-strips .strip {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  background-size: 100% auto;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

@keyframes ngs1 { 0%,100% { transform:none; filter:none; } 50% { transform:translateX(var(--gx1)); filter:hue-rotate(var(--gh1)) drop-shadow(0 -2px 0 rgba(187,10,30,0.8)); } }
@keyframes ngs2 { 0%,100% { transform:none; filter:none; } 50% { transform:translateX(var(--gx2)); filter:hue-rotate(var(--gh2)) drop-shadow(-2px 1px 0 rgba(255,255,255,0.5)); } }
@keyframes ngs3 { 0%,100% { transform:none; filter:none; } 50% { transform:translateX(var(--gx1)); filter:hue-rotate(var(--gh1)) drop-shadow(2px -1px 0 rgba(187,10,30,0.6)); } }
@keyframes ngs4 { 0%,100% { transform:none; filter:none; } 50% { transform:translateX(var(--gx2)); filter:hue-rotate(var(--gh2)) drop-shadow(-1px 2px 0 rgba(255,255,255,0.4)); } }
@keyframes ngs5 { 0%,100% { transform:none; filter:none; } 50% { transform:translateX(var(--gx1)); filter:hue-rotate(var(--gh1)) drop-shadow(1px -2px 0 rgba(187,10,30,0.7)); } }

.nav-logo-wrap:hover .strip:nth-child(1)  { animation: ngs1 0.4s 0.00s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(2)  { animation: ngs2 0.4s 0.04s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(3)  { animation: ngs3 0.4s 0.08s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(4)  { animation: ngs4 0.4s 0.02s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(5)  { animation: ngs5 0.4s 0.06s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(6)  { animation: ngs1 0.4s 0.03s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(7)  { animation: ngs2 0.4s 0.07s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(8)  { animation: ngs3 0.4s 0.01s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(9)  { animation: ngs4 0.4s 0.05s linear infinite; }
.nav-logo-wrap:hover .strip:nth-child(10) { animation: ngs5 0.4s 0.09s linear infinite; }

/* ── GALLERY FULL WIDTH ──────────────────────────────────── */
.gallery-full {
  padding: 60px 60px 80px;
  position: relative;
  z-index: 1;
  padding-top: calc(90px + 60px);
  overflow-x: hidden;
}

.gallery-page-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em; color: var(--red-bright);
  display: block; margin-bottom: 12px;
}
.gallery-page-title {
  font-size: 48px; font-weight: 700;
  letter-spacing: 0.06em; color: var(--red-bright); margin-bottom: 8px;
}
.gallery-page-subtitle {
  font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--silver-dim); margin-bottom: 20px;
}
.gallery-page-divider {
  width: 60px; height: 2px;
  background: var(--red); box-shadow: 0 0 10px var(--red-glow);
  margin-bottom: 48px;
}

/* FOLDER ROW */
.folder-row {
  display: flex;
  flex-direction: row;
  margin-bottom: 48px;
}

/* FOLDER */
.folder {
  position: relative;
  flex-shrink: 0;
  width: 200px;
  margin-right: -44px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.folder:nth-child(1) { z-index: 1; }
.folder:nth-child(2) { z-index: 2; }
.folder:nth-child(3) { z-index: 3; }
.folder:nth-child(4) { z-index: 4; }
.folder:nth-child(5) { z-index: 5; }
.folder:hover { transform: translateY(-18px) scale(1.05); z-index: 20 !important; }

/* TAB */
.folder-tab {
  display: block;
  background: #1c1c22;
  border: 1px solid rgba(187,10,30,0.4);
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  padding: 4px 10px 7px;
  font-family: var(--font-mono);
  font-size: 8px; letter-spacing: 0.12em;
  color: var(--red-bright); text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  width: 120px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}
.folder:hover .folder-tab {
  background: #26161a;
  color: #ff2233;
  border-color: rgba(187,10,30,0.8);
}

/* FOLDER BODY */
.folder-body {
  position: relative;
  width: 100%; height: 148px;
  background: #1c1c22;
  border: 1px solid rgba(187,10,30,0.4);
  border-radius: 0 5px 5px 5px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.3s;
}
.folder:hover .folder-body {
  border-color: rgba(187,10,30,0.9);
  box-shadow: 0 14px 40px rgba(187,10,30,0.3), 0 0 0 1px rgba(187,10,30,0.5);
  background: #26161a;
}

.folder-img {
  position: absolute;
  width: 84%; left: 8%;
  object-fit: cover; border-radius: 2px;
  transition: transform 0.35s ease, opacity 0.3s ease;
}
.folder-img:nth-child(3) { height: 70%; bottom: -8px; opacity: 0.3; transform: rotate(-4deg); }
.folder-img:nth-child(2) { height: 76%; bottom: -3px; opacity: 0.55; transform: rotate(2.5deg); }
.folder-img:nth-child(1) { height: 84%; bottom: 4px; opacity: 1; border: 1px solid rgba(187,10,30,0.15); }
.folder:hover .folder-img:nth-child(3) { transform: rotate(-7deg) translateY(10px); opacity: 0.45; }
.folder:hover .folder-img:nth-child(2) { transform: rotate(5deg) translateY(5px); opacity: 0.7; }

.folder-count {
  position: absolute; bottom: 6px; right: 8px;
  font-family: var(--font-mono);
  font-size: 8px; color: rgba(255,255,255,0.25); z-index: 5;
}

/* LIGHTBOX */
.gallery-lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.94);
  align-items: center; justify-content: center; flex-direction: column;
}
.gallery-lightbox.open { display: flex; }
.gallery-lightbox img {
  max-width: 88vw; max-height: 78vh;
  object-fit: contain;
  border: 1px solid rgba(187,10,30,0.3); border-radius: 3px;
}
.lightbox-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(8,8,8,0.8); border: 1px solid rgba(187,10,30,0.4);
  color: var(--red-bright); font-size: 28px; width: 52px; height: 52px;
  border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2001;
}
.lightbox-arrow:hover { background: rgba(187,10,30,0.15); }
.lightbox-arrow:disabled { opacity: 0.2; cursor: default; }
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }
.lightbox-close {
  position: fixed; top: 20px; right: 20px;
  background: rgba(8,8,8,0.8); border: 1px solid rgba(187,10,30,0.4);
  color: var(--red-bright); font-size: 20px; width: 44px; height: 44px;
  border-radius: 3px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; z-index: 2001;
}
.lightbox-close:hover { background: rgba(187,10,30,0.15); }
.lightbox-meta { margin-top: 16px; text-align: center; }
.lightbox-counter {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; color: var(--silver-dim);
}
.lightbox-caption { font-size: 14px; color: var(--silver); margin-top: 6px; letter-spacing: 0.06em; }

/* ── DOSSIER LIGHTBOX ────────────────────────────────────── */
.dossier-lightbox {
  align-items: center;
  justify-content: center;
}

.dossier-lightbox-content {
  background: #18181b;
  border: 1px solid var(--red);
  border-radius: 4px;
  box-shadow: 0 0 40px rgba(187,10,30,0.3);
  padding: 40px;
  max-width: 700px;
  width: 90vw;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.dossier-lb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(187,10,30,0.2);
}

.dossier-lb-name {
  font-size: 28px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--white);
}

.dossier-lb-role {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--red-bright); margin-top: 4px;
}

.dossier-lb-portrait {
  width: 80px; height: 80px;
  object-fit: cover; border-radius: 4px;
  border: 1px solid rgba(187,10,30,0.4);
  flex-shrink: 0;
}

.dossier-lb-body {
  font-size: 15px; line-height: 1.8;
  color: var(--silver);
}
.dossier-lb-body p { margin-bottom: 12px; }
.dossier-lb-body strong { color: var(--white); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE & TABLET
   Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
   ══════════════════════════════════════════════════════════ */

/* ── TABLET (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Home columns — stack vertically */
  .home-columns {
    grid-template-columns: 1fr !important;
    padding: 32px 28px 28px;
    gap: 20px;
  }
  .news-box { height: auto; max-height: 500px; }
  .right-panel { min-height: 360px; height: 360px; }

  /* Quote bar */
  .quote-bar { margin: 0 28px; width: auto; max-width: none; }
  .home-bottom-buttons { padding: 12px 28px 20px; max-width: none; }

  /* Gallery & Dossiers folder rows */
  .folder { width: 170px; }
  .folder-row { margin-bottom: 40px; }
  .gallery-full { padding: 40px 28px 60px; padding-top: calc(90px + 40px); }

  /* Sidebar pages */
  .history-layout { grid-template-columns: 220px 1fr; }
}

/* ── MOBILE (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── NAVBAR ── */
  .navbar { padding: 0 16px; }
  .nav-logo-strips { width: 52px; height: 52px; }
  .nav-org-name { font-size: 13px; }

  /* ── HOME ── */
  .home-body { padding-top: 70px; }
  .home-columns {
    grid-template-columns: 1fr !important;
    padding: 20px 16px 20px;
    gap: 16px;
  }
  .news-box { height: auto; max-height: 400px; padding: 20px; }
  .right-panel { min-height: 280px; height: 280px; }
  .right-panel-title { font-size: 22px; }

  .quote-bar { margin: 0 16px; padding: 14px 16px; min-height: 70px; }
  .home-bottom-buttons { padding: 12px 16px 20px; max-width: none; }
  .home-tagline { font-size: 16px; letter-spacing: 0.2em; padding: 24px 0 20px; }

  /* ── SIDEBAR PAGES ── */
  .history-layout { grid-template-columns: 1fr; }
  .history-sidebar {
    position: static; height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .chapter-nav {
    display: flex; flex-direction: row;
    overflow-x: auto; padding: 8px 16px;
    gap: 8px; white-space: nowrap;
  }
  .chapter-btn {
    flex-shrink: 0; padding: 10px 16px;
    border-left: none; border-bottom: 2px solid transparent;
    font-size: 12px;
  }
  .chapter-btn.active {
    border-left: none; border-bottom-color: var(--red);
  }
  .history-main { padding: 24px 16px 40px; }
  .chapter-title { font-size: 32px; }
  .chapter-subtitle { font-size: 12px; }

  /* ── ACCORDION ── */
  .accordion-header { padding: 14px 16px; }
  .accordion-body.open, .accordion-entry.open .accordion-body { padding: 16px; }
  .dossier-content { grid-template-columns: 1fr; }
  .dossier-portrait { flex-direction: row; justify-content: flex-start; gap: 12px; }

  /* ── GALLERY & DOSSIERS ── */
  .gallery-full { padding: 20px 16px 60px; padding-top: calc(70px + 20px); }
  .gallery-page-title { font-size: 36px; }
  .folder-row { overflow-x: auto; padding-bottom: 12px; margin-bottom: 32px; }
  .folder { width: 140px; }
  .folder-body { height: 110px; }
  .folder-tab { width: 90px; font-size: 7px; }
  .folder-count { font-size: 7px; }

  /* ── DOSSIER LIGHTBOX ── */
  .dossier-lightbox-content { padding: 24px; width: 95vw; }
  .dossier-lb-name { font-size: 22px; }
  .dossier-lb-portrait { width: 60px; height: 60px; }

  /* ── GALLERY LIGHTBOX ── */
  .gallery-lightbox img { max-width: 95vw; max-height: 70vh; }
  .lightbox-arrow { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-arrow.prev { left: 8px; }
  .lightbox-arrow.next { right: 8px; }

  /* ── TOOLS ── */
  .tool-frame { min-height: 400px; }

  /* ── FIXED LOGO ── */
  .fixed-logo { width: 44px; height: 44px; bottom: 16px; right: 16px; }
}

/* ── SMALL MOBILE (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .home-columns { padding: 14px 12px 14px; }
  .news-box { padding: 16px; }
  .quote-bar { margin: 0 12px; }
  .home-bottom-buttons { padding: 10px 12px 16px; }
  .gallery-full { padding: 16px 12px 40px; padding-top: calc(70px + 16px); }
  .folder { width: 120px; margin-right: -36px; }
  .folder-body { height: 95px; }
  .folder-tab { width: 76px; }
  .chapter-title { font-size: 26px; }
  .right-panel { min-height: 220px; height: 220px; }
  .sc-date { display: none; } /* hide SC clock on very small screens */
}

/* Hide scrollbar on folder rows but keep scroll functional */
.folder-row {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.folder-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* ── MOBILE VIDEO ASPECT RATIO FIX ──────────────────────── */
@media (max-width: 768px) {
  /* Right panel — adapt to video aspect ratio */
  .right-panel {
    height: auto;
    min-height: unset;
    aspect-ratio: 16 / 9;
  }

  .right-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* Home background video — contain on mobile */
  #homeBgVideo {
    object-fit: contain;
  }

  /* News box — don't let it get too tall */
  .news-box {
    height: auto;
    max-height: 360px;
  }
}

/* ── PAGE TRANSITIONS ────────────────────────────────────── */
.page {
  opacity: 0;
  transition: opacity 0.25s ease;
}
.page.active {
  opacity: 1;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  border: 1px dashed rgba(187,10,30,0.2);
  border-radius: 4px;
  margin: 20px 0;
}
.empty-state-msg .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state-msg .empty-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--silver-dim);
  margin-bottom: 8px;
}
.empty-state-msg .empty-sub {
  font-size: 13px;
  color: var(--silver-dim);
  opacity: 0.6;
}

/* ── TEXTILE CONTENT STYLES ──────────────────────────────── */
.dossier-text h1, .dossier-text h2, .dossier-text h3,
.news-body h1, .news-body h2, .news-body h3 {
  font-family: var(--font-custom);
  color: var(--red-bright);
  letter-spacing: 0.06em;
  margin: 16px 0 8px;
}
.dossier-text h1, .news-body h1 { font-size: 28px; }
.dossier-text h2, .news-body h2 { font-size: 22px; }
.dossier-text h3, .news-body h3 { font-size: 18px; }

.dossier-text p, .news-body p { margin-bottom: 10px; line-height: 1.8; }

.dossier-text blockquote, .news-body blockquote {
  border-left: 3px solid var(--red);
  padding: 8px 16px;
  margin: 12px 0;
  color: var(--silver);
  font-style: italic;
}

.dossier-text code, .news-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(187,10,30,0.1);
  border: 1px solid rgba(187,10,30,0.2);
  border-radius: 3px;
  padding: 1px 6px;
  color: var(--red-bright);
}

.dossier-text ul, .dossier-text ol,
.news-body ul, .news-body ol {
  margin: 10px 0 10px 24px;
  line-height: 1.8;
}

.dossier-text li, .news-body li { margin-bottom: 4px; }

.textile-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 13px;
}
.textile-table th, .textile-table td {
  padding: 8px 12px;
  border: 1px solid rgba(187,10,30,0.2);
  text-align: left;
}
.textile-table th {
  background: rgba(187,10,30,0.1);
  color: var(--red-bright);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.textile-table tr:hover td { background: rgba(255,255,255,0.02); }

.dossier-text a, .news-body a {
  color: var(--red-bright);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dossier-text a:hover, .news-body a:hover { color: var(--white); }

.footnote { font-size: 12px; color: var(--silver-dim); margin-top: 8px; }
