/* ============================================================
   FlockWatch — shared stylesheet (inner pages)
   Mirrors the homepage design system + inner-page components.
   ============================================================ */

:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --navy: #0b1220;
  --navy-2: #13244d;
  --accent: #f59e0b;
  --accent-dark: #b45309;
  --good: #15803d;
  --bad: #b91c1c;
  --warn: #b45309;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(245,158,11,.15); }
nav.links { display: flex; gap: 24px; font-size: .92rem; font-weight: 600; color: var(--muted); }
nav.links a { color: inherit; }
nav.links a:hover { color: var(--ink); text-decoration: none; }
.nav .cta {
  background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem;
  padding: 9px 18px; border-radius: 999px;
}
.nav .cta:hover { background: var(--navy-2); text-decoration: none; }
/* ---------- Mobile nav toggle (checkbox hack, no JS) ---------- */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; font-size: 1.15rem; cursor: pointer; color: var(--ink); line-height: 1;
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .cta { font-size: .82rem; padding: 8px 14px; }
  nav.links {
    display: none; order: 5; width: 100%;
    flex-direction: column; gap: 2px;
    padding: 12px 4px 4px; border-top: 1px solid var(--line); margin-top: 10px;
  }
  nav.links a { padding: 11px 4px; font-size: .95rem; border-bottom: 1px dashed var(--line); }
  .nav-toggle-input:checked ~ nav.links { display: flex; }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(245,158,11,.16), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #e2e8f0;
  padding: 56px 0 48px;
}
.breadcrumb { font-size: .8rem; color: #94a3b8; margin-bottom: 16px; }
.breadcrumb a { color: #cbd5e1; }
.breadcrumb a:hover { color: #fff; text-decoration: none; }
.page-hero h1 {
  color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em; line-height: 1.15; max-width: 24ch;
  margin-bottom: 12px; font-weight: 800;
}
.page-hero p { color: #cbd5e1; max-width: 72ch; font-size: 1.02rem; }
.page-hero .hero-meta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Content ---------- */
section.inner { padding: 48px 0 64px; }
.content { max-width: 780px; }
.content h2 { font-size: 1.4rem; margin: 36px 0 12px; letter-spacing: -.01em; }
.content h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.content p { color: #334155; margin-bottom: 14px; font-size: .98rem; }
.content ul, .content ol { margin: 0 0 18px 22px; color: #334155; font-size: .98rem; }
.content li { margin-bottom: 8px; }
.content table {
  width: 100%; border-collapse: collapse; margin: 18px 0 24px;
  font-size: .92rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.content th { background: #f1f5f9; text-align: left; padding: 10px 14px; font-weight: 700; font-size: .85rem; }
.content td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.content .src-list { font-size: .85rem; color: var(--muted); }
.content .src-list li { margin-bottom: 4px; }

/* ---------- Callouts ---------- */
.callout { border-radius: 12px; padding: 16px 18px; margin: 18px 0; font-size: .95rem; border: 1px solid; }
.callout.answer { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.callout.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.callout.good { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.callout b { font-weight: 800; }

/* ---------- Chips / status ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.chip { font-size: .76rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.chip.action { background: #fef3c7; color: #92400e; }
.chip.legis { background: #dbeafe; color: #1e40af; }
.chip.incident { background: #fee2e2; color: #991b1b; }
.chip.watch { background: #e2e8f0; color: #334155; }

/* ---------- Timeline (inner pages) ---------- */
.timeline { display: grid; gap: 12px; }
.t-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; box-shadow: var(--shadow);
}
.t-item .date { font-size: .76rem; font-weight: 800; color: var(--accent-dark); background: #fef3c7; border-radius: 8px; padding: 3px 10px; white-space: nowrap; }
.t-item .txt { font-size: .95rem; }
.t-item .txt b { font-weight: 700; }
.t-item .txt a { font-weight: 600; }

/* ---------- Stats strip (ban tracker) ---------- */
.stats .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.stat .num { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: 2px; }
.stat .src { display: block; font-size: .72rem; color: #94a3b8; margin-top: 8px; }
.stat .src a { color: #64748b; }

/* ---------- Related links ---------- */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 36px; }
.related a {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; box-shadow: var(--shadow); font-weight: 600; font-size: .92rem;
}
.related a:hover { border-color: #cbd5e1; text-decoration: none; }
.related a small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: .8rem; }

/* ---------- FAQ (inline) ---------- */
.faq { display: grid; gap: 10px; margin-top: 20px; }
details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}
summary {
  cursor: pointer; font-weight: 700; font-size: .98rem; padding: 14px 18px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); }
details[open] summary::after { content: "–"; }
details .a { padding: 0 18px 16px; color: #475569; font-size: .92rem; }

/* ---------- Footer ---------- */
footer { background: var(--navy); color: #94a3b8; padding: 48px 0 32px; margin-top: 40px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; margin-bottom: 28px; }
footer h4 { color: #e2e8f0; font-size: .85rem; margin-bottom: 12px; }
footer a { color: #94a3b8; display: block; font-size: .85rem; margin-bottom: 6px; }
footer a:hover { color: #fff; }
footer .fine { font-size: .75rem; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
footer .fine a { display: inline; margin: 0 4px; }

@media (max-width: 640px) {
  .page-hero { padding: 44px 0 38px; }
}

/* ---------- X/Twitter share FAB ---------- */
.share-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  transition: transform .15s ease, background .15s ease;
}
.share-fab:hover { transform: translateY(-2px); background: #1a1a1a; text-decoration: none; }
.share-fab svg { width: 24px; height: 24px; fill: currentColor; }
.share-fab .tooltip {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1220;
  color: #e2e8f0;
  font-size: .75rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.share-fab:hover .tooltip { opacity: 1; }
