/* ============================================================
   TYPING EXAM MODE — styles.css
   Clean, exam-focused, distraction-free UI
   ============================================================ */

/* ---------- Krutidev Font ---------- */
@font-face {
  font-family: 'Krutidev';
  src: url('fonts/krutidev.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500;1,400&family=Sora:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Variables / Themes ---------- */
:root {
  --font-ui: 'Sora', sans-serif;
  --font-mono: 'DM Mono', monospace;
  --font-krutidev: 'Krutidev', serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --transition: 0.18s ease;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

/* ---- Theme: Light (default) ---- */
[data-theme="light"] {
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --surface2:   #f0eeea;
  --border:     #e0ddd8;
  --text:       #1a1917;
  --text-muted: #6b6866;
  --text-dim:   #b0ada8;
  --accent:     #B22222;
  --accent-bg:  #f9e0e0;
  --correct:    #16a34a;
  --wrong:      #dc2626;
  --current:    dodgerblue;
  --current-bg: #fef3c7;
}

/* ---- Theme: Dark ---- */
[data-theme="dark"] {
  --bg:         #111110;
  --surface:    #1c1b1a;
  --surface2:   #252422;
  --border:     #333230;
  --text:       #f0ede8;
  --text-muted: #908d88;
  --text-dim:   #555250;
  --accent:     #B22222;
  --accent-bg:  #1e2d45;
  --correct:    #4ade80;
  --wrong:      #f87171;
  --current:    #fbbf24;
  --current-bg: #2d2410;
}

/* ---- Theme: Sepia ---- */
[data-theme="sepia"] {
  --bg:         #f4efe6;
  --surface:    #faf6ef;
  --surface2:   #ede8df;
  --border:     #d8d0c0;
  --text:       #2c2414;
  --text-muted: #7a6a52;
  --text-dim:   #b8a88a;
  --accent:     #8b5e3c;
  --accent-bg:  #f2e8dc;
  --correct:    #5a7a3a;
  --wrong:      #c0392b;
  --current:    #c07a28;
  --current-bg: #faebd7;
}

/* ---- Theme: Slate ---- */
[data-theme="slate"] {
  --bg:         #0f1520;
  --surface:    #162032;
  --surface2:   #1e2d40;
  --border:     #2a3d52;
  --text:       #e8edf4;
  --text-muted: #7a90a8;
  --text-dim:   #3a4e62;
  --accent:     limegreen;
  --accent-bg:  #0c2336;
  --correct:    #34d399;
  --wrong:      #fb7185;
  --current:    #fbbf24;
  --current-bg: #1f2a10;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5px;
}

.navbar-brand span {
  color: var(--accent);
    border-color: var(--accent);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface2);
}

/* Theme picker */
.theme-picker {
  position: relative;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.theme-btn:hover { color: var(--text); }

.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 160px;
  display: none;
  z-index: 200;
}

.theme-dropdown.open { display: block; }

.theme-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.theme-option:hover, .theme-option.active {
  background: var(--surface2);
  color: var(--text);
}

.theme-swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* ============================================================
   SCREEN WRAPPER
   ============================================================ */
.page-wrapper {
  padding-top: 56px;
  min-height: 100vh;
}

.screen {
  display: none;
  animation: fadeIn 0.22s ease;
}

.screen.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SCREEN 1 — EXAM SELECTION
   ============================================================ */
.exam-screen {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.screen-header {
  margin-bottom: 36px;
}

.screen-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.screen-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Exam cards grid */
.exam-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.exam-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.exam-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.exam-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.exam-card:hover::before { opacity: 1; }

.exam-card-icon {
  width: 40px; height: 40px;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.exam-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.exam-card-org {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.exam-card-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exam-meta-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: var(--surface2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.exam-meta-badge.wpm { color: var(--accent); border-color: var(--accent-bg); background: var(--accent-bg); }
.exam-meta-badge.acc { color: var(--correct); }

/* ============================================================
   SCREEN 2 — TYPING TEST
   ============================================================ */
.test-screen {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px);
  overflow: hidden;
}

/* Top info bar */
.test-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.test-exam-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.test-stats {
  display: flex;
  gap: 18px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
}

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

.timer-display {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
}

.timer-display.warning { color: var(--wrong); }

.word-counter {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Main test area */
.test-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar control bar */
.sidebar {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px 14px;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section { display: flex; flex-direction: column; gap: 8px; }

.sidebar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 600;
}

/* Select */
.ctrl-select {
  width: 100%;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font-ui);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.ctrl-select:focus { outline: none; border-color: var(--accent); }

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toggle-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.toggle-switch {
  position: relative;
  width: 36px; height: 20px;
  flex-shrink: 0;
}

.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  top: 3px; left: 3px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::after { transform: translateX(16px); }

/* Sidebar action buttons */
.sidebar-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
  text-align: left;
}

.sidebar-btn:hover { color: var(--text); border-color: var(--accent); }

/* Mobile sidebar toggle */
.mobile-sidebar-toggle {
  display: none;
  width: 25px; height: 25px;
  background: var(--accent);
  color: white;
  font-size: 10px;
    border-radius: 10px;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 80;
}

/* Typing area */
.typing-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  overflow: hidden;
}

/* Instruction banner */
.instruction-banner {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-shrink: 0;
}
.instruction-banner a
{
    color: dodgerblue;
}
.instruction-banner strong { color: var(--text); }

/* Paragraph & Input containers - SAME SIZE */
.text-panels {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  min-height: 0;
}

.panel-box {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* Paragraph display */
.paragraph-display {
  background: var(--surface);
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px;
  font-size: 1.05rem;
  line-height: 1.9;
  font-family: var(--font-mono);
  color: var(--text-dim);
  user-select: none;
  position: relative;
}

.paragraph-display.krutidev { font-family: var(--font-krutidev); font-size: 1.15rem; }

/* Word spans */
.word { display: inline; }
.word .char { display: inline; }
.char.correct { color: var(--correct); }
.char.wrong { color: var(--wrong); text-decoration: underline; text-decoration-color: var(--wrong); }
.char.current {
  color: var(--current);
  border-left: 0px solid var(--current);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { border-left-color: transparent; }
}

/* When highlight OFF */
.no-highlight .char.correct { color: var(--text-dim) }
.no-highlight .char.wrong { color: var(--text-dim); text-decoration: none; }
.no-highlight .char.current {color: var(--text-dim)}


/* Word highlight */
.word.current-word { background: var(--current-bg); border-radius: 3px; }

/* Input area */
.input-panel {
  background: var(--surface);
  height: 100%;
}

.typing-input {
  width: 100%;
  height: 100%;
  padding: 20px 24px;
  font-size: 1.05rem;
  line-height: 1.9;
  font-family: var(--font-mono);
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  caret-color: var(--accent);
}

.typing-input.krutidev { font-family: var(--font-krutidev); font-size: 1.15rem; }
.typing-input:focus { border-color: var(--accent); }

.panel-box.input-panel:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

/* ============================================================
   SCREEN 3 — RESULTS
   ============================================================ */
.result-screen {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 100px;
}

.result-header {
  text-align: center;
  margin-bottom: 36px;
}

.result-verdict {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.result-verdict.pass {
  background: rgba(22, 163, 74, 0.1);
  color: var(--correct);
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.result-verdict.fail {
  background: rgba(220, 38, 38, 0.1);
  color: var(--wrong);
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.result-exam-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.result-duration {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
}

.stat-card .big-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card .stat-desc {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* WPM Chart */
.chart-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

#wpm-chart {
  width: 100%;
  height: 140px;
  display: block;
}

/* Wrong words */
.wrong-words-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.wrong-words-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wrong-word-chip {
  padding: 4px 12px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--wrong);
  font-family: var(--font-mono);
}

.wrong-word-chip.krutidev { font-family: var(--font-krutidev); font-size: 1rem; }

/* Action buttons */
.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover { opacity: 0.88; }

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

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

/* Ad banner */
.ad-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
  min-height: 60px;
}

.ad-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  position: absolute;
  top: 4px; left: 10px;
}

.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 40px;
  background: var(--surface2);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .nav-link { display: none; }
  
  /* Sidebar becomes a tray on mobile */
  .sidebar {
    position: fixed;
    top: 56px; left: 0; bottom: 0;
    z-index: 81;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: var(--shadow-lg);
    width: 260px;
  }

  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .mobile-sidebar-toggle { display: none; }

  .test-topbar { padding: 8px 12px; gap: 8px; }
  .test-stats { gap: 12px; }
  .stat-value { font-size: 0.95rem; }

  .typing-area { padding: 12px; gap: 10px; }
  .paragraph-display, .typing-input { font-size: 0.95rem; padding: 14px 16px; }

  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat-card .big-number { font-size: 1.6rem; }
  .exam-screen { padding: 32px 16px 80px; }
  .result-screen { padding: 32px 16px 90px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .screen-title { font-size: 1.4rem; }
}

/* ============================================================
   SEO ARTICLE
   ============================================================ */
.seo-article {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 24px 80px;
  margin-top: 0;
}

.seo-article-inner {
  max-width: 860px;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.85;
}
.seo-article-inner a {
    color: dodgerblue;
}
.seo-article-inner img {
    width: 100%;
    border: 4px solid var(--accent);
    border-radius: 10px;
    margin: 0 auto;
}

.seo-article-inner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 18px;
}

.seo-article-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 10px;
}

.seo-article-inner p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.seo-article-inner ul {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.seo-article-inner ul li strong { color: var(--text); }

/* Table */
.seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.seo-table th {
  background: var(--surface2);
  padding: 11px 14px;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.seo-table td {
  padding: 10px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.seo-table tr:last-child td { border-bottom: none; }
.seo-table tr:hover td { background: var(--surface2); }

/* FAQ */
.seo-faq {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.seo-faq h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

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

.faq-item h3 {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
  cursor: pointer;
}

.faq-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 600px) {
  .seo-table { font-size: 0.78rem; }
  .seo-table th, .seo-table td { padding: 8px 10px; }
  .seo-article-inner h2 { font-size: 1.25rem; }
  .seo-article-inner h3 { font-size: 1rem; }
}


/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 0 24px;
}

.site-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color var(--transition);
  white-space: nowrap;
}

.footer-link:hover { color: var(--accent); }

.footer-divider {
  width: 1px;
  height: 12px;
  background: var(--border);
  flex-shrink: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .site-footer-inner {
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    gap: 8px;
    text-align: center;
  }
}