:root {
  --bg: #0b1220;
  --surface: #121b2e;
  --surface-2: #0a1120;
  --border: #22304a;
  --text: #eef2fb;
  --muted: #93a0c2;
  --teal: #00d9a3;
  --teal-dim: rgba(0, 217, 163, 0.14);
  --violet: #8b7bff;
  --violet-dim: rgba(139, 123, 255, 0.16);
  --amber: #ffb020;
  --amber-dim: rgba(255, 176, 32, 0.14);
  --red: #ff5c72;
  --red-dim: rgba(255, 92, 114, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

.tabular { font-variant-numeric: tabular-nums; }

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}

.brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--teal);
  margin-right: 8px;
  box-shadow: 0 0 8px var(--teal);
}

nav.site-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
nav.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; white-space: nowrap; }
nav.site-nav a:hover { color: var(--teal); }
@media (max-width: 640px) {
  nav.site-nav { gap: 10px 14px; }
  nav.site-nav a { font-size: 0.8rem; }
}

main.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 60px;
}

h1 { font-size: 1.8rem; line-height: 1.25; margin: 6px 0 14px; color: var(--text); letter-spacing: -0.01em; }
h2 { font-size: 1.3rem; margin: 34px 0 14px; color: var(--text); letter-spacing: -0.01em; scroll-margin-top: 70px; }
h3 { font-size: 1.08rem; margin: 24px 0 10px; color: var(--text); scroll-margin-top: 70px; }

p { margin: 0 0 16px; color: var(--text); }
p.lead-intro { font-size: 0.98rem; color: var(--muted); }

.page-byline { color: var(--muted); font-size: 0.82rem; margin-bottom: 4px; }

ul, ol { margin: 0 0 16px; padding-left: 1.3em; color: var(--text); }
li { margin-bottom: 8px; }

/* ===== QUICK ANSWER ===== */
.quick-answer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin: 0 0 20px;
}
.qa-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 9px;
  text-transform: uppercase;
}
.quick-answer p { color: var(--text); margin-bottom: 8px; font-size: 0.95rem; }
.quick-answer p:last-child { margin-bottom: 0; }
.quick-answer .qa-note { color: var(--muted); font-size: 0.85rem; }

/* ===== RANKING TABLE ===== */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 0 0 8px;
  -webkit-overflow-scrolling: touch;
}
/* Desktop default: fixed layout, fills the container exactly, no horizontal scroll. */
table.compare {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.78rem;
  background: var(--surface);
}
table.compare thead th {
  background: var(--surface-2);
  color: var(--muted);
  text-align: left;
  padding: 10px 10px;
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}
table.compare td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: break-word;
}
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:hover { background: rgba(139, 123, 255, 0.05); }
table.compare .op-cell { font-weight: 700; }
table.compare .op-cell-inner { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
table.compare th:nth-child(1), table.compare td:nth-child(1) { width: 15%; }
table.compare th:nth-child(2), table.compare td:nth-child(2) { width: 15%; }
table.compare th:nth-child(3), table.compare td:nth-child(3) { width: 17%; }
table.compare th:nth-child(4), table.compare td:nth-child(4) { width: 12%; }
table.compare th:nth-child(5), table.compare td:nth-child(5) { width: 11%; }
table.compare th:nth-child(6), table.compare td:nth-child(6) { width: 15%; }
table.compare th:nth-child(7), table.compare td:nth-child(7) { width: 15%; }

/* Mobile only: table is too dense to wrap legibly at this width — fall back to
   horizontal scroll rather than force cramped/wrapped cells. */
@media (max-width: 640px) {
  table.compare {
    table-layout: auto;
    width: auto;
    min-width: 680px;
    font-size: 0.82rem;
  }
  table.compare th, table.compare td { white-space: nowrap; }
  table.compare .op-cell-inner { align-items: center; }
}

table.limits {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.85rem;
  background: var(--surface);
}
table.limits th, table.limits td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table.limits th {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table.limits tbody tr:last-child td { border-bottom: none; }

.table-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0 0 20px;
}

/* ===== BADGES ===== */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge-verified { background: var(--teal-dim); color: var(--teal); }
.badge-declared { background: var(--violet-dim); color: var(--violet); }
.badge-missing { background: var(--amber-dim); color: var(--amber); }
.badge-flag { background: var(--red-dim); color: var(--red); }

/* ===== PROS/CONS ===== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 8px;
}
.pros-cons > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.pros-cons h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 8px;
}
.pros-cons .pro h4 { color: var(--teal); }
.pros-cons .con h4 { color: var(--amber); }
.pros-cons p { font-size: 0.9rem; margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
}

/* ===== OPERATOR REVIEW CARDS ===== */
.op-review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 18px;
}
.op-review h3 { margin-top: 0; }
.op-review .op-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}
.op-review .op-facts span { white-space: nowrap; }
.op-review .op-flag {
  background: var(--red-dim);
  border-left: 2px solid var(--red);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.86rem;
  color: var(--text);
  margin: 10px 0 0;
}
.cta-btn {
  display: inline-block;
  background: var(--teal);
  color: #06251c;
  font-weight: 700;
  font-size: 0.86rem;
  padding: 9px 16px;
  border-radius: 7px;
  text-decoration: none;
  margin-top: 10px;
}
.cta-btn:hover { opacity: 0.9; }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-item .q {
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  font-size: 0.96rem;
}
.faq-item .a {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* ===== OPERATOR LOGO BADGES (styled monogram — no external image assets) ===== */
.op-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--violet-dim);
  border: 1px solid var(--border);
  color: var(--violet);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.01em;
}
.op-logo-lg {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  font-size: 0.95rem;
}
.op-review-head { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; }
.op-review-head h3 { margin: 0; }

/* ===== AUTHOR / EDITOR BLOCK ===== */
.byline-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
}
.byline-avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.72rem;
}
.byline-text { font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.byline-text strong { color: var(--text); }

/* ===== SUPPORT INFO ===== */
.support-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 16px;
  font-size: 0.85rem;
  color: var(--muted);
}
.support-list li strong { color: var(--text); }
@media (max-width: 640px) {
  .support-list { grid-template-columns: 1fr; }
}

/* ===== VERDICT BOX ===== */
.verdict-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  padding: 16px 18px 14px;
  margin: 12px 0 20px;
}
.verdict-box .qa-label { color: var(--violet); }

/* ===== FLOW DIAGRAM ===== */
.flow-diagram {
  margin: 16px 0 20px;
  padding: 18px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.flow-diagram svg { display: block; width: 100%; height: auto; }
.flow-diagram-caption {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  margin: 10px 0 0;
}

/* ===== METHODOLOGY BOX ===== */
.method-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 12px 0 20px;
}
.method-box ul { margin-bottom: 0; }

/* ===== VERIFY FLAG ===== */
.verify-flag {
  background: var(--amber-dim);
  border-left: 3px solid var(--amber);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.88rem;
  color: var(--text);
  margin: 0 0 16px;
}
.verify-flag strong { color: var(--amber); }

footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 20px 40px;
  text-align: center;
}
footer.site-footer p {
  color: var(--muted);
  font-size: 0.8rem;
  max-width: 640px;
  margin: 0 auto 6px;
}
footer.site-footer a { color: var(--teal); text-decoration: none; }
footer.site-footer a:hover { text-decoration: underline; }
nav.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
}
nav.footer-nav a { color: var(--teal); text-decoration: none; font-size: 0.82rem; }
nav.footer-nav a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  header.site-header { padding: 13px 16px; }
  main.wrap { padding: 14px 16px 44px; }
  h1 { font-size: 1.45rem; line-height: 1.28; margin: 4px 0 12px; }
  h2 { font-size: 1.15rem; margin: 26px 0 12px; }
  .quick-answer { padding: 14px 14px 12px; }
}
