/* PhD defense presentation, in the style of the use-case videos:
   navy header with amber kicker, light page, white cards, Montserrat.
   Every slide is laid out on a 1920 x 1080 canvas and scaled to the screen. */

@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Regular.otf") format("opentype"); font-weight: 400; font-display: block; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Medium.otf") format("opentype"); font-weight: 500; font-display: block; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-SemiBold.otf") format("opentype"); font-weight: 600; font-display: block; }
@font-face { font-family: "Montserrat"; src: url("fonts/Montserrat-Bold.otf") format("opentype"); font-weight: 700; font-display: block; }

:root {
  --page: #f3f3f3; --card: #ffffff; --ink: #262626; --mute: #68707a; --faint: #c9cdd1;
  --navy: #063669; --amber: #fbb515; --dot-off: #4d6c97; --chip: #e7edf5;
  --ok: #1e8c3c; --bad: #c82828; --deg: #e8912d; --blue: #1f6fb2; --road: #3e434b; --mg: #a8237e;
  --math: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #11151c; overflow: hidden; }
body { font-family: "Montserrat", "Segoe UI", Arial, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
button { font: inherit; }
a { color: inherit; }

/* ------------------------------------------------------------ stage */
#stage { position: absolute; left: 50%; top: 50%; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--page); overflow: hidden; }
.slide { position: absolute; inset: 0; background: var(--page); visibility: hidden; }
.slide.current { visibility: visible; }
body.blank #stage::after { content: ""; position: absolute; inset: 0; background: #000; z-index: 100; }

/* ------------------------------------------------------------ header (as in the videos) */
.hdr { position: absolute; left: 0; top: 0; width: 1920px; height: 123px; background: var(--navy); z-index: 5; }
.hdr .kicker { position: absolute; left: 0; right: 0; top: 18px; text-align: center; font-weight: 600; font-size: 23px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.hdr .kicker a { text-decoration: none; cursor: pointer; }
.hdr .kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hdr .title { position: absolute; left: 60px; right: 60px; top: 50px; height: 56px; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 43px; line-height: 1.1; color: #fff; white-space: nowrap; }
.hdr .mini { position: absolute; right: 52px; top: 22px; display: flex; gap: 6px; align-items: center; }
.hdr .mini button { width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hdr .mini button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-off); }
.hdr .mini button.on::before { width: 13px; height: 13px; background: #fff; }
.hdr .mini button:hover::before { background: #9fb6d4; }
.hdr .contrib { position: absolute; left: 52px; top: 14px; display: flex; gap: 8px; }

/* contribution badge: links to the contributions slide */
.cbadge { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 30px; padding: 0 10px; border-radius: 8px; border: 2px solid var(--amber); color: var(--amber); font-weight: 700; font-size: 18px; text-decoration: none; background: transparent; cursor: pointer; }
.cbadge:hover { background: var(--amber); color: var(--navy); }
.cbadge.solid { background: var(--amber); color: var(--navy); }

/* ------------------------------------------------------------ footer */
.ftr { position: absolute; left: 0; right: 0; bottom: 0; height: 62px; z-index: 6; pointer-events: none; }
.ftr .who { position: absolute; left: 0; right: 0; top: 15px; text-align: center; font-weight: 600; font-size: 23.5px; color: var(--navy); white-space: pre; }
.ftr .secs, .ftr .nav { pointer-events: auto; position: absolute; top: 12px; display: flex; align-items: center; gap: 6px; }
.ftr .secs { left: 30px; gap: 3px; }
.ftr .nav { right: 36px; gap: 10px; }
.secs button { min-width: 32px; height: 32px; border-radius: 8px; border: 2px solid transparent; background: transparent; color: #8a96a6; font-weight: 700; font-size: 15px; cursor: pointer; padding: 0 6px; font-family: inherit; }
.secs button:hover { border-color: var(--navy); color: var(--navy); }
.secs button.on { background: var(--navy); color: #fff; }
.secs button.part { margin-left: 6px; }
.nav .ref { font-size: 17px; font-weight: 600; color: var(--mute); margin-right: 4px; white-space: nowrap; }
.nav .num { font-size: 19px; font-weight: 700; color: var(--navy); min-width: 74px; text-align: right; white-space: nowrap; }
.nav button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; padding: 0; }
.nav button:hover { background: var(--navy); color: #fff; }
.nav button:disabled { opacity: 0.35; cursor: default; background: #fff; color: var(--navy); }
.nav button svg { width: 18px; height: 18px; }
.nav button.ret { width: auto; padding: 0 12px; font-weight: 700; font-size: 16px; gap: 6px; display: inline-flex; align-items: center; }
.progress { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: #dfe3e8; z-index: 7; }
.progress i { display: block; height: 100%; background: var(--amber); }

/* on navy slides */
.slide.dark { background: var(--navy); }
.slide.dark .ftr .who { color: #c7d3e3; }
.slide.dark .secs button { color: #6f8db3; }
.slide.dark .secs button:hover { border-color: #fff; color: #fff; }
.slide.dark .secs button.on { background: #fff; color: var(--navy); }
.slide.dark .nav .num, .slide.dark .nav .ref { color: #c7d3e3; }
.slide.dark .nav button { background: transparent; border-color: #c7d3e3; color: #fff; }
.slide.dark .nav button:hover { background: #fff; color: var(--navy); }
.slide.dark .progress { background: #23497a; }

/* video slides: the video is the slide; only the corners carry navigation */
.slide.video { background: var(--page); }
.slide.video video { position: absolute; inset: 0; width: 1920px; height: 1080px; object-fit: contain; background: var(--page); cursor: pointer; }
.slide.video .ftr .who { display: none; }
.vstep { position: absolute; left: 96px; bottom: 148px; z-index: 8; font-size: 17px; font-weight: 700; color: var(--navy); background: #fffffff0; padding: 6px 14px; border-radius: 10px; box-shadow: 0 4px 14px rgba(6,54,105,0.14); opacity: 0; pointer-events: none; transition: opacity 220ms; }
.vui .slide.video.current .vstep { opacity: 1; }
.vui .slide.video.current:has(.scrub .track:hover) .vstep { opacity: 0; }

/* scene bar: pause and play, drag to any time, one dot per scene; shown when the mouse moves */
.scrub { position: absolute; left: 96px; right: 96px; bottom: 74px; height: 64px; z-index: 8; display: flex; align-items: center; gap: 18px; padding: 0 24px 0 10px; background: #fffffff0; border-radius: 18px; box-shadow: 0 8px 28px rgba(6,54,105,0.2); opacity: 0; pointer-events: none; transition: opacity 220ms; }
.vui .slide.video.current .scrub { opacity: 1; pointer-events: auto; }
.scrub .pp { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; background: var(--navy); color: #fff; display: grid; place-items: center; cursor: pointer; }
.scrub .pp:hover { background: var(--amber); color: var(--navy); }
.scrub .pp svg { width: 22px; height: 22px; }
.scrub .pp .i-pause, .scrub.playing .pp .i-play { display: none; }
.scrub.playing .pp .i-pause { display: block; }
.scrub .tc { flex: none; min-width: 54px; font-size: 18px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.scrub .tc.end { color: var(--mute); text-align: right; }
.scrub .track { position: relative; flex: 1; height: 48px; cursor: pointer; touch-action: none; }
.scrub .rail, .scrub .fill { position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; pointer-events: none; }
.scrub .rail { right: 0; background: #dfe3e8; }
.scrub .fill { width: 0; background: var(--navy); }
.scrub .dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; padding: 0; border-radius: 50%; border: 3px solid #fff; background: #b4c0cf; box-shadow: 0 1px 4px rgba(0,0,0,0.18); cursor: pointer; transition: transform 120ms; }
.scrub .dot.past { background: var(--navy); }
.scrub .dot.on { transform: scale(1.3); }
.scrub .dot:hover { background: var(--amber); transform: scale(1.45); }
.scrub .knob { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--amber); border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3); pointer-events: none; z-index: 2; }
.scrub .tip { position: absolute; bottom: 54px; left: 0; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: 17px; font-weight: 600; padding: 7px 14px; border-radius: 9px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity 120ms; }
.scrub .track:hover .tip { opacity: 1; }

/* ------------------------------------------------------------ body and blocks */
.body { position: absolute; left: 64px; right: 64px; top: 152px; bottom: 76px; display: flex; flex-direction: column; justify-content: center; gap: 26px; font-size: 25px; line-height: 1.45; font-weight: 500; }
.row { display: flex; gap: 28px; min-height: 0; }
.col { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.grow { flex: 1 1 0; min-height: 0; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.center { align-items: center; justify-content: center; }

.card { background: var(--card); border-radius: 24px; padding: 26px 32px; box-shadow: 0 6px 24px rgba(0,0,0,0.055), 0 2px 8px rgba(0,0,0,0.04); min-width: 0; }
.card.tight { padding: 18px 22px; }
.card.flat { box-shadow: none; border: 2px solid #e2e6eb; }
.card.navy { background: var(--navy); color: #fff; }
.card.navy h3 { color: var(--amber); }
.card.accent { border-left: 10px solid var(--navy); }
.card.ok { border-left: 10px solid var(--ok); }
.card.bad { border-left: 10px solid var(--bad); }
.card.deg { border-left: 10px solid var(--deg); }
.card.amber { border-left: 10px solid var(--amber); }
.card h3 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; font-weight: 700; color: var(--navy); }
.card h4 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; color: var(--mute); }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.small { font-size: 21px; line-height: 1.45; }
.xs { font-size: 18px; line-height: 1.4; }
.mute { color: var(--mute); }
.navyt { color: var(--navy); }
.okt { color: var(--ok); } .badt { color: var(--bad); } .degt { color: var(--deg); }
b, strong { font-weight: 700; }

ul.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
ul.list li { position: relative; padding-left: 30px; }
ul.list li::before { content: ""; position: absolute; left: 4px; top: 0.56em; width: 11px; height: 11px; border-radius: 3px; background: var(--amber); }
ul.list.navyb li::before { background: var(--navy); }
ol.nums { margin: 0; padding: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 12px; }
ol.nums li { counter-increment: n; position: relative; padding-left: 52px; }
ol.nums li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 19px; display: grid; place-items: center; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px; border-radius: 10px; color: #fff; background: var(--navy); font-weight: 600; font-size: 20px; line-height: 1.3; white-space: nowrap; }
.pill.ok { background: var(--ok); } .pill.bad { background: var(--bad); } .pill.deg { background: var(--deg); } .pill.amber { background: var(--amber); color: var(--navy); } .pill.gray { background: #8b96a3; }
.pill.line { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

.num-badge { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 26px; background: var(--navy); }
.num-badge.c1 { background: var(--ok); } .num-badge.c2 { background: var(--blue); } .num-badge.c3 { background: var(--navy); } .num-badge.c4 { background: var(--deg); }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 50px; font-weight: 700; color: var(--navy); line-height: 1.05; white-space: nowrap; }
.stat .v.ok { color: var(--ok); } .stat .v.bad { color: var(--bad); }
.stat .l { font-size: 20px; line-height: 1.4; color: var(--ink); }

.eq { font-family: var(--math); font-style: normal; font-size: 33px; line-height: 1.5; color: var(--ink); }
.eq i, i.m { font-family: var(--math); font-style: italic; }
.eqbox { background: #f6f8fb; border-radius: 16px; padding: 14px 24px; text-align: center; }
.eq sub, .eq sup { font-size: 0.62em; }
.eq .op { font-style: normal; padding: 0 0.15em; }

.quote { font-size: 32px; line-height: 1.45; font-weight: 500; font-style: italic; color: var(--navy); border-left: 8px solid var(--amber); padding: 6px 0 6px 30px; }
.takeaway { background: var(--card); border-radius: 28px; padding: 24px 44px; text-align: center; font-size: 29px; line-height: 1.45; font-weight: 500; box-shadow: 0 6px 24px rgba(0,0,0,0.055), 0 2px 8px rgba(0,0,0,0.04); }
.takeaway b { color: var(--navy); }

.fig { display: flex; align-items: center; justify-content: center; min-height: 0; }
.fig img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.cap { font-size: 18px; line-height: 1.4; color: var(--mute); margin-top: 8px; }

table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 21px; line-height: 1.35; }
table.tbl th { background: var(--navy); color: #fff; font-weight: 600; text-align: left; padding: 12px 16px; }
table.tbl th:first-child { border-top-left-radius: 14px; }
table.tbl th:last-child { border-top-right-radius: 14px; }
table.tbl td { background: #fff; padding: 11px 16px; border-bottom: 1px solid #e6e9ee; vertical-align: top; }
table.tbl tr:last-child td:first-child { border-bottom-left-radius: 14px; }
table.tbl tr:last-child td:last-child { border-bottom-right-radius: 14px; }
table.tbl td.c, table.tbl th.c { text-align: center; }
table.tbl tr.hl td { background: #eef6f0; }
table.tbl tr.sep td { border-top: 3px solid #d5dbe3; }
table.tbl td b { color: var(--navy); }

/* links between slides */
a.go, button.go { color: var(--navy); font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--amber); cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; padding: 0; }
a.go:hover, button.go:hover { background: #fff3d6; }
.bk { position: absolute; right: 64px; top: 136px; z-index: 4; display: flex; gap: 10px; }
.bk a { font-size: 16px; font-weight: 700; color: var(--mute); text-decoration: none; border: 2px solid #cfd5dd; border-radius: 8px; padding: 3px 10px; background: #fff; cursor: pointer; }
.bk a:hover { color: var(--navy); border-color: var(--navy); }
.bk + .body { top: 176px; }

/* build steps */
.slide [data-step], .slide [data-until] { transition: opacity 260ms ease; }
.slide [data-until].hidden { opacity: 0; pointer-events: none; }
.slide [data-step].hidden { opacity: 0; pointer-events: none; }
.slide [data-step].dim { opacity: 0.25; }

/* ------------------------------------------------------------ title slide */
.ttl { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 640px; }
.ttl .left { padding: 120px 90px 90px 110px; display: flex; flex-direction: column; }
.ttl .lbl { font-size: 24px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.ttl h1 { margin: 26px 0 0; font-size: 76px; line-height: 1.12; font-weight: 700; color: var(--navy); }
.ttl .rule { width: 160px; height: 6px; background: var(--amber); border-radius: 3px; margin: 40px 0 34px; }
.ttl .author { font-size: 36px; font-weight: 700; color: var(--ink); }
.ttl .aff { margin-top: 12px; font-size: 22px; line-height: 1.5; color: var(--mute); font-weight: 500; }
.ttl .date { margin-top: 26px; font-size: 24px; font-weight: 600; color: var(--navy); }
.ttl .logos { margin-top: auto; display: flex; align-items: center; gap: 56px; }
.ttl .logos img { height: 70px; width: auto; }
.ttl .jury { background: var(--navy); color: #fff; padding: 96px 56px 80px; display: flex; flex-direction: column; gap: 4px; }
.ttl .jury h2 { margin: 0 0 18px; font-size: 22px; letter-spacing: 0.14em; color: var(--amber); font-weight: 700; }
.ttl .jury .p { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 9px 0; border-bottom: 1px solid #22497a; }
.ttl .jury .p:last-child { border-bottom: 0; }
.ttl .jury .r { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: #9fb6d4; font-weight: 600; padding-top: 4px; }
.ttl .jury .n { font-size: 22px; font-weight: 700; line-height: 1.25; }
.ttl .jury .a { font-size: 16px; color: #c7d3e3; font-weight: 500; }

/* ------------------------------------------------------------ outline and section slides */
.toc { display: flex; flex-direction: column; gap: 6px; }
.toc .part { font-size: 18px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin: 16px 0 4px 6px; }
.toc a { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 18px; padding: 12px 20px; border-radius: 16px; text-decoration: none; cursor: pointer; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.toc a:hover { outline: 3px solid var(--amber); }
.toc .n { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 25px; display: grid; place-items: center; }
.toc .t { font-size: 29px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.toc .t small { display: block; font-size: 19px; color: var(--mute); font-weight: 500; margin-top: 2px; }
.toc .cs { display: flex; gap: 8px; }
.toc .cs .cbadge { color: var(--navy); border-color: var(--navy); }

.sec { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 760px; gap: 0; }
.sec .main { padding: 0 80px 0 120px; display: flex; flex-direction: column; justify-content: center; }
.sec .k { font-size: 24px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.sec .big { margin-top: 18px; font-size: 80px; font-weight: 700; color: #fff; line-height: 1.05; }
.sec .sub { margin-top: 22px; font-size: 34px; font-weight: 500; color: #fff; line-height: 1.3; max-width: 900px; }
.sec .goal { margin-top: 34px; font-size: 26px; font-weight: 600; color: var(--amber); line-height: 1.4; max-width: 920px; }
.sec .cs { margin-top: 30px; display: flex; gap: 12px; }
.sec .cs .cbadge { height: 40px; min-width: 64px; font-size: 22px; }
.sec .cs .pill { background: transparent; border: 2px solid #c7d3e3; color: #fff; font-size: 21px; height: 40px; }
.sec .side { background: #052c56; padding: 0 60px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.sec .side .part { font-size: 15px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #6f8db3; margin: 14px 0 2px; }
.sec .side a { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 9px 14px; border-radius: 12px; text-decoration: none; color: #6f8db3; font-size: 22px; font-weight: 600; cursor: pointer; line-height: 1.25; }
.sec .side a span:first-child { width: 36px; height: 36px; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.sec .side a:hover { color: #fff; }
.sec .side a.on { color: #fff; background: #0b4583; }
.sec .side a.on span:first-child { background: var(--amber); border-color: var(--amber); color: var(--navy); }
.sec .side a.done { color: #9fb6d4; }

/* standout: thank you */
.stand { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; }
.stand .big { font-size: 120px; font-weight: 700; letter-spacing: 0.02em; }
.stand .rule { width: 160px; height: 6px; background: var(--amber); border-radius: 3px; margin: 34px 0; }
.stand .sub { font-size: 38px; font-weight: 500; }
.stand .links { margin-top: 70px; display: flex; gap: 18px; }
.stand .links a { font-size: 22px; font-weight: 600; color: #fff; text-decoration: none; border: 2px solid #6f8db3; border-radius: 12px; padding: 10px 22px; cursor: pointer; }
.stand .links a:hover { border-color: var(--amber); color: var(--amber); }

/* backup index */
.bindex { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.bindex a { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 14px; background: #fff; border-radius: 14px; padding: 12px 18px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.04); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.bindex a:hover { outline: 3px solid var(--amber); }
.bindex a b { color: var(--navy); font-size: 22px; }

/* architecture (§4.3), after Fig. 4.1 of the manuscript: panels with a navy header and their letter,
   every arrow labeled with its signal. .zoom is the tactical layer, entered by zooming into it. */
.ar { position: relative; flex: 1; font-size: 17px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.ar > * { position: absolute; }
.ar i { font-family: var(--math); font-style: italic; }
.ar sub { font-size: 0.68em; line-height: 0; }
.ar img { display: block; }
.ar svg.wires { left: 0; top: 0; width: 1792px; height: 852px; overflow: visible; pointer-events: none; z-index: 3; }
.ar .frm { border: 2px dashed #8aa0bd; background: #e8edf4; border-radius: 16px; }
.ar .frm .frt { position: absolute; left: 14px; top: 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.ar .pn { background: #fff; border: 3px solid var(--navy); border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(6,54,105,0.08); display: flex; flex-direction: column; }
.ar .ph { flex: none; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: 18px; white-space: nowrap; }
.ar .ph .k, .ar .dchip .k { display: inline-grid; place-items: center; min-width: 25px; height: 25px; padding: 0 4px; border-radius: 5px; background: #fff; color: var(--navy); font-size: 15px; font-weight: 700; }
.ar .ph .k i { font-size: 19px; }
.ar .ph .s { font-weight: 500; font-size: 14px; color: #c4d3e6; margin-left: 2px; }
.ar .ph .tag { margin-left: auto; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--amber); color: var(--navy); }
.ar .ph .tag.cap { background: var(--ok); color: #fff; }
.ar .pb { padding: 8px 12px; display: flex; flex-direction: column; gap: 5px; }
.ar .pb.row { flex-direction: row; align-items: center; gap: 18px; flex: 1; }
.ar .pb.ctr { align-items: center; text-align: center; }
.ar .t { font-size: 14px; color: var(--mute); font-weight: 500; line-height: 1.25; }
.ar .eqs { font-family: var(--math); font-size: 21px; color: var(--ink); white-space: nowrap; }
.ar .eqs.big { font-size: 34px; }
.ar .rp { font-size: 17px; }
.ar .rp b { color: var(--navy); font-size: 18px; }
.ar .rp ul { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 2px; }
.ar img.cover { width: 100%; flex: 1; min-height: 0; object-fit: cover; }
.ar .pn.tac { border: 4px solid var(--amber); background: #fffaf0; }
.ar .pn.tac > .ph { background: var(--amber); color: var(--navy); }
.ar .pn.tac > .ph .k { background: var(--navy); color: #fff; }
.ar .pn.tac > .ph .s { color: #6b4e00; }
.ar .pn.tac > .ph .tag { background: var(--navy); color: #fff; }
.ar .pn.sb { border-width: 2px; border-radius: 10px; box-shadow: none; }
.ar .pn.sb > .ph { height: 30px; font-size: 16px; }
.ar .pn.sb > .ph .k { height: 22px; font-size: 13px; }
.ar .pn.mg { border-color: var(--mg); }
.ar .pn.mg > .ph { background: var(--mg); font-size: 16.5px; }
.ar .pn.mg > .ph .k { color: var(--mg); }
.ar .mgt { color: var(--mg); }
.ar .sig { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.25; white-space: nowrap; z-index: 4; }
.ar .sig i { font-size: 1.12em; }
.ar .sig.mg { color: var(--mg); font-weight: 700; font-size: 16px; }
.ar .sig.t { color: var(--mute); font-size: 13.5px; }
.ar .q { text-align: center; z-index: 2; }
.ar .q .qm { font-size: 140px; font-weight: 700; color: var(--amber); line-height: 1; }
.ar .q .qt { font-size: 32px; font-weight: 700; color: var(--navy); margin-top: 12px; }
.ar .mb { background: #fff; border: 2px solid var(--navy); border-radius: 10px; padding: 10px 14px; font-size: 18px; font-weight: 600; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; gap: 6px; z-index: 2; }
.ar .mb b { color: var(--navy); }
.ar .mb.cho { border: 3px solid var(--amber); }
.ar .pr { font-size: 19px; text-align: center; color: var(--ink); }
.ar .pr b { color: var(--navy); }
/* tactical zoom */
.ar .dchip { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 17px; font-weight: 700; white-space: nowrap; z-index: 2; }
.ar .dchip .t2 { font-size: 14px; font-weight: 500; color: #c4d3e6; }
.ar .efrm { border: 4px solid var(--amber); background: #fffaf0; border-radius: 22px; }
.ar .elbl { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9a6a00; }
.ar .mce { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px 12px 4px; }
.ar .mce > div { display: flex; flex-direction: column; gap: 5px; }
.ar .mce h5 { margin: 0 0 2px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--chip); border-radius: 6px; padding: 2px 0; }
.ar .sk { display: block; text-align: center; font-size: 14px; font-weight: 600; padding: 4px; border-radius: 7px; border: 2px solid; }
.ar .sk.k { background: #fdebd3; border-color: var(--deg); }
.ar .sk.l { background: #e1e8f2; border-color: var(--navy); }
.ar .sk.b { background: linear-gradient(90deg, #fdebd3 50%, #e1e8f2 50%); border-color: var(--deg); box-shadow: inset 0 0 0 2px var(--navy); }
.ar .lg { padding: 6px 12px 0; font-size: 13.5px; color: var(--mute); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.ar .lg .sw { display: inline-block; width: 20px; height: 15px; padding: 0; margin-left: 4px; }
.ar .ls { margin: 2px 0 0; padding-left: 20px; font-size: 16.5px; display: flex; flex-direction: column; gap: 6px; }
.ar .e3 { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px 2px; }
.ar .e3 figure { margin: 0; text-align: center; }
.ar .e3 img { width: 158px; border-radius: 6px; }
.ar .e3 figcaption { font-size: 12.5px; color: var(--mute); font-weight: 600; margin-top: 2px; }
.ar .e3 .ar1 { font-size: 28px; color: var(--navy); font-weight: 700; }
.ar .e4 { padding: 10px 12px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ar .cpc1 { margin-top: 8px; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff6df; border-radius: 7px; padding: 6px 8px; }
.ar .cpc1 b { color: var(--navy); }
.ar .e4 .blk { border: 2px solid #d3dbe6; border-radius: 9px; padding: 6px 10px 8px; }
.ar .sh { display: flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.ar .sh .k { background: var(--navy); color: #fff; border-radius: 4px; font-size: 12px; padding: 1px 6px; }
.ar table.rw { border-collapse: collapse; width: 100%; font-size: 15px; }
.ar table.rw td { padding: 4px 4px; border-bottom: 1px solid #edf0f4; white-space: nowrap; }
.ar table.rw td:first-child { font-weight: 700; color: var(--navy); }
.ar table.rw td:last-child { text-align: right; font-family: var(--math); font-size: 17px; }
.ar .po { margin-top: auto; text-align: center; font-size: 17px; font-weight: 700; color: var(--navy); background: var(--chip); border-radius: 9px; padding: 8px; }
.ar .outc { background: #fff; border-radius: 14px; border-left: 10px solid var(--amber); box-shadow: 0 6px 18px rgba(6,54,105,0.08); display: flex; align-items: center; gap: 18px; padding: 12px 18px; }
.ar .outc .o1 { width: 380px; flex: none; display: flex; flex-direction: column; gap: 4px; }
.ar .outc .ot { font-size: 21px; font-weight: 700; color: var(--navy); }
.ar .outc .o3 { font-size: 17px; display: flex; flex-direction: column; gap: 6px; }
.ar .outc .o3 b { color: var(--navy); }
.ar svg .w { fill: none; stroke: var(--navy); stroke-width: 3; }
.ar svg .w.mg { stroke: var(--mg); stroke-width: 6; }
.ar svg .w.am { stroke: var(--amber); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: 0.75; }
.ar svg .w.bad { stroke: var(--bad); stroke-dasharray: 6 5; }
.ar svg .vl { font-size: 15px; font-weight: 600; fill: var(--navy); }
.ar svg .nd circle { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.ar svg .nd.p circle { fill: #f6f2fa; stroke: #7a5aa6; stroke-width: 2.5; stroke-dasharray: 5 4; }
.ar svg .nt { font-family: var(--math); font-style: italic; font-size: 22px; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.ar svg .nt.sm { font-size: 19px; }
.ar svg .el { font-size: 14px; font-weight: 700; fill: var(--navy); }
.ar svg .el.bad { fill: var(--bad); }
.ar svg .el.am { fill: #b07800; }
.ar svg .xx { font-size: 20px; font-weight: 700; fill: var(--bad); text-anchor: middle; }
.ar svg .dl { font-size: 13px; font-weight: 600; fill: var(--mute); text-anchor: middle; }
.ar svg .dots { font-size: 22px; font-weight: 700; fill: var(--mute); }
.ar svg .ring { fill: none; stroke: var(--amber); stroke-width: 5; }
/* the overview (.ov) zooms into the tactical layer: its E rectangle (940 x 447 at 430, 262) grows to the whole canvas */
.ar.zm { overflow: hidden; }
.ar .ov { left: 0; top: 0; width: 1792px; height: 852px; transform-origin: 0 0; transition: transform 950ms cubic-bezier(0.45, 0, 0.2, 1); }
.ar .ov > * { position: absolute; }
.ar .ov.dim { transform: translate(-819.745px, -499.472px) scale(1.906383); }
.ar .after:not(.hidden) { transition: opacity 450ms ease 850ms; }
.ar .ov .zh { transition: opacity 300ms; }
.ar .ov.dim .zh { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .ar .ov { transition: none; } }

/* introduction */
.oddtax { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.oddtax > div { background: var(--chip); border-radius: 10px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.oddtax b { color: var(--navy); font-size: 19px; line-height: 1.2; }
.oddtax span { font-size: 16px; color: var(--mute); line-height: 1.3; }
.chain { display: flex; align-items: stretch; }
.chain .st { flex: 1 1 0; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(6,54,105,0.06); padding: 16px 18px; font-size: 21px; font-weight: 600; line-height: 1.3; }
.chain .st .n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.chain .ar2 { flex: none; width: 36px; display: grid; place-items: center; font-size: 30px; font-weight: 700; color: var(--amber); }
.odsp { width: 100%; flex: 1; min-height: 0; overflow: visible; }
.odsp .blob { fill: #fde3c6; stroke: #f39a2e; stroke-width: 4; }
.odsp .oddl { font-size: 44px; font-weight: 700; fill: #f39a2e; }
.odsp .odb rect { fill: #a9d6d3; stroke: #3d8f8a; stroke-width: 3; }
.odsp .odb text { font-size: 36px; font-weight: 700; fill: #3d8f8a; text-anchor: middle; }
.odsp .sb { font-size: 20px; }
.odsp .odd2 { fill: none; stroke: #3d8f8a; stroke-width: 3; stroke-dasharray: 9 7; }
.odsp .out { fill: #c8461f; }
.odsp .odl2 { font-size: 30px; font-weight: 700; fill: #3d8f8a; text-anchor: end; }
.odsp .dm { fill: none; stroke: #1d1d1d; stroke-width: 3.5; }
.odsp .dml { font-size: 32px; font-weight: 700; fill: #1d1d1d; }
.odsp .rain { font-size: 21px; font-weight: 700; fill: var(--bad); }
.wipe { position: relative; flex: none; width: 825px; height: 550px; }
.wipe img, .wipe .wp, .wipe .wp div { position: absolute; inset: 0; width: 100%; height: 100%; }
.wipe .w0 { clip-path: inset(85% 0 0 0); }
.wipe .w1 { clip-path: polygon(0 0, 19% 0, 19% 0, 19% 0, 19% 0, 19% 0, 19% 100%, 0 100%); transition: clip-path 1100ms cubic-bezier(0.45, 0, 0.2, 1); }
.wipe .wp.dim .w1 { clip-path: polygon(0 0, 48.2% 0, 48.2% 0, 48.2% 0, 48.2% 0, 48.2% 0, 48.2% 100%, 0 100%); }
.wipe .wp.dim > .dim .w1 { clip-path: polygon(0 0, 58% 0, 58% 34.5%, 86% 34.5%, 86% 41.5%, 48.2% 41.5%, 48.2% 100%, 0 100%); }
.wipe .wp.dim > .dim > .dim .w1 { clip-path: polygon(0 0, 100% 0, 100% 34.5%, 100% 34.5%, 100% 41.5%, 100% 41.5%, 100% 100%, 0 100%); }
.capt { position: relative; flex: none; height: 40px; font-size: 26px; font-weight: 600; color: var(--navy); }
.capt > div { position: absolute; left: 0; right: 0; top: 0; text-align: center; }

/* particles */
.cloud { display: grid; grid-template-columns: repeat(10, 30px); gap: 10px; justify-content: center; }
.cloud i { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); display: block; }
.cloud i.x { background: #d7dce2; }

/* ------------------------------------------------------------ overview, go-to, help */
#overview { position: fixed; inset: 0; z-index: 50; background: #0b1220f2; color: #fff; overflow: auto; padding: 36px 48px 60px; display: none; }
#overview.open { display: block; }
#overview h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
#overview .hint { font-size: 14px; color: #9fb6d4; margin-bottom: 18px; }
#overview .grp { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: #9fb6d4; text-transform: uppercase; letter-spacing: 0.08em; }
#overview .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
#overview button { text-align: left; background: #13213a; border: 2px solid #23497a; border-radius: 12px; color: #e6edf6; padding: 10px 12px; cursor: pointer; display: grid; grid-template-columns: 44px 1fr; gap: 8px; font-size: 14px; line-height: 1.35; }
#overview button:hover { border-color: var(--amber); }
#overview button.on { background: #0b4583; border-color: #fff; }
#overview button .k { font-weight: 700; color: var(--amber); }
#overview button .v { font-size: 11px; color: #9fb6d4; display: block; margin-top: 2px; }
#goto { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 60; background: #0b1220ee; color: #fff; font-size: 22px; font-weight: 700; padding: 10px 22px; border-radius: 12px; display: none; }
#goto.open { display: block; }
#help { position: fixed; inset: 0; z-index: 70; background: #0b1220f2; color: #e6edf6; display: none; align-items: center; justify-content: center; }
#help.open { display: flex; }
#help .box { background: #13213a; border: 2px solid #23497a; border-radius: 18px; padding: 28px 36px; max-width: 760px; font-size: 16px; line-height: 1.6; }
#help h2 { margin: 0 0 12px; color: var(--amber); font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; }
#help kbd { display: inline-block; min-width: 26px; text-align: center; background: #0b1220; border: 1px solid #3a5a86; border-radius: 6px; padding: 0 6px; margin-right: 4px; font-family: inherit; font-weight: 700; }
#help table { border-collapse: collapse; }
#help td { padding: 3px 14px 3px 0; vertical-align: top; }
body.idle, body.idle * { cursor: none !important; }

/* ------------------------------------------------------------ presenter view */
body.presenter { background: #0b1220; overflow: auto; }
body.presenter #stage { display: none; }
#pv { display: none; }
body.presenter #pv { display: grid; grid-template-columns: 1fr 520px; grid-template-rows: auto 1fr; gap: 18px; padding: 18px; height: 100vh; color: #e6edf6; font-family: "Montserrat", sans-serif; }
#pv .bar { grid-column: 1 / 3; display: flex; gap: 24px; align-items: center; font-size: 18px; }
#pv .bar .clock { font-size: 34px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
#pv .bar .plan { color: #9fb6d4; }
#pv .bar .late { color: #ff8a80; } #pv .bar .early { color: #8ee6a5; }
#pv .bar button { background: #13213a; border: 2px solid #23497a; color: #fff; border-radius: 10px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 15px; }
#pv .cur, #pv .nxt { position: relative; background: #000; border-radius: 10px; overflow: hidden; }
#pv .frame { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; background: var(--page); }
#pv .frame .slide { visibility: visible; }
#pv .right { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; min-height: 0; }
#pv .nxt { aspect-ratio: 16 / 9; }
#pv .lab { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #9fb6d4; font-weight: 700; }
#pv .notes { background: #13213a; border-radius: 12px; padding: 16px 18px; font-size: 22px; line-height: 1.5; overflow: auto; }
#pv .notes .meta { font-size: 14px; color: #9fb6d4; margin-bottom: 8px; }
#pv .curwrap { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-height: 0; }
#pv .cur { width: 100%; aspect-ratio: 16 / 9; align-self: start; }
#pv .scrub, #pv .vstep { display: none; }
#pv .vctl { display: flex; gap: 8px; margin: 4px 0 10px; }
#pv .vctl button, #pv .scenes button { background: #0b1220; border: 2px solid #23497a; color: #fff; border-radius: 9px; padding: 5px 12px; cursor: pointer; font: inherit; font-size: 15px; }
#pv .vctl button:hover, #pv .scenes button:hover { border-color: var(--amber); }
#pv .scenes { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin-bottom: 12px; }
#pv .scenes button { text-align: left; font-size: 17px; line-height: 1.35; }
#pv .scenes button.on { border-color: var(--amber); color: var(--amber); font-weight: 700; }

/* title slide: the jury panel is navy, so the navigation turns light */
.slide.title .ftr .who, .slide.title .ftr .secs, .slide.title .progress { display: none; }
.slide.title .nav button { background: transparent; border-color: #c7d3e3; color: #fff; }
.slide.title .nav button:hover { background: #fff; color: var(--navy); }
.slide.title .nav .num { color: #c7d3e3; }

/* ------------------------------------------------------------ related work: what exists, what is missing */
ul.chk { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
ul.chk li { position: relative; padding-left: 42px; }
ul.chk li::before { position: absolute; left: 0; top: 0.12em; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 17px; line-height: 1; color: #fff; font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif; }
ul.chk li.y::before { content: "✓"; background: var(--ok); }
ul.chk li.n::before { content: "✗"; background: var(--bad); }
ul.chk li.to::before { content: ""; background: var(--amber) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23063669' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 64% no-repeat; }
.card.navy ul.chk li.to::before { background: var(--amber); }
table.chkt td.y, table.chkt td.n { position: relative; padding-left: 50px; }
table.chkt td.y::before, table.chkt td.n::before { position: absolute; left: 14px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 16px; line-height: 1; color: #fff; font-family: "Segoe UI Symbol", "Segoe UI", Arial, sans-serif; }
table.chkt td.y::before { content: "✓"; background: var(--ok); }
table.chkt td.n::before { content: "✗"; background: var(--bad); }
.cbadge.ink { color: var(--navy); border-color: var(--navy); }
.cbadge.ink:hover { background: var(--navy); color: #fff; }

/* ------------------------------------------------------------ contributions and outline */
.outl { display: flex; flex-direction: column; gap: 16px; }
.outl a { display: grid; grid-template-columns: 72px 1fr 470px 36px; align-items: center; gap: 28px; background: #fff; border-radius: 20px; padding: 18px 30px; text-decoration: none; cursor: pointer; box-shadow: 0 6px 24px rgba(0,0,0,0.055), 0 2px 8px rgba(0,0,0,0.04); }
.outl a:hover { outline: 3px solid var(--amber); }
.outl .num-badge { width: 66px; height: 66px; font-size: 24px; }
.outl .t { font-size: 33px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.outl .t small { display: block; font-size: 23px; font-weight: 600; color: var(--ink); margin-top: 6px; }
.outl .m { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--mute); }
.outl .m .pill { font-size: 17px; padding: 3px 12px; }
.outl .arrow { font-size: 34px; font-weight: 700; color: var(--navy); }

/* ------------------------------------------------------------ bridge: the limitation that opens the next part */
.bridge { position: absolute; left: 0; right: 0; top: 0; bottom: 62px; display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 0 240px; color: #fff; }
.bridge .k { font-size: 24px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.bridge .q { font-size: 68px; font-weight: 700; line-height: 1.15; }
.bridge ul.chk { font-size: 31px; line-height: 1.4; font-weight: 500; gap: 20px; }
.bridge ul.chk li { padding-left: 58px; }
.bridge ul.chk li::before { width: 38px; height: 38px; font-size: 22px; top: 0.05em; }
.bridge a.go { color: var(--amber); border-bottom-color: var(--amber); }
.bridge a.go:hover { background: transparent; }
.bridge .next { align-self: flex-start; margin-top: 16px; display: inline-flex; align-items: center; gap: 16px; font-size: 28px; font-weight: 700; color: #fff; text-decoration: none; border: 2px solid #6f8db3; border-radius: 14px; padding: 12px 24px; cursor: pointer; }
.bridge .next:hover { border-color: var(--amber); color: var(--amber); }

/* thank you: the fog run in the background */
/* zoomed on the two road views, so that the captions and the footer of the video stay out of frame */
.slide.thanks video.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.13; pointer-events: none; transform: scale(1.6); transform-origin: 50% 20%; }
.slide.thanks { overflow: hidden; }
.nav button[hidden] { display: none; }

/* ------------------------------------------------------------ the news: short clips in a loop */
.card.news { gap: 14px; padding: 18px 22px; }
.slide video.loop { flex: 1 1 0; min-height: 0; width: 100%; object-fit: cover; border-radius: 16px; background: #1b1f24; display: block; }

/* ------------------------------------------------------------ capability precedes choice */
.cpcflow { display: grid; grid-template-columns: 1fr 90px 1fr; gap: 16px; align-items: stretch; }
.cpcflow p { font-size: 29px; line-height: 1.45; margin: 0; }
.arrow-big { display: grid; place-items: center; font-size: 72px; font-weight: 700; color: var(--navy); }
.cpcstrip { display: flex; gap: 14px; align-items: baseline; margin-bottom: 26px; font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.cpcstrip span { color: #4d6c97; }
.cpcstrip span.on { color: var(--amber); }
.cpcstrip .pre { font-weight: 500; font-style: italic; text-transform: none; letter-spacing: 0; color: #9fb6d4; }
.cbadge.sm { height: 26px; min-width: 40px; font-size: 15px; padding: 0 8px; margin-left: 8px; vertical-align: 2px; }

/* ------------------------------------------------------------ formalism */
.defs { display: grid; grid-template-columns: auto 1fr; gap: 12px 22px; align-items: center; }
.defs .pill { justify-content: center; min-width: 150px; }
.defs .eq { font-size: 31px; line-height: 1.3; }
.card.bellman { background: #f6f8fb; box-shadow: none; border: 2px solid #e2e6eb; text-align: center; padding: 20px 30px 18px; }
.eq.big { font-size: 46px; }
.lim { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.15; margin: 0 0.1em; }
.lim .u { font-size: 0.6em; margin-top: 4px; }
.hcho { background: #dbe9f6; border-radius: 8px; padding: 0 8px; }
.hcap { background: #dcefe2; border-radius: 8px; padding: 1px 8px; }
.legend { display: flex; justify-content: center; gap: 46px; margin-top: 10px; font-size: 21px; color: var(--ink); }
.legend .sw { display: inline-block; width: 22px; height: 22px; border-radius: 6px; vertical-align: -4px; margin-right: 10px; }
.legend .sw.cho { background: #dbe9f6; border: 2px solid var(--blue); }
.legend .sw.cap { background: #dcefe2; border: 2px solid var(--ok); }
.eqrow { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: center; }
.eqrow .eq { font-size: 31px; line-height: 1.3; }
.eqrow span { font-size: 17px; line-height: 1.35; color: var(--mute); }
.grp { display: inline-flex; flex-direction: column; align-items: stretch; vertical-align: top; line-height: 1.25; }
.grp > span:first-child { text-align: center; }
.grp .lab { margin-top: 3px; padding-top: 1px; border-top: 3px solid #b4c0cf; text-align: center; font-family: "Montserrat", sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.grp.op .lab { border-color: var(--ok); color: var(--ok); }

/* ------------------------------------------------------------ explaining a decision (reward hint, appendix b-explain) */
.card.navy h4 { color: var(--amber); }
.xhint p { margin: 0; font-size: 19px; line-height: 1.4; }
.xhint b { color: #fff; }
.xhint a.go { color: var(--amber); font-weight: 700; white-space: nowrap; }
.xpl .col { gap: 18px; }
.xpl .card h4 { margin-bottom: 8px; }
.xpl .eq { font-size: 28px; line-height: 1.4; margin: 8px 0 4px; }
.xpl .list.small { font-size: 21.5px; line-height: 1.42; }
.xpl .list .pill { font-size: 17px; padding: 2px 10px; margin-right: 6px; vertical-align: 2px; }
.xpl .eqrow { grid-template-columns: 1fr 260px; gap: 12px; margin: 10px 0; }
.xpl .eqrow .eq { font-size: 28px; margin: 0; }
.xpl .eqrow span { font-size: 17.5px; }
.xbars { display: grid; grid-template-columns: 230px 1fr 1fr; row-gap: 14px; align-items: center; margin: 10px 0 18px; font-size: 20px; }
.xbars .lb { font-weight: 600; color: var(--ink); }
.xbars .lb.main { color: var(--navy); font-weight: 700; }
.xbars .ng, .xbars .ps { height: 30px; display: flex; align-items: center; }
.xbars .ng { justify-content: flex-end; border-right: 2px solid var(--road); }
.xbars .ng i, .xbars .ps i { display: block; height: 24px; }
.xbars .ng i { background: var(--bad); border-radius: 5px 0 0 5px; opacity: 0.8; }
.xbars .ps i { background: var(--ok); border-radius: 0 5px 5px 0; opacity: 0.85; }
.xbars .lb.main + .ng + .ps i { box-shadow: 0 0 0 3px var(--amber); opacity: 1; }
.xbars .ax { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); text-align: right; padding-right: 10px; }
.xbars .ax.r { text-align: left; padding: 0 0 0 10px; }
.xsay { border-left: 6px solid var(--amber); background: #fff6df; border-radius: 0 12px 12px 0; padding: 12px 18px; font-size: 22px; line-height: 1.42; font-style: italic; color: #3d3010; margin-bottom: 8px; }
.xsay b { color: var(--navy); }

/* ------------------------------------------------------------ review mode (review.js) */
.nav .cmtbtn { position: relative; }
.nav .cmtbtn svg { width: 22px; height: 22px; }
.nav .cmtbtn .cnt:not(:empty) { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--amber); color: var(--navy); font-size: 13px; font-weight: 700; line-height: 22px; text-align: center; }
body.cmt-on .slide.current .nav .cmtbtn { background: var(--amber); border-color: var(--amber); color: var(--navy); }
#cmt-layer { position: absolute; left: 0; top: 0; width: 1920px; height: 1004px; z-index: 40; pointer-events: none; display: none; }
body.cmt-on #cmt-layer { display: block; }
body.cmt-on #cmt-layer .cm-pin[data-cid] { pointer-events: auto; }
body.cmt-on #stage { cursor: crosshair; touch-action: none; }
body.cmt-on #stage .nav { cursor: default; }
body.cmt-drag #stage, body.cmt-drag #stage * { -webkit-user-select: none; user-select: none; }
::highlight(cmt-all) { background-color: rgba(251, 181, 21, 0.45); }
::highlight(cmt-sel) { background-color: rgba(251, 181, 21, 0.9); color: #1b2533; }
::highlight(cmt-draft) { background-color: rgba(31, 111, 178, 0.3); }
.cm-hl { position: absolute; background: rgba(251, 181, 21, 0.4); mix-blend-mode: multiply; pointer-events: none; border-radius: 3px; }
.cm-hl.sel { background: rgba(251, 181, 21, 0.75); }
.cm-hl.draft { background: rgba(31, 111, 178, 0.3); }
.cm-pin.tx { width: 34px; height: 34px; margin: -36px 0 0 -2px; font-size: 16px; line-height: 28px; }
.cm-pin.tx.lost { border-style: dashed; }
#cmt-sel, #cmt-menu { position: fixed; z-index: 95; display: none; background: #fff; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); font-size: 14px; color: var(--navy); }
#cmt-sel.open { display: flex; gap: 2px; padding: 4px; }
#cmt-menu.open { display: flex; flex-direction: column; padding: 5px; min-width: 190px; }
#cmt-sel button, #cmt-menu button { display: flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font-weight: 600; padding: 7px 12px; border-radius: 7px; cursor: pointer; text-align: left; white-space: nowrap; }
#cmt-sel button:hover, #cmt-menu button:hover { background: var(--chip); }
#cmt-sel .ic, #cmt-menu .ic { width: 20px; text-align: center; }
#cmt-sel .ic.hl, #cmt-menu .ic.hl { background: rgba(251, 181, 21, 0.7); border-radius: 4px; font-weight: 700; line-height: 20px; }
.cc-q, #cmt-pop .pp-q { margin: 6px 0 0; padding: 4px 8px; border-left: 4px solid var(--amber); background: #fff6df; color: #4a3a10; font-size: 13.5px; font-style: italic; overflow-wrap: anywhere; border-radius: 0 6px 6px 0; }
#cmt-pop .pp-q { margin: 0; max-height: 96px; overflow: auto; }
.cc-t.none { color: var(--mute); font-style: italic; font-size: 13px; }
.cm-area { position: absolute; border: 4px dashed var(--amber); border-radius: 50%; background: rgba(251, 181, 21, 0.12); pointer-events: none; }
.cm-area.sel { border-style: solid; background: rgba(251, 181, 21, 0.2); }
.cm-area.draft { border-color: var(--navy); background: rgba(6, 54, 105, 0.08); }
.cm-pin { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50% 50% 50% 6px; border: 3px solid #fff; background: var(--amber); color: var(--navy); font: 700 20px/38px "Montserrat", sans-serif; text-align: center; padding: 0; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.cm-pin.sel { background: var(--navy); color: #fff; transform: scale(1.15); }
.cm-pin.later, .cm-area.later { opacity: 0.45; }
.cm-pin.draft { background: var(--navy); color: #fff; pointer-events: none; }
#cmt-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 380px; max-width: 100vw; z-index: 80; background: #fff; color: var(--ink); box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25); display: none; flex-direction: column; font-size: 14px; line-height: 1.4; }
body.cmt-open #cmt-panel { display: flex; }
#cmt-panel button { font: inherit; cursor: pointer; }
.cp-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; background: var(--navy); color: #fff; }
.cp-h b { font-size: 18px; display: block; }
.cp-h .sub { display: block; font-size: 12.5px; color: #c4d3e6; margin-top: 2px; }
.cp-nav { display: flex; gap: 6px; flex: none; }
.cp-nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #ffffff55; background: transparent; color: #fff; font-size: 17px; line-height: 1; }
.cp-nav button:hover { background: #ffffff22; }
.cp-help { padding: 10px 16px; background: #fff6df; color: #5b4300; font-size: 13px; }
.cp-name { display: flex; align-items: center; gap: 10px; padding: 10px 16px 4px; font-weight: 600; color: var(--navy); }
.cp-name input, #cmt-pop input[type=text] { flex: 1; border: 1.5px solid #c9d3e0; border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; }
.cp-tabs { display: flex; gap: 6px; padding: 10px 16px 6px; }
.cp-tabs button { flex: 1; border: 1.5px solid #c9d3e0; background: #fff; color: var(--navy); border-radius: 8px; padding: 6px 8px; font-weight: 600; }
.cp-tabs button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cp-list { flex: 1; overflow: auto; padding: 6px 16px; display: flex; flex-direction: column; gap: 8px; }
.cp-empty { color: var(--mute); text-align: center; margin: 24px 0; }
.cc { border: 1.5px solid #dfe5ee; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.cc:hover { border-color: var(--amber); }
.cc.sel { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.cc-h { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--navy); }
.cc-h .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--navy); font-weight: 700; display: grid; place-items: center; font-size: 12.5px; }
.cc-h b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-h .st { flex: none; color: var(--mute); font-size: 12px; }
.cc-t { margin: 6px 0; font-size: 14.5px; white-space: normal; overflow-wrap: anywhere; }
.cc-m { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--mute); font-size: 12px; }
.cc-m button { border: 0; background: none; color: var(--navy); font-weight: 600; padding: 2px 4px; text-decoration: underline; }
.cp-f { padding: 12px 16px 16px; border-top: 1px solid #e4e9f0; display: flex; flex-direction: column; gap: 8px; }
.cp-f .row { display: flex; gap: 8px; }
.cp-f button, #cmt-pop button, #cmt-hint button { border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: 8px 12px; font-weight: 700; flex: 1; }
.cp-f button.pri, #cmt-pop button.pri, #cmt-hint button:not(.ghost) { background: var(--navy); color: #fff; }
.cp-f button:disabled { opacity: 0.4; cursor: default; }
.cp-msg:not(:empty) { font-size: 13px; color: #1e6b33; background: #eaf6ee; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.cp-note { margin: 0; font-size: 12px; color: var(--mute); text-align: center; }
#cmt-pop { position: fixed; z-index: 90; width: 340px; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); padding: 14px; display: none; flex-direction: column; gap: 10px; font-size: 14px; }
#cmt-pop.open { display: flex; }
#cmt-pop .pp-h { font-weight: 700; color: var(--navy); font-size: 15px; }
#cmt-pop .pp-p { margin: 0; color: var(--mute); font-size: 13px; }
#cmt-pop textarea { width: 100%; border: 1.5px solid #c9d3e0; border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 14px; resize: vertical; }
#cmt-pop input.bad { border-color: var(--bad); }
#cmt-pop .pp-f { display: flex; align-items: center; gap: 8px; }
#cmt-pop .pp-f .hint { flex: 1; font-size: 11.5px; color: var(--mute); }
#cmt-pop .pp-f button { flex: none; }
#cmt-pop button.ghost, #cmt-hint button.ghost { border-color: #c9d3e0; color: var(--mute); }
#cmt-hint { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 85; width: min(720px, calc(100vw - 32px)); background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; line-height: 1.45; }
#cmt-hint b { color: var(--navy); }
#cmt-hint kbd { border: 1px solid #c9d3e0; border-radius: 5px; padding: 0 6px; font-family: inherit; font-weight: 700; }
#cmt-hint button { flex: none; }
#cmt-hint .tx { flex: 1 1 360px; }
body.presenter #cmt-panel, body.presenter #cmt-layer { display: none !important; }
