.exam-page { background: #071b27; color: #f4f5f3; }
.exam-header { border-bottom: 1px solid #ffffff18; }
.exam-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; }
.exam-nav img { width: 132px; }
.exam-nav > a:last-child { color: #d8a57f; font-size: .9rem; }
.exam-kicker { margin: 0 0 22px; color: #d8a57f; font-size: .8rem; font-weight: 600; letter-spacing: .12em; }
.exam-intro { padding: 64px 0 40px; }
.exam-intro h1 { font-size: clamp(2.6rem, 4.8vw, 4.6rem); max-width: 100%; line-height: 1.1; }
.intro-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; align-items: start; }
.intro-bottom h2 { color: #d8a57f; font-size: 1.5rem; }
.intro-bottom p { margin: 0; color: #c2ced3; max-width: 570px; }
.explore-section { padding: 30px 0 90px; }
.explore-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; }
.model-column { min-width: 0; }
.model-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-bottom: 1px solid #ffffff24; padding-bottom: 15px; }
.model-heading h2 { font-size: 1.5rem; color: white; }
.model-heading > span { font-size: .75rem; letter-spacing: .12em; color: #a4bbc3; }
.model-stage { position: relative; height: 490px; background: radial-gradient(ellipse at 52% 48%, #254957 0%, #102f3c 43%, #071b27 74%); }
#model-canvas { position: absolute; inset: 0; touch-action: pan-y; }
#model-canvas canvas { display: block; width: 100%; height: 100%; cursor: grab; }
#model-canvas canvas:active { cursor: grabbing; }
.model-legend { position: absolute; top: 18px; left: 0; display: flex; gap: 18px; font-size: .75rem; pointer-events: none; }
.model-legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #cc9b79; }
.model-legend .legend-scope::before { background: #74e2e0; }
.model-tip { position: absolute; bottom: 5px; left: 0; font-size: .8rem; color: #b1c2c9; pointer-events: none; }
.model-disclaimer { font-size: .8rem; color: #a7b9c2; margin: 10px 0 18px; }
.model-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.model-controls button { font: 500 .88rem var(--font-body); border: 1px solid #ffffff40; color: white; background: transparent; border-radius: 4px; padding: 11px 14px; cursor: pointer; min-height: 44px; }
.model-controls #play { background: #d8a57f; color: #071b27; border-color: #d8a57f; }
.model-controls button:disabled { opacity: .45; cursor: default; }
.range-label { display: flex; justify-content: space-between; font-size: .8rem; color: #c2ced3; margin-top: 22px; }
#progress { width: 100%; accent-color: #d8a57f; min-height: 36px; cursor: pointer; }
.journey-copy { padding-top: 10px; }
.patient-explanation { padding-top: 30px; }
.patient-explanation h3 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.patient-explanation p { color: #c2ced3; line-height: 1.8; margin: 20px 0 0; }
.step-buttons { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 32px; }
.step-buttons button { display: flex; align-items: center; gap: 12px; padding: 17px 5px; font: 500 1rem var(--font-body); border: 0; border-bottom: 1px solid #ffffff30; background: transparent; color: #a7bbc6; text-align: left; cursor: pointer; }
.step-buttons button span { font-size: .8rem; }
.exam-page[data-exam="colonoscopy"] .step-buttons button:last-child { grid-column: 1 / -1; }
.exam-page[data-exam="colonoscopy"] .model-fallback ol { font-size: 1.15rem; line-height: 1.7; }
.step-buttons button[aria-pressed=true] { color: #e6b58f; border-color: #d8a57f; }
.step-description { min-height: 210px; }
.step-count { font-size: .8rem; color: #d8a57f; letter-spacing: .1em; }
.step-description h3 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); }
.step-description > p:last-child { color: #c2ced3; line-height: 1.8; }
.journey-note { padding-top: 22px; border-top: 1px solid #ffffff24; color: #a7bbc6; font-size: .92rem; margin-bottom: 28px; }
.model-fallback { padding: 70px 30px 30px; color: #d8a57f; }
.model-fallback ol { color: white; font: 500 1.5rem var(--font-heading); line-height: 1.9; }
.model-fallback p:last-child { font-size: .9rem; color: #c2ced3; }
.exam-information { background: #eef2f1; color: #10232d; padding: 95px 0; }
.information-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 70px; }
.exam-information .exam-kicker, .exam-faq .exam-kicker { color: #9c5c35; }
.information-layout h2 { font-size: clamp(2.1rem, 3.2vw, 3.2rem); }
.information-rows article { display: flex; gap: 24px; padding: 25px 0; border-bottom: 1px solid #10232d25; }
.information-rows article:first-child { padding-top: 0; }
.information-rows article > span { color: #9c5c35; }
.information-rows h3 { font-size: 1.6rem; }
.information-rows p { color: #50636c; margin-bottom: 0; }
.exam-faq { padding-block: 85px; color: #10232d; }
.exam-page:has(.exam-faq) { background: #f9f8f6; }
.exam-header, .exam-intro, .explore-section { background-color: #071b27; }
.exam-faq h2 { margin-bottom: 32px; }
.exam-faq details { border-bottom: 1px solid #10232d25; padding: 22px 0; }
.exam-faq summary { cursor: pointer; font-size: 1.2rem; font-weight: 500; }
.exam-faq details p { color: #50636c; max-width: 800px; }
.exam-source { color: #617078; font-size: .8rem; margin-top: 30px; }
.exam-source a { text-decoration: underline; }
.exam-closing { padding: 70px 0; background: #0a2936; }
.exam-closing h2 { color: white; margin-bottom: 30px; }
.exam-closing .container > p:last-child { color: #a7bbc6; font-size: .85rem; margin-bottom: 0; }
.exam-footer { background: transparent; color: #10232d; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-block: 30px; font-size: .85rem; }
.exam-page :focus-visible { outline: 3px solid #d8a57f; outline-offset: 5px; }
[hidden] { display: none !important; }
@media(min-width: 801px) {
  .exam-intro { padding: 48px 0 32px; }
  .intro-bottom { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; max-width: 760px; }
  .intro-bottom p { max-width: 720px; }
  .explore-section { padding-top: 24px; }
  .explore-layout { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; }
  .model-heading { min-height: 48px; align-items: center; padding-bottom: 14px; }
  .journey-copy { padding-top: 0; min-width: 0; }
  .journey-copy > .exam-kicker { display: flex; align-items: center; min-height: 48px; margin: 0; padding-bottom: 14px; border-bottom: 1px solid #ffffff24; }
  .step-buttons { margin-top: 14px; margin-bottom: 26px; }
  .step-count { margin: 0 0 14px; }
  .step-description > p:last-child { margin: 18px 0 0; }
}
@media(max-width: 800px) {
  .exam-nav { min-height: 84px; }.exam-nav img { width: 105px; }.exam-nav > a:last-child { font-size: .8rem; }
  .exam-intro { padding-top: 38px; }.intro-bottom { grid-template-columns: 1fr; gap: 14px; margin-top: 25px; }
  .explore-layout,.information-layout { grid-template-columns: 1fr; gap: 36px; }.model-stage { height: 410px; }
  .journey-copy { padding-top: 0; }.step-description { min-height: 170px; }.exam-information { padding: 60px 0; }.exam-faq { padding-block: 60px; }
  .model-heading h2 { font-size: 1.3rem; }.model-legend { font-size: .7rem; gap: 10px; }.explore-section { padding-bottom: 50px; }
}
