@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-400.ttf?v=47ed1cfaa7ff") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-600.ttf?v=733eb93b167e") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-700.ttf?v=75367e6da7d9") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("assets/fonts/open-sans-800.ttf?v=8e325b2fc46c") format("truetype"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --night: #0d315e;
  --night-deep: #09284e;
  --night-soft: #143f70;
  --green: #e80060;
  --green-dark: #bd004f;
  --lime: #35b7d4;
  --mint: #e8f8ed;
  --blue: #dff5fb;
  --paper: #ffffff;
  --white: #ffffff;
  --ink: #112b4d;
  --muted: #586b86;
  --line: #cdddea;
  --yellow: #ffc638;
  --error: #a7352a;
  --error-light: #fff0ee;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--night); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #8fdcff; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 20px; font-size: clamp(2.35rem, 4.2vw, 4.25rem); line-height: .98; letter-spacing: -.052em; font-weight: 800; }
h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.16; letter-spacing: -.035em; }
h3 { margin-bottom: 7px; font-size: 1.05rem; line-height: 1.3; }
p { margin-bottom: 20px; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 24px; }
img { max-width: 100%; }
svg { flex: 0 0 auto; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; border-radius: 8px; background: #fff; color: var(--ink); padding: 12px 16px; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.course-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 86px;
  display: grid;
  grid-template-columns: minmax(255px, 1fr) minmax(250px, 360px) minmax(350px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 34px;
  color: white;
  border-bottom: 1px solid #2d4d55;
  background: linear-gradient(120deg, #061923 0%, #071b25 58%, #0a222b 100%);
}
.course-header::after { content: ""; position: absolute; inset: 0 auto 0 260px; width: 180px; pointer-events: none; opacity: .28; background: linear-gradient(132deg, transparent 0 35%, #00b96b 35% 44%, transparent 44% 52%, #70ef67 52% 63%, transparent 63%); }
.course-identity { position: relative; z-index: 1; display: flex; align-items: center; width: max-content; gap: 14px; color: white; font-size: 1.4rem; font-weight: 760; line-height: 1.08; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 60px; color: var(--lime); }
.brand-mark svg { width: 54px; height: 54px; stroke-width: 2.7; }
.identity-subtitle { display: block; margin-top: 5px; color: #e1e8ec; font-size: .79rem; font-weight: 400; letter-spacing: 0; }
.module-search { position: relative; z-index: 1; display: flex; align-items: center; height: 50px; border: 1px solid #355762; border-radius: 15px; background: #061923b8; color: white; }
.module-search svg { position: absolute; left: 17px; width: 21px; height: 21px; }
.module-search input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: white; padding: 0 18px 0 51px; }
.module-search input::placeholder { color: #d7e0e4; opacity: 1; }
.header-tools { position: relative; z-index: 1; justify-self: end; display: flex; align-items: center; gap: 12px; }
.header-tools > #save-status { max-width: 130px; color: #b9c7cd; font-size: .72rem; text-align: right; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: white; }
.icon-button:hover { background: #173640; }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border: 2px solid var(--night); border-radius: 50%; background: #ff3038; }
.profile-avatar { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background: #149154; color: white; font-size: .98rem; font-weight: 700; }

.connection-notice { position: relative; z-index: 5; padding: 8px 28px; border-bottom: 1px solid #31505a; background: #123039; color: #dce7ea; font-size: .74rem; text-align: center; }
.connection-notice:empty { display: none; }
.connection-notice.error { background: #5a201e; color: white; font-weight: 650; }

.course-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 86px); background: radial-gradient(circle at 92% 22%, #075137 0, transparent 27%), linear-gradient(145deg, var(--night-deep), var(--night) 52%, #06252b); }
.course-sidebar { position: sticky; top: 86px; align-self: start; height: calc(100vh - 86px); overflow-y: auto; padding: 20px 16px 22px; color: white; border-right: 1px solid #21414a; background: linear-gradient(180deg, #073b31 0%, #08232b 43%, #071c25 100%); }
.dashboard-link { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 56px; margin-bottom: 26px; padding: 0 20px; border: 0; border-radius: 14px; background: linear-gradient(120deg, #2cdd53, #07865f); color: white; font-weight: 750; text-align: left; box-shadow: 0 9px 26px #0bc66929; }
.dashboard-link svg { width: 22px; height: 22px; }
.module-number { display: flex; gap: 5px; padding: 0 18px; color: #d7e4e6; font-size: .87rem; }
.module-number strong { font-weight: 500; }
.sidebar-title { margin: 7px 0 16px; padding: 0 18px; color: white; font-size: 1.45rem; line-height: 1.05; font-weight: 770; letter-spacing: -.025em; }
.progress-ring { --progress: 0deg; position: relative; display: grid; place-items: center; width: 92px; height: 92px; margin: 18px auto 8px; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), #0c6f55 var(--progress)); }
.progress-ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #0a2630; }
.progress-ring strong { position: relative; z-index: 1; color: white; font-size: 1.28rem; }
.progress-meta { display: grid; justify-items: center; color: #d8e2e5; font-size: .76rem; line-height: 1.3; }
.progress-meta strong { margin-top: 4px; color: white; font-size: .83rem; }
.course-sidebar > progress { position: absolute; width: 1px; height: 1px; opacity: 0; }
#step-navigation { display: flex; flex-direction: column; gap: 2px; margin: 15px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid #31505a; }
#step-navigation button { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; width: 100%; min-height: 47px; padding: 6px 10px; border: 0; border-radius: 13px; background: transparent; color: #e3ecee; font-size: .78rem; line-height: 1.25; text-align: left; }
#step-navigation button:hover:not(:disabled) { background: #143b42; }
#step-navigation button[aria-current="step"] { background: linear-gradient(90deg, #05a966, #078558); color: white; font-weight: 700; }
#step-navigation button:disabled { color: #8ca0a7; }
.step-dot { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border: 1px solid #9fb0b5; border-radius: 50%; color: white; font-size: .78rem; }
.step-dot.done { border-color: var(--lime); background: var(--lime); color: #063223; font-weight: 800; }
#step-navigation button[aria-current="step"] .step-dot:not(.done) { border-color: white; background: white; color: #08794b; }
.sidebar-foot { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 17px 16px; border: 1px solid #276456; border-radius: 15px; background: #0e4239; }
.sidebar-foot > svg { width: 29px; height: 29px; color: var(--lime); }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { font-size: .82rem; }
.sidebar-foot span { margin-top: 3px; color: #d3e0e1; font-size: .69rem; line-height: 1.35; }

main { min-width: 0; padding: 16px; outline: none; }
#content { min-height: 100%; }
body:not([data-step="0"]) #content { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 4vw, 58px); border: 1px solid #d8e0e5; border-radius: 20px; background: var(--paper); box-shadow: 0 22px 70px #020c126b; }
.eyebrow { margin-bottom: 13px; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.intro { max-width: 760px; margin-bottom: 30px; color: #46576a; font-size: 1.08rem; line-height: 1.65; }

.module-hero { position: relative; min-height: 380px; overflow: hidden; border: 1px solid #79a998; border-radius: 22px; background: #0a2630; box-shadow: 0 20px 70px #0010167a; }
.module-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 66%; }
.module-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #06151af7 0%, #06151adf 28%, #06151a6b 54%, #06151a0a 75%), linear-gradient(0deg, #03141b8c 0%, transparent 50%); }
.module-hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; min-height: 380px; max-width: 620px; padding: 40px 46px; color: white; }
.module-hero-copy .eyebrow { color: var(--lime); }
.module-hero-copy h1 { margin-bottom: 16px; font-size: clamp(3.5rem, 5.8vw, 5.1rem); line-height: .92; text-shadow: 0 2px 18px #0009; }
.module-hero-copy h1 span { color: var(--lime); }
.module-hero-copy > p:not(.eyebrow) { max-width: 530px; margin-bottom: 24px; color: #f0f5f6; font-size: 1.08rem; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 21px; border: 1px solid var(--green); border-radius: 13px; background: var(--green); color: white; font-size: .9rem; line-height: 1.2; font-weight: 740; text-decoration: none; box-shadow: 0 7px 18px #0a7a4330; }
.button:hover { border-color: #087d49; background: #087d49; }
.button svg { width: 19px; height: 19px; }
.button-bright { border-color: var(--lime); background: linear-gradient(180deg, #7bff85, #3ddd65); color: #041710; box-shadow: 0 8px 24px #56f4774a; }
.button-bright:hover { border-color: #9aff9d; background: #8cff91; }
.button-glass, .button-secondary { border-color: #8ca3ac; background: #102c3482; color: white; box-shadow: none; }
.button-glass:hover, .button-secondary:hover { border-color: #c8d7dc; background: #173c45; }
.button-small { min-height: 40px; padding: 8px 13px; border-color: #45616b; border-radius: 11px; font-size: .75rem; }
.button-reset { border-color: #7fa09a; background: #123b3a; color: #dfffe9; box-shadow: none; }
.button-reset:hover { border-color: var(--lime); background: #174d45; }
.button:disabled { border-color: #cbd4d8; background: #dce3e6; color: #718087; box-shadow: none; }

.start-panel { margin-top: 16px; padding: 19px 22px 17px; border: 1px solid #d7e2e7; border-radius: 20px; background: #f8fafc; box-shadow: 0 16px 38px #00151d38; }
.start-panel h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 13px; font-size: 1.48rem; }
.start-panel h2 > span { width: 5px; height: 28px; border-radius: 4px; background: var(--green); }
.objective-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.objective-card { display: grid; grid-template-columns: 62px 1fr; gap: 15px; min-height: 140px; padding: 21px 19px; overflow: hidden; border: 1px solid #dce5e8; border-radius: 16px; background: #eef8f3; }
.objective-card > svg { width: 58px; height: 58px; padding: 14px; border-radius: 50%; background: #88f59b; color: #042b24; }
.objective-card span { display: block; margin-bottom: 3px; font-size: .74rem; font-weight: 800; }
.objective-card h3 { font-size: 1rem; font-weight: 800; letter-spacing: -.018em; }
.objective-card p { color: #1f3042; font-size: .81rem; line-height: 1.4; }
.objective-blue { background: #edf4fc; }
.objective-blue > svg { background: #98d5ff; }
.objective-mint { background: #eff8f4; }
.objective-mint > svg { background: #b3f0c2; }
.workflow-panel { padding-top: 15px; padding-bottom: 15px; }
.workflow-panel h2 { margin-bottom: 8px; font-size: 1.22rem; }
.workflow-panel h2 > span { height: 24px; }
.workflow-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; padding: 0 20px; }
.workflow-grid > div { display: flex; align-items: center; gap: 14px; }
.workflow-grid > div > svg { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: #b8f6c5; color: #073c2b; }
.workflow-grid > svg { width: 23px; color: #0a1b2f; }
.workflow-grid p { margin: 0; font-size: .78rem; line-height: 1.35; }
.workflow-grid strong { display: block; font-size: .92rem; }
.start-footer-actions { display: flex; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 10px 13px; border: 1px solid #31505a; border-radius: 18px; background: #061923cc; }

.reading-measure { max-width: 780px; }
.difference-list { margin: 24px 0 32px; }
.difference-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-top: 1px solid var(--line); }
.difference-row:last-child { border-bottom: 1px solid var(--line); }
.difference-row dt { font-size: 1.18rem; font-weight: 800; }
.difference-row dd { margin: 0; }
.difference-row p { margin-bottom: 7px; }
.examples { color: var(--muted); font-size: .83rem; }
.prevention-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; padding: 0; list-style: none; }
.prevention-list li { padding: 16px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.prevention-list strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.important-line { margin: 25px 0; padding: 16px 18px; border-left: 5px solid var(--yellow); border-radius: 0 10px 10px 0; background: #fff7de; font-size: .92rem; }
.activity-topline { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 20px 0 12px; }
.activity-topline strong { color: var(--green-dark); font-size: .85rem; }
.activity-topline span { color: var(--muted); font-size: .75rem; }
.scene-wrap { position: relative; overflow: hidden; border: 1px solid #a7bab1; border-radius: 15px; background: #e8ede9; }
.scene-wrap img { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 2px solid #051922; border-radius: 50%; background: var(--yellow); color: #07152a; font-size: 1rem; font-weight: 800; box-shadow: 0 4px 14px #07182066; }
.hotspot:hover { background: #ffe07d; }
.hotspot.found { border-color: white; background: var(--green); color: white; }
.hotspot.inspected:not(.found) { background: white; }
.scene-caption { margin: 8px 0 19px; color: var(--muted); font-size: .72rem; }
.feedback { margin-top: 18px; padding: 18px 20px; border-left: 5px solid var(--green); border-radius: 0 10px 10px 0; background: var(--mint); }
.feedback h3 { margin-bottom: 7px; font-size: 1rem; }
.feedback p { margin-bottom: 8px; font-size: .88rem; }
.feedback.neutral { border-color: #809589; background: #eff3f1; }
.feedback.incorrect { border-color: var(--error); background: var(--error-light); }
.feedback.incorrect h3 { color: var(--error); }
details { margin: 20px 0; }
summary { padding: 10px 0; cursor: pointer; font-size: .85rem; font-weight: 700; }
.object-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 8px 0; }
.object-list button { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: .8rem; text-align: left; }
.object-list button.found { border-color: var(--green); background: var(--mint); }
.object-list button span { font-weight: 800; }
.scenario-counter { margin-bottom: 9px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.scenario-copy { max-width: 760px; margin: 20px 0 27px; padding: 8px 0 8px 20px; border-left: 5px solid var(--yellow); font-size: 1.02rem; }
.answer-form { max-width: 790px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { width: 100%; margin-bottom: 15px; font-size: 1.04rem; font-weight: 700; line-height: 1.45; }
.answer-option { display: flex; align-items: flex-start; gap: 13px; min-height: 57px; margin-bottom: 10px; padding: 15px 16px; border: 1px solid #bfcbd1; border-radius: 11px; background: white; cursor: pointer; font-size: .96rem; }
.answer-option:hover { border-color: var(--green); background: #f3fbf7; }
.answer-option:has(input:checked) { border-color: var(--green); background: var(--mint); box-shadow: inset 4px 0 var(--green); }
.answer-option:has(input:focus-visible) { outline: 3px solid #1585b8; outline-offset: 3px; }
.answer-option input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; accent-color: var(--green); }
.answer-option input:focus-visible { outline: 0; }
.answer-option:has(input:disabled) { cursor: default; }
.form-error { margin: 10px 0 14px; color: var(--error); font-size: .84rem; font-weight: 700; }
.question-progress { display: flex; align-items: center; gap: 12px; margin: 20px 0 24px; }
.question-progress span { white-space: nowrap; font-size: .8rem; font-weight: 700; }
.question-progress progress { width: min(230px, 50vw); height: 7px; overflow: hidden; border: 0; border-radius: 9px; accent-color: var(--green); }
.quiz-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-summary { display: flex; align-items: center; gap: 25px; margin: 22px 0; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.score { color: var(--green-dark); font-size: 3rem; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.score.failed { color: var(--error); }
.quiz-summary h2 { margin-bottom: 4px; }
.quiz-summary p { color: var(--muted); font-size: .87rem; }
.review-question { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review-question h3 { margin-bottom: 8px; font-size: .93rem; }
.review-question p { margin-bottom: 6px; font-size: .85rem; }
.answer-correct { color: var(--green-dark); font-weight: 700; }
.answer-wrong { color: var(--error); font-weight: 700; }
.result-header { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 26px; }
.result-symbol { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 65px; height: 65px; border-radius: 50%; background: var(--green); color: white; font-size: 2.2rem; }
.result-header h1 { margin-bottom: 10px; font-size: 2.45rem; }
.result-metrics { display: flex; flex-wrap: wrap; gap: 45px; margin-bottom: 28px; padding: 23px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result-metrics strong { display: block; font-size: 1.8rem; line-height: 1.2; }
.result-metrics span { color: var(--muted); font-size: .78rem; }
.takeaways { max-width: 770px; padding-left: 23px; }
.takeaways li { padding-bottom: 9px; }
.save-result { margin-top: 22px; color: var(--muted); font-size: .85rem; }
.page-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 35px; padding-top: 22px; border-top: 1px solid var(--line); }
.page-actions .button-secondary { border-color: #8ba0aa; background: white; color: var(--ink); }
.page-actions .button-secondary:hover { background: #eaf1f3; }
.page-actions .action-note { max-width: 330px; color: var(--muted); font-size: .76rem; }
.course-footer { display: flex; justify-content: space-between; gap: 20px; padding: 13px 24px; border-top: 1px solid #24424b; background: #04151d; color: #89a0a8; font-size: .69rem; }
.text-button { padding: 1px 0; border: 0; border-bottom: 1px solid #6c838b; background: transparent; color: #b9c7cc; font-size: .69rem; }
.no-script { padding: 30px; color: white; }
dialog { max-width: 500px; padding: 30px; border: 1px solid #8d9f93; border-radius: 14px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #031219cc; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.dialog-actions .button-secondary { border-color: #8699a1; background: white; color: var(--ink); }
.ended-view { max-width: 750px; padding: 30px 0; }
.ended-view h1 { font-size: 2.4rem; }

@media (max-width: 1180px) {
  .course-header { grid-template-columns: minmax(220px, 1fr) minmax(220px, 300px) auto; padding: 0 22px; }
  .course-header::after { display: none; }
  .header-tools > #save-status { display: none; }
  .course-shell { grid-template-columns: 218px minmax(0, 1fr); }
  .course-sidebar { padding-left: 12px; padding-right: 12px; }
  .objective-card { grid-template-columns: 48px 1fr; padding: 17px 15px; }
  .objective-card > svg { width: 46px; height: 46px; padding: 11px; }
  .workflow-grid { padding: 0; gap: 10px; }
  .workflow-grid > div > svg { width: 42px; height: 42px; }
}

@media (max-width: 900px) {
  .course-header { grid-template-columns: 1fr auto; }
  .module-search { display: none; }
  .course-shell { grid-template-columns: 196px minmax(0, 1fr); }
  .course-identity { font-size: 1.16rem; }
  .brand-mark { width: 47px; height: 50px; }
  .brand-mark svg { width: 47px; height: 47px; }
  .objective-grid { grid-template-columns: 1fr; }
  .objective-card { min-height: 0; }
  .workflow-grid { grid-template-columns: 1fr; align-items: start; }
  .workflow-grid > svg { display: none; }
  .prevention-list { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { font-size: 16px; }
  .course-header { position: sticky; height: 70px; padding: 0 14px; }
  .course-identity { width: auto; gap: 9px; font-size: .92rem; }
  .brand-mark { width: 40px; height: 42px; }
  .brand-mark svg { width: 40px; height: 40px; }
  .identity-subtitle { display: none; }
  .header-tools { gap: 7px; }
  .header-tools .icon-button { display: none; }
  .header-tools .button-small { width: 42px; padding: 0; border-radius: 50%; }
  .header-tools .button-small span { display: none; }
  .profile-avatar { display: none; }
  .connection-notice { padding: 8px 14px; text-align: left; }
  .course-shell { display: block; min-height: calc(100vh - 70px); }
  .course-sidebar { position: relative; top: auto; height: auto; overflow: hidden; padding: 11px 12px 9px; border-right: 0; border-bottom: 1px solid #31505a; }
  .dashboard-link, .progress-ring, .progress-meta, .sidebar-foot { display: none; }
  .module-number { display: inline-flex; padding: 0; font-size: .69rem; }
  .sidebar-title { display: inline; margin-left: 8px; padding: 0; font-size: .8rem; }
  .sidebar-title br { display: none; }
  #step-navigation { flex-direction: row; gap: 6px; margin: 10px -2px 0; padding: 8px 2px 2px; overflow-x: auto; border-top-color: #31505a; scrollbar-width: none; }
  #step-navigation::-webkit-scrollbar { display: none; }
  #step-navigation li { flex: 0 0 auto; }
  #step-navigation button { display: flex; grid-template-columns: none; width: auto; min-height: 44px; padding: 5px 9px; border-radius: 11px; white-space: nowrap; font-size: .7rem; }
  .step-dot { width: 28px; height: 28px; }
  main { padding: 10px; }
  body:not([data-step="0"]) #content { padding: 27px 18px; border-radius: 16px; }
  h1 { font-size: 2.45rem; }
  .module-hero { min-height: 550px; border-radius: 17px; }
  .module-hero-image { height: 100%; object-position: 57% center; }
  .module-hero-shade { background: linear-gradient(0deg, #04151cf7 0%, #04151ce8 45%, #04151c1c 83%), linear-gradient(90deg, #04151c9a, transparent 72%); }
  .module-hero-copy { justify-content: flex-end; min-height: 550px; padding: 28px 23px; }
  .module-hero-copy h1 { font-size: 3.45rem; }
  .module-hero-copy > p:not(.eyebrow) { font-size: .98rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .start-panel { padding: 18px 14px; border-radius: 16px; }
  .objective-card { grid-template-columns: 52px 1fr; }
  .workflow-grid { gap: 16px; }
  .start-footer-actions { flex-direction: column-reverse; padding: 12px; }
  .start-footer-actions .button { width: 100%; }
  .difference-row { grid-template-columns: 1fr; gap: 4px; }
  .object-list { grid-template-columns: 1fr; }
  .page-actions { flex-wrap: wrap; }
  .page-actions .action-note { order: -1; width: 100%; max-width: none; }
  .page-actions .button { flex: 1 1 135px; }
  .quiz-navigation { flex-direction: column-reverse; }
  .quiz-navigation .button { width: 100%; }
  .quiz-summary, .result-header { align-items: flex-start; }
  .result-metrics { gap: 23px; }
  .course-footer { padding: 13px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Parish Learning direction, grounded in the Manchester Diocese visual system. */
body { background: #fff; color: var(--ink); }
.course-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 80px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 0 48px;
  border-bottom: 0;
  background: #0d315e;
}
.course-header::after, .brand-mark, .module-search, .header-tools .icon-button { display: none; }
.course-identity { display: flex; align-items: center; width: auto; gap: 24px; color: #fff; }
.platform-name { font-size: 1.58rem; font-weight: 800; letter-spacing: -.035em; }
.brand-divider { width: 4px; height: 44px; border-radius: 3px; background: #39b8d4; }
.course-name { font-size: 1.05rem; font-weight: 700; line-height: 1.15; }
.identity-subtitle { margin-top: 3px; color: #e1edf7; font-size: .76rem; font-weight: 400; }
.header-tools { gap: 12px; }
.header-tools > #save-status { color: #d7e6f1; }
.header-tools .button-small { min-height: 44px; padding: 9px 17px; border: 1px solid #fff; border-radius: 999px; background: transparent; color: #fff; }
.header-tools .button-small:hover { border-color: #c3effa; background: #174475; }
.profile-avatar { width: 43px; height: 43px; background: #c3effa; color: #112b4d; }
.connection-notice { padding: 7px 24px; border-color: #b8dbe7; background: #e7f7fb; color: #203d61; }
.connection-notice.error { background: #fff0ee; color: #8e2e28; }

.course-shell { display: flex; flex-direction: column; min-height: calc(100vh - 80px); background: #fff; }
.course-sidebar {
  position: sticky;
  top: 80px;
  z-index: 45;
  width: 100%;
  height: auto;
  overflow: visible;
  padding: 10px 44px;
  border: 0;
  border-bottom: 1px solid #c5e2ec;
  background: #eaf8fd;
  color: var(--ink);
}
.dashboard-link, .module-number, .sidebar-title, .progress-ring, .progress-meta, .course-sidebar > progress, .sidebar-foot { display: none; }
#step-navigation { display: flex; flex-direction: row; align-items: stretch; gap: 0; max-width: 1320px; margin: 0 auto; padding: 0; border: 0; }
#step-navigation li { position: relative; flex: 1 1 0; }
#step-navigation li:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 6px; width: 30px; height: 1px; background: #8fd0e1; }
#step-navigation button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  width: calc(100% - 38px);
  min-height: 52px;
  padding: 5px 0;
  border-radius: 0;
  background: transparent;
  color: #264568;
  font-size: .78rem;
}
#step-navigation button:hover:not(:disabled) { background: transparent; color: #0d315e; }
#step-navigation button[aria-current="step"] { background: transparent; color: #0d315e; font-weight: 800; }
#step-navigation button:disabled { color: #6d829b; opacity: 1; }
.step-dot { width: 34px; height: 34px; border-color: #77bad0; background: #f8fdff; color: #17395f; }
.step-dot.done { border-color: #0d315e; background: #0d315e; color: #fff; }
#step-navigation button[aria-current="step"] .step-dot:not(.done) { border-color: #0d66ac; background: #0d66ac; color: #fff; }

main { width: 100%; padding: 22px 42px 42px; background: #fff; }
#content { width: 100%; max-width: 1340px; margin: 0 auto; }
body:not([data-step="0"]) #content { max-width: 1120px; padding: 44px 52px; border: 0; border-radius: 0; background: #fff; box-shadow: none; }
h1, h2, h3 { color: var(--ink); }
.eyebrow { color: #0d4f91; }
.intro { color: #425b79; }

.module-hero {
  display: grid;
  grid-template-columns: minmax(390px, .78fr) minmax(560px, 1.35fr);
  align-items: center;
  min-height: 400px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.module-hero-copy { position: relative; display: flex; justify-content: center; min-height: 400px; max-width: none; padding: 26px 40px 26px 8px; color: var(--ink); }
.module-hero-copy .eyebrow { color: #0d4f91; font-size: .75rem; letter-spacing: .22em; }
.module-hero-copy h1 { margin-bottom: 14px; color: #0d315e; font-size: clamp(3.4rem, 5vw, 4.9rem); line-height: 1; text-shadow: none; }
.title-rule { display: block; width: 98px; height: 6px; margin: 2px 0 19px; background: #39b8d4; }
.module-hero-copy > p:not(.eyebrow) { max-width: 520px; margin-bottom: 24px; color: #2d4868; font-size: 1.04rem; line-height: 1.55; }
.module-hero-media { height: 400px; overflow: hidden; border-radius: 12px; background: #e6f1f4; }
.module-hero-image { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 58% 56%; }
.module-hero-shade { display: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { border-color: #0d315e; border-radius: 999px; background: #0d315e; color: #fff; box-shadow: none; }
.button:hover { border-color: #174f86; background: #174f86; }
.button-bright { border-color: #e80060; background: #e80060; color: #fff; box-shadow: none; }
.button-bright:hover { border-color: #bd004f; background: #bd004f; }
.button-glass, .button-secondary { border-color: #0d315e; background: #fff; color: #0d315e; }
.button-glass:hover, .button-secondary:hover { border-color: #0d315e; background: #edf8fc; color: #0d315e; }
.button-reset { border-color: #fff; background: transparent; color: #fff; }
.button:disabled { border-color: #cad7e0; background: #e8eef2; color: #718298; }

.start-panel { margin-top: 18px; padding: 0; overflow: hidden; border: 1px solid #bcdcea; border-radius: 12px; background: #fff; box-shadow: none; }
.start-panel h2 { gap: 15px; margin: 0; padding: 13px 20px; background: #e6f7fc; font-size: 1.45rem; }
.start-panel h2 > span { width: 5px; height: 27px; background: #30b5d1; }
.objective-grid { display: grid; grid-template-columns: 1fr; gap: 0; }
.objective-card { display: grid; grid-template-columns: 56px minmax(0, 1fr) 24px; align-items: center; gap: 18px; min-height: 80px; padding: 13px 26px; border: 0; border-radius: 0; background: #fff; }
.objective-card:not(:last-child) { border-bottom: 1px solid #cbdde8; }
.objective-card > svg:first-child { width: 48px; height: 48px; padding: 11px; border-radius: 50%; background: #c3effa; color: #0d315e; }
.objective-green > svg:first-child { background: #dff8e9; }
.objective-mint > svg:first-child { background: #e8f8ed; }
.objective-card div { display: grid; grid-template-columns: 40px auto; align-items: baseline; gap: 0 8px; }
.objective-card span { grid-row: 1 / 3; align-self: start; margin: 2px 0 0; }
.objective-card h3 { margin: 0; font-size: .98rem; }
.objective-card p { grid-column: 2; margin: 2px 0 0; color: #3f5876; font-size: .78rem; }
.objective-card .objective-arrow { width: 20px; height: 20px; padding: 0; border-radius: 0; background: transparent; color: #0d315e; }
.workflow-panel { padding: 0; }
.workflow-panel h2 { margin: 0; font-size: 1.2rem; }
.workflow-grid { padding: 14px 28px 16px; }
.workflow-grid > div > svg { background: #c3effa; color: #0d315e; }
.workflow-grid strong { color: #112b4d; }
.start-footer-actions { display: none; }

.important-line { border-left-color: #35b7d4; background: #ebf8fc; }
.feedback { border-left-color: #35b7d4; background: #eaf8fc; }
.feedback.incorrect { border-left-color: var(--error); background: var(--error-light); }
.activity-topline strong, .answer-correct, .score { color: #0d4f91; }
.scene-wrap { border-color: #9ec8d7; }
.hotspot.found { background: #0d66ac; }
.answer-option:hover { border-color: #0d66ac; background: #f0f9fc; }
.answer-option:has(input:checked) { border-color: #0d66ac; background: #e6f7fc; box-shadow: inset 4px 0 #0d66ac; }
.answer-option input { accent-color: #0d66ac; }
.question-progress progress { accent-color: #0d66ac; }
.result-symbol { background: #e80060; }
.page-actions .button-secondary { border-color: #0d315e; background: #fff; color: #0d315e; }
.page-actions .button-secondary:hover { background: #edf8fc; }
.course-footer { padding: 13px 44px; border-color: #c7dce6; background: #f3fbfd; color: #506c86; }
.text-button { border-bottom-color: #7895a9; color: #36536d; }
dialog { border-color: #91b9ca; background: #fff; }
.dialog-actions .button-secondary { border-color: #0d315e; color: #0d315e; }

@media (max-width: 1060px) {
  .course-header { padding: 0 24px; }
  .course-sidebar { padding-left: 22px; padding-right: 22px; }
  #step-navigation li:not(:last-child)::after { width: 14px; right: 4px; }
  #step-navigation button { width: calc(100% - 20px); font-size: .7rem; }
  main { padding-left: 24px; padding-right: 24px; }
  .module-hero { grid-template-columns: minmax(340px, .8fr) minmax(420px, 1.2fr); }
  .module-hero-copy { padding-right: 28px; }
}

@media (max-width: 760px) {
  .course-header { height: 70px; padding: 0 12px; gap: 8px; }
  .course-identity { gap: 10px; min-width: 0; }
  .platform-name { font-size: .92rem; white-space: nowrap; }
  .brand-divider { width: 3px; height: 34px; }
  .course-name { font-size: .73rem; }
  .identity-subtitle { font-size: .61rem; }
  .header-tools { gap: 6px; }
  .header-tools .button-small { width: 39px; min-height: 39px; padding: 0; }
  .header-tools .button-small span, .profile-avatar { display: none; }
  .course-sidebar { top: 70px; padding: 8px 10px; overflow: hidden; }
  #step-navigation { gap: 7px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
  #step-navigation li { flex: 0 0 auto; }
  #step-navigation li::after { display: none; }
  #step-navigation button { width: auto; min-height: 43px; padding: 3px 9px 3px 0; font-size: .68rem; white-space: nowrap; }
  .step-dot { width: 30px; height: 30px; }
  main { padding: 18px 14px 30px; }
  body:not([data-step="0"]) #content { padding: 25px 10px; }
  .module-hero { grid-template-columns: 1fr; min-height: 0; }
  .module-hero-copy { min-height: 0; padding: 12px 4px 22px; }
  .module-hero-copy h1 { font-size: 3.1rem; }
  .module-hero-copy > p:not(.eyebrow) { font-size: .95rem; }
  .module-hero-media { height: 245px; border-radius: 9px; }
  .module-hero-image { object-position: 56% 55%; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .start-panel { border-radius: 9px; }
  .start-panel h2 { padding: 12px 14px; font-size: 1.18rem; }
  .objective-card { grid-template-columns: 48px minmax(0, 1fr) 18px; gap: 10px; padding: 13px 12px; }
  .objective-card > svg:first-child { width: 42px; height: 42px; padding: 10px; }
  .objective-card div { display: block; }
  .objective-card span { display: inline; margin-right: 8px; }
  .objective-card h3 { display: inline; font-size: .9rem; }
  .objective-card p { margin-top: 4px; font-size: .74rem; }
  .workflow-grid { grid-template-columns: 1fr; gap: 15px; padding: 14px; }
  .workflow-grid > svg { display: none; }
  .course-footer { padding: 12px 14px; }
}

/* Question led pilot: welcome, short lessons, practice and final check. */
body[data-step="0"] .course-sidebar { display: none; }
body[data-step="0"] main { padding-top: 28px; }
.pilot-welcome { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); min-height: 390px; background: #e7f6fb; overflow: hidden; }
.pilot-welcome-copy { align-self: center; padding: 42px 50px; }
.pilot-welcome-copy h1 { color: #0d315e; font-size: clamp(3.2rem, 5.3vw, 5rem); }
.pilot-welcome-copy p:not(.eyebrow) { max-width: 32rem; color: #2d4868; font-size: 1.1rem; }
.pilot-welcome > img { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; object-position: 60% center; }
.pilot-intro { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: start; max-width: 930px; margin: 28px 0 36px; padding: 0 8px; }
.pilot-intro p { max-width: 700px; margin: 0; color: #2d4868; font-size: 1.03rem; }
.pilot-section-number { color: #0d4f91; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.pilot-toc { border-top: 5px solid #37b5d1; }
.pilot-toc-head { display: flex; align-items: baseline; gap: 26px; padding: 22px 8px 12px; }
.pilot-toc-head h2 { margin: 0; font-size: 1.75rem; }
.pilot-toc ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #c8dce8; }
.pilot-toc li { border-bottom: 1px solid #c8dce8; }
.pilot-toc button { display: grid; grid-template-columns: 92px minmax(0, 1fr) 110px; align-items: center; width: 100%; min-height: 88px; padding: 12px 15px; border: 0; background: #fff; color: #0d315e; text-align: left; }
.pilot-toc button:hover:not(:disabled) { background: #eaf8fd; }
.pilot-toc button:disabled { opacity: .6; }
.pilot-topic-number { color: #0d4f91; font-size: 1.5rem; font-weight: 800; }
.pilot-topic-copy strong, .pilot-topic-copy small { display: block; }
.pilot-topic-copy strong { font-size: 1.08rem; }
.pilot-topic-copy small { margin-top: 3px; color: #4c6580; font-size: .8rem; }
.pilot-topic-state { justify-self: end; font-size: .78rem; font-weight: 700; }
.pilot-sample-note { margin: 18px 8px 0; color: #536c86; font-size: .76rem; }
.pilot-kicker { display: flex; justify-content: space-between; gap: 16px; margin: 0 0 28px; padding: 0 0 11px; border-bottom: 2px solid #36b6d2; color: #0d4f91; font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pilot-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 42px; align-items: center; min-height: 540px; }
.pilot-story h1, .pilot-question h1, .pilot-habits h1 { max-width: 710px; color: #0d315e; font-size: clamp(2.5rem, 4.2vw, 4.2rem); line-height: 1.06; }
.pilot-story .intro, .pilot-habits .intro { font-size: 1.08rem; }
.pilot-story-visual { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.pilot-story-visual img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 58% center; }
.pilot-story-visual p { margin: 9px 0 0; color: #586b86; font-size: .78rem; }
.pilot-question { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 50px; align-items: start; min-height: 440px; padding-top: 24px; }
.pilot-question-intro p { max-width: 420px; color: #425b79; }
.pilot-question .answer-form { padding: 24px; border-top: 5px solid #35b7d4; background: #eaf8fd; }
.pilot-question .answer-option { border-color: #b7d5e3; }
.pilot-question .feedback { margin-top: 18px; }
.pilot-question > .page-actions { grid-column: 1 / -1; margin-top: 0; }
.pilot-habits { max-width: 900px; }
.pilot-habits ol { margin: 28px 0; padding: 0; list-style: none; counter-reset: habit; }
.pilot-habits li { counter-increment: habit; display: grid; grid-template-columns: 60px 220px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 19px 0; border-top: 1px solid #cbdde8; }
.pilot-habits li::before { content: counter(habit, decimal-leading-zero); color: #0d4f91; font-weight: 800; }
.pilot-habits li strong { color: #112b4d; }
.pilot-habits li span { color: #425b79; }
.pilot-bridge { max-width: 770px; min-height: 510px; padding: 45px 0; }
.pilot-bridge h1 { color: #0d315e; font-size: clamp(3.8rem, 8vw, 7.5rem); line-height: .94; }
.pilot-bridge p:not(.eyebrow) { max-width: 570px; color: #2d4868; font-size: 1.12rem; }

/* Illustrated lesson and question screens keep every text surface independent of the artwork. */
body:not([data-step="0"]) #content.illustrated-content {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  background: #0a2443;
  color: #fff;
}
#content.illustrated-content::before, #content.illustrated-content::after, .motion-ghost.illustrated-content::before, .motion-ghost.illustrated-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#content.illustrated-content::before, .motion-ghost.illustrated-content::before { background: var(--scene-image) var(--scene-position, center) / cover no-repeat; transform: scale(1.045); }
#content.illustrated-content::after, .motion-ghost.illustrated-content::after { background: linear-gradient(90deg, #06172fef 0%, #071d37e3 47%, #061e38bf 100%); }
#content.illustrated-content > *, .motion-ghost.illustrated-content > * { position: relative; z-index: 1; }
#content[data-scene="wet"], .motion-ghost[data-scene="wet"] { --scene-image: url("assets/vector-wet-floor.svg?v=1ad2d94ef259"); }
#content[data-scene="cable"], .motion-ghost[data-scene="cable"] { --scene-image: url("assets/vector-cable.svg?v=cb98694e6228"); }
#content[data-scene="route"], .motion-ghost[data-scene="route"] { --scene-image: url("assets/vector-clear-route.svg?v=7d382d0b1091"); }
#content[data-scene="office"], .motion-ghost[data-scene="office"] { --scene-image: url("assets/vector-office.svg?v=e96e38c1ab4f"); }
#content.illustrated-content .pilot-kicker { border-bottom-color: #67d6e9; color: #e8faff; }
#content.illustrated-content .eyebrow { color: #79e0ef; }
#content.illustrated-content .pilot-story h1, #content.illustrated-content .pilot-question h1,
#content.illustrated-content .pilot-habits h1, #content.illustrated-content .pilot-bridge h1,
#content.illustrated-content > h1, #content.illustrated-content > h2 { color: #fff; }
#content.illustrated-content .pilot-story { display: flex; align-items: center; min-height: 460px; }
#content.illustrated-content .pilot-story > div { max-width: 650px; }
#content.illustrated-content .pilot-story p, #content.illustrated-content .pilot-question-intro p,
#content.illustrated-content .pilot-habits .intro, #content.illustrated-content .pilot-bridge p:not(.eyebrow),
#content.illustrated-content > .intro, #content.illustrated-content .scenario-copy { color: #f0f8fc; }
#content.illustrated-content .pilot-question { min-height: 480px; }
#content.illustrated-content .answer-form { padding: 25px; border-top: 5px solid #5dd0e5; background: #f8fbfd; color: #102c4e; }
#content.illustrated-content .answer-form fieldset legend { color: #102c4e; font-weight: 800; }
#content.illustrated-content .answer-option { border-color: #aec6d4; background: #fff; color: #112b4d; }
#content.illustrated-content .answer-option:hover { border-color: #0d66ac; background: #f2fbfd; }
#content.illustrated-content .answer-option:has(input:checked) { border-color: #b5004c; background: #fff0f6; box-shadow: inset 5px 0 #b5004c; }
#content.illustrated-content .answer-option input { accent-color: #b5004c; }
#content.illustrated-content .feedback { color: #112b4d; }
#content.illustrated-content .feedback h2, #content.illustrated-content .feedback h3 { color: #112b4d; }
#content.illustrated-content .feedback.incorrect h2, #content.illustrated-content .feedback.incorrect h3 { color: #8a2b27; }
#content.illustrated-content .pilot-habits { max-width: 100%; }
#content.illustrated-content .pilot-habits ol { max-width: 870px; margin-top: 26px; }
#content.illustrated-content .pilot-habits li { border-top-color: #a8d3df80; }
#content.illustrated-content .pilot-habits li::before { color: #80e2ef; }
#content.illustrated-content .pilot-habits li strong, #content.illustrated-content .pilot-habits li span { color: #f5fbff; }
#content.illustrated-content .pilot-bridge { min-height: 470px; }
#content.illustrated-content .scenario-counter { color: #91e5ef; }
#content.illustrated-content .scenario-copy { border-left-color: #f15b9b; }
#content.illustrated-content .question-progress { color: #f6fbff; }
#content.illustrated-content .question-progress progress { accent-color: #65d5e8; }
#content.illustrated-content .question-progress progress::-webkit-progress-bar { background: #91a9b8; }
#content.illustrated-content .question-progress progress::-webkit-progress-value { background: #65d5e8; }
#content.illustrated-content .question-progress progress::-moz-progress-bar { background: #65d5e8; }
#content.illustrated-content .page-actions { border-top-color: #c2e2ed85; }
#content.illustrated-content .page-actions .action-note { color: #e9f7fd; }
#content.illustrated-content .button:not(.button-secondary):not(:disabled) { border-color: #b9004d; background: #b9004d; color: #fff; }
#content.illustrated-content .button:not(.button-secondary):hover { border-color: #93003d; background: #93003d; }
#content.illustrated-content .button-secondary { border-color: #fff; background: #fff; color: #0d315e; }
#content.illustrated-content .button-secondary:hover { background: #e6f7fc; }

main { position: relative; isolation: isolate; overflow-x: clip; }
body:not([data-step="0"]) main { scroll-margin-top: 154px; }
.motion-enter, .motion-ghost { --motion-in-x: 0px; --motion-in-y: 0px; --motion-out-x: 0px; --motion-out-y: 0px; --motion-depth-x: 0px; --motion-depth-y: 0px; --motion-detail-x: 0px; --motion-clip: inset(0); }
.motion-enter[data-motion="right"], .motion-ghost[data-motion="right"] { --motion-in-x: 96px; --motion-out-x: -52px; --motion-depth-x: -44px; --motion-detail-x: 28px; --motion-clip: inset(0 0 0 100%); }
.motion-enter[data-motion="left"], .motion-ghost[data-motion="left"] { --motion-in-x: -96px; --motion-out-x: 52px; --motion-depth-x: 44px; --motion-detail-x: -28px; --motion-clip: inset(0 100% 0 0); }
.motion-enter[data-motion="up"], .motion-ghost[data-motion="up"] { --motion-in-y: 72px; --motion-out-y: -46px; --motion-depth-y: -36px; --motion-clip: inset(100% 0 0 0); }
.motion-enter[data-motion="down"], .motion-ghost[data-motion="down"] { --motion-in-y: -72px; --motion-out-y: 46px; --motion-depth-y: 36px; --motion-clip: inset(0 0 100% 0); }
.motion-enter { position: relative; z-index: 2; animation: motion-in .78s cubic-bezier(.16,.8,.2,1) both; }
.motion-ghost { position: absolute; z-index: 1; pointer-events: none; animation: motion-out .44s cubic-bezier(.2,.6,.3,1) both; }
.motion-enter.illustrated-content::before { animation: motion-scene 1.02s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter h1 { animation: motion-detail .54s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .intro, .motion-enter .pilot-question-intro p, .motion-enter .scenario-copy { animation: motion-detail .55s .06s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .pilot-kicker, .motion-enter .eyebrow, .motion-enter .question-progress { animation: motion-detail .5s .04s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .pilot-welcome > img, .motion-enter .pilot-story-visual img, .motion-enter .scene-wrap img { animation: motion-depth .76s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .answer-form, .motion-enter .pilot-habits ol { animation: motion-detail .52s .1s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .answer-option { animation: motion-choice .42s cubic-bezier(.16,.8,.2,1) both; }
.motion-enter .answer-option:nth-child(1) { animation-delay: .14s; }
.motion-enter .answer-option:nth-child(2) { animation-delay: .21s; }
.motion-enter .answer-option:nth-child(3) { animation-delay: .28s; }
.motion-enter .answer-option:nth-child(4) { animation-delay: .35s; }
@keyframes motion-in { from { clip-path: var(--motion-clip); transform: translate3d(var(--motion-in-x), var(--motion-in-y), 0) scale(.985); } to { clip-path: inset(0); transform: translate3d(0, 0, 0) scale(1); } }
@keyframes motion-out { from { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } to { opacity: 0; transform: translate3d(var(--motion-out-x), var(--motion-out-y), 0) scale(.992); } }
@keyframes motion-detail { from { opacity: .2; transform: translate3d(var(--motion-detail-x), 20px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@keyframes motion-depth { from { opacity: .55; transform: translate3d(var(--motion-depth-x), var(--motion-depth-y), 0) scale(1.045); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes motion-scene { from { transform: translate3d(var(--motion-depth-x), var(--motion-depth-y), 0) scale(1.15); } to { transform: translate3d(0, 0, 0) scale(1.045); } }
@keyframes motion-choice { from { opacity: 0; transform: translate3d(var(--motion-detail-x), 16px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@media (max-width: 760px) {
  body[data-step="0"] main { padding-top: 16px; }
  .pilot-welcome { display: flex; flex-direction: column; }
  .pilot-welcome-copy { padding: 28px 22px; }
  .pilot-welcome-copy h1 { font-size: 3.15rem; }
  .pilot-welcome > img { min-height: 0; height: 210px; }
  .pilot-intro { display: block; margin: 28px 0; padding: 0 4px; }
  .pilot-intro .pilot-section-number { display: block; margin-bottom: 10px; }
  .pilot-toc-head { display: block; }
  .pilot-toc-head h2 { margin-top: 4px; }
  .pilot-toc button { grid-template-columns: 44px minmax(0, 1fr); min-height: 78px; padding: 10px 6px; }
  .pilot-topic-number { font-size: 1.2rem; }
  .pilot-topic-state { display: none; }
  .pilot-story, .pilot-question { display: block; min-height: 0; padding-top: 0; }
  .pilot-story-visual { margin-top: 28px; }
  .pilot-story h1, .pilot-question h1, .pilot-habits h1 { font-size: 2.55rem; }
  .pilot-question .answer-form { padding: 15px; }
  .pilot-question > .page-actions { margin-top: 20px; }
  .pilot-habits li { grid-template-columns: 35px minmax(0, 1fr); gap: 8px; }
  .pilot-habits li span { grid-column: 2; }
  .pilot-bridge { min-height: 0; padding: 30px 0; }
  .pilot-bridge h1 { font-size: 4.3rem; }
  body:not([data-step="0"]) #content.illustrated-content { min-height: 0; padding: 26px 20px 34px; }
  #content.illustrated-content::after { background: linear-gradient(180deg, #06172ff2 0%, #071d37ed 56%, #061e38e0 100%); }
  #content.illustrated-content .pilot-story { min-height: 470px; align-items: flex-start; }
  #content.illustrated-content .pilot-question { min-height: 0; }
  #content.illustrated-content .pilot-question h1 { font-size: 2.3rem; }
  #content.illustrated-content .pilot-question .answer-form { margin-top: 25px; padding: 17px; }
  #content.illustrated-content .answer-form { padding: 17px; }
  #content.illustrated-content .pilot-bridge { min-height: 420px; }
  #content.illustrated-content .pilot-bridge h1 { font-size: clamp(3rem, 11vw, 3.7rem); }
  body:not([data-step="0"]) main { scroll-margin-top: 132px; }
}
@media (prefers-reduced-motion: reduce) { .motion-enter, .motion-enter *, .motion-enter::before, .motion-ghost { animation: none !important; } }

.catalogue-return { padding: 7px 24px; background: #e6f5f9; color: #0d315e; font-size: .83rem; font-weight: 700; }
.catalogue-return a { text-decoration: underline; text-underline-offset: 3px; }
