/* hub-deck.css — sticky header + sticky footer + one big card per slide + dots/arrows nav
   Shared across every page in the surveyhumanity hub. Pages declare their content; the
   deck framework wraps it with consistent chrome. */

:root {
  --hd-bg: #fff;
  --hd-tx: #000;
  --hd-bd: #000;
  --hd-muted: #666;
  --hd-soft: #f5f5f5;
  --hd-accent: #000;
  --hd-h: 56px;
  --ft-h: 72px;
  --card-pad: 48px 56px;
  --card-pad-sm: 28px 22px;
}
html[data-theme="night"] {
  --hd-bg: #0a0a0a;
  --hd-tx: #e8e8e8;
  --hd-bd: #e8e8e8;
  --hd-muted: #999;
  --hd-soft: #1f1f1f;
  --hd-accent: #e8e8e8;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--hd-bg);
  color: var(--hd-tx);
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  padding: var(--hd-h) 24px var(--ft-h);
  position: relative;
}

/* ── decorative specks layer (page background) ─────────────────── */
.deck-specks {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.deck-specks span {
  position: absolute;
  background: var(--hd-tx);
  border-radius: 50%;
  opacity: .15;
}

/* ── STICKY HEADER ─────────────────────────────────────────────── */
.hd-bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--hd-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1.5px solid var(--hd-bd);
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
}
html[data-theme="night"] .hd-bar { background: rgba(10,10,10,.92); }
.hd-brand {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--hd-tx);
  font-weight: 700; font-size: 14px; letter-spacing: -.2px;
  white-space: nowrap;
}
.hd-brand .hd-em { font-size: 18px; line-height: 1; }
.hd-nav {
  flex: 1;
  display: flex; justify-content: center; gap: 2px;
  font-family: 'Space Mono', monospace;
  overflow: hidden;
}
.hd-nav a {
  padding: 8px 13px;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700;
  color: var(--hd-tx);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: background .12s, color .12s;
}
.hd-nav a:hover { background: var(--hd-soft); }
.hd-nav a.on { background: var(--hd-accent); color: var(--hd-bg); }
.hd-pill {
  padding: 7px 14px;
  border: 1.5px solid var(--hd-bd);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700;
  color: var(--hd-tx);
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
}
.hd-pill:hover { background: var(--hd-accent); color: var(--hd-bg); }

/* ── ONE BIG CARD ──────────────────────────────────────────────── */
.deck-card {
  position: relative; z-index: 1;
  max-width: 880px;
  margin: 28px auto;
  padding: var(--card-pad);
  background: var(--hd-bg);
  border: 2px solid var(--hd-bd);
  border-radius: 18px;
  min-height: calc(100vh - var(--hd-h) - var(--ft-h) - 80px);
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.06);
}
html[data-theme="night"] .deck-card { box-shadow: 0 18px 60px rgba(0,0,0,.4); }

.dc-crumb {
  font-family: 'Space Mono', monospace;
  font-size: 10px; letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--hd-muted);
}
.dc-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--hd-accent); color: var(--hd-bg);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700;
  align-self: flex-start;
}
.dc-h1 {
  font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 1.05;
  margin: 0;
}
.dc-lead {
  font-size: 16px; line-height: 1.6; color: var(--hd-tx); opacity: .85;
  max-width: 640px;
  margin: 0;
}
.dc-body {
  font-size: 15px; line-height: 1.65; color: var(--hd-tx); opacity: .9;
}
.dc-body p { margin: 0 0 12px; }
.dc-body a { color: var(--hd-tx); font-weight: 700; }

.dc-stats {
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--hd-muted);
  margin-top: 6px;
  padding: 18px 0 0;
  border-top: 1px dashed var(--hd-bd);
}
.dc-stats b {
  display: block; margin-bottom: 2px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 22px; color: var(--hd-tx); font-weight: 700; letter-spacing: -.5px;
}

.dc-cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: auto; padding-top: 20px;
}
.dc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  background: var(--hd-accent); color: var(--hd-bg);
  border: 2px solid var(--hd-bd);
  border-radius: 999px;
  font-family: 'Space Mono', monospace;
  font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase;
  font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform .12s;
}
.dc-cta:hover { transform: translateY(-2px); }
.dc-cta.ghost { background: transparent; color: var(--hd-tx); }
.dc-cta.ghost:hover { background: var(--hd-soft); transform: translateY(-2px); }

/* ── STICKY FOOTER (deck nav) ──────────────────────────────────── */
.ft-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--ft-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-top: 1.5px solid var(--hd-bd);
  z-index: 100;
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
}
html[data-theme="night"] .ft-bar { background: rgba(10,10,10,.92); }
.ft-prev, .ft-next {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  font-family: 'Space Mono', monospace;
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase;
  font-weight: 700;
  color: var(--hd-tx);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  min-width: 140px;
}
.ft-prev:hover, .ft-next:hover { background: var(--hd-soft); }
.ft-next { justify-content: flex-end; }
.ft-prev-em, .ft-next-em { font-size: 18px; line-height: 1; opacity: .7; }
.ft-dots {
  flex: 1;
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.ft-dot {
  width: 10px; height: 10px;
  border: 1.5px solid var(--hd-bd);
  border-radius: 50%;
  background: transparent;
  transition: transform .14s, background .12s;
}
.ft-dot:hover { transform: scale(1.4); }
.ft-dot.on { background: var(--hd-accent); transform: scale(1.25); }

/* ── DESKTOP ARROW BUTTONS (overlay on sides) ──────────────────── */
.deck-arrow {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  border: 2px solid var(--hd-bd);
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  color: var(--hd-tx);
  text-decoration: none;
  cursor: pointer;
  transition: transform .14s, background .12s, box-shadow .14s;
}
.deck-arrow:hover {
  background: var(--hd-accent); color: var(--hd-bg);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
html[data-theme="night"] .deck-arrow { background: rgba(10,10,10,.92); }
.deck-arrow-l { left: 24px; }
.deck-arrow-r { right: 24px; }

/* ── RESPONSIVE ────────────────────────────────────────────────── */
@media (max-width: 880px) {
  body { padding: var(--hd-h) 14px var(--ft-h); }
  .hd-nav { display: none; }
  .hd-bar { padding: 0 16px; }
  .ft-bar { padding: 0 12px; }
  .ft-prev, .ft-next { min-width: 0; }
  .ft-prev span:not(.ft-prev-em), .ft-next span:not(.ft-next-em) { display: none; }
  .deck-arrow { display: none; }
  .deck-card { padding: var(--card-pad-sm); margin: 16px auto; min-height: calc(100vh - var(--hd-h) - var(--ft-h) - 40px); }
  .dc-h1 { font-size: 30px; }
  .dc-stats { gap: 18px; }
  .dc-stats b { font-size: 18px; }
}
@media (max-width: 480px) {
  .dc-h1 { font-size: 24px; letter-spacing: -.5px; }
  .dc-lead { font-size: 14px; }
  .dc-body { font-size: 14px; }
}
