/* ========= CSS RESET ========= */
*,*::before,*::after{box-sizing:border-box}
*{margin:0}
body{line-height:1.6;-webkit-font-smoothing:antialiased}
img,svg{display:block;max-width:100%}
button{font:inherit}

/* ========= THEME TOKENS ========= */
:root{
  --bg: #f7f8fb;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --brand: #0ea5e9;
  --brand-ink: #0b80b6;
  --border: #e5e7eb;
  --shadow: 0 6px 30px rgba(2,6,23,0.06);

  --chip-warn-bg:#fff2cc; --chip-warn-ink:#9a6700;

  --link:#1a73e8;
}

/* DARK THEME OVERRIDES */
.dark-mode{
  --bg:#0b0f14;
  --paper:#12171e;
  --ink:#e5e7eb;
  --muted:#9aa4b2;
  --brand:#38bdf8;
  --brand-ink:#7dd3fc;
  --border:#1f2937;
  --shadow: 0 6px 30px rgba(0,0,0,0.35);

  --chip-warn-bg:#372b00; --chip-warn-ink:#ffd166;

  --link:#4da6ff;
}

/* ========= LAYOUT ========= */
body {
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif
}

.nv-container {
  max-width:1100px;
  margin-inline:auto;
  padding:0 16px
}

.nv-topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:var(--paper);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
}

.nv-topbar .nv-container {
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 16px
}

.nv-brand {
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--ink)
}

.nv-brand img {
  width:45px;
  height:45px;
  border-radius:8px;
  border-radius: 18px;
}

.nv-brand span {
  font-weight:800;
  letter-spacing:.2px
}

.nv-brand .dot {
  color:var(--brand)
}

.nv-actions {
  margin-left:auto;
  display:flex;
  gap:8px
}

.nv-icon {
  background:transparent;
  border:1px solid var(--border);
  padding:6px 10px;
  border-radius:10px;
  cursor:pointer;
  color:var(--ink)
  
}

.nv-breaking{background:linear-gradient(90deg,var(--paper),rgba(14,165,233,.08));border-bottom:1px solid var(--border)}
.nv-breaking .nv-container{display:flex;align-items:center;gap:10px;padding:8px 16px}
.blink{width:8px;height:8px;border-radius:999px;background:#ef4444;display:inline-block;animation:blink 1s infinite}
@keyframes blink{50%{opacity:.25}}
.muted{color:var(--muted);margin-left:auto;font-size:.9rem}

.nv-hero{padding:22px 0}
.hero-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:16px}
.hero-copy h1{font-size:clamp(22px,3.6vw,34px);line-height:1.25}
.hero-copy .subtitle{margin-top:8px;color:var(--muted)}
.meta{margin-top:10px;display:flex;align-items:center;gap:8px;color:var(--muted)}
.sep{opacity:.6}
.chip{padding:4px 10px;border-radius:999px;border:1px solid var(--border);font-weight:600}
.chip-warn{background:var(--chip-warn-bg);color:var(--chip-warn-ink)}

.hero-side .card{position:relative}

.nv-grid{display:grid;grid-template-columns:2fr 1fr;gap:18px;margin:16px 0 30px}

/* ========= CARDS ========= */
.card{background:var(--paper);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:16px;margin:10px}
.card.soft{background:linear-gradient(180deg,rgba(14,165,233,.08),transparent);border:1px dashed var(--border)}
.card h2,.card h3{font-size:1.05rem;margin-bottom:10px}
.card .list{list-style:none}
.card .list li{padding:8px 0;border-bottom:1px dashed var(--border)}
.card .list.tight li{padding:6px 0}
.card .list.tight li a{color:var(--link);text-decoration:none}
.kv{list-style:none}
.kv li{display:flex;justify-content:space-between;gap:10px;padding:6px 0;border-bottom:1px dashed var(--border)}
.kv a{color:var(--link);text-decoration:none}
.kv a:hover{text-decoration:underline}

.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.facts div{border:1px solid var(--border);border-radius:12px;padding:12px;background:rgba(14,165,233,.05)}
.facts span{display:block;color:var(--muted);font-size:.9rem;margin-bottom:4px}

.steps{padding-left:18px}
.steps li{margin:8px 0}

.notice{background:rgba(239,68,68,.08);border:1px solid var(--border);border-radius:12px;padding:12px;margin:14px 0;color:#ef4444}

.sticky{position:sticky;top:76px}
.toc{display:grid;gap:8px}
.toc a{padding:8px 10px;border-radius:8px;border:1px solid var(--border);text-decoration:none;color:var(--ink)}
.toc a:hover{background:rgba(14,165,233,.08)}

/* ======= FAQ (details) ======= */
.faq summary{cursor:pointer;font-weight:600;list-style:none}
.faq summary::-webkit-details-marker{display:none}
.faq{border:1px solid var(--border);border-radius:10px;padding:10px;margin:8px 0;background:rgba(255,255,255,.35)}
.dark-mode .faq{background:rgba(255,255,255,.03)}
.faq p{margin-top:6px;color:var(--ink)}

/* ======= Buttons ======= */
.btn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:transparent;color:var(--ink);border-radius:10px;padding:8px 12px;cursor:pointer}
.btn:hover{background:rgba(14,165,233,.08)}

/* ======= Footer ======= */
.nv-footer{border-top:1px solid var(--border);padding:16px 0;background:var(--paper)}
.nv-footer .nv-container{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.nv-footer a{color:var(--link);text-decoration:none}
.nv-footer a:hover{text-decoration:underline}

/* Social buttons (posts.css) */
.fv-social { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:12px 0; }
.fv-social .fv-btn {
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 12px; border-radius:10px; text-decoration:none;
  background:var(--card-bg); color:var(--card-text);
  border:1px solid var(--border); box-shadow:0 1px 0 rgba(0,0,0,0.03);
  transition:transform .14s ease, box-shadow .14s ease, background .14s ease, color .14s ease;
  font-size:14px;
}
.fv-social .fv-btn:hover{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(0,0,0,0.08); }
.fv-social .fv-ico { width:28px; height:28px; flex:0 0 28px; display:inline-flex; align-items:center; justify-content:center; border-radius:6px; overflow:hidden; background:transparent; }
.fv-social .fv-ico img{ max-width:100%; max-height:100%; display:block; }
.fv-social .fv-label{ white-space:nowrap; color:var(--link-color); font-weight:600; }
@media (max-width:520px){
  .fv-social .fv-btn{ padding:8px 10px; font-size:13px; gap:8px; }
  .fv-social { gap:8px; }
}

/* ======= Responsive ======= */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .nv-grid{grid-template-columns:1fr}
}