/* PyTizi.blog — Vibrant Tech Media & SaaS Comparison Portal (Pure CSS) */
:root {
  --bg: #f3f4f8;
  --bg-glow: radial-gradient(ellipse 80% 45% at 50% 0%, rgba(99, 102, 241, 0.12), transparent);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-tint: #eef2ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-soft: #eef2ff;
  --primary-border: #c7d2fe;
  --cyan: #0891b2;
  --cyan-soft: #ecfeff;
  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.18);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1220px;
  --prose-width: 800px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: var(--bg-glow);
  background-repeat: no-repeat;
  color: var(--ink-2);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.32; letter-spacing: -0.015em; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--primary-soft);
  color: var(--primary-hover);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--primary-border);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Strip */
.top-strip {
  background: linear-gradient(90deg, #1e1b4b, #312e81, #1e1b4b);
  color: #e0e7ff;
  font-size: 0.8rem;
  text-align: center;
  padding: 7px 16px;
  font-weight: 500;
}
.top-strip strong { color: #ffffff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 7px 12px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--ink-2);
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-search, .btn-menu, .btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 13px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-contact {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-border);
}
.btn-contact:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-search:hover, .btn-menu:hover { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.btn-menu { display: none; }

/* Contact Modal & Cards */
.contact-modal-body { padding: 22px 24px; }
.contact-modal-desc { margin: 0 0 16px; font-size: 0.92rem; color: var(--ink-2); }
.contact-channels { display: grid; gap: 12px; }
.contact-channel-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.contact-channel-info strong { display: block; color: var(--ink); font-size: 0.95rem; }
.contact-channel-info span { font-family: var(--font-mono); font-size: 0.84rem; color: var(--ink-muted); }
.contact-channel-btns { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; }
  .btn-menu { display: inline-flex; }
}

/* Search Modal */
.search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  padding: 60px 16px;
  align-items: flex-start;
  justify-content: center;
}
.search-modal.open { display: flex; }
.search-box {
  width: 100%;
  max-width: 640px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
}
.search-close {
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--ink-2);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
}
.search-results { max-height: 380px; overflow-y: auto; padding: 8px; }
.search-item { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-2); }
.search-item:hover { background: var(--primary-soft); text-decoration: none; }
.search-item-title { font-weight: 600; color: var(--ink); font-size: 0.94rem; }
.search-item-meta { font-size: 0.78rem; color: var(--ink-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover { background: linear-gradient(135deg, #4338ca, #4f46e5); }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--primary-soft); border-color: var(--primary-border); color: var(--primary); }
.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }

/* Vibrant Dark-Indigo Hero */
.hero-portal {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 52%, #312e81 100%);
  color: #e2e8f0;
  padding: 46px 0 42px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #a5f3fc;
  background: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(103, 232, 249, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-portal h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(1.45rem, 2.45vw, 2.05rem);
  font-weight: 800;
}
.hero-lead {
  font-size: 1.02rem;
  color: #cbd5e1;
  margin: 0 0 22px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
@media (max-width: 600px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: #ffffff;
}
.stat-box span { font-size: 0.78rem; color: #94a3b8; }

.hero-note { font-size: 0.8rem; color: #94a3b8; margin: 14px 0 0; }
.hero-note code { background: rgba(255, 255, 255, 0.1); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.2); }

/* Right Glassmorphic Top Picks Card */
.bento-picks {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg);
}
.bento-picks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 10px;
}
.bento-picks-head a { color: #a5f3fc; font-size: 0.82rem; }
.pick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pick-row:last-child { margin-bottom: 0; }
.pick-label { font-size: 0.74rem; color: #94a3b8; display: block; }
.pick-name { font-weight: 700; color: #ffffff; font-size: 0.95rem; }
.pick-name:hover { color: #a5f3fc; }
.pick-metric {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Color-Coded 4-Pillar Quick Rules */
.rules-strip { padding: 34px 0 12px; }
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .rules-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .rules-grid { grid-template-columns: 1fr; } }
.rule-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.rule-item:nth-child(2) { border-top-color: var(--emerald); }
.rule-item:nth-child(3) { border-top-color: var(--cyan); }
.rule-item:nth-child(4) { border-top-color: var(--amber); }
.rule-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 4px;
}
.rule-item:nth-child(2) .rule-num { color: var(--emerald); background: var(--emerald-soft); }
.rule-item:nth-child(3) .rule-num { color: var(--cyan); background: var(--cyan-soft); }
.rule-item:nth-child(4) .rule-num { color: var(--amber); background: var(--amber-soft); }
.rule-item h3 { margin: 8px 0 6px; font-size: 1rem; }
.rule-item p { margin: 0; font-size: 0.86rem; color: var(--ink-muted); }

/* Sections */
.section { padding: 36px 0; }
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section-title { margin: 0; font-size: 1.45rem; font-weight: 800; }
.section-desc { margin: 4px 0 0; font-size: 0.92rem; color: var(--ink-muted); }

/* Filter Tabs */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filter-tab {
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.filter-tab.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Rich 14-Brand Showcase Grid */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.brand-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.brand-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.brand-tile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.brand-rank {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 2px 8px;
  border-radius: 5px;
  margin-bottom: 6px;
}
.brand-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--emerald);
  background: var(--emerald-soft);
  border: 1px solid #a7f3d0;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.brand-tile h3 { margin: 0; font-size: 1.12rem; }
.brand-meta-line {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.brand-tile-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* Vibrant Gradient Compare Banner */
.dark-banner {
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 55%, #0e7490 100%);
  color: #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-md);
}
.dark-banner h2 { color: #fff; margin: 0 0 8px; font-size: 1.45rem; }
.dark-banner p { margin: 0; color: #cbd5e1; max-width: 680px; font-size: 0.95rem; }

/* Two-Column Portal Panels */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }
.panel-box {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.panel-box h3 { margin: 0 0 14px; font-size: 1.15rem; }

.pill-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-link {
  display: inline-block;
  padding: 7px 13px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.pill-link:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  text-decoration: none;
}

.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
}
.news-list li:last-child { border-bottom: none; }
.news-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

/* Cards & Grids */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.card-title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 0.78rem; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--ink-2);
  border: 1px solid var(--border);
}
.tag-blue { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-border); }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
  font-variant-numeric: tabular-nums;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
tbody tr:hover { background: #f8fafc; }
tr:last-child td { border-bottom: none; }

/* Callout */
.callout {
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 18px 0;
}
.callout-warn {
  background: var(--amber-soft);
  border-color: #fde68a;
  border-left-color: var(--amber);
}

/* Breadcrumbs & Article Layout */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 18px 0 8px;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--primary); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--prose-width)) 300px;
  gap: 32px;
  align-items: start;
  padding: 16px 0 48px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.article-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .article-body { padding: 20px 16px; } }
.article-body h1 { margin-top: 0; font-size: clamp(1.5rem, 2.8vw, 2rem); }
.article-body h2 {
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--surface-tint);
  font-size: 1.28rem;
}
.article-body h3 { margin-top: 22px; font-size: 1.08rem; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.83rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 82px; }
.sidebar-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 { margin: 0 0 12px; font-size: 0.98rem; border-left: 3px solid var(--primary); padding-left: 10px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; font-size: 0.87rem; }
.sidebar-list li { padding: 7px 0; border-bottom: 1px dashed var(--border); }
.sidebar-list li:last-child { border-bottom: none; }

/* Accordion FAQ */
.faq-list { display: grid; gap: 12px; }
details.faq-item, div.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
details.faq-item summary { cursor: pointer; font-weight: 700; color: var(--ink); list-style: none; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item[open] summary { margin-bottom: 8px; color: var(--primary); }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }
.faq-item p { margin: 0; font-size: 0.93rem; color: var(--ink-2); }

/* Compare Tool */
.compare-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-size: 0.87rem;
  font-weight: 600;
}
.compare-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0f172a, #020617);
  color: #cbd5e1;
  padding: 48px 0 26px;
  margin-top: 44px;
  font-size: 0.87rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 30px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 0.96rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid #1e293b;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Prev / Next Article Navigation & Related Links */
.related-box {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.related-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--ink);
}
.related-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.related-links-grid a {
  display: block;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.related-links-grid a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.pager-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px solid var(--surface-tint);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 680px) {
  .pager-nav {
    grid-template-columns: 1fr;
  }
}
.pager-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pager-card:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}
.pager-card.pager-next {
  text-align: right;
}
.pager-card.pager-hub {
  text-align: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}
.pager-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.pager-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
