/* Deck theme, 1600 x 900. Chrome follows the PhD-review deck (serif titles, teal/orange
   accents, numbered findings, "So:" boxes); plots keep the paper's palette. */
@font-face { font-family: "Inter"; font-weight: 300; src: url(../lib/fonts/inter-300.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; src: url(../lib/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-style: italic; src: url(../lib/fonts/inter-400i.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; src: url(../lib/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: italic; src: url(../lib/fonts/inter-500i.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; src: url(../lib/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; src: url(../lib/fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; src: url(../lib/fonts/inter-800.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 600; src: url(../lib/fonts/source-serif-600.woff2) format("woff2"); }
@font-face { font-family: "Source Serif"; font-weight: 700; src: url(../lib/fonts/source-serif-700.woff2) format("woff2"); }

:root {
  --ink: #1f2d33; --muted: #6b7377; --card: #e9f1f0; --line: #c9d6d4;
  --teal: #13897d; --orange: #e05a2b; --dark: #0f2a33;
  --hf: #009099; --lfhf: #c0443d; --au: #2f6fc0; --eu: #d9822b; --tu: #1d6b3a;
}

.reveal-viewport { background: #fff; }
.reveal { font-family: "Inter", "Helvetica Neue", Arial, sans-serif; font-size: 30px; color: var(--ink); }
.reveal .slides { text-align: left; }
.reveal .slides section { padding: 34px 70px 0 70px; box-sizing: border-box; height: 100%; }
.reveal h1, .reveal h2, .reveal h3 { color: var(--ink); margin: 0; text-transform: none; }
.reveal h1 { font-family: "Source Serif", Georgia, serif; font-size: 70px; font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
.reveal h2 { font-family: "Source Serif", Georgia, serif; font-size: 52px; font-weight: 700; line-height: 1.08; letter-spacing: -0.005em; }
.reveal h3 { font-family: "Source Serif", Georgia, serif; font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.reveal p { margin: 0 0 12px 0; line-height: 1.3; }
.reveal strong, .reveal b { font-weight: 700; }
.reveal ul, .reveal ol { margin: 0; padding-left: 1.1em; }
.reveal li { margin: 0 0 10px 0; line-height: 1.3; }
.reveal sup { vertical-align: super; font-size: 0.6em; line-height: 0; }
.reveal .katex { font-size: 1.05em; }
.reveal img { margin: 0; max-width: 100%; }

.sub { font-style: italic; font-weight: 500; color: var(--teal); font-size: 27px; margin: 8px 0 0 0; }
.hf { color: var(--hf); font-weight: 700; } .lfhf { color: var(--lfhf); font-weight: 700; }
.au { color: var(--au); font-weight: 700; } .eu { color: var(--eu); font-weight: 700; } .tu { color: var(--tu); font-weight: 700; }
.teal { color: var(--teal); } .orange { color: var(--orange); } .muted { color: var(--muted); }
.small { font-size: 22px; color: var(--muted); }

/* RQ tracker (top right) */
.rq-track { position: absolute; top: 96px; right: 70px; display: flex; gap: 10px; }
.rq-track span { width: 42px; height: 42px; border-radius: 50%; background: var(--card); color: var(--muted);
  font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rq-track span.on { background: var(--orange); color: #fff; }

/* Result slides: figure left, numbered findings right */
.result { display: grid; grid-template-columns: 880px 1fr; gap: 46px; margin-top: 22px; align-items: start; }
.findings { display: flex; flex-direction: column; gap: 22px; }
.fd { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.fd .n { width: 48px; height: 48px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 700;
  font-size: 22px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.fd .n.bad { background: var(--orange); }
.fd b { display: block; font-size: 28px; line-height: 1.2; }
.fd span { display: block; font-size: 24px; color: var(--muted); line-height: 1.3; margin-top: 3px; }
.so { background: var(--card); border-radius: 12px; padding: 18px 22px; font-size: 27px; line-height: 1.32; margin-top: 8px; }
.so .k { color: var(--orange); font-weight: 700; }
.foot { position: absolute; left: 70px; right: 200px; bottom: 14px; font-size: 18px; color: var(--muted); line-height: 1.3; }
.reveal .slide-number { background: transparent; color: #9aa3a6; font-family: "Inter", sans-serif; font-size: 17px; right: 22px; bottom: 12px; }
.reveal .progress { height: 4px; color: var(--teal); }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.card { background: var(--card); border-radius: 16px; padding: 24px 26px; }
.card .icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card .icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.card .head .icon { margin: 0; }
.card p { font-size: 27px; margin-bottom: 14px; }
.rqs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 24px; }
.rqs div { border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; font-size: 25px; line-height: 1.3; }
.rqs b { color: var(--orange); margin-right: 6px; }
.unc-card { background: var(--card); border-radius: 12px; padding: 16px 20px; border-left: 7px solid var(--teal); }
.unc-card h4 { margin: 0 0 6px 0; font-family: "Source Serif", Georgia, serif; font-size: 27px; }
.unc-card p { font-size: 21px; margin: 0 0 8px 0; }
.unc-card .pr { color: var(--muted); font-size: 20px; margin: 0; }
.eq-label { font-size: 23px; color: var(--muted); margin: 0; }
.eq-label b { color: var(--ink); }

.d3fig svg { width: 100%; height: auto; display: block; overflow: visible; font-family: "Inter", sans-serif; }
.d3fig .ax path.domain, .d3fig .ax line { stroke: #444; stroke-width: 1.3; }
.d3fig .ax text { font-size: 19px; fill: #444; font-family: "Inter", sans-serif; }
.step { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Dark title / closing slides */
section.dark, section.dark h1, section.dark h2, section.dark p { color: #fff; }
section.dark .kick { color: var(--orange); font-size: 24px; font-weight: 700; letter-spacing: 0.3em; margin-bottom: 24px; }
section.dark .authors { font-size: 32px; color: #b9cdd2; margin-top: 46px; }
section.dark .box { background: #173b46; border-radius: 14px; padding: 22px 26px; }
section.dark .box b { display: block; font-size: 30px; } section.dark .box span { color: #b9cdd2; font-size: 24px; }

/* Data bars */
.bar-row { display: grid; grid-template-columns: 270px 1fr; align-items: center; gap: 16px; margin-bottom: 18px; }
.bar-label { font-size: 28px; line-height: 1.15; } .bar-label small { display: block; font-size: 20px; color: var(--muted); }
.bar-track { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 26px; }
.bar { height: 52px; border-radius: 8px; width: 0; transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
section.present .bar { width: var(--w); }

/* Entry and fragment animations for HTML elements */
.reveal .slides section.present .enter { animation: up .8s cubic-bezier(.2,.7,.2,1) both; }
.reveal .slides section.present .enter.d1 { animation-delay: .15s; } .reveal .slides section.present .enter.d2 { animation-delay: .35s; }
.reveal .slides section.present .enter.d3 { animation-delay: .55s; } .reveal .slides section.present .enter.d4 { animation-delay: .75s; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.reveal .slides section .fragment.fade-up { transform: translateY(14px); transition: all .55s cubic-bezier(.2,.7,.2,1); }
.reveal .slides section .fragment.fade-up.visible { transform: none; }

html.print-pdf .enter { animation: none !important; }
html.print-pdf .bar { width: var(--w); transition: none; }
html.print-pdf .reveal .slides section { padding: 34px 70px 0 70px !important; height: 900px !important; }
