/* ========================================
   Factorio Guide — Factorio UI Style v5
   Redesigned: 2026-05-18
   Theme: Industrial / Game UI / Ad-ready
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;700;900&family=Rajdhani:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ========================================
   CSS CUSTOM PROPERTIES — FACTORIO PALETTE
   ======================================== */

:root {
  /* ── Backgrounds ── */
  --bg-void:        #111111;
  --bg-deep:        #1a1a1a;
  --bg-body:        #1f1f1f;
  --bg-surface:     #252525;
  --bg-card:        #2a2a2a;
  --bg-card-hover:  #303030;
  --bg-card-header: #333333;
  --bg-card-inner:  #282828;
  --bg-input:       #222222;
  --bg-overlay:    rgba(0,0,0,0.7);

  /* ── Factorio Brand Colors ── */
  --f-orange:       #e8941c;   /* Factorio orange (primary) */
  --f-orange-lt:    #f5aa2e;  /* lighter orange */
  --f-orange-dk:    #b06810;  /* darker orange */
  --f-orange-glow:  rgba(232,148,28,0.35);
  --f-orange-faint: rgba(232,148,28,0.10);
  --f-orange-mid:   rgba(232,148,28,0.18);

  --f-green:        #6abe30;   /* Factorio green */
  --f-green-dk:     #4e9222;
  --f-green-lt:     #8ad44a;
  --f-green-glow:  rgba(106,190,48,0.3);

  --f-yellow:       #d7b940;   /* Factorio yellow (military) */
  --f-purple:       #9d4edd;   /* Factorio purple (production) */
  --f-blue:         #3778c8;   /* Factorio blue (utility) */
  --f-red:          #c9463d;   /* Factorio red (combat) */
  --f-cyan:         #00b8d4;   /* Factorio cyan (space) */

  /* ── Material Colors (for icons) ── */
  --mat-iron:       #b8b8b8;
  --mat-copper:     #c8824c;
  --mat-coal:       #3a3a3a;
  --mat-stone:      #7f7f7f;
  --mat-steel:      #7070a0;
  --mat-circuit-gr: #44bb44;
  --mat-circuit-rd: #dd3333;
  --mat-circuit-bl: #4488ff;
  --mat-plastic:    #ccccdd;
  --mat-fuel:       #ff7700;
  --mat-acid:       #d4d700;
  --mat-battery:    #44aa66;

  /* ── Industrial / Steel ── */
  --steel-lt:       #e0e0e0;
  --steel-mid:      #a0a0a0;
  --steel-dk:       #686868;
  --steel-dkr:      #484848;
  --steel-dkst:     #333333;
  --steel-border:   #404040;
  --steel-rivet:    #555555;

  /* ── Text ── */
  --text-white:     #eeeeee;
  --text-hd:        #f2f2f2;
  --text-body:      #cccccc;
  --text-muted:     #999999;
  --text-dim:       #777777;
  --text-code:      #f5aa2e;

  /* ── Borders ── */
  --border-lt:      #555555;
  --border-md:      #444444;
  --border-dk:      #333333;
  --border-faint:   #2a2a2a;

  /* ── Layout ── */
  --nav-h:          56px;
  --max-w:          1260px;
  --content-w:      820px;   /* centered, leaves room for ads */
  --ad-w:            160px;    /* each side ad slot */
  --gap:             1.5rem;
  --radius:          4px;
  --radius-sm:       3px;

  /* ── Shadows ── */
  --shadow-card:     0 3px 14px rgba(0,0,0,0.55);
  --shadow-lift:     0 6px 24px rgba(0,0,0,0.7);
  --shadow-glow:     0 0 20px rgba(232,148,28,0.25);
}

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

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-body);
  color: var(--text-body);
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse at 15% 40%, rgba(232,148,28,0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 70%, rgba(106,190,48,0.03) 0%, transparent 50%);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232,148,28,0.4); color: #fff; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  color: var(--text-hd);
  line-height: 1.2;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.1rem; font-weight: 900; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 600; }

a { color: var(--f-orange); text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: var(--f-orange-lt); }

p { margin-bottom: 1em; color: var(--text-body); }
strong { color: var(--text-hd); font-weight: 700; }
em { color: var(--text-muted); }

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

/* ── Factorio-style horizontal rule ── */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-md), transparent);
  margin: 2.5em 0;
  position: relative;
}
hr::after {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px;
  background: var(--f-orange);
  border-radius: 2px;
}

/* ── Code ── */
code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-card-inner);
  color: var(--text-code);
  padding: 0.15em 0.5em;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  border: 1px solid var(--border-dk);
}

pre {
  background: var(--bg-card-inner);
  border: 1px solid var(--steel-border);
  border-left: 3px solid var(--f-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.3em;
}
pre code { background: none; padding: 0; border: none; color: var(--text-body); font-size: 0.85rem; }

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.6em;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--steel-border);
  box-shadow: var(--shadow-card);
}
th {
  background: linear-gradient(180deg, var(--f-orange-dk) 0%, #8a4f0c 100%);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.65rem 1rem;
  border-bottom: 2px solid var(--f-orange);
  text-align: left;
}
td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-dk);
  background: var(--bg-card);
  color: var(--text-body);
  font-size: 0.9rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-card-hover); }
td:first-child, th:first-child { border-left: none; }

/* ── Blockquote ── */
blockquote {
  border-left: 3px solid var(--f-orange);
  background: var(--f-orange-faint);
  margin: 1.5em 0;
  padding: 1em 1.4em;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-style: italic;
  position: relative;
}
blockquote::before {
  content: '"';
  position: absolute;
  top: -8px; left: 12px;
  font-size: 3rem;
  color: var(--f-orange);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.6;
}

/* ========================================
   NAVIGATION — FACTORIO BLOCK-UI STYLE
   ======================================== */

.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--bg-void);
  border-bottom: 2px solid var(--f-orange);
  display: flex; align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,148,28,0.1);
}

.site-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900; font-size: 1rem;
  color: var(--f-orange) !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 14px var(--f-orange-glow);
  white-space: nowrap;
  flex-shrink: 0;
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex; align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav-btn {
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--border-lt);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-body) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600; font-size: 0.85rem;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: capitalize;
}
.nav-btn:hover {
  background: var(--bg-card);
  border-color: var(--f-orange);
  color: var(--f-orange-lt) !important;
  box-shadow: 0 0 8px var(--f-orange-glow);
}

.nav-btn.active {
  background: var(--f-orange-mid);
  border-color: var(--f-orange);
  color: var(--f-orange-lt) !important;
}

/* ── Space Age Nav Button (special visual tier) ── */
.nav-btn-space-age {
  padding: 0.38rem 0.9rem;
  border: 1px solid #b366ff;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(157,78,221,0.25), rgba(0,184,212,0.15));
  color: var(--f-cyan) !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 0 6px rgba(157,78,221,0.3);
}
.nav-btn-space-age:hover {
  background: linear-gradient(135deg, rgba(157,78,221,0.4), rgba(0,184,212,0.3));
  border-color: #9d4edd;
  box-shadow: 0 0 14px rgba(157,78,221,0.5);
  color: #ffffff !important;
}

/* ========================================
   PAGE WRAPPER
   ======================================== */

.page-wrap { min-height: calc(100vh - var(--nav-h)); }

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
  position: relative;
  min-height: 480px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 3px solid var(--f-orange-dk);
  background: var(--bg-void);
}

.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  /* filter: brightness(0.55) saturate(0.9) contrast(1.05); */
  background-color: #000;
}

/* .hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232,148,28,0.06) 0%, transparent 60%),
    linear-gradient(180deg, rgba(17,17,17,0.0) 0%, rgba(31,31,31,0.35) 50%, var(--bg-body) 100%);
} */

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 4rem 2rem 3.5rem;
  max-width: 780px;
}

.hero-badge {
  display: inline-block;
  padding: 0.25rem 1rem;
  background: var(--f-orange-mid);
  border: 1px solid var(--f-orange);
  border-radius: 20px;
  color: var(--f-orange-lt);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero-content h1 { font-size: 2.6rem; color: #fff; margin-bottom: 0.5rem; }

.hero-tagline {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--f-orange-lt);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px var(--f-orange-glow);
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}

.hero-cta { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.hero-btn-space {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border: 1.5px solid #b366ff;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(157,78,221,0.35), rgba(0,184,212,0.2));
  color: #ffffff !important;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(157,78,221,0.35);
}
.hero-btn-space:hover {
  background: linear-gradient(135deg, rgba(157,78,221,0.55), rgba(0,184,212,0.35));
  border-color: #9d4edd;
  box-shadow: 0 0 24px rgba(157,78,221,0.6);
  transform: translateY(-2px);
}

/* ── Space Age Badge on Featured Card ── */
.guide-card-badge {
  position: absolute; top: 8px; right: 8px;
  z-index: 2;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, #9d4edd, #00b8d4);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700; font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(157,78,221,0.4);
}

/* ── Space Age Topic Card (enlarged) ── */
.topic-card-space-age {
  grid-column: 1 / -1;
  display: flex; align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  background: var(--bg-card);
  border: 1.5px solid rgba(157,78,221,0.4);
  border-radius: var(--radius);
  transition: all 0.15s;
  cursor: default;
  text-decoration: none;
  box-shadow: 0 0 8px rgba(157,78,221,0.2);
}
.topic-card-space-age:hover {
  background: var(--bg-card-hover);
  border-color: #9d4edd;
  box-shadow: 0 0 18px rgba(157,78,221,0.35);
}
.topic-card-space-age .topic-card-top {
  width: 6px; height: 48px;
  border-radius: 3px;
  flex-shrink: 0;
}
.topic-card-space-age .topic-body { flex: 1; }
.topic-card-space-age h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  color: var(--f-cyan);
  margin-bottom: 0.15rem;
}
.topic-card-space-age .topic-count {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.7rem 1.9rem;
  border-radius: var(--radius);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--f-green);
  color: #080808 !important;
  border-color: var(--f-green-dk);
  box-shadow: 0 3px 10px rgba(106,190,48,0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: var(--f-green-lt);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(106,190,48,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  color: #000 !important;
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-hd) !important;
  border-color: var(--steel-border);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--f-orange);
  transform: translateY(-2px);
  color: var(--f-orange-lt) !important;
}
.btn-ghost {
  background: transparent;
  color: var(--f-orange) !important;
  border-color: var(--f-orange-dk);
}
.btn-ghost:hover {
  background: var(--f-orange-mid);
  color: var(--f-orange-lt) !important;
}

/* ========================================
   HOME PAGE LAYOUT
   ======================================== */

.home-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gap);
}

.section-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-title-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--f-orange) 0%, var(--f-orange-dk) 100%);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  letter-spacing: 0.12em; text-transform: uppercase;
  box-shadow: 0 2px 8px var(--f-orange-glow);
}
.section-title-badge .sep { opacity: 0.5; }
.section-line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--steel-border), transparent);
}

/* ── Guide Card Grid ── */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.1rem;
  margin-bottom: 3rem;
}

.guide-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none !important;
  position: relative;
  box-shadow: var(--shadow-card);
}
.guide-card:hover {
  border-color: var(--f-orange);
  box-shadow: var(--shadow-lift), 0 0 16px var(--f-orange-glow);
  transform: translateY(-3px);
}

.guide-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--f-orange), var(--f-orange-lt));
  opacity: 0;
  transition: opacity 0.2s;
}
.guide-card:hover::before { opacity: 1; }

.card-thumb {
  height: 120px;
  background: var(--bg-surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dk);
}
.card-thumb svg { width: 60px; height: 60px; }

.card-body { padding: 1.1rem 1.2rem; }

.card-meta {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.card-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--f-orange-mid);
  border: 1px solid var(--f-orange-dk);
  border-radius: 12px;
  color: var(--f-orange-lt);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-tag.green  { background: rgba(106,190,48,0.15); border-color: var(--f-green-dk); color: var(--f-green-lt); }
.card-tag.yellow { background: rgba(215,185,64,0.15); border-color: #a08820; color: var(--f-yellow); }
.card-tag.purple { background: rgba(157,78,221,0.15); border-color: #7a3aad; color: var(--f-purple); }
.card-tag.blue   { background: rgba(55,120,200,0.15); border-color: #2a5a98; color: #66aaff; }
.card-tag.red    { background: rgba(201,70,61,0.15); border-color: #9a2a22; color: #e87060; }
.card-tag.cyan   { background: rgba(0,184,212,0.15);  border-color: #0088a0; color: var(--f-cyan); }

.card-body h3 {
  color: var(--text-hd);
  font-size: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.86rem;
  margin-bottom: 0;
  line-height: 1.6;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.2rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-dk);
}

.card-read {
  font-size: 0.78rem; font-weight: 700;
  color: var(--f-orange);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guide-card:hover .card-read { color: var(--f-orange-lt); }

.card-date { font-size: 0.72rem; color: var(--text-dim); }

/* ── Topic Card Grid ── */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
  margin-bottom: 3rem;
}

.topic-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  transition: all 0.2s;
  text-decoration: none !important;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.topic-card:hover {
  border-color: var(--f-orange);
  box-shadow: var(--shadow-lift), 0 0 12px var(--f-orange-glow);
  transform: translateY(-2px);
}

.topic-card-top {
  height: 6px;
  background: linear-gradient(90deg, var(--f-orange), var(--f-green));
}

.topic-body { padding: 1rem 1.1rem; }

.topic-body h3 {
  font-size: 0.9rem;
  color: var(--text-hd);
  margin-bottom: 0.3rem;
}
.topic-body p { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 0.4rem; }
.topic-count {
  font-size: 0.7rem;
  color: var(--f-orange);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── 
/* ════ Section Nav (Floating Menu) ════ */
.section-layout {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  align-items: flex-start;
}
.section-nav {
  flex: 0 0 230px;
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 0.75rem;
}
.section-nav-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  padding: 0 0.5rem 0.6rem;
  border-bottom: 1px solid var(--steel-border);
  margin-bottom: 0.5rem;
}
.section-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.section-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.85rem;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
  cursor: pointer;
  border: 1px solid transparent;
  background: var(--bg-card-header);
  margin: 2px 0;
}
.section-nav-item:hover {
  background: rgba(232, 148, 28, 0.08);
  color: var(--f-orange);
}
.section-nav-item.is-active {
  background: rgba(232, 148, 28, 0.15);
  color: var(--f-orange);
  font-weight: 600;
  border-color: var(--f-orange);
}
.section-nav-icon {
  display: none;
}
.section-nav-item.is-active .section-nav-icon {
  background: var(--f-orange);
  color: #fff;
}
.section-nav-badge {
  position: absolute;
  right: 6px;
  top: -6px;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 0.08rem 0.3rem;
  border-radius: 3px;
  background: var(--f-orange);
  color: #000;
  letter-spacing: 0.3px;
  white-space: nowrap;
  line-height: 1.3;
}
.section-nav-item.is-overview .section-nav-icon {
  background: transparent;
  font-style: italic;
  font-family: serif;
  font-size: 0.85rem;
}

/* ════ Section Content Area ════ */
.section-content {
  flex: 1;
  min-width: 0;
  padding: 0 2rem;
}
.section-content-inner {
  min-height: 300px;
}
.section-content .article-content-hero {
  margin-bottom: 0;
}
.section-content .article-content-hero h1 {
  font-size: 1.8rem;
  color: var(--text-hd);
  margin-bottom: 0.4rem;
}
.section-content .article-content-hero .article-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}
.section-content .article-content-hero .article-meta {
  margin-bottom: 1.5rem;
}
.section-content .article-content {
  font-size: 0.96rem;
  line-height: 1.8;
}
.section-content .article-content .breadcrumb {
  display: none;
}
.section-content .article-content .related-articles {
  margin-top: 2rem;
}
.section-content .floating-toc {
  display: none;
}
.section-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 4rem 2rem;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--steel-border);
  border-top-color: var(--f-orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ════ Latest Tips Button ════ */
.latest-tips-btn {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 0;
}
.latest-tips-btn .btn-ghost {
  font-size: 0.92rem;
  gap: 0.4rem;
}

/* ════ Responsive ════ */
@media (max-width: 900px) {
  .section-layout {
    flex-direction: column;
    padding: 1.5rem 0.5rem;
  }
  .section-nav {
    position: static;
    flex: none;
    width: 100%;
    max-height: none;
    margin-bottom: 1rem;
  }
  .section-content {
    padding: 0;
  }
}

About/CTA Section ── */



.about-card {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  border-top: 3px solid var(--f-orange);
  display: flex; gap: 2rem; align-items: flex-start;
}
.about-card-icon { flex-shrink: 0; }
.about-card-icon svg { width: 64px; height: 64px; }
.about-card-body h2 { font-size: 1.3rem; color: var(--text-hd); margin-bottom: 0.6rem; }
.about-card-body p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; }
.about-card-body .btn { margin-top: 0.3rem; }

.newsletter-cta {
  text-align: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  border-top: 3px solid var(--f-green);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}
.newsletter-cta p { color: var(--text-muted); font-size: 1rem; margin: 0; }
.newsletter-cta strong { color: var(--f-green-lt); }

.site-disclaimer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border-md);
}
.site-disclaimer p { color: var(--text-dim); font-size: 0.76rem; margin: 0; }

/* ========================================
   ARTICLE / INNER PAGE LAYOUT
   (Ad-ready: center column, ad slots on sides)
   ======================================== */

.article-page {
  min-height: calc(100vh - var(--nav-h));
}

/* ── Article Hero ── */
.article-hero-full {
  position: relative;
  height: 280px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 3px solid var(--f-orange-dk);
  background: var(--bg-void);
}
.article-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  /* filter: brightness(0.5) saturate(0.8) contrast(1.05); */
}
.article-hero-fade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg-body) 0%, rgba(17,17,17,0.65) 50%, transparent 100%);
}
.article-hero-content {
  position: relative; z-index: 2;
  padding: 2rem var(--gap);
  width: 100%;
  max-width: calc(var(--content-w) + var(--ad-w) * 2 + var(--gap) * 2 + 240px);
  margin: 0 auto;
}
.article-hero-content h1 { font-size: 2rem; color: #fff; margin-bottom: 0.4rem; }
.article-hero-content .article-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 0.4rem; }
.article-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.meta-item {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.78rem; color: var(--text-dim);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.06em;
}
.meta-item svg { width: 14px; height: 14px; }

/* ── Main Article Layout (3-column: [ad] [content] [toc]) ── */
.article-layout {
  max-width: calc(var(--content-w) + var(--ad-w) * 2 + var(--gap) * 2 + 240px);
  margin: 0 auto;
  padding: 2.5rem var(--gap) 3rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

/* Left Ad Slot */
.article-ad-left {
  width: var(--ad-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: flex-start;
}
.ad-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--steel-border);
  border-radius: var(--radius);
  height: 600px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.5rem;
  padding: 1rem;
}
.ad-placeholder-label {
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-dim);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.ad-placeholder-size { font-size: 0.7rem; color: var(--text-dim); }

/* Center Content */
.article-center {
  flex: 1;
  min-width: 0;
  max-width: var(--content-w);
}

/* Right TOC */
.floating-toc {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.toc-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.7rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-md);
}

.floating-toc ul { list-style: none; }
.floating-toc li { margin-bottom: 0.1rem; }
.floating-toc a {
  display: block;
  padding: 0.25rem 0.5rem;
  color: var(--text-dim);
  font-size: 0.78rem;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  text-decoration: none !important;
}
.floating-toc a:hover,
.floating-toc a.active {
  color: var(--f-orange-lt);
  border-left-color: var(--f-orange);
  background: var(--f-orange-faint);
}
.floating-toc .toc-h3 { padding-left: 1rem; font-size: 0.72rem; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--steel-border); border-radius: 2px; }

/* ── Right Ad Slot ── */
.article-ad-right {
  width: var(--ad-w);
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: flex-start;
}

/* ========================================
   ARTICLE CONTENT — CARD-BASED SECTIONS
   ======================================== */

.article-content {
  /* Center content with potential toc */
}

.article-content h2 {
  font-size: 1.4rem;
  color: var(--text-hd);
  margin-top: 2.8rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg-card);
  border-left: 4px solid var(--f-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  border-top: 1px solid var(--steel-border);
  border-right: 1px solid var(--steel-border);
  border-bottom: 1px solid var(--steel-border);
  display: flex; align-items: center; gap: 0.6rem;
  box-shadow: var(--shadow-card);
}
.article-content h2 svg { width: 22px; height: 22px; flex-shrink: 0; }

.article-content h3 {
  color: var(--f-orange-lt);
  font-size: 1.05rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border-dk);
}
.article-content h4 { color: var(--steel-lt); font-size: 0.95rem; margin-top: 1.4rem; margin-bottom: 0.4rem; }

.article-content ul,
.article-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.3em;
}
.article-content li {
  margin-bottom: 0.35rem;
  color: var(--text-body);
}
.article-content li::marker { color: var(--f-orange); font-size: 0.8em; }
.article-content li strong { color: var(--text-hd); }

.article-content p { margin-bottom: 1em; color: var(--text-body); }

.article-content strong { color: var(--text-hd); }

.article-content img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--steel-border);
  margin: 1.5em auto;
  box-shadow: var(--shadow-card);
}
.article-content svg:not([class*="icon"]) {
  display: block;
  margin: 1rem auto;
  max-width: 100%;
}

/* ── Section Cards (each major section gets wrapped) ── */
.section-card {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.section-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--f-orange), transparent);
}
.section-card.orange::before  { background: linear-gradient(90deg, var(--f-orange), transparent); }
.section-card.green::before   { background: linear-gradient(90deg, var(--f-green), transparent); }
.section-card.blue::before     { background: linear-gradient(90deg, var(--f-blue), transparent); }
.section-card.yellow::before  { background: linear-gradient(90deg, var(--f-yellow), transparent); }
.section-card.purple::before  { background: linear-gradient(90deg, var(--f-purple), transparent); }
.section-card.red::before     { background: linear-gradient(90deg, var(--f-red), transparent); }
.section-card.cyan::before    { background: linear-gradient(90deg, var(--f-cyan), transparent); }

.section-card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-md);
  display: flex; align-items: center; gap: 0.5rem;
}
.section-card-title svg { width: 16px; height: 16px; }

/* ── Item Icon Row ── */
.item-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.item-icon {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  cursor: default;
  min-width: 58px;
}
.item-icon:hover {
  border-color: var(--f-orange);
  background: var(--bg-card-hover);
  box-shadow: 0 0 8px var(--f-orange-glow);
}
.item-icon svg { width: 36px; height: 36px; }
.item-icon-name { font-size: 0.6rem; color: var(--text-dim); text-align: center; font-family: 'JetBrains Mono', monospace; }
.item-icon-label { font-size: 0.62rem; color: var(--text-muted); text-align: center; }

/* ── Recipe Chain ── */
.recipe-chain {
  background: var(--bg-surface);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.recipe-chain-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem; font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.recipe-flow {
  display: flex; align-items: center; gap: 0.5rem;
  flex-wrap: wrap;
}
.recipe-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.2rem;
  padding: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius-sm);
  min-width: 70px;
}
.recipe-step svg { width: 36px; height: 36px; }
.recipe-step-name { font-size: 0.6rem; color: var(--text-muted); text-align: center; font-family: 'JetBrains Mono', monospace; }
.recipe-arrow-icon { color: var(--f-orange); font-size: 1.4rem; flex-shrink: 0; }
.recipe-output {
  background: rgba(106,190,48,0.1);
  border-color: var(--f-green-dk);
}

/* ── Info Callout Boxes ── */
.callout {
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  margin-bottom: 1.2rem;
  border-left: 4px solid;
  display: flex; gap: 0.8rem; align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.callout-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; }
.callout.tip   { border-left-color: var(--f-green);  background: rgba(106,190,48,0.08); }
.callout.warn  { border-left-color: var(--f-orange);  background: var(--f-orange-faint); }
.callout.info  { border-left-color: var(--f-blue);    background: rgba(55,120,200,0.08); }
.callout.danger{ border-left-color: var(--f-red);     background: rgba(201,70,61,0.08); }
.callout p { margin: 0; color: var(--text-body); font-size: 0.9rem; }
.callout strong { color: var(--text-hd); }
.callout.tip   strong { color: var(--f-green-lt); }
.callout.warn  strong { color: var(--f-orange-lt); }
.callout.info  strong { color: #88aaff; }
.callout.danger strong { color: #ff8880; }

/* ── Checklist ── */
.checklist {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}
.checklist-header {
  background: var(--bg-card-header);
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--steel-border);
  font-family: 'Orbitron', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.5rem;
}
.check-row {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid var(--border-dk);
  transition: background 0.15s;
}
.check-row:last-child { border-bottom: none; }
.check-row:hover { background: var(--bg-card-hover); }
.check-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  color: var(--f-green);
}
.check-text { font-size: 0.88rem; color: var(--text-body); flex: 1; }
.check-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem; color: var(--text-dim);
  background: var(--bg-surface);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dk);
}

/* ── Stat Grid ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--f-orange-lt);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.72rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; font-family: 'Orbitron', sans-serif; }
.stat-sub   { font-size: 0.68rem; color: var(--text-dim); margin-top: 0.15rem; }

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

.site-footer {
  background: var(--bg-void);
  border-top: 3px solid var(--f-orange-dk);
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; gap: 2rem;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-dim); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  font-family: 'Orbitron', sans-serif;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--f-orange); }
.site-footer p { color: var(--text-dim); font-size: 0.75rem; margin-bottom: 0.25rem; }
.site-footer strong { color: var(--f-orange); }

/* ========================================
   LIST PAGE (Section index)
   ======================================== */

.list-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem var(--gap);
}

.list-header {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-top: 3px solid var(--f-orange);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
  display: flex; gap: 1.5rem; align-items: center;
}
.list-header-icon svg { width: 48px; height: 48px; }
.list-header-icon { flex-shrink: 0; }
.list-header h1 { font-size: 1.5rem; color: var(--text-hd); margin-bottom: 0.3rem; }
.list-header p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.list-item {
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  box-shadow: var(--shadow-card);
}
.list-item:hover {
  border-color: var(--f-orange);
  border-left-color: var(--f-orange);
  transform: translateX(3px);
  box-shadow: var(--shadow-lift);
}
.list-item h2 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.list-item h2 a { color: var(--text-hd) !important; }
.list-item h2 a:hover { color: var(--f-orange-lt) !important; }
.list-item p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1100px) {
  .article-ad-left, .article-ad-right { display: none; }
  .article-center { max-width: 100%; }
}

@media (max-width: 768px) {
  .article-layout {
    flex-direction: column;
    padding: 1.5rem 1rem 2rem;
    gap: 0;
  }
  .floating-toc {
    width: 100%; position: static; max-height: none;
    border: 1px solid var(--steel-border);
    margin-bottom: 1.5rem;
  }
  .article-hero-full { height: 200px; }
  .article-hero-content h1 { font-size: 1.4rem; }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-tagline { font-size: 0.85rem; }
  .nav-links { gap: 0.2rem; }
  .nav-btn { padding: 0.3rem 0.6rem; font-size: 0.78rem; }
  .home-content { padding: 2rem 1rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .about-card { flex-direction: column; gap: 1rem; }
  .site-header { padding: 0 1rem; }
}

@media (max-width: 480px) {
  .topic-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--steel-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--steel-dk); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.guide-card, .topic-card, .list-item, .section-card {
  animation: fadeUp 0.4s ease-out both;
}
.guide-card:nth-child(1) { animation-delay: 0.05s; }
.guide-card:nth-child(2) { animation-delay: 0.10s; }
.guide-card:nth-child(3) { animation-delay: 0.15s; }
.guide-card:nth-child(4) { animation-delay: 0.20s; }
.guide-card:nth-child(5) { animation-delay: 0.25s; }
.guide-card:nth-child(6) { animation-delay: 0.30s; }

/* ========================================
   BREADCRUMB & RELATED ARTICLES
   ======================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}
.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.breadcrumb a:hover {
  color: var(--f-orange);
}
.breadcrumb-sep {
  color: var(--text-faint);
  margin: 0 0.15rem;
}
.breadcrumb-current {
  color: var(--text-hd);
  font-weight: 500;
}

/* Back to Section Button */
.back-to-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-md);
}
.back-to-section .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Related Articles Section */
.related-articles {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-md);
}
.related-articles h3 {
  font-size: 1.1rem;
  color: var(--text-hd);
  margin-bottom: 1rem;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.related-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
}
.related-card:hover {
  border-color: var(--f-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.related-icon {
  flex-shrink: 0;
}
.related-body h4 {
  font-size: 0.88rem;
  color: var(--text-hd);
  margin-bottom: 0.25rem;
  font-weight: 600;
}
.related-body p {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}
.related-card:hover .related-body h4 {
  color: var(--f-orange);
}

/* ========================================
   SHORTCODE: Game Recipe Row
   ======================================== */
.game-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--bg-card-inner);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
}
.game-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius);
  min-width: 64px;
}
.game-slot.result {
  border-color: var(--f-orange);
  background: var(--f-orange-faint);
}
.game-qty {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 600;
}
.game-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.game-name {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.2;
  max-width: 64px;
  word-break: break-word;
}
.game-plus {
  font-size: 1.1rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ========================================
   SHORTCODE: Check List Row
   ======================================== */
.check-row {
  margin: 0.5rem 0;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius);
}
.check-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.check-count {
  font-size: 0.82rem;
  color: var(--f-orange);
  font-weight: 700;
  min-width: 1.8em;
}
.check-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  margin-left: 0.25rem;
}

/* ========================================
   SHORTCODE: Section Head
   ======================================== */
.section-head {
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--f-orange-mid);
}
.section-head h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--f-orange);
  letter-spacing: 0.03em;
  margin: 0;
}

/* ========================================
   SHORTCODE: Callout
   ======================================== */
.pro-tip, .callout {
  position: relative;
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  margin: 1rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-md);
  background: var(--bg-card);
  font-size: 0.9rem;
  line-height: 1.5;
}
.pro-tip::before {
  content: "💡";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  font-size: 1rem;
}
.callout::before {
  content: "⚠️";
  position: absolute;
  left: 0.75rem;
  top: 0.85rem;
  font-size: 1rem;
}

/* ========================================
   SHORTCODE: Schema Diagram
   ======================================== */
.schema-diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem auto;
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
}

/* ========================================
   SHORTCODE: Content Box
   ======================================== */
.content-box {
  padding: 1rem;
  margin: 1rem 0;
  background: var(--bg-card);
  border: 1px solid var(--steel-border);
  border-radius: var(--radius);
}
.content-box > :first-child { margin-top: 0; }
.content-box > :last-child { margin-bottom: 0; }

/* ========================================
   SHORTCODE: Mat Card
   ======================================== */
.mat-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius);
  min-width: 60px;
}
.mat-qty {
  font-size: 0.75rem;
  color: var(--text-dim);
}
.mat-card-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}
.mat-name {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

/* ========================================
   SHORTCODE: Ingredient Row
   ======================================== */
.ingredient-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

/* ========================================
   SHORTCODE: Mat Plus
   ======================================== */
.mat-plus {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 700;
  padding: 0 0.25rem;
}
