/* ──────────────────────────────────────────────────────────────
   site.css - shared styling for the static trust, legal and
   methodology pages (about, methodology, privacy, terms, etc.).
   Mirrors the brand defined inline in index.html so the standalone
   pages match the main app without duplicating its full stylesheet.
   ────────────────────────────────────────────────────────────── */

:root {
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface2: #f0f2f8;
  --border: #e2e6f0;
  --border-strong: #c8cfe0;
  --accent: #1a3a6b;
  --accent-light: #2952a3;
  --accent2: #e8532a;
  --text: #1a1f2e;
  --text-muted: #6b7491;
  --mono: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrap {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ── Header ── */
header {
  background: var(--accent);
  margin: 0 -24px 32px;
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
}
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent2), #f5a623, var(--accent2));
}
.header-inner {
  max-width: 832px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo-text { text-decoration: none; display: block; }
.logo-text h1 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 5.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.022em;
  color: #ffffff;
}
.logo-text h1 span { color: #f5c84a; }
.logo-text p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.btn-header {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  white-space: nowrap;
  transition: all 0.15s;
}
.btn-header:hover { background: rgba(255, 255, 255, 0.2); }

/* ── Primary navigation ── */
.site-nav {
  max-width: 832px;
  margin: -16px auto 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  transition: all 0.15s;
}
.site-nav a:hover { color: var(--accent); background: var(--surface2); }
.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 500; }

/* ── Page content ── */
.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 44px;
}
.page .eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 14px;
}
.page h1 {
  font-family: var(--sans);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 10px;
}
.page .updated {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.page h2 {
  font-family: var(--sans);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 10px;
}
.page h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 24px 0 6px;
}
.page p, .page li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.page p { margin-bottom: 14px; }
.page ul, .page ol { margin: 0 0 14px 22px; }
.page li { margin-bottom: 6px; }
.page a { color: var(--accent-light); }
.page strong { font-weight: 700; }
.page .lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.callout {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }
.btn-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  background: var(--accent2);
  color: #fff;
  padding: 11px 20px;
  border-radius: 6px;
  margin-top: 6px;
  transition: background 0.15s;
}
.btn-cta:hover { background: #d94420; }

/* ── Footer ── */
footer {
  padding: 32px 0 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 4px;
  margin-bottom: 16px;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.15s;
}
.footer-links a:hover { color: var(--accent); background: var(--surface2); }
.footer-links .sep { color: var(--border-strong); align-self: center; }
.footer-tagline { text-align: center; line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 720px) {
  .wrap { padding: 0 16px 60px; }
  header { margin: 0 -16px 24px; padding: 22px 18px 20px; }
  .page { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: stretch; gap: 14px; }
}

/* ── Fact-check pages ── */
.fc-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--text-muted); }
.fc-scorebar {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px; margin: 18px 0 24px;
}
.fc-score { font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.fc-score small { font-size: 0.9rem; color: var(--text-muted); font-family: var(--sans); font-weight: 600; }
.fc-score.high { color: #1a7f4b; } .fc-score.mid { color: #c77d0a; } .fc-score.low { color: #c0392b; }
.fc-score-label { font-size: 0.95rem; font-weight: 700; }
.verdict {
  display: inline-block; font-family: var(--mono); font-size: 0.6rem; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--border-strong); color: var(--text); background: var(--surface2); white-space: nowrap;
}
.verdict.supported, .verdict.mostly_supported { background: #e6f4ec; border-color: #9fd4b4; color: #1a7f4b; }
.verdict.mixed, .verdict.unverified { background: #fdf3e2; border-color: #e9c98c; color: #a6710a; }
.verdict.misleading, .verdict.unsupported { background: #fdeee5; border-color: #f0b58f; color: #c0562a; }
.verdict.false { background: #fbe9e7; border-color: #eaa9a1; color: #c0392b; }
.fc-metrics { list-style: none; margin: 0 0 8px; padding: 0; }
.fc-metrics li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.fc-metrics .mname { flex: 0 0 120px; font-weight: 600; }
.fc-metrics .mscore { flex: 0 0 40px; font-family: var(--mono); color: var(--text-muted); }
.fc-metrics .mnote { flex: 1 1 auto; color: var(--text-muted); }
.fc-claim {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--border-strong);
  border-radius: 6px; padding: 16px 18px; margin: 14px 0;
}
.fc-claim.supported, .fc-claim.mostly_supported { border-left-color: #1a7f4b; }
.fc-claim.mixed, .fc-claim.unverified { border-left-color: #c77d0a; }
.fc-claim.misleading, .fc-claim.unsupported { border-left-color: #c0562a; }
.fc-claim.false { border-left-color: #c0392b; }
.fc-claim-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.fc-claim-head h3 { margin: 0; font-size: 1.02rem; }
.fc-caveat { font-size: 0.85rem; color: var(--text-muted); }
.fc-sources { margin-top: 10px; }
.fc-sources .lbl { font-family: var(--mono); font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.fc-sources ol { margin: 6px 0 0 18px; }
.fc-sources li { font-size: 0.85rem; margin-bottom: 5px; }
.fc-fineprint { font-size: 0.85rem; color: var(--text-muted); }
.fc-index-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.fc-index-item h3 { margin: 0; font-size: 1.1rem; }
.fc-index-item .meta { font-family: var(--mono); font-size: 0.66rem; color: var(--text-muted); margin-top: 8px; }
