/* Static SEO/printable pages. Mirrors the app's look without loading React. */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --ink: #2d3748;
  --ink-soft: #4a5568;
  --muted: #718096;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f7fafc;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 820px; margin: 0 auto; padding: 20px 16px;
}
.brand { color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.header-cta {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6); border-radius: 8px; padding: 8px 14px;
}
.header-cta:hover { background: rgba(255,255,255,0.15); }
main { max-width: 820px; margin: 0 auto; padding: 0 16px 40px; }
.card {
  background: var(--surface); border-radius: 12px; padding: 32px;
  box-shadow: 0 10px 15px rgba(0,0,0,0.1); margin-bottom: 24px;
}
h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 16px; }
h2 { font-size: 1.35rem; margin: 32px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 8px; }
p, ul, ol, table { margin-bottom: 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 8px; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
a { color: var(--primary); }
.cta {
  margin-top: 32px; padding: 24px; border-radius: 12px;
  background: var(--surface-alt); border-left: 4px solid var(--primary); text-align: center;
}
.cta h2 { margin-top: 0; }
.btn {
  display: inline-block; margin-top: 8px; padding: 14px 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff; font-weight: 700; text-decoration: none;
}
.btn:hover { filter: brightness(1.05); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 0.9rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.related ul { list-style: none; padding-left: 0; }
.site-footer { max-width: 820px; margin: 0 auto; padding: 0 16px 40px; color: rgba(255,255,255,0.9); font-size: 0.9rem; }
.site-footer a { color: #fff; }
.chart { width: 100%; height: auto; display: block; margin-bottom: 8px; }
.chart-note { color: var(--muted); font-size: 0.85rem; }
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.stat-box { flex: 1 1 140px; background: var(--surface-alt); border-radius: 8px; padding: 16px; text-align: center; }
.stat-box .v { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-box .l { color: var(--muted); font-size: 0.85rem; }

/* Printable cards */
.sheet { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 10px 15px rgba(0,0,0,0.1); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pcard { border: 2px dashed var(--border); border-radius: 10px; padding: 14px; break-inside: avoid; }
.pcard h3 { margin: 0 0 10px; font-size: 1rem; text-align: center; color: var(--primary); }
.pcard .line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; font-size: 0.8rem; color: var(--ink-soft); }
.pcard .line span { white-space: nowrap; }
.pcard .line i { flex: 1; border-bottom: 1px solid var(--border); height: 0.95em; display: block; }
.no-print { }
@media print {
  body { background: #fff; }
  .site-header, .site-footer, .no-print, .related { display: none !important; }
  main { max-width: none; padding: 0; }
  .card, .sheet { box-shadow: none; border-radius: 0; padding: 0; margin: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .pcard { border-color: #999; }
}
@media (max-width: 600px) {
  .card { padding: 22px 18px; }
  h1 { font-size: 1.6rem; }
  .cards { grid-template-columns: 1fr; }
}
