/* 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: 1080px; }
.how-to li { counter-increment: step; font-size: 23px; font-weight: 300; line-height: 1.45; margin-bottom: 15px; 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; }
.agenda { list-style: none; max-width: 1000px; }
.agenda li { font-size: 26px; font-weight: 300; line-height: 1.4; margin-bottom: 20px; display: flex; align-items: baseline; gap: 26px; }
.agenda-time { font-variant-numeric: tabular-nums; color: var(--accent, var(--muted)); font-weight: 500; font-size: 22px; min-width: 74px; text-align: right; }

/* --- 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: 18px; }
.metric-group h3 { font-size: 21px; margin-bottom: 2px; }
.metric-group h3 em { font-size: 16px; color: var(--muted); }
.more-line {
  font-size: 13.5px; color: var(--muted); line-height: 1.5;
  margin-top: 8px; border-top: 1px dotted var(--hairline); padding-top: 5px;
}
.group-blurb { font-size: 15px; color: var(--muted); margin-bottom: 6px; }
.metric-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; margin-top: 6px; }
.metric { border-top: 1px solid var(--hairline); padding-top: 6px; }
.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-geo {
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
  border: 1px solid var(--hairline); border-radius: 999px; padding: 1px 9px;
}
.ladder-port { font-size: 22px; font-weight: 300; margin: 6px 0 0 54px; }

/* --- more-voices ---------------------------------------------------------- */
.alt-quotes { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; align-content: center; }
.alt-quotes blockquote { font-size: 21px; }

/* --- survey-detail -------------------------------------------------------- */
.sd-cols { flex: 1; display: flex; flex-direction: column; gap: 26px; justify-content: center; max-width: 1000px; }
.sd-cluster h3 { font-size: 18px; margin-bottom: 8px; }
.sd-row { display: grid; grid-template-columns: 310px 1fr 60px; align-items: center; gap: 14px; font-size: 15px; color: var(--ink-2); margin-bottom: 7px; }
.sd-name { line-height: 1.3; }

/* --- atlas grid ----------------------------------------------------------- */
.atlas { flex: 1; border-collapse: collapse; width: 100%; align-self: start; }
.atlas th { font-size: 16px; font-weight: 500; text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.atlas .atlas-tier { font-size: 17px; white-space: nowrap; vertical-align: top; padding-top: 14px; width: 130px; }
.atlas td { padding: 7px 12px; vertical-align: top; border-bottom: 1px solid var(--hairline); width: 30%; }
.atlas-chip { display: inline-block; font-size: 11.5px; color: var(--ink-2); margin: 0 9px 3px 0; line-height: 1.25; }
.atlas-chip .mi svg { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.atlas-empty { color: var(--hairline); }
.slide-clock {
  position: absolute; top: 30px; right: 36px;
  font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
}

/* --- Penlight metric glyphs ---------------------------------------------- */
.mi { display: inline-block; color: var(--accent); }
.mi svg { width: 19px; height: 19px; vertical-align: -3px; margin-right: 7px; }
.mi-domain svg { width: 40px; height: 40px; vertical-align: -6px; margin-right: 14px; }

/* --- mterkel panel block (domain intro) ---------------------------------- */
.mt-block { margin-top: 34px; max-width: 330px; }
.mt-block h4 { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.mt-src { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
.mt-row { display: grid; grid-template-columns: 72px 1fr 48px; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); margin-bottom: 5px; }
.mt-bar { background: #f0efec; border-radius: 3px; height: 11px; overflow: hidden; }
.mt-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px 4px 4px 3px; }
.mt-bar i.mt-world { background: #b9b5ad; }
.mt-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-size: 13.5px; }
.mt-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.metric-desc {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.35; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.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; }
}

/* --- ILGISA 2026 additions ------------------------------------------------ */
:root { --accent: #b3382b; --un: #f32b25; --chi: #2a6f97; }
.notes { display: none; }
body.shownotes .notes { display: block; position: absolute; left: 84px; right: 84px; bottom: 14px; background: #fff8e6; border: 1px solid #e3d9b8; padding: 10px 14px; font-size: 14px; line-height: 1.4; color: var(--ink-2); z-index: 5; max-height: 220px; overflow: auto; }
.notes-hint { position: absolute; top: 30px; right: 36px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.slide-head { margin-bottom: 22px; }
.slide-head h2 { font-size: 46px; }
.lede { font-size: 24px; font-weight: 300; line-height: 1.45; color: var(--ink-2); max-width: 1060px; margin-bottom: 18px; }
.body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.fig { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.fig img { max-width: 100%; max-height: 100%; object-fit: contain; border: 1px solid var(--hairline); }
.fig.plain img { border: none; }
.cols-img { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; flex: 1; min-height: 0; }
.cols-img.wide-img { grid-template-columns: 700px 1fr; }
.cols-img.wide-text { grid-template-columns: 1fr 440px; }
.cols-img > .fig { min-height: 0; }
.bullets li { font-size: 22px; margin-bottom: 14px; }
.bullets.tight li { font-size: 19px; margin-bottom: 9px; }
.caption { font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 8px; }
.tbl { border-collapse: collapse; width: 100%; font-size: 19px; align-self: start; }
.tbl th { text-align: left; font-weight: 500; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 12px; border-bottom: 2px solid var(--hairline); }
.tbl td { padding: 9px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.tbl.small { font-size: 16px; }
.tbl.small td { padding: 5px 10px; }
.tbl tr.hi td { background: #fff3f2; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -1px; margin-right: 10px; border: 1px solid rgba(0,0,0,.15); }
.qr-row { display: flex; gap: 44px; align-items: flex-end; margin-top: auto; }
.qr { text-align: center; font-size: 14px; color: var(--muted); }
.qr img { width: 150px; height: 150px; display: block; margin: 0 auto 6px; }
.title-slide .qr-row { position: absolute; right: 84px; bottom: 64px; margin: 0; }
.title-slide h1 { font-size: 66px; }
.title-slide .subtitle { max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 18px; }
.stat { border-top: 3px solid var(--accent); padding-top: 8px; }
.stat b { display: block; font-size: 44px; font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--ink-2); line-height: 1.35; display: block; margin-top: 4px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; flex: 1; min-height: 0; }
.three .fig { flex-direction: column; justify-content: flex-start; }
.comps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; flex: 1; }
.comps h3 { font-size: 19px; margin-bottom: 4px; }
.comps h3 small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.comps ol { list-style: none; counter-reset: c; }
.comps li { counter-increment: c; font-size: 17px; padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 8px; }
.comps li::before { content: counter(c); position: absolute; left: 0; color: var(--muted); font-size: 14px; top: 8px; }
.comps li .num { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.comps li .tier { font-size: 12.5px; color: var(--muted); }
.principles { list-style: none; counter-reset: p; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; flex: 1; align-content: center; }
.principles li { counter-increment: p; font-size: 24px; font-weight: 300; line-height: 1.4; padding-left: 70px; position: relative; }
.principles li::before { content: counter(p); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.principles li strong { display: block; font-weight: 500; font-size: 26px; margin-bottom: 4px; }
.conclusions li { font-size: 28px; margin-bottom: 22px; }
.conclusions li em { color: var(--muted); font-size: 20px; display: block; font-style: normal; }
.code { font-family: "SF Mono", Menlo, monospace; font-size: .92em; background: #f1efe9; padding: 1px 7px; border-radius: 4px; }
.naming { font-size: 22px; }
.naming td:first-child { color: var(--muted); font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.quote-big { font-size: 34px; font-weight: 300; line-height: 1.35; font-style: italic; max-width: 1000px; margin: auto 0; border-left: 10px solid var(--accent); padding-left: 26px; }
.quote-big small { display: block; font-size: 16px; color: var(--muted); font-style: normal; margin-top: 12px; }
.neighbours { columns: 2; column-gap: 40px; font-size: 18px; }
.neighbours li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--hairline); padding: 4px 0; break-inside: avoid; }
.neighbours .num { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.traj { list-style: none; }
.traj li { font-size: 20px; line-height: 1.35; padding: 8px 0 8px 30px; border-left: 3px solid var(--hairline); position: relative; margin-left: 8px; }
.traj li::before { content: ""; position: absolute; left: -8px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); }
.traj li small { display: block; color: var(--muted); font-size: 15px; }
.links-list { list-style: none; font-size: 22px; line-height: 1.7; }
.links-list a { text-decoration: none; border-bottom: 1px dotted var(--muted); }
.links-list small { color: var(--muted); font-size: 16px; display: block; line-height: 1.3; margin: -4px 0 10px; }
@media print { body.shownotes .notes { display: none; } .notes-hint { display: none; } }

/* --- presenter notes, board slide ----------------------------------------- */
.notes .pn { display: block; margin-top: 6px; color: #8a5a00; }
.board { display: grid; grid-template-columns: 1fr 1fr 400px; gap: 22px; flex: 1; min-height: 0; align-items: start; }
.board figure { margin: 0; flex-direction: column; justify-content: flex-start; }
.board figure img { width: 100%; height: auto; border: 1px solid var(--hairline); }
.board figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: left; align-self: stretch; }
.board figcaption b { color: var(--ink); font-weight: 500; }
