/* WALKI workshop deck — hand-rolled slide shell.
   Slides are authored at 1280×720 and scaled to the viewport by deck.js.
   Accent per slide via --accent (the Happiness Walk group colors). */

:root {
  --bg: #17181a;            /* backstage, around the slide */
  --surface: #fcfcfb;
  --ink: #1f2428;
  --ink-2: #4b545c;
  --muted: #79838c;
  --hairline: #e3e2de;
  --accent: #4b545c;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--bg);
  font-family: "Avenir Next", Avenir, "Segoe UI", -apple-system, system-ui, sans-serif;
  color: var(--ink);
  overflow: hidden;
}

/* Absolutely positioned from the start: a static 1280px block would inflate
   the mobile layout viewport before deck.js can scale it down. */
.stage { position: absolute; top: 0; left: 0; width: 1280px; height: 720px; transform-origin: top left; }

.slide {
  position: absolute; inset: 0;
  width: 1280px; height: 720px;
  padding: 64px 84px 72px;
  background: var(--surface);
  display: none;
  flex-direction: column;
}
.slide.current { display: flex; }

a { color: inherit; }
h1, h2, h3 { font-weight: 500; white-space: nowrap; } /* headers never wrap */
em { font-style: italic; }

/* --- header band --------------------------------------------------------- */
.slide-head { margin-bottom: 30px; }
.kicker {
  display: block;
  font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.slide-head h2 {
  font-size: 52px;
  border-left: 10px solid var(--accent);
  padding-left: 22px; margin-left: -32px;
  line-height: 1.1;
}
.group-chip {
  display: inline-block; color: #fff; background: var(--accent);
  font-size: 13px; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 999px; margin-right: 10px;
  vertical-align: 2px;
}

/* --- title & dividers ---------------------------------------------------- */
.title-slide, .divider { justify-content: center; }
.title-slide h1, .divider h1 { font-size: 88px; line-height: 1.05; margin: 18px 0 26px; white-space: normal; }
.divider h1 { color: var(--accent); }
.subtitle { font-size: 26px; font-weight: 300; color: var(--ink-2); max-width: 900px; line-height: 1.45; }
.byline { margin-top: 34px; font-size: 20px; color: var(--muted); }
.title-bar { display: flex; gap: 6px; margin-top: 44px; }
.title-bar span { height: 10px; width: 120px; border-radius: 4px; }

/* --- generic content ----------------------------------------------------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; flex: 1; min-height: 0; }
.bullets { list-style: none; }
.bullets li {
  font-size: 24px; font-weight: 300; line-height: 1.45;
  padding-left: 26px; position: relative; margin-bottom: 18px;
}
.bullets li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.note { font-size: 17px; color: var(--muted); line-height: 1.5; margin-top: auto; padding-top: 18px; }
.how-to { list-style: none; counter-reset: step; max-width: 1050px; }
.how-to li { counter-increment: step; font-size: 25px; font-weight: 300; line-height: 1.5; margin-bottom: 22px; padding-left: 54px; position: relative; }
.how-to li::before {
  content: counter(step); position: absolute; left: 0; top: 1px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--surface);
  font-size: 19px; display: flex; align-items: center; justify-content: center;
}
.port-chip { white-space: nowrap; font-size: 20px; border: 1px solid var(--hairline); border-radius: 999px; padding: 2px 12px; }

/* --- overview bars (single-series magnitude, accent per group) ----------- */
.domain-grid { display: flex; flex-direction: column; gap: 14px; }
.domain-grid-group h3 { font-size: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.domain-grid-row { display: grid; grid-template-columns: 200px 1fr 52px; align-items: center; gap: 12px; font-size: 16px; margin-bottom: 4px; color: var(--ink-2); }
.domain-grid-row .bar { background: #f0efec; border-radius: 3px; height: 12px; overflow: hidden; }
.domain-grid-row .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px 4px 4px 3px; }
.domain-grid-row .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }

/* --- domain intro -------------------------------------------------------- */
.intro-cols { grid-template-columns: 380px 1fr; }
.stat-tile { align-self: start; padding-top: 8px; }
.stat-hero { font-size: 150px; font-weight: 200; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 25px; font-weight: 300; line-height: 1.35; margin-top: 10px; }
.stat-sub { font-size: 16px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.quotes { display: flex; flex-direction: column; gap: 24px; justify-content: center; min-width: 0; }
.quote blockquote { font-size: 24px; font-weight: 300; line-height: 1.4; font-style: italic; }
.quote figcaption { font-size: 16px; color: var(--muted); margin-top: 8px; }
.listen {
  display: inline-block; margin-left: 12px;
  font-size: 14px; text-decoration: none; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 999px; padding: 2px 12px;
}
.listen:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* --- metric slides ------------------------------------------------------- */
.metric-groups { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 22px; }
.metric-group h3 { font-size: 21px; margin-bottom: 4px; }
.metric-group h3 em { font-size: 16px; color: var(--muted); }
.group-blurb { font-size: 16px; color: var(--muted); margin-bottom: 10px; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; margin-top: 8px; }
.metric { border-top: 1px solid var(--hairline); padding-top: 7px; }
.metric-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.metric-label { font-size: 18px; font-weight: 500; }
.metric-label a { text-decoration: none; border-bottom: 1px dotted var(--muted); }
.metric-years { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.metric-source { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.empty-state { flex: 1; display: flex; align-items: center; max-width: 860px; }
.empty-state p { font-size: 28px; font-weight: 300; line-height: 1.5; color: var(--ink-2); }

/* --- contribute ---------------------------------------------------------- */
.contribute-body { flex: 1; display: flex; flex-direction: column; }
.prompt { font-size: 34px; font-weight: 300; line-height: 1.4; max-width: 950px; }
.contribute-lines { list-style: none; margin-top: 44px; max-width: 950px; }
.contribute-lines li { border-bottom: 2px solid var(--hairline); height: 64px; }

/* --- links slide --------------------------------------------------------- */
.links a { color: var(--ink); }

/* --- HUD (nav chrome, never printed) ------------------------------------- */
.hud { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; pointer-events: none; }
.progress { height: 4px; background: rgba(255,255,255,.14); }
.progress i { display: block; height: 100%; width: 0; background: #fff; opacity: .75; transition: width .2s; }
.pager {
  position: fixed; right: 14px; bottom: 12px;
  color: rgba(255,255,255,.65); font-size: 13px; font-variant-numeric: tabular-nums;
}

/* --- overview ('o') ------------------------------------------------------ */
body.overview { overflow: auto; }
body.overview .stage { position: static; transform: none !important; width: auto; height: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 20px; }
body.overview .slide { display: flex; position: relative; inset: auto; zoom: .22; cursor: pointer; outline: 12px solid transparent; }
body.overview .slide.current { outline-color: #fff; }
body.overview .hud { display: none; }

/* --- print: one slide per page, for PDF → Google Slides ------------------ */
@page { size: 1280px 720px; margin: 0; }
@media print {
  body { background: none; overflow: visible; }
  .stage { transform: none !important; width: auto; height: auto; }
  .slide { display: flex; position: relative; inset: auto; page-break-after: always; }
  .hud { display: none; }
}
