:root {
  color-scheme: light;
  --ink: #1b2b43;
  --muted: #53627a;
  --paper: #f7f8fb;
  --line: #dce3ec;
  --four: #2256ca;
  --four-soft: #eaf1ff;
  --five: #b94e17;
  --five-soft: #fff1e5;
  --nav-width: 234px;
  --code: #142238;
  --green: #177341;
  --red: #b92e42;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", "Noto Sans Mono", monospace;
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 68px minmax(0, 1fr) 64px; font-family: var(--sans); font-size: 23px; line-height: 1.55; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 3px solid #477cdd; outline-offset: 4px; }
a { color: var(--four); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button { touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.035em; }
code, pre, kbd, .test-report, .test-tree { font-family: var(--mono); }
code { font-size: .88em; overflow-wrap: anywhere; }
p > code, li > code, .callout code, .explanation code { background: rgba(76, 106, 157, .07); border-radius: 4px; padding: 1px 4px; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; padding: 1px 6px; border: 1px solid #cdd7e5; border-radius: 4px; font-size: .85em; color: var(--ink); background: #fff; box-shadow: 0 2px 0 #e5eaf1; line-height: 1.5; }
[hidden] { display: none !important; }
.v4 { color: var(--four); }
.v5 { color: var(--five); }
.subtle { color: var(--muted); font-size: 17px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 18px; top: -80px; z-index: 100; padding: 12px 24px; background: #fff; border: 2px solid var(--four); border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* A stable classroom shell: toolbar, chapter navigation and page progress. */
.app-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px 0 16px; background: #fff; border-bottom: 1px solid var(--line); z-index: 20; }
.header-brand, .header-tools { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 700; line-height: 1.2; }
.brand:hover { text-decoration: none; }
.brand-subtitle { display: block; font-family: var(--mono); font-size: 10px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.brand-subtitle i { color: var(--five); font-style: normal; padding: 0 4px; }
.brand-mark { position: relative; display: grid; place-items: center; width: 33px; height: 36px; color: #fff; background: #17273f; border-radius: 8px; font-size: 27px; font-family: var(--mono); font-weight: 700; }
.brand-mark > span { position: absolute; width: 7px; height: 7px; background: #f2995d; right: 5px; top: 6px; border-radius: 2px; }
.icon-button, .tool-button { border: 0; background: transparent; color: var(--muted); display: inline-flex; gap: 7px; align-items: center; justify-content: center; border-radius: 7px; min-height: 40px; font-size: 14px; white-space: nowrap; padding: 7px 10px; }
.icon-button { width: 38px; padding: 7px; }
.icon-button:hover, .tool-button:hover { color: var(--ink); background: #eef2f7; }
.tool-button[aria-pressed="true"] { color: var(--five); background: var(--five-soft); }
.mode-switch { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: #f5f7fa; }
.mode-switch button { font-size: 14px; border: 0; padding: 6px 17px; min-height: 33px; border-radius: 5px; background: transparent; color: var(--muted); }
.mode-switch button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 1px 4px #17273f19; font-weight: 700; }
.app-shell { display: grid; grid-template-columns: var(--nav-width) minmax(0, 1fr); min-height: 0; }
.sidebar { overflow-y: auto; min-height: 0; background: #f9fafc; border-right: 1px solid var(--line); padding: 22px 13px 14px; font-size: 14px; scrollbar-width: thin; }
.sidebar-heading { display: flex; justify-content: space-between; color: var(--muted); margin: 0 10px 21px; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.sidebar-heading span:last-child { font-family: var(--mono); font-size: 10px; font-weight: 400; }
.chapter-group { margin-bottom: 8px; }
.chapter-button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; padding: 10px 8px; border: 0; background: transparent; color: #536078; border-radius: 7px; font-size: 13px; line-height: 1.4; font-weight: 600; min-height: 42px; }
.chapter-button:hover { background: #edf1f7; }
.chapter-group.current .chapter-button { color: var(--ink); }
.chapter-index { color: #7c899c; font-family: var(--mono); font-size: 12px; }
.chapter-caret { margin-left: auto; color: #748398; font-size: 17px; transform: rotate(-90deg); }
.expanded .chapter-caret { transform: rotate(0); }
.chapter-pages { display: none; padding: 2px 0 8px; }
.expanded .chapter-pages { display: block; }
.page-link { display: flex; align-items: center; gap: 10px; padding: 9px 9px 9px 13px; margin: 3px 0; border-radius: 6px; font-size: 12px; color: #52627b; text-decoration: none; min-height: 35px; border: 1px solid transparent; }
.page-link > span:first-child { font-family: var(--mono); font-size: 11px; color: #7b889a; }
.page-link:hover { background: #edf1f7; text-decoration: none; }
.page-link.active { background: #fff0e5; border-color: #f0cfb8; color: #9e4313; font-weight: 600; }
.page-link.active > span:first-child { color: #a24b1c; }
.demo-nav-dot { flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--five); margin-left: auto; }
.sidebar-foot { border-top: 1px solid var(--line); margin: 24px 8px 0; padding-top: 16px; font-size: 11px; color: #6b7890; }
.sidebar-foot > div { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.small-status-dot, .legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.small-status-dot { background: #3b8b64; }
.legend-dot.four { background: var(--four); }
.legend-dot.five { background: var(--five); margin-left: 8px; }
.nav-collapsed .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
.nav-collapsed .sidebar { visibility: hidden; padding: 0; overflow: hidden; }
.course { grid-column: 2; overflow-y: auto; overflow-x: hidden; position: relative; min-height: 0; scrollbar-color: #b8c4d4 transparent; scrollbar-width: thin; overscroll-behavior: contain; }
.course:focus { outline: 0; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 5px 28px 0; position: relative; background: #fff; border-top: 1px solid var(--line); z-index: 20; font-size: 13px; }
#course-progress { position: absolute; left: 0; top: -1px; width: 100%; height: 3px; appearance: none; border: 0; background: #e7edf4; }
#course-progress::-webkit-progress-bar { background: #e7edf4; }
#course-progress::-webkit-progress-value { background: #ce6b2f; }
#course-progress::-moz-progress-bar { background: #ce6b2f; }
.footer-current, .footer-shortcuts, .footer-controls { display: flex; align-items: center; gap: 16px; }
.footer-current { min-width: 280px; }
.page-counter { display: flex; align-items: baseline; gap: 7px; padding-right: 18px; border-right: 1px solid var(--line); font-family: var(--mono); color: #718099; }
.page-counter strong { color: var(--ink); font-size: 22px; font-weight: 600; }
#current-caption { color: #57657b; }
.footer-shortcuts { color: #7b879a; font-size: 11px; gap: 18px; }
.footer-shortcuts kbd { font-size: 10px; min-width: 20px; padding: 1px 4px; }
.footer-controls { gap: 8px; }
.footer-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: #52617a; font-size: 13px; min-height: 38px; }
.footer-button.next { background: var(--ink); color: #fff; border-color: var(--ink); }
.footer-button:not(:disabled):hover { filter: brightness(.92); }

/* Each original PPT page is a section. Reading mode keeps all 27 sections. */
.slide { max-width: 1540px; min-height: 100%; padding: 32px 40px 24px; margin: 0 auto; outline: 0; }
.js .is-slides .slide:not(.is-active) { display: none; }
.is-reading .slide { border-bottom: 1px solid var(--line); padding-top: 42px; padding-bottom: 36px; }
.slide-heading { margin-bottom: 24px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 12px; letter-spacing: .08em; margin-bottom: 12px; font-weight: 500; }
.eyebrow > span:first-child { font-family: var(--mono); color: var(--five); font-weight: 700; }
.slide-heading h2 { font-size: clamp(32px, 2.65vw, 46px); font-weight: 750; }
.slide-subtitle { margin-top: 10px; color: var(--muted); font-size: 20px; line-height: 1.5; }
.live-marker, .focus-marker { font-size: 11px; letter-spacing: 0; background: var(--five-soft); color: #a24b1b; border: 1px solid #f2d5c0; border-radius: 4px; padding: 2px 8px; margin-left: 6px; }
.focus-marker { background: var(--four-soft); color: var(--four); border-color: #cbdaf4; }
.slide-content { display: flex; flex-direction: column; gap: 20px; }
.two-column, .code-pair, .demo-pair, .concept-grid, .prediction-grid, .pitfall-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.two-column > *, .code-pair > *, .demo-pair > * { min-width: 0; }
.nested-layout > *, .parameter-four-layout > *, .organization-grid > *, .agenda-grid > *, .concept-grid > *, .prediction-grid > *, .migration-grid > *, .cover-grid > *, .closing-grid > *, .junit-six-layout > * { min-width: 0; }
.callout { border: 1px solid #d8e2f1; border-left: 4px solid #6383bc; border-radius: 7px; background: #eef3fb; padding: 15px 20px; color: #344762; font-size: 20px; line-height: 1.55; }
.callout strong { color: var(--ink); }
.callout.warning { background: #fff6ec; border-color: #edd1b6; border-left-color: #c57a35; color: #734e28; }
.callout.emphasis { display: flex; align-items: center; gap: 20px; background: var(--ink); border-color: var(--ink); color: #dbe4f0; padding: 20px 24px; }
.callout.emphasis strong { color: #ffc699; }
.button { border: 1px solid transparent; border-radius: 7px; font-size: 17px; line-height: 1.35; font-weight: 600; min-height: 43px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; transition: background .15s; }
.button.primary { background: #a84514; color: #fff; border-color: #a84514; }
.button.primary:not(:disabled):hover { background: #8c3810; }
.button.secondary { background: #f6f8fc; color: #344762; border-color: #ccd7e8; }
.button.secondary:hover { background: #eaf0f8; }
.button.reset { background: transparent; color: #63728b; border-color: #d4deeb; font-weight: 400; }
.button.reset:hover { background: #edf1f7; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-button, .source-link { background: transparent; color: var(--four); border: 0; padding: 3px 0; font-size: inherit; text-align: left; text-decoration: underline; text-underline-offset: 4px; }
.content-details { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.content-details > summary { padding: 13px 18px; cursor: pointer; font-size: 18px; font-weight: 600; color: #344762; }
.content-details[open] > summary { border-bottom: 1px solid var(--line); }
.content-details > p { padding: 15px 20px; font-size: 20px; }
.content-details > .code-block, .content-details > .code-pair { margin: 0 18px 18px; }
.content-details > .source-link { margin: 0 20px 17px; }
.speaker-notes { margin-top: 26px; border-top: 1px solid var(--line); color: #52617a; }
.speaker-notes > summary { list-style: none; display: flex; gap: 9px; align-items: center; padding: 14px 0 4px; font-size: 13px; cursor: pointer; width: fit-content; min-height: 40px; }
.speaker-notes > summary::-webkit-details-marker { display: none; }
.speaker-notes > summary::after { content: "+"; margin-left: 8px; font-family: var(--mono); font-size: 19px; color: #77869b; }
.speaker-notes[open] > summary::after { content: "−"; }
.speaker-notes > summary > span:last-child { font-size: 11px; opacity: .9; margin-left: 5px; }
.notes-icon { font-size: 21px; line-height: 1; }
.speaker-notes ul { background: #eef1f6; border: 1px solid #dce2ed; border-radius: 8px; padding: 18px 25px 18px 43px; margin: 12px 0 0; font-size: 20px; line-height: 1.65; }
.speaker-notes li + li { margin-top: 8px; }

/* Local code viewer and monochrome test reports. */
.code-block { background: var(--code); color: #e6edf7; border: 1px solid #283c56; border-radius: 10px; min-width: 0; overflow: hidden; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid #2b3c54; padding: 10px 13px; min-height: 42px; background: #192b43; }
.code-caption { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 11px; color: #c0cbdc; }
.code-caption > span:last-child:not(.version-tag) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.version-tag { display: inline-block; flex-shrink: 0; padding: 2px 8px; font-family: var(--mono); font-size: 11px; line-height: 1.5; font-weight: 700; border-radius: 4px; }
.version-tag.v4 { color: #164aac; background: #e4edff; }
.version-tag.v5 { color: #994112; background: #ffe7d3; }
.code-block .version-tag.v4 { background: #223d64; color: #a9ccff; }
.code-block .version-tag.v5 { background: #563c30; color: #ffbc8a; }
.copy-button { border: 1px solid #52627b; background: transparent; color: #d8e2f1; border-radius: 5px; font-size: 12px; min-width: 46px; min-height: 28px; padding: 3px 8px; flex-shrink: 0; }
.copy-button:hover { background: #2c405c; color: #fff; }
.code-block pre { margin: 0; padding: 17px 19px; font-size: 20px; line-height: 1.45; overflow: auto; tab-size: 4; scrollbar-width: thin; scrollbar-color: #58708f #142238; max-width: 100%; }
.code-block code { display: block; font-size: inherit; overflow-wrap: normal; }
.wrap-code pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap-code code { overflow-wrap: anywhere; }
.code-source { display: flex; justify-content: flex-end; padding: 4px 14px 9px; }
.code-source .source-link { color: #c8d6ea; font-size: 11px; text-decoration: none; }
.code-source .source-link:hover { color: #fff; text-decoration: underline; }
.token-comment { color: #a4b1c7; }
.token-string { color: #d2e6b8; }
.token-keyword { color: #c4bcff; }
.token-number { color: #accddd; }
.token-version-4 { color: #91bdff; font-weight: 600; }
.token-version-5 { color: #ffb781; font-weight: 600; }
.token-message-4 { color: #a7ccff; }
.token-message-5 { color: #ffc296; }
.test-report { background: #132136; color: #dce5f1; border: 1px solid #283c56; border-radius: 8px; padding: 14px 17px; font-size: 17px; line-height: 1.65; overflow-wrap: anywhere; min-height: 61px; }
.report-line { white-space: pre-wrap; }
.report-line + .report-line { margin-top: 3px; }
.report-line.pass, .status-pass { color: #8ee2b4; }
.report-line.fail { color: #ffabb1; }
.report-line.skip { color: #d4dce9; }
.report-line.warning { color: #f5d799; }
.report-line.neutral { color: #c0cede; }
.report-summary { padding-top: 9px; margin-top: 8px; border-top: 1px solid #34455d; font-weight: 600; color: #e8edf5; font-size: 15px; }
.report-line.check-note { font-size: 14px; color: #c0cede; }
.test-report[aria-busy="true"] { border-color: #b06b3e; }
.simulation-badge, .offline-badge { flex-shrink: 0; padding: 3px 8px; border: 1px solid var(--line); color: var(--muted); border-radius: 5px; font-size: 11px; line-height: 1.5; }
.validation { color: #a62738; font-size: 16px; }
.validation:empty { display: none; }

/* Cover and ending share an intentional, restrained dark design. */
.cover, .closing { max-width: none; background: #122139; color: #eef4fd; padding: 32px 42px 22px; background-image: radial-gradient(ellipse at 95% 0%, #26466866, transparent 62%); }
.cover .v4, .closing .v4 { color: #9bc1ff; }
.cover .v5, .closing .v5 { color: #ffb37c; }
.cover .eyebrow, .closing .eyebrow { color: #b4c4da; font-size: 12px; margin-bottom: 21px; }
.cover-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 38px; align-items: center; }
.cover h1 { font-size: clamp(39px, 3.65vw, 67px); letter-spacing: -.05em; line-height: 1.18; margin-bottom: 15px; }
.cover-subtitle { color: #bdcbe0; font-size: 21px; line-height: 1.6; }
.cover-meta { display: flex; align-items: center; gap: 0; color: #b7c7dc; margin: 20px 0 18px; font-size: 13px; }
.cover-meta > span { padding: 0 15px; border-right: 1px solid #4b5c72; }
.cover-meta > span:first-child { padding-left: 0; }
.cover-meta > span:last-child { border: 0; }
.start-button { border: 1px solid #ffc79d; background: #ffba87; color: #3f260f; font-size: 17px; min-height: 46px; padding: 11px 25px; gap: 28px; }
.start-button:hover { background: #ffd1ad; text-decoration: none; }
.version-baseline { color: #aebdd2; font-family: var(--mono); font-size: 11px; margin-top: 13px; }
.cover-visual { border: 1px solid #47617d; border-radius: 17px; position: relative; background-color: #172c46; background-image: linear-gradient(#45618320 1px, transparent 1px), linear-gradient(90deg, #45618320 1px, transparent 1px); background-size: 25px 25px; padding: 20px 27px 22px; transform: rotate(-1.5deg); box-shadow: 0 14px 35px #08142338; }
.visual-top { display: flex; align-items: center; justify-content: space-between; color: #b0c3dc; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.visual-dot { width: 6px; height: 6px; border-radius: 50%; background: #97dcb8; box-shadow: 0 0 0 4px #97dcb815; }
.version-display { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 9px 0 0; font-family: var(--mono); font-weight: 700; line-height: 1.2; }
.big-four, .big-five { font-size: clamp(90px, 9.4vw, 168px); letter-spacing: -.1em; }
.big-four { color: #9dc5ff; }
.big-five { color: #ffb985; }
.version-arrow { color: #728caa; font-size: 41px; margin: 0 6px; }
.visual-platform { position: relative; text-align: center; font-family: var(--mono); font-size: 15px; color: #dce7f5; border: 1px solid #6a86a8; background: #243e5d; border-radius: 6px; padding: 8px 12px; margin: 14px 10px 21px; }
.visual-platform::after { content: ""; position: absolute; bottom: -14px; left: 50%; height: 13px; border-left: 1px solid #7891ae; }
.visual-branch { display: flex; gap: 20px; justify-content: center; font-family: var(--mono); font-size: 12px; }
.visual-branch span { border: 1px solid #6b87ab; background: #213954; color: #b6d2fb; padding: 5px 24px; border-radius: 4px; }
.visual-branch span:last-child { color: #ffbe8f; border-color: #a47758; background: #574032; }
.visual-foot { text-align: center; color: #a4b6cf; margin-top: 19px; font-size: 10px; letter-spacing: .08em; }
.classroom-guide { margin-top: 13px; border: 1px solid #3a4e69; border-radius: 11px; padding: 17px 22px 12px; background: #1d304a; }
.guide-heading { display: flex; gap: 9px; align-items: center; margin-bottom: 12px; }
.guide-heading h2 { font-size: 17px; font-weight: 600; }
.guide-icon { font-size: 21px; color: #ffba87; }
.guide-heading .offline-badge { margin-left: auto; color: #c4d9cb; border-color: #587466; font-size: 10px; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-grid > div + div { border-left: 1px solid #42556f; padding-left: 24px; }
.guide-grid p { font-size: 14px; color: #c4d1e3; line-height: 1.65; }
.guide-grid strong { color: #f2d1b5; font-weight: 600; }
.guide-grid p + p { margin-top: 7px; }
.guide-grid code { color: #e7eef9; background: #14233a; font-size: 12px; }
.guide-grid kbd { background: #12223a; border-color: #667991; color: #e3edf9; box-shadow: none; min-width: 19px; font-size: 10px; }
.guide-grid .inline-button { color: #ffc399; display: inline; font-size: 12px; }
.demo-shortcuts { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 11px; margin-top: 10px; }
.demo-shortcuts > span { color: #a8bdd6; font-size: 10px; }
.demo-shortcuts a { text-decoration: none; color: #f6c4a0; border: 1px solid #755b4c; border-radius: 4px; padding: 2px 6px; background: #3c3540; }
.demo-shortcuts a:hover { background: #5a4142; }
.simulation-note { color: #a9bcd4; font-size: 10px; margin-top: 10px; }
.cover .speaker-notes, .closing .speaker-notes { border-color: #3c526e; color: #b8c8df; margin-top: 20px; }
.cover .speaker-notes ul, .closing .speaker-notes ul { background: #1b304c; border-color: #48607f; color: #d7e1ef; }
.closing-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 40px; padding: 24px 0 30px; }
.closing h2 { font-size: clamp(46px, 4.7vw, 78px); line-height: 1.2; }
.closing-takeaways { margin: 32px 0 28px; color: #cfdbeb; font-size: 23px; }
.closing-takeaways p + p { margin-top: 17px; }
.closing-takeaways strong { color: #f4f7fb; padding-right: 6px; }
.takeaway-index { font-family: var(--mono); font-size: 13px; padding-right: 16px; color: #ffb985; }
.closing-secondary { border: 1px solid #607591; background: transparent; color: #c9d8eb; font-weight: 400; }
.closing-secondary:hover { background: #263d5d; text-decoration: none; }
.closing-mark { display: flex; flex-direction: column; align-items: center; color: #9bacc3; gap: 11px; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.closing-mark strong { width: 190px; height: 190px; display: grid; place-items: center; font-size: 99px; color: #b5dfc4; background: #203b45; border: 1px solid #5c8b7d; border-radius: 50%; font-weight: 400; box-shadow: 0 0 0 17px #28495820, 0 0 0 36px #28495815; margin: 16px 0; }
.closing-references { border-top: 1px solid #3b536f; padding-top: 20px; }
.closing-references h3 { font-size: 14px; font-weight: 500; color: #becde0; margin-bottom: 10px; }
.closing-references a { font-size: 13px; color: #b9d3fd; display: block; width: fit-content; margin: 8px 0; }
.closing-references p { font-size: 11px; color: #a3b6d0; margin-top: 12px; }

/* Architecture and conceptual comparisons are code-native, not screenshots. */
.agenda-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agenda-card { position: relative; display: flex; align-items: center; gap: 19px; border: 1px solid var(--line); border-radius: 10px; padding: 22px; color: var(--ink); background: #fff; text-decoration: none; min-height: 116px; }
.agenda-card:hover { border-color: #d58d5c; background: #fffaf6; text-decoration: none; }
.agenda-number { font-family: var(--mono); font-size: 34px; color: var(--five); font-weight: 400; letter-spacing: -.07em; }
.agenda-card h3 { font-size: 21px; margin-bottom: 6px; }
.agenda-card p { font-size: 15px; color: var(--muted); }
.agenda-pages { position: absolute; right: 14px; bottom: 9px; font-size: 10px; color: #6b7b92; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 23px; padding: 28px 0 20px; }
.timeline-node { position: relative; padding: 0 12px; }
.timeline-year { display: block; font-family: var(--mono); font-size: 18px; color: #758398; margin-bottom: 23px; }
.timeline-dot { width: 17px; height: 17px; background: #bdc8d6; border: 4px solid #f7f8fb; box-shadow: 0 0 0 2px #bdc8d6; border-radius: 50%; position: relative; margin-bottom: 35px; z-index: 1; }
.timeline-node::after { content: ""; height: 2px; position: absolute; background: #cfd9e6; top: 62px; left: 18px; right: -30px; }
.timeline-node:last-child::after { display: none; }
.timeline-node h3 { font-size: 32px; margin-bottom: 18px; }
.timeline-node p { color: var(--muted); font-size: 21px; line-height: 1.7; min-height: 120px; }
.timeline-node.version-four h3, .timeline-node.version-four .timeline-year { color: var(--four); }
.timeline-node.version-five h3, .timeline-node.version-five .timeline-year { color: var(--five); }
.version-four .timeline-dot { background: var(--four); box-shadow: 0 0 0 2px var(--four); }
.version-five .timeline-dot { background: var(--five); box-shadow: 0 0 0 2px var(--five); }
.timeline-feature { display: inline-block; margin-top: 17px; font-family: var(--mono); background: #edf0f5; color: #66748b; font-size: 14px; padding: 7px 12px; border-radius: 5px; }
.version-four .timeline-feature { color: var(--four); background: var(--four-soft); }
.version-five .timeline-feature { color: var(--five); background: var(--five-soft); }
.baseline-card { display: flex; align-items: center; justify-content: center; gap: 26px; border: 1px solid var(--line); border-radius: 10px; padding: 26px; background: #fff; font-family: var(--mono); }
.baseline-card > span:first-child { color: var(--muted); font-family: var(--sans); font-size: 17px; }
.baseline-card strong { font-size: 28px; letter-spacing: -.05em; }
.baseline-separator { color: #8997aa; font-size: 19px; }
.concept-card { padding: 26px 28px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.card-number { display: inline-flex; align-items: center; justify-content: center; height: 33px; width: 33px; border-radius: 7px; background: #eef2f8; color: #6e7f96; font-family: var(--mono); font-size: 14px; margin-bottom: 18px; }
.concept-card h3 { font-size: 25px; margin-bottom: 13px; }
.concept-card p { font-size: 21px; color: var(--muted); line-height: 1.65; }
.accent-four { border-color: #bcd0f3; background: #f4f8ff; }
.accent-four .card-number { background: var(--four-soft); color: var(--four); }
.architecture-layout { display: grid; grid-template-columns: .8fr 1.7fr; gap: 38px; align-items: center; }
.architecture-four { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.architecture-four > p { color: var(--muted); font-size: 20px; }
.monolith { width: 100%; border: 2px solid #759de5; border-radius: 11px; background: #edf4ff; padding: 30px 20px; }
.monolith-label { display: block; color: var(--four); font-size: 13px; margin-bottom: 20px; }
.monolith > strong { font-family: var(--mono); font-size: 32px; color: var(--four); }
.monolith-list { display: flex; flex-direction: column; align-items: center; gap: 12px; color: #365789; font-size: 20px; margin-top: 30px; }
.architecture-five { text-align: center; }
.architecture-heading { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.layer-label { display: block; font-size: 10px; color: #6b7a90; letter-spacing: .07em; margin-bottom: 8px; }
.architecture-entry { background: #fff; border: 1px solid #cad6e7; border-radius: 9px; padding: 15px 18px; }
.architecture-entry > div { display: flex; justify-content: space-evenly; flex-wrap: wrap; gap: 15px; font-size: 18px; font-weight: 500; }
.architecture-arrow { display: flex; align-items: center; justify-content: center; gap: 13px; color: #8697af; height: 39px; font-size: 27px; line-height: 1; }
.architecture-arrow span { font-family: var(--mono); font-size: 10px; }
.platform-layer { border: 2px solid #607da8; border-radius: 10px; background: #eaf0f9; padding: 16px 20px; }
.platform-layer h3 { color: #314f7c; font-size: 28px; }
.platform-layer p { color: #36557c; font-size: 21px; margin: 8px 0 3px; }
.platform-layer > span:last-child { color: #577092; font-size: 13px; }
.engine-layer { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.engine-layer > div { border: 1px solid #c7d1de; background: #edf1f5; border-radius: 9px; padding: 17px 14px; }
.engine-layer h3 { font-family: var(--mono); color: #52637b; font-size: 23px; }
.engine-layer p { font-size: 17px; color: #68778b; margin-top: 9px; }
.engine-layer .jupiter-engine { border-color: #dfa376; background: #fff0e3; }
.jupiter-engine h3 { color: var(--five); }
.jupiter-engine p { color: #95613d; }
.module-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.module-cards > div { position: relative; border: 1px solid var(--line); border-top: 4px solid #6b86a9; border-radius: 8px; background: #fff; padding: 22px; }
.module-cards h3 { font-family: var(--mono); font-size: 27px; margin-bottom: 11px; }
.module-cards p { font-size: 19px; color: var(--muted); line-height: 1.6; }
.module-index { position: absolute; right: 17px; top: 12px; font-family: var(--mono); font-size: 33px; color: #d9e1ec; }
.module-cards .module-jupiter { border-top-color: #d4874e; }
.module-jupiter h3 { color: var(--five); }
.analogy-icon { display: inline-flex; margin-right: 12px; font-size: 25px; }
.dependency-strip { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 15px 20px; border: 1px dashed #cfb398; border-radius: 8px; background: #fff9f1; font-family: var(--mono); font-size: 21px; }
.dependency-strip > span:first-child { font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; line-height: 1.5; }
table th, table td { padding: 14px 19px; border-bottom: 1px solid #e1e7f0; vertical-align: middle; font-size: 20px; font-weight: 400; }
table thead th { background: #edf1f7; font-size: 15px; color: #556781; font-weight: 600; padding-top: 13px; padding-bottom: 13px; }
table tbody tr:last-child > * { border-bottom: 0; }
table tbody tr:nth-child(even) { background: #f8fafd; }
table tbody th { font-weight: 600; color: #43546d; }
.comparison-table thead th:nth-child(2) { background: #eaf1ff; color: var(--four); }
.comparison-table thead th:nth-child(3) { background: #fff0e3; color: var(--five); }
.comparison-table td:nth-child(2) code { color: var(--four); }
.comparison-table td:nth-child(3) code { color: var(--five); }
.comparison-table th:first-child { width: 20%; white-space: nowrap; }
.comparison-table td:nth-child(2) { width: 36%; }
.comparison-table td:nth-child(3) { width: 44%; }
.module-table th:first-child { white-space: nowrap; }
.module-table td { font-size: 20px; }
.annotation-table td code { font-size: 20px; }
.annotation-table td:last-child code { font-weight: 600; }
.summary-table th, .summary-table td { font-size: 18px; padding: 12px 17px; }
.summary-table tbody tr:first-child { background: #e8eff9; }
.summary-table tbody tr:first-child > * { font-weight: 700; }
.annotation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.annotation-card { display: flex; flex-direction: column; text-decoration: none; padding: 25px 23px; border: 1px solid #e6d1c0; border-radius: 9px; background: #fff; color: var(--ink); min-height: 193px; }
.annotation-card:hover { text-decoration: none; background: #fffbf6; border-color: #b97748; }
.annotation-card > code { color: var(--five); font-size: 22px; font-weight: 600; margin-bottom: 14px; }
.annotation-card p { color: var(--muted); font-size: 21px; line-height: 1.6; }
.annotation-card > span { font-size: 12px; color: #a3673d; margin-top: auto; padding-top: 18px; }
.message-position { display: flex; justify-content: center; align-items: center; gap: 48px; padding: 16px 10px 25px; }
.message-position > div { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.message-position > div > span { font-family: var(--mono); font-size: 15px; }
.message-position strong { font-size: 37px; }
.message-position > span { color: #8492a6; font-size: 35px; }
.difference-chips { display: flex; gap: 22px; font-size: 16px; color: #50627e; }
.difference-chips b { font-family: var(--mono); color: var(--five); font-size: 12px; margin-right: 6px; }
.demo-version { display: flex; flex-direction: column; gap: 12px; }
.calc-code pre { font-size: 20px; line-height: 1.35; max-height: 349px; }
.version-4-button.button.primary { background: #2455b7; border-color: #2455b7; }
.version-4-button.button.primary:hover { background: #1d458f; }
.demo-summary-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 18px; color: #465a76; }

/* Interactive demonstrations. */
.live-demo { border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 20px; min-width: 0; }
.live-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.live-heading h3 { font-size: 20px; letter-spacing: -.025em; }
.live-heading code { font-size: 19px; }
.person-inputs { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.person-inputs label, .compact-form label { display: flex; flex-direction: column; gap: 6px; color: #53657f; font-size: 12px; font-family: var(--mono); }
input[type="text"], input[type="number"], select { background: #f9fbfd; border: 1px solid #a8b7cd; color: var(--ink); border-radius: 6px; padding: 8px 12px; min-height: 43px; font-family: var(--mono); font-size: 22px; }
.person-inputs input { width: 168px; }
.person-inputs .button { font-size: 14px; }
.assertion-demos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.assertion-demos > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mini-demo-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mini-demo-heading h3 { font-size: 18px; }
.mini-demo-heading .button { font-size: 14px; padding: 8px 12px; min-height: 36px; }
.assertion-demos .code-block pre { min-height: 154px; font-size: 18px; }
.assertion-demos .test-report { flex-grow: 1; font-size: 16px; }
.timeout-equation { display: flex; gap: 25px; align-items: center; font-size: 25px; font-weight: 600; margin: 25px 0; }
.timeout-equation > span:nth-child(2) { color: #99a5b5; }
.compact-form { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; margin-bottom: 16px; }
.compact-form input { width: 148px; }
.compact-form .button { font-size: 14px; }
#p14 .live-demo .callout { margin-top: 17px; font-size: 17px; padding: 13px 15px; }
.select-label { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: #51617b; margin-bottom: 18px; }
.select-label select { font-family: var(--sans); font-size: 17px; width: 100%; }
#p14 .test-report { margin-top: 13px; font-size: 16px; }
.partly-demo { border-top: 1px solid var(--line); padding-top: 17px; margin-top: 22px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #50627f; margin-bottom: 13px; }
input[type="checkbox"], input[type="radio"] { width: 17px; height: 17px; accent-color: #af511c; cursor: pointer; flex-shrink: 0; }
.explanation { margin-top: 19px; }
.explanation h3 { font-size: 22px; margin-bottom: 9px; }
.explanation p { color: var(--muted); font-size: 21px; line-height: 1.6; }
.exception-intro { display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; background: #fff; }
.exception-intro > div:first-child { flex: 1; }
.fact-label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.exception-intro > div:first-child > code { font-size: 22px; color: #354967; }
.exception-types { display: flex; flex-direction: column; align-items: center; font-family: var(--mono); font-size: 17px; }
.exception-types > span:nth-child(2) { color: #7c8b9f; font-size: 12px; margin: 4px; }
.exception-types strong { color: var(--five); font-weight: 600; }
.exception-fact { margin-left: 8px; border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.exception-fact strong { font-size: 22px; }
.exception-fact span { font-size: 12px; color: var(--muted); }
.prediction-options { margin: 17px 0 0; padding: 14px 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.prediction-options legend { font-size: 16px; padding: 0 6px; color: #455a77; }
.prediction-options label { display: inline-flex; align-items: center; gap: 7px; font-size: 18px; margin-right: 24px; padding: 4px; cursor: pointer; }
.exception-actions .subtle { font-size: 15px; }
.nested-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; }
.nested-code pre { max-height: 440px; font-size: 19px; line-height: 1.4; }
.test-tree { padding: 18px 16px; margin: 18px 0; border: 1px solid #cdd8e6; border-radius: 8px; background: #f6faf8; font-size: 20px; min-height: 230px; }
.tree-empty { color: #65758c; font-size: 16px; line-height: 1.7; padding: 42px 7px; }
.test-tree details { margin: 8px 0; }
.test-tree summary { cursor: pointer; color: #276446; padding: 5px 0; }
.test-tree summary .node-check { color: #177341; margin-right: 7px; }
.tree-children { border-left: 1px solid #b1c8b9; margin: 4px 0 4px 10px; padding-left: 19px; }
.tree-leaf { padding: 7px 0; color: #236543; font-size: 17px; }
.nested-facts { display: flex; flex-direction: column; gap: 10px; margin-top: 19px; font-size: 17px; color: #50647f; }
.nested-facts strong { color: #354e70; }
.parameter-four-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; }
.parameter-four-code pre { max-height: 565px; font-size: 19px; line-height: 1.45; }
.parameter-costs { display: flex; flex-direction: column; gap: 10px; }
.cost-intro { padding: 8px 0 14px; }
.cost-intro strong { font-size: 23px; }
.cost-intro p { color: var(--muted); font-size: 18px; margin-top: 8px; }
.parameter-costs .concept-card { position: relative; padding: 17px 17px 17px 58px; }
.parameter-costs .card-number { position: absolute; left: 14px; top: 15px; width: 29px; height: 29px; font-size: 12px; background: var(--four-soft); color: var(--four); }
.parameter-costs .concept-card h3 { font-size: 19px; margin-bottom: 7px; }
.parameter-costs .concept-card p { font-size: 16px; }
.parameter-comparison { position: relative; }
.parameter-workbench { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
.parameter-workbench > * { min-width: 0; }
.parameter-workbench .code-pair { grid-template-columns: minmax(0, 1fr); gap: 13px; }
.parameter-workbench .parameter-code pre { min-height: 115px; max-height: 115px; font-size: 17px; }
.parameter-workbench .code-toolbar { padding: 8px 11px; }
.parameter-workbench .code-source { padding-bottom: 7px; }
.parameter-workbench .parameter-table td { padding: 9px 12px; font-size: 18px; }
.parameter-workbench .parameter-table td:last-child { font-size: 13px; }
.parameter-workbench .live-heading { flex-wrap: wrap; }
.parameter-workbench .live-heading .button { font-size: 14px; padding: 9px 12px; min-height: 38px; }
.parameter-workbench .parameter-form { gap: 9px; margin-top: 17px; }
.parameter-workbench .parameter-form > span:first-child { width: 100%; font-size: 12px; }
.parameter-workbench .parameter-form input { width: 79px; }
.parameter-workbench .parameter-form .button { font-size: 14px; min-height: 38px; padding: 9px 12px; }
.parameter-workbench .test-report { font-size: 15px; }
.parameter-count { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.parameter-count > span { font-family: var(--mono); font-size: 51px; line-height: 1; letter-spacing: -.05em; }
.parameter-count > span:nth-child(2) { color: #91a0b5; font-size: 34px; }
.parameter-count p { margin-left: 3px; padding-left: 20px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.6; }
.parameter-code pre { max-height: 178px; min-height: 178px; font-size: 18px; line-height: 1.35; }
.parameter-table { font-family: var(--mono); }
.parameter-table th { font-size: 13px; }
.parameter-table td { font-size: 20px; padding: 9px 18px; }
.parameter-table td:last-child { font-size: 15px; }
.parameter-table .row-pass { color: #1a6f42; }
.parameter-table .row-fail { color: var(--red); }
.parameter-table .row-neutral { color: #7d899b; }
.parameter-table .row-running { color: #9d5d23; }
.parameter-table tr.added { background: #fff9f1; }
.parameter-form { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; font-size: 14px; margin: 19px 0 12px; }
.parameter-form > span:first-child { font-weight: 600; color: #536680; }
.parameter-form label { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 16px; }
.parameter-form input { width: 87px; font-size: 19px; }
.expected-preview { color: #835731; white-space: nowrap; }
.expected-preview output { font-family: var(--mono); font-size: 21px; font-weight: 600; }
.parameter-form .button { font-size: 15px; }
.source-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.source-tags > span { border: 1px solid #dce2ed; border-radius: 6px; background: #fff; padding: 8px 10px; font-size: 13px; color: #60728d; }
.source-tags code { color: var(--five); font-size: 13px; }
.organization-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.organization-card { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 21px; display: flex; flex-direction: column; gap: 13px; }
.organization-card h3 { color: var(--five); font-family: var(--mono); font-size: 24px; }
.organization-card > p { font-size: 18px; color: var(--muted); }
.organization-code pre { max-height: 181px; min-height: 150px; font-size: 18px; }
.organization-card .test-report { flex-grow: 1; font-size: 15px; }
.organization-card .button { font-size: 14px; padding: 9px 13px; min-height: 39px; }
.section-reset { display: flex; justify-content: flex-end; }
.extension-comparison { display: flex; align-items: center; justify-content: center; gap: 40px; padding: 21px 0; }
.extension-comparison > div { display: flex; flex-direction: column; gap: 15px; text-align: center; }
.extension-comparison > div > span { font-family: var(--mono); font-size: 14px; }
.extension-comparison strong { font-size: 23px; }
.extension-comparison > span { font-size: 36px; color: #93a0b3; }
.migration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.migration-step { padding: 25px 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.migration-step > span { display: block; font-family: var(--mono); font-size: 32px; color: #aebcd0; margin-bottom: 18px; }
.migration-step h3 { font-size: 24px; margin-bottom: 15px; }
.migration-step p { font-size: 20px; color: var(--muted); line-height: 1.65; }
.migration-bookend { background: #fff8f1; border-color: #e5bf9d; }
.migration-bookend > span { color: #b76a31; }
.pitfall-grid .concept-card { border-left: 4px solid #d2a475; }
.pitfall-grid .card-number { background: #fff0df; color: #a4662e; font-size: 22px; }
.pitfall-important { background: #fff9f2; border-color: #e7c59f; }
.pitfall-grid strong { display: block; margin-top: 8px; color: #765230; }
.build-success-warning { display: flex; justify-content: center; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: 9px; padding: 20px 24px; background: #fff; }
.build-success-warning .status-pass { color: var(--green); font-family: var(--mono); font-size: 23px; }
.build-success-warning > span:nth-child(2) { color: var(--red); font-size: 35px; }
.build-success-warning strong { font-size: 24px; }
.six-slide { background: #eef2f8; }
.junit-six-layout { display: grid; grid-template-columns: 2.3fr 1fr; align-items: center; gap: 20px; }
.junit-six-layout .eyebrow { font-size: 11px; }
.six-table th { white-space: nowrap; font-size: 18px; }
.six-table td { font-size: 21px; }
.six-decoration { font-family: var(--mono); text-align: center; font-size: clamp(190px, 21vw, 320px); line-height: 1; color: #c3cfe0; font-weight: 700; letter-spacing: -.1em; text-shadow: 4px 7px 0 #d8e0ec; }
.reference-line { color: #65738b; font-size: 13px; }
.model-difference { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.model-difference > div { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 18px; }
.model-difference span { font-size: 12px; color: #6b7d97; }
.model-difference p { margin-top: 8px; font-size: 18px; color: #405876; }
.model-difference > div:last-child { background: #fff6ed; border-color: #e6c5a7; }
.model-difference > div:last-child p { color: #975421; }

/* Answers are absent from the visible page until each reveal is clicked. */
.quiz-topline { display: flex; align-items: center; justify-content: space-between; gap: 17px; }
.quiz-topline > p { color: var(--muted); font-size: 17px; max-width: 45%; }
.quiz-score { display: flex; gap: 16px; font-size: 13px; color: #64768f; }
.quiz-score strong { color: var(--five); font-family: var(--mono); font-size: 22px; }
.quiz-topline .button { font-size: 14px; }
.quiz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quiz-card { display: flex; flex-direction: column; gap: 19px; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 22px; }
.quiz-question { display: flex; align-items: flex-start; gap: 12px; }
.quiz-question > span { font-family: var(--mono); font-size: 17px; color: #b36129; padding-top: 2px; }
.quiz-question h3 { font-size: 21px; line-height: 1.6; letter-spacing: -.025em; }
.quiz-options { display: flex; flex-wrap: wrap; flex-direction: column; gap: 10px; border: 0; margin: 0; padding: 0; }
.quiz-options label { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; cursor: pointer; width: fit-content; }
.quiz-reveal { display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.quiz-reveal .button { font-size: 14px; min-height: 36px; width: fit-content; padding: 7px 13px; }
.quiz-answer { font-size: 18px; font-family: var(--mono); border-radius: 6px; padding: 12px 14px; background: #edf7f0; color: #246946; }
.quiz-answer.incorrect { color: #922e3b; background: #fff0f1; }
.quiz-answer.unanswered { color: #6c5b37; background: #fff7e8; }
.quiz-card.revealed { border-color: #aac6b5; }
.quiz-card.revealed.incorrect { border-color: #dfa7af; }

/* Resource dialogs contain the full original source and the README mapping. */
dialog { border: 1px solid #cbd6e6; border-radius: 14px; color: var(--ink); background: #f8fafd; padding: 0; width: min(1160px, calc(100vw - 52px)); max-height: calc(100dvh - 48px); box-shadow: 0 30px 100px #04102660; }
dialog::backdrop { background: #081426a8; backdrop-filter: blur(3px); }
.dialog-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); padding: 20px 25px; background: #fff; }
.dialog-topbar .eyebrow { font-size: 10px; margin-bottom: 7px; }
.dialog-topbar h2 { font-size: 27px; }
.dialog-close { display: grid; place-items: center; font-size: 31px; line-height: 1; width: 38px; height: 38px; flex-shrink: 0; border: 1px solid var(--line); border-radius: 7px; background: #f8fafc; color: #5c6d88; }
.dialog-close:hover { background: #edf1f7; }
.dialog-body { padding: 24px 27px; }
.dialog-body h3 { font-size: 22px; margin: 24px 0 15px; }
.dialog-body p { font-size: 18px; color: #516580; line-height: 1.7; }
.resource-intro { font-size: 21px !important; color: var(--ink) !important; }
.resource-prep { border: 1px solid #d9e1ec; border-radius: 9px; padding: 17px 21px; margin-top: 20px; background: #fff; }
.resource-prep h3 { margin: 0 0 13px; }
.resource-prep ol { padding-left: 23px; margin: 0 0 15px; font-size: 18px; line-height: 1.8; color: #465b77; }
.resource-prep li + li { margin-top: 7px; }
.resource-prep p { font-size: 14px; }
.project-table { min-width: 780px; }
.project-table td { font-size: 16px; padding: 15px 17px; }
.project-table td:first-child { width: 8%; font-family: var(--mono); }
.project-table td:nth-child(2) { width: 25%; }
.project-table td:nth-child(3) { width: 30%; }
.resource-dialog .callout { margin-top: 20px; font-size: 18px; }
.resource-dialog .code-block { margin-top: 15px; }
.resource-links { display: flex; flex-wrap: wrap; gap: 15px 22px; margin-top: 26px; align-items: center; }
.resource-links a, .resource-links button { font-size: 15px; }
.source-selector { display: flex; align-items: center; gap: 12px; padding: 17px 25px 0; }
.source-selector label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.source-selector select { flex: 1; width: 0; min-width: 0; font-size: 14px; }
.source-selector a { font-size: 13px; white-space: nowrap; }
.source-dialog .code-block pre { max-height: 62vh; font-size: 20px; }
.source-integrity { font-size: 12px !important; margin-top: 16px; }
.copy-dialog { max-width: 740px; }
.copy-dialog > p { font-size: 18px; margin: 20px 25px; }
.copy-dialog textarea { display: block; resize: vertical; width: calc(100% - 50px); margin: 0 25px 25px; border: 1px solid #adb9cc; border-radius: 7px; min-height: 250px; background: var(--code); color: #e5edf7; padding: 16px; font-family: var(--mono); font-size: 18px; }
.toast { position: fixed; left: 50%; bottom: 82px; transform: translateX(-50%); z-index: 100; padding: 12px 22px; border: 1px solid #5e789a; border-radius: 8px; background: #223957; color: #fff; font-size: 15px; box-shadow: 0 6px 24px #07132640; max-width: min(650px, 88vw); }
.noscript-note { position: fixed; right: 10px; bottom: 73px; max-width: 420px; background: #fff2d7; color: #5c4525; border: 1px solid #c8a567; border-radius: 7px; font-size: 15px; padding: 12px; z-index: 30; }

/* Keep the complete central architecture visible on a short classroom projector. */
@media (max-height: 850px) and (min-width: 901px) {
  #p5 { padding-top: 22px; padding-bottom: 16px; }
  #p5 .slide-heading { margin-bottom: 16px; }
  #p5 .slide-heading .eyebrow { margin-bottom: 8px; }
  #p5 .slide-subtitle { margin-top: 8px; font-size: 19px; }
  #p5 .slide-content { gap: 14px; }
  #p5 .architecture-heading { margin-bottom: 9px; }
  #p5 .architecture-entry { padding: 10px 16px; }
  #p5 .layer-label { margin-bottom: 4px; }
  #p5 .architecture-arrow { height: 26px; }
  #p5 .platform-layer { padding: 10px 18px; }
  #p5 .platform-layer h3 { font-size: 26px; }
  #p5 .platform-layer p { font-size: 19px; line-height: 1.4; margin: 7px 0 1px; }
  #p5 .platform-layer > span:last-child { display: block; line-height: 1.4; }
  #p5 .engine-layer > div { padding: 10px 12px; }
  #p5 .engine-layer h3 { font-size: 21px; }
  #p5 .engine-layer p { font-size: 16px; margin-top: 5px; }
  #p5 .monolith { padding: 20px 18px; }
  #p5 .monolith-label { margin-bottom: 13px; }
  #p5 .monolith-list { margin-top: 23px; gap: 9px; }
  #p5 .architecture-four { gap: 12px; }
  #p5 .architecture-four > p { font-size: 18px; }
  #p5 .callout { font-size: 17px; line-height: 1.45; padding: 11px 15px; }
  #p5 .speaker-notes { margin-top: 16px; }
}

@media (min-width: 1700px) {
  .slide { padding: 42px 57px 30px; }
  .slide-heading { margin-bottom: 31px; }
  .slide-subtitle { font-size: 23px; }
  .slide-content { gap: 25px; }
  .code-block pre { font-size: 23px; }
  .calc-code pre { max-height: 480px; font-size: 23px; }
  table th, table td { font-size: 23px; padding-top: 17px; padding-bottom: 17px; }
  .summary-table th, .summary-table td { font-size: 21px; padding: 13px 20px; }
  .test-report { font-size: 20px; }
  .parameter-code pre { font-size: 21px; min-height: 200px; max-height: 200px; }
  .parameter-workbench .parameter-code pre { min-height: 158px; max-height: 158px; font-size: 21px; }
  .parameter-workbench .test-report { font-size: 18px; }
  .parameter-workbench .parameter-table td { font-size: 21px; padding: 13px 18px; }
  .guide-grid p { font-size: 16px; }
  .classroom-guide { margin-top: 23px; padding: 22px 26px 17px; }
  .cover-subtitle { font-size: 25px; }
  .cover-grid { gap: 75px; }
  .cover, .closing { padding: 40px 56px 26px; }
}

@media (max-width: 1150px) {
  :root { --nav-width: 207px; }
  .slide { padding: 27px 29px 20px; }
  .header-tools { gap: 5px; }
  .cover, .closing { padding: 30px; }
  .cover-grid { gap: 26px; }
  .cover h1 { font-size: 39px; }
  .cover-subtitle { font-size: 18px; }
  .cover-visual { padding: 19px; }
  .big-four, .big-five { font-size: 106px; }
  .visual-branch span { padding: 5px 15px; }
  .guide-grid { gap: 16px; }
  .guide-grid > div + div { padding-left: 16px; }
  .footer-shortcuts { display: none; }
  .comparison-table th, .comparison-table td { font-size: 18px; padding: 12px 13px; }
  .module-table td { font-size: 18px; }
  .annotation-grid { grid-template-columns: 1fr 1fr; }
  .annotation-card > code { font-size: 20px; }
  .architecture-layout { grid-template-columns: .85fr 1.6fr; gap: 22px; }
  .architecture-entry > div { font-size: 14px; gap: 8px; }
  .engine-layer h3 { font-size: 19px; }
  .module-cards { gap: 12px; }
  .module-cards > div { padding: 18px; }
  .module-cards p { font-size: 16px; }
  .timeline-node p { font-size: 18px; }
  .timeline-node h3 { font-size: 27px; }
  .baseline-card { gap: 18px; }
  .baseline-card strong { font-size: 23px; }
  .exception-intro { flex-wrap: wrap; }
  .exception-fact { display: none; }
  .live-heading { flex-wrap: wrap; }
  .live-heading h3 { font-size: 18px; }
  .quiz-topline { flex-wrap: wrap; }
  .quiz-topline > p { max-width: 100%; }
}

@media (max-width: 900px) {
  :root { --nav-width: 0px; }
  body { grid-template-rows: 62px minmax(0, 1fr) 60px; }
  .app-header { padding: 0 13px; }
  .sidebar { position: fixed; top: 62px; bottom: 60px; left: 0; width: 234px; transform: translateX(-100%); z-index: 25; box-shadow: 10px 0 50px #0c1b3330; padding: 22px 13px 14px; visibility: hidden; }
  .sidebar-open .sidebar { transform: none; visibility: visible; }
  .sidebar-open .course::after { content: ""; position: fixed; inset: 62px 0 60px 234px; background: #0d1e3840; z-index: 24; }
  .nav-collapsed .sidebar { padding: 22px 13px 14px; }
  .project-tool { display: none; }
  .header-tools { gap: 4px; }
  .tool-button { font-size: 12px; padding: 7px; }
  .mode-switch button { font-size: 12px; padding: 5px 10px; }
  .slide { padding: 26px; }
  .slide-heading h2 { font-size: 33px; }
  .slide-subtitle { font-size: 19px; }
  .cover h1 { font-size: 45px; }
  .cover-visual { max-width: 330px; }
  .closing-takeaways { font-size: 20px; }
  .closing-mark strong { width: 150px; height: 150px; font-size: 80px; }
  .app-footer { padding-left: 18px; padding-right: 18px; }
  .footer-current { min-width: 0; gap: 10px; }
  #current-caption { font-size: 12px; }
  .footer-button { font-size: 12px; padding: 8px 11px; gap: 10px; }
}

@media (max-width: 650px) {
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 28px; height: 31px; font-size: 24px; }
  .brand-subtitle { font-size: 8px; }
  .header-brand { gap: 5px; }
  #fullscreen-label { display: none; }
  #notes-toggle { font-size: 11px; padding-left: 5px; padding-right: 5px; }
  #notes-toggle > span:first-child { display: none; }
  .mode-switch button { padding: 5px 7px; }
  .slide { padding: 24px 18px 20px; }
  .slide-heading h2 { font-size: 29px; }
  .slide-subtitle { font-size: 17px; }
  .eyebrow { font-size: 10px; gap: 7px; flex-wrap: wrap; }
  .live-marker, .focus-marker { font-size: 9px; }
  .slide-content { gap: 18px; }
  .two-column, .code-pair, .demo-pair, .concept-grid, .prediction-grid, .pitfall-grid, .agenda-grid, .annotation-grid, .assertion-demos, .nested-layout, .parameter-four-layout, .organization-grid, .migration-grid, .quiz-grid, .model-difference { grid-template-columns: 1fr; gap: 18px; }
  .callout { font-size: 17px; padding: 14px 16px; }
  .callout.emphasis { flex-direction: column; align-items: flex-start; gap: 9px; }
  .concept-card { padding: 23px; }
  .concept-card h3 { font-size: 23px; }
  .concept-card p { font-size: 19px; }
  .code-block pre { font-size: 17px; padding: 14px; }
  .code-caption { font-size: 10px; gap: 6px; }
  .code-caption > span:last-child:not(.version-tag) { max-width: 165px; }
  .code-toolbar { padding: 9px 11px; }
  .version-tag { font-size: 10px; padding: 2px 6px; }
  .copy-button { font-size: 11px; min-width: 40px; padding: 3px 7px; }
  .test-report { font-size: 15px; padding: 13px 14px; }
  .report-summary { font-size: 13px; }
  .button { font-size: 15px; min-height: 42px; }
  .cover, .closing { padding: 30px 22px 20px; }
  .cover-grid, .closing-grid { grid-template-columns: 1fr; gap: 30px; }
  .cover h1 { font-size: clamp(31px, 7.8vw, 48px); }
  .cover .eyebrow { font-size: 10px; margin-bottom: 20px; }
  .cover-subtitle { font-size: 19px; }
  .cover-visual { display: none; }
  .cover-meta { font-size: 12px; margin: 19px 0; }
  .guide-heading h2 { font-size: 16px; }
  .classroom-guide { padding: 18px 16px; margin-top: 9px; }
  .guide-grid { grid-template-columns: 1fr; gap: 17px; }
  .guide-grid > div + div { border-left: 0; border-top: 1px solid #42556f; padding: 15px 0 0; }
  .guide-grid p { font-size: 14px; }
  .simulation-note { font-size: 11px; }
  .offline-badge { display: none; }
  .closing-grid { padding-top: 15px; }
  .closing h2 { font-size: 47px; }
  .closing-mark { display: none; }
  .closing-takeaways { font-size: 19px; }
  .closing .start-button { font-size: 14px; }
  .closing-secondary { font-size: 14px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 30px 15px; padding: 13px 0; }
  .timeline-node { padding: 0 5px; }
  .timeline-node::after { display: none; }
  .timeline-year { font-size: 14px; margin-bottom: 18px; }
  .timeline-dot { margin-bottom: 24px; }
  .timeline-node h3 { font-size: 29px; }
  .timeline-node p { font-size: 17px; min-height: 85px; }
  .timeline-feature { font-size: 12px; margin-top: 10px; }
  .baseline-card { flex-wrap: wrap; gap: 15px; padding: 20px 15px; }
  .baseline-card > span:first-child { width: 100%; text-align: center; font-size: 14px; }
  .baseline-card strong { font-size: 20px; }
  .architecture-layout { grid-template-columns: 1fr; gap: 27px; }
  .monolith { max-width: 310px; padding: 20px; }
  .monolith-list { flex-direction: row; gap: 15px; font-size: 17px; margin-top: 17px; justify-content: center; }
  .architecture-four > p { font-size: 17px; }
  .platform-layer h3 { font-size: 27px; }
  .platform-layer p { font-size: 18px; }
  .engine-layer { gap: 11px; }
  .engine-layer h3 { font-size: 16px; }
  .engine-layer p { font-size: 13px; }
  .engine-layer > div { padding: 13px 8px; }
  .module-cards { grid-template-columns: 1fr; }
  .module-cards > div { padding: 18px 23px; }
  .module-cards h3 { font-size: 24px; }
  .module-cards p { font-size: 18px; }
  .comparison-table, .module-table { min-width: 630px; }
  .comparison-table th, .comparison-table td { font-size: 18px; padding: 13px; }
  .comparison-table th:first-child { width: 22%; }
  .dependency-strip { gap: 11px; padding: 16px 10px; font-size: 15px; flex-wrap: wrap; }
  .message-position { gap: 26px; }
  .message-position strong { font-size: 28px; }
  .difference-chips { font-size: 13px; gap: 10px; flex-wrap: wrap; }
  .demo-summary-bar { align-items: flex-start; font-size: 16px; }
  .live-demo { padding: 17px; }
  .live-heading code { font-size: 15px; }
  .person-inputs input { width: 133px; font-size: 21px; }
  .person-inputs { gap: 11px; }
  .person-inputs label { font-size: 10px; }
  .person-inputs .button { font-size: 13px; }
  .assertion-demos .code-block pre { min-height: 0; font-size: 16px; }
  .content-details > summary { font-size: 15px; padding: 14px; }
  .content-details > p { font-size: 17px; padding: 15px; }
  .content-details > .code-block, .content-details > .code-pair { margin: 0 12px 14px; }
  .exception-intro { padding: 17px; justify-content: center; gap: 18px; }
  .exception-intro > div:first-child { flex: none; width: 100%; text-align: center; }
  .exception-intro > div:first-child > code { font-size: 20px; }
  .exception-types { font-size: 17px; }
  .prediction-options legend { font-size: 14px; }
  .nested-code pre { max-height: 365px; }
  .parameter-four-code pre { max-height: 460px; font-size: 16px; }
  .parameter-code pre { min-height: 0; max-height: 170px; font-size: 16px; }
  .parameter-workbench { grid-template-columns: 1fr; }
  .parameter-workbench .parameter-code pre { font-size: 16px; max-height: 170px; min-height: 0; }
  .parameter-count > span { font-size: 44px; }
  .parameter-count { gap: 14px; }
  .parameter-count p { font-size: 12px; padding-left: 16px; }
  .parameter-table { min-width: 340px; }
  .parameter-table th, .parameter-table td { font-size: 15px; padding: 9px 10px; }
  .parameter-form { gap: 11px; }
  .parameter-form > span:first-child { width: 100%; }
  .parameter-form input { width: 74px; font-size: 17px; padding: 8px; }
  .expected-preview { font-size: 12px; }
  .source-tags > span { font-size: 12px; }
  .source-tags code { font-size: 12px; }
  .organization-card { padding: 18px; }
  .organization-code pre { min-height: 0; }
  .extension-comparison { gap: 16px; }
  .extension-comparison strong { font-size: 18px; }
  .migration-step { padding: 22px; }
  .migration-step h3 { font-size: 23px; }
  .migration-step p { font-size: 19px; }
  .build-success-warning { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .build-success-warning .status-pass { font-size: 20px; }
  .build-success-warning strong { font-size: 21px; }
  .junit-six-layout { grid-template-columns: 1fr; }
  .six-decoration { display: none; }
  .six-table th { font-size: 15px; padding: 15px; }
  .six-table td { font-size: 17px; padding: 15px; }
  .quiz-topline { gap: 15px; }
  .quiz-topline > p { font-size: 15px; }
  .quiz-question h3 { font-size: 20px; }
  .quiz-card { padding: 20px; }
  .quiz-answer { font-size: 16px; }
  .speaker-notes > summary { font-size: 12px; }
  .speaker-notes ul { font-size: 17px; padding: 16px 19px 16px 34px; }
  .app-footer { padding: 5px 13px 0; gap: 5px; }
  #current-caption { display: none; }
  .page-counter { border: 0; padding-right: 0; gap: 5px; font-size: 11px; }
  .page-counter strong { font-size: 21px; }
  .footer-button { padding: 8px 11px; gap: 9px; min-height: 39px; }
  dialog { width: calc(100vw - 22px); max-height: calc(100dvh - 24px); border-radius: 11px; }
  .dialog-topbar { padding: 17px; }
  .dialog-topbar h2 { font-size: 22px; }
  .dialog-body { padding: 18px 16px; }
  .resource-intro { font-size: 18px !important; }
  .resource-prep { padding: 17px; }
  .resource-prep ol { font-size: 16px; }
  .source-selector { padding: 17px 16px 0; flex-wrap: wrap; gap: 10px; }
  .source-selector select { font-size: 11px; }
  .source-selector a { margin-left: auto; }
  .source-dialog .code-block pre { font-size: 16px; }
  .resource-dialog .callout { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { height: auto; display: block; background: #fff; font-size: 16px; }
  .app-header, .sidebar, .app-footer, .actions, .copy-button, .source-link, .speaker-notes, .toast, dialog, .skip-link, .footer-controls { display: none !important; }
  .app-shell { display: block; }
  .course { height: auto; overflow: visible; }
  .js .is-slides .slide:not(.is-active) { display: block; }
  .slide { display: block; min-height: 0; break-before: page; padding: 20px; max-width: none; }
  .slide:first-child { break-before: auto; }
  .cover, .closing { background: #122139 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .code-block, .test-report { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .code-block pre { max-height: none; overflow: visible; white-space: pre-wrap; font-size: 14px; }
  .parameter-code pre { min-height: 0; }
  .table-wrap { overflow: visible; }
  table th, table td { font-size: 14px; }
}
