/* RelayBench Lab (86109.com) - Authoritative Institutional Light Design System */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-alt: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --blue: #2563eb;
  --blue-bg: #eff6ff;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.09);
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Inter", "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Official Upstream Status Bar */
.status-bar {
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12.5px;
  border-bottom: 1px solid #1e293b;
}
.status-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 0;
  flex-wrap: wrap;
}
.status-items {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.status-label {
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f8fafc;
  font-weight: 500;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot.operational { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.22); }
.status-dot.degraded { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
.status-dot.outage { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.28); }
.status-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #94a3b8;
  font-size: 12px;
}
.status-cycle-pill {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.28);
}
.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-domain {
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald);
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--surface-alt); color: var(--ink); }
.nav-link.active { background: var(--ink); color: #fff; }
.nav-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 1px 5px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--border-strong); background: var(--surface); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 90;
}
.lang-menu.open { display: block; }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
}
.lang-option:hover { background: var(--surface-alt); color: var(--ink); }
.lang-option.current { background: var(--emerald-bg); color: var(--emerald); font-weight: 700; }

.mobile-menu-btn {
  display: none;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
}

/* Hero Section */
.hero-section {
  padding: 28px 0 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero-h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-sub {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  max-width: 680px;
}
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  font-family: var(--font-mono);
  line-height: 1.2;
}
.kpi-val.emerald { color: var(--emerald); }
.kpi-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.trust-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trust-panel-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.trust-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: 800;
}

/* Interactive Live Detector Card */
.detector-card {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.detector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.detector-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.detector-tab {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.detector-tab:hover { background: #fff; color: var(--ink); }
.detector-tab.active {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.detector-guide-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald);
}
.detector-guide-link:hover { text-decoration: underline; }

.detector-body {
  padding: 18px 20px 20px;
}
.detector-inputs {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr 0.9fr;
  gap: 12px;
  margin-bottom: 14px;
}
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.field-input, .field-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus, .field-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.model-chips-wrap {
  margin-bottom: 14px;
}
.model-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 6px;
}
.model-chip {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.model-chip:hover { border-color: var(--ink); color: var(--ink); }
.model-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.chip-new {
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
}

.detector-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.privacy-note {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25);
}
.btn-primary:hover { background: #047857; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1e293b; }
.btn-outline {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--ink-2);
}
.btn-outline:hover { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }

/* Probe Results Box */
.probe-result {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 16px;
  display: none;
}
.probe-result.visible { display: block; }
.probe-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.probe-kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
}
.probe-kpi-label { font-size: 11.5px; color: var(--muted); }
.probe-kpi-value { font-size: 18px; font-weight: 800; font-family: var(--font-mono); margin-top: 2px; }
.probe-checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.probe-check-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.check-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.check-detail { font-size: 12px; color: var(--muted); margin-top: 2px; word-break: break-word; }
.pill-pass { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pill-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.pill-fail { background: var(--red-bg); color: var(--red); border: 1px solid #fecaca; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; }

/* Sticky Model Anchor Bar */
.anchor-bar {
  position: sticky;
  top: 64px;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.anchor-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.anchor-pills::-webkit-scrollbar { display: none; }
.anchor-pill {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
}
.anchor-pill:hover, .anchor-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Main Sections */
.section { padding: 34px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Price/Multiplier Toggle */
.seg-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
}
.seg-btn {
  padding: 5px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.seg-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* Model Leaderboard Grid (2 columns on wide desktop) */
.boards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.board-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 132px;
}
.board-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.board-model-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}
.board-model-id {
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--border);
  padding: 1px 7px;
  border-radius: 6px;
}
.board-all-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--emerald);
  white-space: nowrap;
}
.board-all-link:hover { text-decoration: underline; }

/* Tables */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  white-space: nowrap;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: #f8fafc; }

.station-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}
.rank-num {
  width: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
}
.rank-num.top3 { color: var(--emerald); }
.station-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  flex-shrink: 0;
}
.station-name-link {
  font-weight: 700;
  color: var(--ink);
}
.station-name-link:hover { color: var(--emerald); }
.station-domain {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Badges */
.v-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}
.v-official { background: var(--blue-bg); color: var(--blue); border: 1px solid #bfdbfe; }
.v-enterprise { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.v-verified { background: var(--surface-alt); color: var(--ink-2); border: 1px solid var(--border); }

.purity-high { color: var(--emerald); font-weight: 700; }
.purity-good { color: #0284c7; font-weight: 700; }
.purity-mid { color: var(--amber); font-weight: 700; }

.score-pill {
  display: inline-block;
  min-width: 44px;
  text-align: center;
  padding: 2px 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 12.5px;
  background: var(--emerald-bg);
  color: var(--emerald);
}
.score-pill.mid { background: var(--amber-bg); color: var(--amber); }

/* 10-bar Live Heartbeat Strip */
.hb-strip {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 18px;
}
.hb-bar {
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: #e2e8f0;
}
.hb-bar.ok { background: #10b981; }
.hb-bar.warn { background: #f59e0b; }
.hb-bar.fail { background: #ef4444; }

/* 30-day Sparkline */
.spark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trend-val { font-size: 11.5px; font-family: var(--font-mono); font-weight: 700; }
.trend-down { color: var(--emerald); }
.trend-flat { color: var(--muted); }
.trend-up { color: var(--red); }

/* Ecosystem Audit Highlight Cards */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.audit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.audit-card-num {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--ink);
}
.audit-card-num.emerald { color: var(--emerald); }
.audit-card-num.amber { color: var(--amber); }
.audit-card-title { font-size: 13.5px; font-weight: 700; margin-top: 4px; }
.audit-card-desc { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.filter-bar .field-input { max-width: 260px; height: 36px; }
.filter-bar .field-select { width: auto; min-width: 140px; height: 36px; }
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

/* Provider Detail Dossier */
.dossier-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.dossier-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dossier-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.meta-item-label { font-size: 12px; color: var(--muted); }
.meta-item-val { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 2px; }

.risk-banner {
  background: var(--amber-bg);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 20px;
}
.risk-banner-title { font-size: 14px; font-weight: 800; color: #92400e; margin-bottom: 4px; }
.risk-banner-body { font-size: 13px; color: #78350f; margin: 0; }

/* GEO Summary Block */
.geo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--emerald);
  border-radius: 10px;
  padding: 18px 20px;
  margin-top: 24px;
}
.geo-box h2, .geo-box h3 { margin: 0 0 10px; font-size: 17px; }
.geo-box p { margin: 0 0 8px; font-size: 13.5px; color: var(--ink-2); }
.geo-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.geo-link {
  font-size: 12.5px;
  font-family: var(--font-mono);
  background: #fff;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--emerald);
  font-weight: 600;
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  background: #fff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.faq-q:hover { background: var(--surface); }
.faq-a {
  padding: 0 18px 15px;
  font-size: 14px;
  color: var(--ink-2);
  display: none;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.2s; color: var(--muted); }

/* Methodology 2-col layout */
.doc-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: 86px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.doc-toc-title { font-size: 12.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.doc-toc a { display: block; padding: 6px 0; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.doc-toc a:hover { color: var(--emerald); }
.doc-article section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  scroll-margin-top: 86px;
}
.doc-article h2 { margin: 0 0 10px; font-size: 18px; }
.doc-article p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.75; }

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 44px 0 26px;
  margin-top: 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}
.footer-col h4 {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 13px; color: #94a3b8; }
.footer-col a:hover { color: #34d399; }
.footer-bottom {
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
}

/* Risk Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 22px 24px;
  box-shadow: var(--shadow-lg);
}
.modal-box h3 { margin: 0 0 8px; font-size: 18px; }
.modal-box p { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); line-height: 1.65; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Review Category Quick Tabs & Featured Deep-Dive Review Cards */
.review-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.review-tab-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.review-tab-btn:hover { border-color: var(--ink); color: var(--ink); }
.review-tab-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.verdict-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.verdict-top { background: var(--emerald-bg); color: var(--emerald); border: 1px solid var(--emerald-border); }
.verdict-solid { background: var(--blue-bg); color: var(--blue); border: 1px solid #bfdbfe; }
.verdict-caution { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.review-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.review-card-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
}
.rcm-val { font-family: var(--font-mono); font-size: 14px; font-weight: 800; color: var(--ink); }
.rcm-lbl { font-size: 11px; color: var(--muted); }
.review-list {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.review-list.pros li::before { content: "+ "; color: var(--emerald); font-weight: 800; }
.review-list.cons li::before { content: "! "; color: var(--amber); font-weight: 800; }
.review-best-for {
  font-size: 12.5px;
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink-2);
}

/* 4-Dimension Score Breakdown Bars on Provider Dossier */
.score-bars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  margin: 16px 0;
}
.score-bar-row { display: flex; flex-direction: column; gap: 5px; }
.score-bar-head { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; }
.score-bar-track { height: 8px; background: var(--surface-alt); border-radius: 999px; overflow: hidden; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, #059669, #10b981); border-radius: 999px; }

/* GEO Quick Facts Strip, How-To Steps & Channel Comparison */
.geo-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.geo-fact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
}
.geo-fact-q {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 4px;
}
.geo-fact-a {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
  margin: 0;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.howto-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.howto-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--emerald-bg);
  color: var(--emerald);
  border: 1px solid var(--emerald-border);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}
.howto-step h3 { margin: 0 0 6px; font-size: 15px; }
.howto-step p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* RTL Support for Arabic (ar) */
[dir="rtl"] body { font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif; }
[dir="rtl"] .data-table th, [dir="rtl"] .data-table td { text-align: right; }
[dir="rtl"] .trust-list li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .trust-list li::before { left: auto; right: 0; }
[dir="rtl"] .geo-box { border-left: 1px solid var(--border); border-right: 4px solid var(--emerald); }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .faq-q { text-align: right; }
[dir="rtl"] .filter-bar .seg-toggle, [dir="rtl"] .filter-bar select[style*="margin-left:auto"] { margin-left: 0 !important; margin-right: auto; }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .boards-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .geo-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .howto-grid { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: repeat(2, 1fr); }
  .dossier-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-toc { position: static; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .reviews-grid { grid-template-columns: 1fr; }
  .geo-facts-grid { grid-template-columns: 1fr; }
  .score-bars-grid { grid-template-columns: 1fr; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .hero-kpis { grid-template-columns: repeat(2, 1fr); }
  .detector-inputs { grid-template-columns: 1fr; }
  .probe-kpis { grid-template-columns: repeat(2, 1fr); }
  .probe-checks { grid-template-columns: 1fr; }
  .audit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
