/* DoGBench readout slides. Each slide is laid out at 1920 x 1080 CSS pixels. On screen,
   slides.js zooms them to the page width; in print, each slide fills one 1920 x 1080 page,
   which is how site/render_slides.py produces for-tw-deck.pdf from this page. */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/Geist-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #12141d;
  --body: #484c5d;
  --muted: #6b6f81;
  --faint: #8f93a4;
  --rule: #e4e6ed;
  --accent: #506aea;
  --accent-light: #7a8ef2;
  --night: #0b0d14;
  --night-card: #12141d;
  --night-rule: #242738;
  --night-text: #b7bbc9;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --zoom: 1;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: #f3f4f8;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: #3549b5; text-underline-offset: .16em; }
a:focus-visible, button:focus-visible { outline: 3px solid #9daeff; outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 30; background: #fff; padding: 8px 12px; }
.skip-link:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Page chrome. The top bar is the site-wide one from nav.css; this column lines up with it. */
.deck-intro { max-width: 1080px; margin: 0 auto; padding: 34px 24px 10px; }
.deck-intro h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: -.02em; }
.deck-intro p { margin: 0; max-width: 72ch; color: #596471; line-height: 1.55; }
.deck-intro .deck-status { margin-top: 12px; color: #9a2b2b; font-weight: 600; }
.deck { max-width: 1080px; margin: 0 auto; padding: 24px 24px 80px; display: flex; flex-direction: column; gap: 28px; }
.deck > .slide { zoom: var(--zoom); border-radius: 16px; box-shadow: 0 1px 2px rgba(20,24,28,.06), 0 18px 48px rgba(20,24,28,.10); }
.deck-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.deck-tools button { font: inherit; font-size: .87rem; font-weight: 600; color: #18202a; background: #fff; border: 1px solid #d7dae3; border-radius: 8px; padding: 7px 14px; cursor: pointer; }
.deck-tools button:hover { border-color: var(--faint); }
.deck-tools button[aria-pressed="true"] { background: #eef1fe; border-color: var(--accent); color: #3549b5; }
.deck-tools .deck-present { color: #fff; background: var(--accent); border-color: var(--accent); }
.deck-tools .deck-present:hover { background: #3d52b8; border-color: #3d52b8; }
.deck-tools a { font-size: .87rem; font-weight: 600; }
.deck-intro .deck-hint { margin-top: 10px; font-size: .87rem; }

/* Speaker notes: one aside after each slide, shown under it on the page */
.notes ul { margin: 0; padding-left: 1.2em; }
.notes li + li { margin-top: .5em; }
.deck > .notes { margin-top: -14px; padding: 18px 26px 20px; background: #fff; border: 1px solid #e4e8ef; border-radius: 12px; color: #2a2e3d; font-size: 1rem; line-height: 1.55; }
.deck > .notes::before { content: "Speaker notes"; display: block; margin-bottom: 8px; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .deck-intro, .deck { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 720px) {
  .deck > .slide { border-radius: 8px; }
}

/* Presenting: one slide at a time, scaled to fit the screen */
.deck.presenting { position: fixed; inset: 0; z-index: 50; max-width: none; margin: 0; padding: 0; display: grid; place-items: center; background: #000; cursor: pointer; }
.deck.presenting > .slide { display: none; border-radius: 0; box-shadow: none; }
.deck.presenting > .slide.current { display: flex; }
.deck.presenting > .notes { display: none; }

/* Speaker view (/slides?speaker): current slide, next slide, and notes */
.speaker body { background: #0f1117; }
.speaker .nav, .speaker .deck-intro, .speaker .skip-link { display: none; }
.speaker .deck { position: fixed; inset: 0; max-width: none; margin: 0; padding: 20px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: auto auto minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.speaker .deck > .slide, .speaker .deck > .notes { display: none; }
.speaker .deck > .slide { border-radius: 8px; box-shadow: none; }
.speaker .deck > .slide.current { display: flex; grid-column: 1; grid-row: 1 / 4; cursor: pointer; }
.speaker .deck > .slide.next { display: flex; grid-column: 2; grid-row: 2; }
.speaker .speaker-bar { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 15px; color: var(--night-text); }
.speaker-exit { font: 600 14px var(--font); color: #fff; background: transparent; border: 1px solid #3a3f55; border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.speaker-exit:hover { border-color: var(--accent-light); }
.speaker .deck > .notes.current { display: block; grid-column: 2; grid-row: 3; align-self: stretch; overflow: auto; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; font-size: 21px; line-height: 1.5; color: #f1f2f6; }
.speaker .deck > .notes::before { content: none; }
.speaker .notes li + li { margin-top: .6em; }

/* Slide frame */
.slide {
  position: relative;
  flex: none;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 100px 120px 90px;
  font-family: var(--font);
  line-height: normal;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.slide p, .slide h1, .slide h2, .slide h3, .slide h4 { margin: 0; }
.slide p, .slide h3, .slide h4 { text-wrap: pretty; }
.slide.dark { background: var(--night); color: #fff; }
.slide.light { background: #fff; color: var(--ink); }
.slide.soft { background: #f9fafb; color: var(--ink); }
.slide.accent { background: var(--accent); color: #fff; }

.eyebrow { font-family: var(--mono); font-size: 24px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.dark .eyebrow { color: var(--accent-light); }
.accent .eyebrow { color: #cdd4fb; }
.head { display: flex; flex-direction: column; gap: 18px; }
.head h2 { font-size: 64px; font-weight: 700; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.head-lg, .head-lg-gap, .head-wide { gap: 20px; }
.head-lg h2 { font-size: 68px; }
.head-wide { max-width: 1500px; }
.head-mid { max-width: 1200px; }
.gap-56 { gap: 56px; }
.slide-note { font-size: 24px; color: var(--muted); }
.mono { font-family: var(--mono); }

/* 1 Title */
.title-slide { padding: 110px 120px 90px; justify-content: space-between; }
.title-slide .wordmark { height: 34px; width: auto; align-self: flex-start; opacity: .85; }
.title-block { display: flex; flex-direction: column; gap: 34px; max-width: 1400px; }
.title-block .eyebrow { font-size: 26px; }
.title-block h1 { font-size: 92px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; text-wrap: pretty; }
.title-block .lede { font-size: 36px; line-height: 1.45; color: var(--night-text); max-width: 1180px; }
.title-foot { display: flex; gap: 128px; font-family: var(--mono); font-size: 24px; color: var(--faint); }

/* 2 Provenance */
.logo-strip { display: flex; align-items: center; justify-content: space-around; gap: 80px; border: 1px solid var(--rule); border-radius: 16px; background: #f9fafb; padding: 48px 80px; }
.logo-strip img { max-height: 130px; max-width: 300px; width: auto; height: auto; object-fit: contain; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; border-top: 1px solid var(--rule); padding-top: 48px; }
.two-col > div { display: flex; flex-direction: column; gap: 12px; }
.two-col h3 { font-size: 36px; font-weight: 600; }
.two-col p { font-size: 29px; line-height: 1.45; color: var(--body); }

/* 3 The task */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.step { border: 1px solid var(--rule); border-radius: 16px; padding: 48px; display: flex; flex-direction: column; gap: 20px; background: #fff; }
.step-label { font-family: var(--mono); font-size: 24px; color: var(--muted); }
.step h3 { font-size: 40px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.step p:last-child { font-size: 30px; line-height: 1.5; color: var(--body); }
.task-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 80px; border-top: 1px solid var(--rule); padding-top: 44px; }
.task-stats > div { display: flex; align-items: baseline; gap: 28px; font-size: 29px; color: var(--muted); line-height: 1.35; }
.big-num { font-size: 72px; font-weight: 700; letter-spacing: -.03em; color: var(--accent); line-height: normal; }

/* 4 Leaderboard */
.leaderboard-slide { padding: 52px 120px 40px; gap: 18px; }
.board-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.board { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.c-rank { width: 76px; } .c-logo { width: 68px; } .c-composite { width: 224px; } .c-delivered { width: 284px; } .c-patch { width: 254px; } .c-abstention { width: 300px; }
.board th, .board td { padding: 7px 0 7px 24px; vertical-align: middle; }
.board th:first-child, .board td:first-child { padding-left: 16px; }
.board th:last-child, .board td:last-child { padding-right: 16px; }
.board th { padding-top: 0; padding-bottom: 14px; vertical-align: bottom; text-align: left; font-family: var(--mono); font-size: 24px; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid #d7dae3; }
.board .num { text-align: right; }
.board th.key { color: var(--accent); }
.board td { border-bottom: 1px solid #eeeff4; font-family: var(--mono); font-size: 27px; color: var(--body); text-align: right; }
.board td.rank { text-align: left; font-size: 25px; font-weight: 600; color: var(--faint); }
.board td.logo { text-align: left; }
.board td.logo img { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.board td.logo img.bleed { width: 46px; height: 46px; margin: -3px; }
.board td.logo img.square { border-radius: 0; }
.board td.system { text-align: left; font-family: var(--font); }
.board td.system .name { font-size: 29px; font-weight: 600; color: var(--ink); margin-right: 14px; }
.board td.composite { font-size: 30px; font-weight: 600; color: var(--ink); }
.board tr.top td { background: #eef1fe; border-bottom-color: transparent; }
.board tr.top td:first-child { border-radius: 8px 0 0 8px; color: var(--accent); }
.board tr.top td:last-child { border-radius: 0 8px 8px 0; }
.board tr.top .name { font-weight: 700; }
.tag { font-family: var(--mono); font-size: 24px; color: var(--muted); }
.tag.cloud, .board-note .cloud { color: var(--accent); }
.board-note { font-size: 24px; line-height: 1.45; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 18px; }
.board-note strong { color: var(--ink); font-weight: 600; }

/* 5 P0-clean delivery */
.p0-slide { padding: 80px 120px 64px; gap: 32px; }
.columns { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.columns-bars, .columns-labels { display: grid; grid-template-columns: repeat(var(--count, 11), 1fr); gap: 14px; }
.columns-bars { flex: 1; min-height: 0; align-items: stretch; border-bottom: 1px solid var(--night-rule); }
.columns .bar-cell { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; }
.columns .bar-value { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--night-text); }
.columns .bar { width: 100%; height: calc((100% - 46px) * var(--r)); background: #2f3552; border-radius: 6px 6px 0 0; }
.columns .bar-label { text-align: center; line-height: 1.2; display: flex; flex-direction: column; gap: 4px; }
.columns .bar-label span:first-child { font-size: 24px; font-weight: 600; color: var(--night-text); }
.columns .bar-label .tag { color: var(--faint); }
.columns .bar-label .tag.cloud, .columns .human .tag { color: var(--accent-light); }
.columns .human .bar-value, .columns .human.bar-label span:first-child { color: #fff; }
.columns .human.bar-label span:first-child { font-weight: 700; }
.columns .human .bar { background: var(--accent); }

/* 6 Abstention */
.abstention-slide { padding: 66px 120px 56px; gap: 26px; }
.abstention-body { flex: 1; min-height: 0; display: flex; gap: 72px; }
.hbars { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
#abstention-chart { display: flex; flex-direction: column; gap: 16px; }
.hbar, .hbars-note { display: grid; grid-template-columns: 380px 1fr 100px; gap: 28px; align-items: center; }
.hbar .name { font-size: 27px; font-weight: 600; margin-right: 12px; }
.hbar .track { height: 30px; background: #eeeff4; border-radius: 4px; }
.hbar .fill { height: 30px; width: var(--w); background: var(--accent); border-radius: 4px; }
.hbar .value { font-family: var(--mono); font-size: 28px; font-weight: 600; text-align: right; }
.hbars-note { display: block; padding: 8px 128px 0 408px; font-size: 24px; color: var(--muted); }
.why { width: 400px; display: flex; flex-direction: column; gap: 16px; }
.why h3 { font-size: 30px; font-weight: 600; line-height: 1.3; }
.why > div { border-top: 1px solid #d7dae3; padding-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.why h4 { font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--accent); }
.why p { font-size: 24px; line-height: 1.4; color: var(--body); }

/* 7 Failure modes */
.modes-slide { padding: 62px 120px 48px; gap: 22px; }
.modes { flex: 1; display: flex; flex-direction: column; }
.mode { display: grid; grid-template-columns: 420px 1fr 130px; gap: 40px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mode h3 { font-size: 30px; font-weight: 600; }
.mode p { font-size: 25px; line-height: 1.35; color: var(--body); }
.mode-value { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-family: var(--mono); font-size: 32px; font-weight: 600; color: var(--accent); }
.meter { display: block; width: 100%; height: 6px; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 0 / var(--w, 0) 100%, #eeeff4; }

/* 8 The reader's task */
.reader-slide { padding: 70px 120px 60px; gap: 34px; }
.reader-body { display: flex; gap: 72px; align-items: stretch; }
.reader-main { flex: 1; display: flex; flex-direction: column; gap: 32px; }
.reader-lede { font-size: 32px; line-height: 1.5; color: #2a2e3d; }
.example { background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 44px 48px; display: flex; flex-direction: column; gap: 22px; font-size: 30px; line-height: 1.45; color: var(--ink); }
.example .example-label { font-family: var(--mono); font-size: 24px; line-height: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.example .example-point { font-weight: 600; color: var(--accent); }
.reader-aside { width: 520px; background: var(--night-card); color: #fff; border-radius: 16px; padding: 44px; display: flex; flex-direction: column; gap: 24px; }
.reader-aside h3 { font-size: 32px; font-weight: 600; line-height: 1.3; }
.reader-aside > p { font-size: 27px; line-height: 1.5; color: var(--night-text); }
.aside-stats { display: flex; gap: 44px; border-top: 1px solid var(--night-rule); padding-top: 30px; }
.aside-stats > div { display: flex; flex-direction: column; gap: 6px; }
.aside-stats span:first-child { font-family: var(--mono); font-size: 42px; font-weight: 600; color: var(--accent-light); }
.aside-stats span:last-child { font-size: 24px; color: var(--night-text); line-height: 1.35; }
.reader-aside > .aside-close { line-height: 1.45; color: #e8eaf2; border-top: 1px solid var(--night-rule); padding-top: 24px; }

/* 9 Root causes */
.roots-slide { padding: 70px 120px 56px; gap: 26px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.head-row > p { font-size: 24px; line-height: 1.45; color: var(--faint); max-width: 400px; }
.roots { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 28px; }
.roots > div { border: 1px solid var(--night-rule); border-radius: 16px; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; background: var(--night-card); }
.roots span { font-family: var(--mono); font-size: 56px; font-weight: 600; color: var(--accent-light); }
.roots h3 { font-size: 32px; font-weight: 600; line-height: 1.3; }

/* 10 Not the usual suspects */
.suspects-slide { gap: 72px; }
.suspects { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-content: start; }
.suspects > div { display: flex; flex-direction: column; gap: 18px; border-top: 3px solid var(--ink); padding-top: 32px; }
.suspects span { font-size: 110px; font-weight: 700; letter-spacing: -.03em; }
.suspects .key span { color: var(--accent); }
.suspects p { font-size: 30px; line-height: 1.45; color: var(--body); }

/* 11 Implications */
.implications-slide { gap: 52px; }
.implications { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 64px; }
.implications > div { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid rgba(255,255,255,.35); padding-top: 28px; }
.implications h3 { font-size: 34px; font-weight: 600; line-height: 1.25; }
.implications p { font-size: 28px; line-height: 1.5; color: #e6eafd; }

/* Print: one slide per 1920 x 1080 page, without the notes. With print-notes
   (/slides?notes), each letter page holds one slide and its notes instead. */
@page { size: 1920px 1080px; margin: 0; }
@page notes { size: 8.5in 11in; margin: .55in .6in; }
@media print {
  body { background: none; }
  .nav, .deck-intro, .skip-link { display: none; }
  .deck { display: block; max-width: none; margin: 0; padding: 0; }
  .deck > .slide { zoom: 1; border-radius: 0; box-shadow: none; break-after: page; }
  .deck > .slide:last-of-type { break-after: auto; }
  .deck > .notes { display: none; }
  .print-notes .deck > .slide { page: notes; zoom: .365; break-after: avoid; border: 3px solid #d7dae3; }
  .print-notes .deck > .notes { display: block; page: notes; break-after: page; margin: 26px 0 0; padding: 0; background: none; border: 0; font-size: 12pt; line-height: 1.5; color: var(--ink); }
  .print-notes .deck > .notes:last-child { break-after: auto; }
}
