/* talks.bijan.app deck styles. A 1920×1080 canvas scaled to fit any screen. */
@font-face { font-family: Geist; src: url('fonts/geist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('fonts/geist-mono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #0f0f10; --paper-2: #18181a; --paper-3: #202023;
  --ink: #f1f1ee; --ink-2: #b4b4af; --ink-3: #8f8f8a;
  --rule: #2a2a2d; --rule-2: #3a3a3e;
  --accent: #8fb3ff; --accent-2: #5f8ff0; --accent-soft: rgba(143, 179, 255, 0.12);
  --warm: #f0b46b; --good: #7fd4a4; --warn: #f0b46b;
  --letterbox: #000; --on-accent: #0f0f10;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}
:root[data-theme="light"] {
  --paper: #fcfcfb; --paper-2: #f2f2ef; --paper-3: #e9e9e5;
  --ink: #141414; --ink-2: #4c4c49; --ink-3: #6a6a66;
  --rule: #e3e3df; --rule-2: #d0d0cb;
  --accent: #1a56c4; --accent-2: #1a56c4; --accent-soft: rgba(26, 86, 196, 0.08);
  --warm: #b4620c; --good: #1f7a4d; --warn: #b4620c;
  --letterbox: #e6e6e2; --on-accent: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--letterbox); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01'; overflow: hidden; }
body.cursor-hidden, body.cursor-hidden * { cursor: none !important; }

/* ---------- Stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; }
.deck { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: center center; transform: translate(-50%, -50%) scale(0.5); }
.slide {
  position: absolute; inset: 0; background: var(--paper); overflow: hidden;
  padding: 120px 140px 130px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s;
}
.slide.active { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.no-anim .slide, .no-anim .slide * { transition: none !important; animation: none !important; }
.slide > aside.notes { display: none; }

/* chrome inside each slide */
.slide .chrome-top { position: absolute; top: 52px; left: 140px; right: 140px; display: flex; justify-content: space-between; font: 500 20px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.slide .chrome-top .part { color: var(--accent); }
.slide .chrome-bottom { position: absolute; bottom: 48px; left: 140px; right: 140px; display: flex; justify-content: space-between; align-items: center; font: 400 21px/1 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.slide .chrome-bottom .num { font-variant-numeric: tabular-nums; }
.progress { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--accent); opacity: .8; transition: width .35s ease; }

/* ---------- Type ---------- */
.kicker { font: 500 22px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 28px; }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.03em; }
h1 { font-size: 132px; line-height: 1.0; letter-spacing: -0.045em; }
h2 { font-size: 80px; line-height: 1.04; max-width: 1500px; }
h3 { font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.lede { font-size: 38px; line-height: 1.4; color: var(--ink-2); max-width: 1380px; margin-top: 32px; letter-spacing: -0.01em; }
.body { font-size: 32px; line-height: 1.45; color: var(--ink-2); }
.small { font-size: 26px; line-height: 1.45; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.warm { color: var(--warm); }
.dim { color: var(--ink-3); }
.ink { color: var(--ink); }
strong, b { color: var(--ink); font-weight: 600; }
.mt-s { margin-top: 24px; } .mt-m { margin-top: 48px; } .mt-l { margin-top: 72px; } .mt-auto { margin-top: auto; }
.grow { flex: 1; min-height: 0; }
.row { display: flex; gap: 48px; }
.center { align-items: center; }
.spread { justify-content: space-between; }

/* icons */
.ico { display: inline-flex; width: 1em; height: 1em; flex: none; }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.5; }
.ico-badge { width: 72px; height: 72px; border-radius: 18px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 38px; flex: none; }

/* ---------- Components ---------- */
.cards { display: grid; gap: 28px; margin-top: 64px; }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 22px; padding: 40px 40px 44px; display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 34px; }
.card p { font-size: 27px; line-height: 1.45; color: var(--ink-2); }
.card .meta { font: 500 19px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card.hl { border-color: color-mix(in srgb, var(--accent) 45%, var(--rule)); background: linear-gradient(180deg, var(--accent-soft), transparent 70%), var(--paper-2); }

.list { list-style: none; margin: 48px 0 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.list li { display: flex; gap: 22px; align-items: baseline; font-size: 34px; line-height: 1.4; color: var(--ink-2); }
.list li .ico { color: var(--accent); font-size: 32px; transform: translateY(5px); }
.list li .k { font: 500 22px/1 var(--mono); color: var(--accent); min-width: 160px; letter-spacing: .04em; }

.quote { position: relative; font-size: 54px; line-height: 1.22; letter-spacing: -0.02em; color: var(--ink); max-width: 1500px; font-weight: 450; }
.quote::before { content: '“'; position: absolute; left: -64px; top: -18px; font-size: 140px; color: var(--accent); line-height: 1; font-weight: 400; }
.cite { margin-top: 28px; font: 400 24px/1.3 var(--mono); color: var(--ink-3); letter-spacing: .02em; }
.pull { border-left: 3px solid var(--accent); padding: 6px 0 6px 32px; font-size: 32px; line-height: 1.4; color: var(--ink); }
.pull .cite { margin-top: 12px; font-size: 22px; }

.stat-row { display: grid; gap: 28px; margin-top: 64px; }
.stat { border-top: 1px solid var(--rule-2); padding-top: 28px; }
.stat .v { font-size: 104px; line-height: 1; letter-spacing: -0.045em; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .v small { font-size: .45em; letter-spacing: -0.02em; color: var(--ink-2); margin-left: 6px; }
.stat .l { margin-top: 18px; font-size: 26px; line-height: 1.4; color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--rule-2); font: 500 23px/1 var(--mono); color: var(--ink-2); letter-spacing: .02em; background: var(--paper-2); white-space: nowrap; }
.pill.on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); background: var(--accent-soft); }
.pills { display: flex; flex-wrap: wrap; gap: 14px; }

/* horizontal timeline */
.tl { position: relative; margin-top: 90px; display: grid; gap: 0; }
.tl::before { content: ''; position: absolute; left: 0; right: 0; top: 49px; height: 1px; background: var(--rule-2); }
.tl .t { position: relative; padding-right: 28px; }
.tl .t .d { font: 500 21px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; height: 30px; }
.tl .t .dot { width: 15px; height: 15px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-3); margin: 12px 0 30px; position: relative; z-index: 1; }
.tl .t.on .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px var(--accent-soft); }
.tl .t.on .d { color: var(--accent); }
.tl .t h3 { font-size: 30px; }
.tl .t p { margin-top: 12px; font-size: 24px; line-height: 1.42; color: var(--ink-2); }
.tl .t.muted h3, .tl .t.muted p { color: var(--ink-3); }

/* vertical timeline */
.vtl { margin-top: 56px; display: flex; flex-direction: column; }
.vtl .r { display: grid; grid-template-columns: 210px 34px 1fr; align-items: start; gap: 0 26px; min-height: 76px; }
.vtl .r .d { font: 500 23px/1.5 var(--mono); color: var(--ink-3); text-align: right; letter-spacing: .04em; }
.vtl .r .rail { position: relative; height: 100%; display: flex; justify-content: center; }
.vtl .r .rail::before { content: ''; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule-2); }
.vtl .r:first-child .rail::before { top: 14px; }
.vtl .r:last-child .rail::before { bottom: calc(100% - 14px); }
.vtl .r .rail i { position: relative; width: 14px; height: 14px; margin-top: 10px; border-radius: 50%; border: 2px solid var(--ink-3); background: var(--paper); }
.vtl .r.on .rail i { background: var(--accent); border-color: var(--accent); }
.vtl .r.no .rail i { border-color: var(--warm); }
.vtl .r .c { font-size: 30px; line-height: 1.45; color: var(--ink-2); padding-bottom: 22px; }
.vtl .r .c b { color: var(--ink); font-weight: 600; }
.vtl .r .c .tag { margin-left: 12px; vertical-align: 4px; }

/* flow diagram */
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 72px; }
.flow .n { flex: 1; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 20px; padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow .n .ico { font-size: 40px; color: var(--accent); }
.flow .n h3 { font-size: 32px; }
.flow .n p { font-size: 24px; line-height: 1.42; color: var(--ink-2); }
.flow .n.hl { border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); background: linear-gradient(180deg, var(--accent-soft), transparent 75%), var(--paper-2); }
.flow .arr { width: 64px; flex: none; display: grid; place-items: center; color: var(--ink-3); font-size: 34px; }

/* bar chart */
.bars { display: flex; align-items: flex-end; gap: 26px; height: 420px; margin-top: 56px; border-bottom: 1px solid var(--rule-2); }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 14px; }
.bars .b .bar { width: 100%; border-radius: 10px 10px 0 0; background: var(--paper-3); position: relative; min-height: 6px; }
.bars .b.on .bar { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.bars .b .v { font: 500 28px/1 var(--mono); color: var(--ink-2); }
.bars .b.on .v { color: var(--ink); }
.bars-x { display: flex; gap: 26px; margin-top: 16px; }
.bars-x span { flex: 1; text-align: center; font: 400 27px/1 var(--mono); color: var(--ink-2); }

/* table */
.tbl { width: 100%; border-collapse: collapse; margin-top: 52px; font-size: 27px; }
.tbl th { text-align: left; font: 500 19px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 0 24px 20px 0; border-bottom: 1px solid var(--rule-2); }
.tbl td { padding: 22px 24px 22px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); line-height: 1.38; }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl tr:last-child td { border-bottom: 0; }

/* screenshot frame */
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--rule-2); background: var(--paper-2); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.shot img { display: block; width: 100%; height: auto; }
.shot .bar { height: 38px; display: flex; gap: 9px; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--rule-2); }
.shot .bar span { margin-left: 12px; font: 400 16px/1 var(--mono); color: var(--ink-3); }

/* code / terminal */
.term { background: #0a0a0b; border: 1px solid var(--rule-2); border-radius: 16px; padding: 30px 34px; font: 400 25px/1.6 var(--mono); color: #d8d8d4; white-space: pre; overflow: hidden; }
:root[data-theme="light"] .term { background: #151515; color: #e8e8e4; }
.term .c { color: #7f7f7a; } .term .a { color: #8fb3ff; } .term .g { color: #7fd4a4; } .term .w { color: #f0b46b; }

/* section divider */
.slide.section { justify-content: center; }
.slide.section .big { font: 500 300px/0.85 var(--sans); letter-spacing: -0.06em; color: var(--accent); opacity: .95; }
.slide.section h2 { font-size: 104px; margin-top: 36px; }
.slide.section .lede { margin-top: 30px; }
.slide.section::after { content: ''; position: absolute; right: -240px; top: -240px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 65%); pointer-events: none; }

/* title slide */
.slide.vc { justify-content: center; padding-top: 150px; }
.slide.title { justify-content: flex-end; padding-bottom: 150px; }
.slide.title h1 { max-width: 1600px; }
.slide.title .sub { font-size: 44px; color: var(--ink-2); margin-top: 36px; letter-spacing: -0.015em; }
.slide.title .who { display: flex; gap: 56px; margin-top: 72px; font: 400 24px/1.5 var(--mono); color: var(--ink-3); }
.slide.title .who b { display: block; font-family: var(--sans); font-size: 30px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--rule-2) 1.4px, transparent 1.4px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 80% 20%, #000 10%, transparent 70%); opacity: .7; }

/* fan-out diagram (map-reduce) */
.fan { display: grid; grid-template-columns: 300px 1fr 300px; align-items: center; gap: 0; margin-top: 56px; }
.fan .src, .fan .dst { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; }
.fan .src h3, .fan .dst h3 { font-size: 30px; }
.fan .src p, .fan .dst p { font-size: 23px; color: var(--ink-2); margin-top: 10px; line-height: 1.4; }
.fan .dst { border-color: color-mix(in srgb, var(--accent) 50%, var(--rule)); }
.fan svg { width: 100%; display: block; overflow: visible; }

/* build steps */
.step { transition: opacity .3s ease, transform .3s ease; }
.step.pending { opacity: 0; transform: translateY(12px); }

/* split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; flex: 1; min-height: 0; }
.split.wide-r { grid-template-columns: 0.85fr 1.15fr; }
.split.wide-l { grid-template-columns: 1.2fr 0.8fr; }

/* ---------- Overlays (audience) ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; display: none; }
.overlay.on { display: block; }
.blackout { background: #000; }
.help { background: rgba(0,0,0,.72); display: none; place-items: center; }
.help.on { display: grid; }
.help .panel { background: #161618; color: #eee; border: 1px solid #333; border-radius: 16px; padding: 28px 34px; font: 15px/1.6 var(--sans); min-width: 420px; }
.help .panel h4 { margin: 0 0 12px; font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #8fb3ff; }
.help kbd { font: 500 12px/1 var(--mono); border: 1px solid #444; border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; margin-right: 4px; color: #ddd; background: #222; }
.help table { border-collapse: collapse; } .help td { padding: 5px 18px 5px 0; }
.hud { position: fixed; right: 18px; bottom: 16px; z-index: 40; display: flex; gap: 8px; opacity: 0; transition: opacity .25s; }
.hud.on, .hud:focus-within { opacity: 1; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv :focus-visible { outline: 2px solid #8fb3ff; }
.hud button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(20,20,22,.8); color: #ddd; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.hud button .ico { font-size: 20px; }
.toast { position: fixed; left: 50%; top: 22px; transform: translateX(-50%); z-index: 60; background: rgba(20,20,22,.92); color: #eee; border: 1px solid #333; padding: 10px 16px; border-radius: 10px; font: 14px/1.4 var(--sans); opacity: 0; transition: opacity .25s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ---------- Embedded preview mode (used by presenter thumbnails) ---------- */
html.preview, html.preview body { background: var(--paper); }
html.preview .hud, html.preview .toast { display: none !important; }

/* ---------- Print: one slide per page ---------- */
@media print {
  @page { size: 1920px 1080px; margin: 0; }
  html, body { overflow: visible; background: var(--paper); height: auto; }
  .stage { position: static; display: block; }
  .deck { position: static; transform: none !important; width: 1920px; height: auto; }
  .slide { position: relative; opacity: 1 !important; visibility: visible !important; width: 1920px; height: 1080px; page-break-after: always; break-after: page; }
  .step.pending { opacity: 1; transform: none; }
  .hud, .toast, .overlay { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Presenter view ---------- */
html.presenter-mode, html.presenter-mode body { background: #0b0b0c; color: #ececea; overflow: hidden; }
.pv { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; font-family: var(--sans); color: #ececea; }
.pv button { font: 500 14px/1 var(--sans); color: #d6d6d2; background: #19191b; border: 1px solid #2c2c30; border-radius: 9px; padding: 9px 13px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.pv button:hover { background: #222225; color: #fff; }
.pv button.primary { background: #1f3a73; border-color: #2f56a6; color: #fff; }
.pv button.on { background: #3a1f1f; border-color: #6a3030; color: #ffb4b4; }
.pv button .ico { font-size: 17px; }
.pv-top { display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; padding: 14px 22px; border-bottom: 1px solid #1f1f22; }
.pv-title { font-size: 15px; color: #a8a8a4; display: flex; align-items: center; gap: 10px; }
.pv-dot { width: 8px; height: 8px; border-radius: 50%; background: #8fb3ff; }
.pv-meta { display: flex; gap: 18px; font: 500 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8fb3ff; }
.pv-meta [data-pv="count"] { color: #ececea; letter-spacing: .04em; }
.pv-timer { display: flex; align-items: center; gap: 10px; }
.pv-elapsed { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; min-width: 92px; text-align: right; }
.pv-clock { font-size: 15px; color: #8b8b87; margin-left: 10px; }
.pv-main { --pv-col: 61%; display: grid; grid-template-columns: minmax(0, var(--pv-col)) 14px minmax(320px, 1fr); gap: 0; padding: 18px 22px; min-height: 0; }
.pv-current, .pv-side { display: flex; flex-direction: column; min-height: 0; }
.pv-label { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8b8b87; margin: 2px 0 10px; display: flex; justify-content: space-between; align-items: center; }
.pv-frame { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid #2a2a2e; background: #000; }
.pv-stage { flex: none; min-height: 0; display: flex; align-items: flex-start; justify-content: flex-start; }
.pv-current .pv-frame { flex: none; }
.pv-side .pv-frame { flex: none; }
.pv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.pv-next { opacity: .92; }
.pv-end { position: absolute; inset: 0; display: none; place-items: center; font: 500 14px/1 var(--mono); color: #8b8b87; background: #111; }
.pv-next.end .pv-end { display: grid; }
.pv-notes-label { margin-top: 2px; }
.pv-fit { margin-left: auto; margin-right: 10px; color: #f0b46b; letter-spacing: .06em; text-transform: none; }
.pv-split { position: relative; flex: none; touch-action: none; }
.pv-split::after { content: ''; position: absolute; border-radius: 2px; background: #2a2a2e; transition: background .15s; }
.pv-split:hover::after, .pv-dragging .pv-split::after { background: #8fb3ff; }
.pv-split-col { cursor: col-resize; margin: 22px 0 0; }
.pv-split-col::after { left: 6px; width: 2px; top: 0; bottom: 0; }
.pv-split-row { cursor: row-resize; height: 22px; }
.pv-split-row::after { left: 0; right: 0; top: 10px; height: 2px; }
.pv-dragging, .pv-dragging * { user-select: none; }
.pv-dragging[data-drag="col"] { cursor: col-resize; } .pv-dragging[data-drag="row"] { cursor: row-resize; }
.pv-zoom { display: flex; gap: 6px; } .pv-zoom button { padding: 5px 9px; font-size: 12px; }
.pv-notes { flex: 1; min-height: 0; overflow-y: auto; overflow-wrap: anywhere; background: #121214; border: 1px solid #222226; border-radius: 12px; padding: 18px 22px; font-size: 24px; line-height: 1.5; color: #e4e4e0; }
.pv-notes h4 { margin: 0 0 12px; font: 500 0.62em/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8fb3ff; }
.pv-notes p { margin: 0 0 0.75em; }
.pv-notes ul { margin: 0 0 0.75em; padding-left: 1.1em; } .pv-notes li { margin-bottom: .3em; }
.pv-notes .cue { color: #f0b46b; font-weight: 500; }
.pv-notes .dim { color: #8b8b87; }
.pv-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 12px 22px 16px; border-top: 1px solid #1f1f22; }
.pv-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 1100px) { .pv-main { grid-template-columns: 1fr; overflow-y: auto; } .pv-split { display: none; } .pv-stage { flex: none; } .pv-frame { width: 100%; height: auto; } }

/* links inside slides: quiet until hovered */
.slide a { color: inherit; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.slide a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.slide .url a { border-bottom: 0; }
.slide .cite a { border-bottom: 0; }
.slide .cite a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Diagram Design skin (profile: najibninaba) ----------
   Inline SVG diagrams authored per the diagram-design plugin, at the presentation ramp
   scaled 1.5x for the 1920x1080 canvas. Roles map to deck tokens so diagrams follow the theme. */
.dd { display: block; width: 100%; height: auto; overflow: visible; }
.dd text { font-family: var(--sans); fill: var(--ink); }
.dd .dd-name { font: 600 30px/1 var(--sans); fill: var(--ink); }
.dd .dd-name-lg { font: 600 36px/1 var(--sans); fill: var(--ink); letter-spacing: -0.01em; }
.dd .dd-sub { font: 400 22px/1 var(--mono); fill: var(--ink-3); }
.dd .dd-tag { font: 500 16px/1 var(--mono); fill: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; }
.dd .dd-tag-accent { font: 500 16px/1 var(--mono); fill: var(--accent); letter-spacing: .14em; text-transform: uppercase; }
.dd .dd-label { font: 400 18px/1 var(--mono); fill: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.dd .dd-value { font: 500 26px/1 var(--mono); fill: var(--ink-2); }
.dd .dd-value-accent { font: 600 26px/1 var(--mono); fill: var(--accent); }
.dd .dd-axis { font: 400 22px/1 var(--mono); fill: var(--ink-3); }
.dd .dd-legend { font: 400 18px/1 var(--mono); fill: var(--ink-3); letter-spacing: .04em; }
.dd .dd-box { fill: var(--paper-2); stroke: var(--ink-3); stroke-width: 1.5; }
.dd .dd-box-focal { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.dd .dd-box-store { fill: var(--paper-3); stroke: var(--ink-3); stroke-width: 1.5; }
.dd .dd-box-ext { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dd .dd-box-muted { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: 1.5; }
.dd .dd-zone { fill: none; stroke: var(--rule-2); stroke-width: 1.5; stroke-dasharray: 6 6; }
.dd .dd-tagbox { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.dd .dd-tagbox-accent { fill: none; stroke: var(--accent); stroke-width: 1; }
.dd .dd-mask { fill: var(--paper); }
.dd .dd-mask-2 { fill: var(--paper-2); }
.dd .dd-wire { fill: none; stroke: var(--ink-2); stroke-width: 1.5; }
.dd .dd-wire-soft { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.dd .dd-wire-accent { fill: none; stroke: var(--accent); stroke-width: 2; }
.dd .dd-wire-dash { fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dd .dd-rule { stroke: var(--rule-2); stroke-width: 1.5; }
.dd .dd-baseline { stroke: var(--ink-3); stroke-width: 1.5; }
.dd .dd-dot { fill: var(--paper); stroke: var(--ink-3); stroke-width: 2; }
.dd .dd-dot-accent { fill: var(--accent); stroke: var(--accent); stroke-width: 2; }
.dd .dd-bar { fill: var(--paper-3); }
.dd .dd-bar-accent { fill: var(--accent); }
.dd .dd-fill-ink2 { fill: var(--ink-3); }
.dd .dd-arrowhead { fill: var(--ink-2); }
.dd .dd-arrowhead-soft { fill: var(--ink-3); }
.dd .dd-arrowhead-accent { fill: var(--accent); }
.ddw { margin-top: 48px; width: 100%; }
.ddw-col { margin-top: 0; }
.ddw svg.dd { width: 100%; height: auto; }
