:root {
	--msc-learning-font-family: 'Lato', sans-serif;
	--msc-blue: var(--global-palette1, #0099ff);
	--msc-blue-dark: #005fa3;
	--msc-green: #28ba6a;
	--msc-red: #ef3e46;
	--msc-yellow: #f7ba45;
	--msc-orange: #f57c45;
	--msc-text: var(--global-palette3, #232c39);
	--msc-muted: var(--global-palette5, #354054);
	--msc-text-third: #737373;
	--msc-line: var(--global-palette7, #dcdffa);
	--msc-surface: var(--global-palette9, #f9fbff);
	--msc-canvas: #f5f7fa;
	--msc-radius-large: .5rem;
	--msc-radius-medium: .375rem;
	--msc-radius-small: .25rem;
	--msc-learning-blue-soft: color-mix(in srgb, var(--msc-blue) 9%, white);
	--msc-learning-shadow: 0 12px 30px rgb(35 44 57 / 10%);
	--msc-hotspot-type-scale: 1;
}

.msc-learning-interaction,
.msc-learning-catalogue { color: var(--msc-text); font-family: var(--msc-learning-font-family); font-size: 17px; font-weight: 400; line-height: 1.5; }
.msc-learning-interaction * , .msc-learning-catalogue * { box-sizing: border-box; }
.msc-learning-interaction { width: 100%; margin: 0; padding: 0; }
.msc-learning-interaction h2 { margin: 0 0 .25em; color: var(--msc-text); font-size: clamp(20px, 2vw, 22px); font-weight: 400; line-height: 1.2; }
.msc-learning-intro { margin: 0 0 18px; color: var(--msc-muted); }
.msc-learning-interaction button { font: inherit; }
.msc-learning-interaction button:focus-visible,
.msc-learning-card input:focus-visible,
.msc-learning-card summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--msc-blue) 35%, transparent); outline-offset: 2px; }

.msc-decision-nav { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.msc-decision-viewport { min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 11%, #000 89%, transparent); }
.msc-decision-loop { --msc-decision-card-width: clamp(154px, 22vw, 210px); --msc-decision-card-gap: 12px; position: relative; height: 112px; }
.msc-decision-loop::before { content: ""; position: absolute; left: 8%; right: 8%; top: 55px; height: 3px; background: color-mix(in srgb, var(--msc-blue) 22%, white); }
.msc-decision-loop button { position: absolute; z-index: calc(5 - var(--msc-decision-position)); top: 8px; left: 50%; display: flex; width: var(--msc-decision-card-width); min-height: 94px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 9px 12px; cursor: pointer; color: color-mix(in srgb, var(--msc-blue) 46%, white); font-weight: 700; text-align: center; background: #fff; border: 2px solid color-mix(in srgb, var(--msc-blue) 34%, white); border-radius: 12px; box-shadow: 0 4px 12px rgb(35 44 57 / 4%); opacity: 1; transform: translateX(calc(-50% + var(--msc-decision-position) * (var(--msc-decision-card-width) + var(--msc-decision-card-gap)))); }
.msc-decision-loop button:hover { color: color-mix(in srgb, var(--msc-blue) 72%, white); border-color: color-mix(in srgb, var(--msc-blue) 62%, white); }
.msc-decision-loop button[data-distance="2"] { opacity: .35; }
.msc-decision-loop button[aria-pressed="true"] { z-index: 7; color: var(--msc-blue); background: #fff; border-color: var(--msc-blue); box-shadow: 0 7px 18px rgb(0 153 255 / 12%); }
.msc-decision-step__number { display: block; width: 100%; font-size: 1rem; line-height: 1; text-align: center; opacity: .9; }
.msc-decision-step__identity { display: inline-flex; max-width: 100%; align-items: center; justify-content: center; gap: 8px; }
.msc-decision-step__icon { display: inline-grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; }
.msc-decision-step__icon svg, .msc-decision-feedback__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.msc-decision-step__icon svg path:first-child:not(:last-child) { fill: currentColor; fill-opacity: .12; }
.msc-decision-step__label { line-height: 1.15; text-align: left; }
.msc-decision-arrow { display: inline-grid; width: 42px; height: 42px; place-items: center; padding: 0; cursor: pointer; color: var(--msc-blue); background: #fff; border: 2px solid color-mix(in srgb, var(--msc-blue) 45%, white); border-radius: 50%; }
.msc-decision-arrow span { margin-top: -3px; font-size: 2rem; line-height: 1; }
.msc-decision-arrow:hover:not(:disabled) { color: #fff; background: var(--msc-blue); border-color: var(--msc-blue); }
.msc-learning-feedback { min-height: 96px; padding: 15px 17px; background: var(--msc-learning-blue-soft); border-left: 5px solid var(--msc-blue); border-radius: 4px 12px 12px 4px; }
.msc-learning-feedback strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.msc-learning-feedback p { margin: 0; line-height: 1.5; }
.msc-decision-feedback { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 14px; }
.msc-decision-feedback__icon { display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--msc-blue); }

.msc-safe-speed-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: stretch; }
.msc-safe-speed-controls { display: grid; gap: 11px; }
.msc-safe-speed-controls fieldset { padding: 0; margin: 0; border: 0; }
.msc-safe-speed-controls legend { margin-bottom: 5px; font-weight: 700; }
.msc-safe-speed-controls fieldset > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.msc-safe-speed-controls button { padding: 9px 6px; cursor: pointer; color: inherit; background: #fff; border: 1px solid var(--msc-line); border-radius: 8px; }
.msc-safe-speed-controls button:hover { border-color: var(--msc-blue); }
.msc-safe-speed-controls button[aria-pressed="true"] { color: #fff; font-weight: 700; background: var(--msc-blue); border-color: var(--msc-blue); }
.msc-safe-speed-result { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: clamp(12px, 1.6vw, 18px); padding: clamp(14px, 2vw, 20px); text-align: center; background: #fff; border: 1px solid var(--msc-line); border-radius: 14px; }
.msc-safe-speed-gauge { width: min(92%, 430px); margin: auto auto 0; }
.msc-safe-speed-gauge svg { display: block; width: 100%; height: auto; overflow: visible; }
.msc-safe-speed-bezel { fill: none; stroke: var(--msc-blue); stroke-width: 12; }
.msc-safe-speed-ticks { fill: none; stroke: var(--msc-text); stroke-linecap: round; stroke-width: 1.5; }
.msc-safe-speed-bands { fill: none; stroke-width: 20; }
.msc-safe-speed-bands path { stroke-linecap: butt; }
.msc-safe-speed-bands .is-useful { stroke: var(--msc-green); }
.msc-safe-speed-bands .is-reduced { stroke: var(--msc-yellow); }
.msc-safe-speed-bands .is-high { stroke: var(--msc-orange); }
.msc-safe-speed-bands .is-reassess { stroke: var(--msc-red); }
.msc-safe-speed-needle { color: var(--msc-text); filter: drop-shadow(3px 4px 4px rgb(35 44 57 / 24%)); transform: rotate(-70deg); transform-box: view-box; transform-origin: 200px 200px; transition: transform .28s ease; }
.msc-safe-speed-needle line { stroke: currentColor; stroke-linecap: round; stroke-width: 7; }
.msc-safe-speed-needle circle { fill: currentColor; stroke: #fff; stroke-width: 4; }
.msc-safe-speed-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; color: var(--msc-text); }
.msc-safe-speed-key > div { display: grid; min-width: 0; justify-items: center; align-content: start; gap: 7px; padding: 0 5px; border-right: 1px dotted var(--msc-line); }
.msc-safe-speed-key > div:last-child { border-right: 0; }
.msc-safe-speed-key span, .msc-safe-speed-copy__icon { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 3px solid currentColor; border-radius: 50%; font-size: 1.28rem; font-weight: 900; line-height: 1; }
.msc-safe-speed-key strong { font-size: clamp(.74rem, 1.35vw, .92rem); line-height: 1.18; text-transform: uppercase; }
.msc-safe-speed-key .is-useful, .msc-safe-speed-copy .is-useful { color: var(--msc-green); }
.msc-safe-speed-key .is-reduced, .msc-safe-speed-copy .is-reduced { color: var(--msc-yellow); }
.msc-safe-speed-key .is-high, .msc-safe-speed-copy .is-high { color: var(--msc-orange); }
.msc-safe-speed-key .is-reassess, .msc-safe-speed-copy .is-reassess { color: var(--msc-red); }
.msc-safe-speed-copy { display: grid; width: 100%; }
.msc-safe-speed-copy > div { display: grid; min-height: 142px; grid-area: 1 / 1; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 16px; visibility: hidden; text-align: left; background: color-mix(in srgb, currentColor 5%, white); border: 1px solid currentColor; border-radius: 12px; }
.msc-safe-speed-copy > div[data-active="true"] { visibility: visible; }
.msc-safe-speed-copy__icon { width: 54px; height: 54px; font-size: 1.45rem; }
.msc-safe-speed-copy strong { display: block; margin-bottom: 7px; color: var(--msc-text); font-size: 1.2rem; text-transform: uppercase; }
.msc-safe-speed-copy p { margin: 0; color: var(--msc-text); line-height: 1.5; }

.msc-hotspot-stage { position: relative; width: 100%; overflow: hidden; background: #9aadc0; border: 1px solid var(--msc-line); border-radius: 14px; isolation: isolate; aspect-ratio: 16 / 9; }
.msc-hotspot-stage__base { display: block; width: 100%; height: 100%; object-fit: cover; transition: filter .28s ease; }
.msc-hotspot-stage__layer { position: absolute; z-index: 1; top: var(--msc-hotspot-y); left: var(--msc-hotspot-x); width: var(--msc-hotspot-width); height: auto; pointer-events: none; transition: filter .28s ease; }
.msc-hotspot-stage[data-msc-hotspot-focus-mode="desaturate"].msc-hotspot-stage--focused .msc-hotspot-stage__base,
.msc-hotspot-stage[data-msc-hotspot-focus-mode="desaturate"].msc-hotspot-stage--focused .msc-hotspot-stage__layer { filter: grayscale(1); }
.msc-hotspot-stage__focus-image { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.msc-hotspot-stage__focus-region { position: absolute; z-index: 2; top: var(--msc-focus-y); left: var(--msc-focus-x); width: var(--msc-focus-width); height: var(--msc-focus-height); pointer-events: none; background: rgb(245 124 69 / 34%); border: 2px solid rgb(245 124 69 / 64%); border-radius: var(--msc-focus-radius); box-shadow: 0 0 0 5px rgb(245 124 69 / 10%); transform: translate(-50%, -50%); }
.msc-hotspot-stage__focus-image[hidden], .msc-hotspot-stage__focus-region[hidden] { display: none; }
.msc-hotspot-marker { position: absolute; z-index: 3; top: var(--msc-hotspot-y); left: var(--msc-hotspot-x); display: inline-block; max-width: min(100%, 250px); min-width: 0; padding: .35em 1em .35em 2.25em; cursor: pointer; overflow: hidden; color: inherit; background: rgb(255 255 255 / 10%); border: .2px solid lightgrey; border-radius: 999px; box-shadow: none; font-family: inherit; font-size: calc(18px * var(--msc-hotspot-type-scale)); font-weight: 700; line-height: 1.25; text-align: left; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; transform: translate(-50%, -50%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.msc-hotspot-marker > span { position: absolute; top: 50%; left: .45em; display: inline-grid; width: 1.35em; height: 1.35em; place-items: center; color: var(--msc-blue); background: rgb(255 255 255 / 58%); border: 2px solid currentColor; border-radius: 50%; font-size: 1em; font-weight: 700; line-height: 1; transform: translateY(-50%); }
.msc-hotspot-marker:hover { background: rgb(255 255 255 / 24%); border-color: rgb(0 153 255 / 48%); }
.msc-hotspot-marker[aria-expanded="true"] { color: var(--msc-text); background: rgb(255 255 255 / 38%); border-color: var(--msc-blue); box-shadow: 0 0 0 3px rgb(0 153 255 / 18%); }
.msc-hotspot-marker[aria-expanded="true"] > span { color: #fff; background: var(--msc-blue); }
.msc-hotspot-panel.msc-modal { position: absolute; z-index: 6; inset: 0; }
.msc-hotspot-panel[hidden] { display: none; }
.msc-hotspot-panel .msc-modal__backdrop { position: absolute; z-index: 0; inset: 0; background: transparent; }
.msc-hotspot-panel .msc-modal__dialog { position: absolute; z-index: 1; top: var(--msc-panel-y); left: var(--msc-panel-x); display: flex; width: var(--msc-panel-width); max-height: calc(100% - var(--msc-panel-y) - 5%); overflow: hidden; flex-direction: column; color: var(--msc-text); background: linear-gradient(135deg, rgb(255 255 255 / 64%), rgb(255 255 255 / 38%)); border: 1px solid rgb(255 255 255 / 82%); border-radius: 16px; box-shadow: 0 18px 42px rgb(35 44 57 / 24%), inset 0 1px 0 rgb(255 255 255 / 92%), inset 0 -1px 0 rgb(255 255 255 / 28%); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); }
.msc-hotspot-panel .msc-modal__header { position: relative; flex: 0 0 auto; padding: clamp(18px, 2.8vw, 28px) clamp(68px, 7vw, 82px) 0 clamp(18px, 2.8vw, 28px); }
.msc-hotspot-panel .msc-modal__body { min-height: 0; padding: .42em clamp(18px, 2.8vw, 28px) clamp(20px, 3vw, 30px); overflow: hidden auto; scrollbar-color: #737373 #f1f1f1; scrollbar-width: thin; line-height: 1.34; }
.msc-hotspot-panel h3 { margin: 0 0 .24em; color: var(--msc-blue); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.25; }
.msc-hotspot-panel .msc-modal__body p { margin: 0 0 .78em; font-size: 17px !important; line-height: 1.4 !important; }
.msc-hotspot-panel p:last-of-type { margin-bottom: 0; }
.msc-hotspot-panel__close { position: absolute; top: 8px; right: 8px; display: block; width: 52px; height: 52px; min-width: 52px; min-height: 52px; padding: 0; cursor: pointer; overflow: visible; color: var(--msc-text); background: rgb(255 255 255 / 76%); border: 1px solid rgb(255 255 255 / 82%); border-radius: 50%; box-shadow: 0 8px 22px rgb(35 44 57 / 18%); font-size: 0; line-height: 1; -webkit-backdrop-filter: blur(18px) saturate(135%); backdrop-filter: blur(18px) saturate(135%); }
.msc-hotspot-panel__close::before, .msc-hotspot-panel__close::after { content: ""; position: absolute; top: 50%; left: 50%; width: 27px; height: 4px; background: currentColor; border-radius: 999px; transform-origin: center; }
.msc-hotspot-panel__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.msc-hotspot-panel__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.msc-hotspot-panel__close:hover, .msc-hotspot-panel__close:focus-visible { color: var(--msc-red); }
.msc-hotspot-panel__close:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.msc-hotspot-panel__overflow { position: absolute; right: 0; bottom: 0; left: 0; display: flex; height: 3.5em; align-items: end; justify-content: center; padding-bottom: 8px; pointer-events: none; opacity: 0; background: linear-gradient(rgb(255 255 255 / 0%), rgb(255 255 255 / 82%)); transition: opacity .22s ease; }
.msc-hotspot-panel__overflow svg { width: 1.9em; height: 1.9em; padding: .38em; color: var(--msc-blue); background: rgb(255 255 255 / 66%); border-radius: 50%; box-shadow: 0 0 15px rgb(0 0 0 / 14%); backdrop-filter: blur(12px); }
.msc-hotspot-panel__overflow path { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.msc-hotspot-panel--scrollable:not(.msc-hotspot-panel--scroll-end) .msc-hotspot-panel__overflow { opacity: 1; }

.msc-video-hotspot-stage { position: relative; width: 100%; overflow: hidden; background: var(--msc-text); border: 1px solid var(--msc-line); border-radius: 14px; aspect-ratio: 16 / 9; isolation: isolate; }
.msc-video-hotspot-stage video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--msc-text); }
.msc-video-hotspot-marker { z-index: 4; box-shadow: 0 5px 16px rgb(35 44 57 / 20%); }
.msc-video-hotspot-marker[hidden] { display: none; }
.msc-video-hotspot-panel.msc-modal { position: absolute; z-index: 7; inset: 0; }
.msc-video-hotspot-panel .msc-modal__dialog { top: 8%; left: 6%; width: min(58%, 620px); max-height: 84%; }
.msc-video-cues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.msc-video-cues button { display: flex; min-width: 0; min-height: 48px; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; color: var(--msc-muted); text-align: left; background: #fff; border: 1px solid var(--msc-line); border-radius: 9px; }
.msc-video-cues button:hover, .msc-video-cues button.is-current { color: var(--msc-blue); border-color: var(--msc-blue); background: var(--msc-learning-blue-soft); }
.msc-video-cues span { display: inline-grid; width: 28px; height: 28px; flex: 0 0 28px; place-items: center; color: #fff; background: var(--msc-blue); border-radius: 50%; font-size: .85rem; font-weight: 800; }

.msc-relative-motion { width: 100%; }
.msc-relative-motion__stage { position: relative; width: 100%; overflow: hidden; background: #eaf7fd; border: 1px solid var(--msc-line); border-radius: 14px; aspect-ratio: 16 / 9; isolation: isolate; }
.msc-relative-motion__stage svg { display: block; width: 100%; height: 100%; }
.msc-animation-controls { position: absolute; z-index: 6; inset: 0; pointer-events: none; }
.msc-animation-control { position: absolute; display: grid; width: clamp(44px, 5.8vw, 52px); height: clamp(44px, 5.8vw, 52px); min-width: 44px; min-height: 44px; padding: 0; place-items: center; cursor: pointer; pointer-events: auto; color: #697077; background: rgb(239 241 243 / 46%); border: 1px solid rgb(255 255 255 / 48%); border-radius: 50%; box-shadow: 0 5px 15px rgb(35 44 57 / 18%); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%); }
.msc-animation-control[hidden] { display: none; }
.msc-animation-control:hover { color: #4c535a; background: rgb(247 248 249 / 58%); }
.msc-animation-control:focus-visible { outline: 3px solid var(--msc-blue); outline-offset: 3px; }
.msc-animation-control--restart { top: clamp(10px, 1.8vw, 16px); left: clamp(10px, 1.8vw, 16px); }
.msc-animation-control--play { bottom: clamp(10px, 1.8vw, 16px); left: clamp(10px, 1.8vw, 16px); }
.msc-animation-control--fullscreen { right: clamp(10px, 1.8vw, 16px); bottom: clamp(10px, 1.8vw, 16px); }
.msc-animation-control--fullscreen svg { width: 54%; height: 54%; }
.msc-animation-control--fullscreen path { fill: none; stroke: currentColor; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.msc-animation-control--restart svg { width: 58%; height: 58%; }
.msc-animation-control--restart path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.msc-animation-control__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.msc-animation-control__play-icon { position: relative; display: block; width: 42%; height: 46%; }
.msc-animation-control__play-icon::before { content: ""; position: absolute; top: 50%; left: 55%; width: 0; height: 0; border-top: .72em solid transparent; border-bottom: .72em solid transparent; border-left: 1.05em solid currentColor; transform: translate(-50%, -50%); }
.msc-animation-control[aria-pressed="true"] .msc-animation-control__play-icon::before { width: 48%; height: 78%; border: 0; background: linear-gradient(to right, currentColor 0 34%, transparent 34% 66%, currentColor 66% 100%); transform: translate(-55%, -50%); }
.msc-relative-motion__water { fill: #73bdf0; }
.msc-relative-motion__stage pattern path { fill: none; stroke: rgb(255 255 255 / 8%); stroke-width: 2; }
.msc-relative-motion__shallows { fill: #739fd0; }
.msc-relative-motion__land { fill: #4f882b; }
.msc-relative-motion__landmarks { filter: drop-shadow(1px 3px 2px rgb(35 44 57 / 24%)); }
.msc-relative-motion__tree circle { fill: var(--msc-landmark-primary, #376f2c); stroke: color-mix(in srgb, var(--msc-landmark-primary, #376f2c) 74%, black); stroke-width: 1.5; }
.msc-relative-motion__tree .msc-relative-motion__tree-shadow { fill: rgb(35 44 57 / 20%); stroke: none; }
.msc-relative-motion__tree .msc-relative-motion__tree-trunk { fill: var(--msc-landmark-secondary, #7a5132); stroke: none; }
.msc-relative-motion__building-shadow { fill: rgb(35 44 57 / 22%); }
.msc-relative-motion__building-roof { fill: var(--msc-landmark-secondary, #b45d49); stroke: color-mix(in srgb, var(--msc-landmark-secondary, #b45d49) 72%, black); stroke-width: 1.5; }
.msc-relative-motion__building-ridge { fill: none; stroke: color-mix(in srgb, var(--msc-landmark-secondary, #b45d49) 66%, black); stroke-width: 1.5; }
.msc-relative-motion__building-chimney { fill: var(--msc-landmark-primary, #eee4d0); stroke: color-mix(in srgb, var(--msc-landmark-primary, #eee4d0) 55%, black); stroke-width: 1; }
.msc-relative-motion__track { stroke-width: 4; stroke-dasharray: 8 12; stroke-linecap: round; }
.msc-relative-motion__track--0 { stroke: var(--msc-blue); }
.msc-relative-motion__track--1 { stroke: var(--msc-orange); }
.msc-relative-motion__bearing-line { stroke: var(--msc-text); stroke-width: 3; stroke-dasharray: 7 8; opacity: .72; }
.msc-relative-motion__vessel { filter: drop-shadow(2px 4px 3px rgb(35 44 57 / 22%)); }
.msc-relative-motion__vessel--0 { color: var(--msc-blue); }
.msc-relative-motion__vessel--1 { color: var(--msc-orange); }
.msc-relative-motion__hull { fill: #c9974f; stroke: #fff; stroke-width: 3; }
.msc-relative-motion__deck { fill: #f5e1ae; stroke: currentColor; stroke-width: 2; }
.msc-relative-motion__cockpit { fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.msc-relative-motion__mast { fill: none; stroke: var(--msc-text); stroke-width: 1.8; stroke-linecap: round; }
.msc-relative-motion__mast-base { fill: var(--msc-text); }
.msc-motion-vessel-label { position: absolute; z-index: 3; display: inline-block; max-width: min(100%, 250px); min-width: 0; padding: .35em 1em; overflow: hidden; color: inherit; background: rgb(255 255 255 / 10%); border: .2px solid lightgrey; border-radius: 999px; font-size: calc(18px * var(--msc-hotspot-type-scale)); font-weight: 700; line-height: 1.25; text-overflow: ellipsis; vertical-align: middle; white-space: nowrap; transform: translate(-50%, -50%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.msc-relative-motion__collision circle { fill: rgb(239 62 70 / 12%); stroke: var(--msc-red); stroke-width: 3; }
.msc-relative-motion__collision path { fill: none; stroke: var(--msc-red); stroke-width: 5; stroke-linecap: round; }
.msc-relative-motion__trail { opacity: .18; }
.msc-relative-motion__trail--0 { fill: var(--msc-blue); }
.msc-relative-motion__trail--1 { fill: var(--msc-orange); }
.msc-motion-bearing-label { z-index: 2; }
.msc-motion-hotspot-marker { z-index: 4; box-shadow: 0 5px 16px rgb(35 44 57 / 18%); }
.msc-motion-hotspot-marker[hidden] { display: none; }
.msc-motion-hotspot-panel.msc-modal { position: absolute; z-index: 7; inset: 0; }
.msc-motion-hotspot-panel .msc-modal__dialog { top: 8%; left: 6%; width: min(58%, 620px); max-height: 84%; }

.msc-bearing-view { width: 100%; }
.msc-bearing-view__outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.msc-bearing-view__outcomes button { min-height: 44px; padding: 8px 10px; cursor: pointer; color: var(--msc-blue); background: #fff; border: 1px solid var(--msc-blue); border-radius: 9px; font-weight: 700; }
.msc-bearing-view__outcomes button[aria-pressed="true"] { color: #fff; background: var(--msc-blue); box-shadow: 0 0 0 3px rgb(0 153 255 / 16%); }
.msc-bearing-view__stage { position: relative; width: 100%; overflow: hidden; background: #8eafc5; border: 1px solid var(--msc-line); border-radius: 14px; aspect-ratio: 16 / 9; isolation: isolate; }
.msc-relative-motion__stage:fullscreen, .msc-bearing-view__stage:fullscreen { display: grid; width: 100vw; height: 100vh; border: 0; border-radius: 0; aspect-ratio: auto; place-items: center; background: #000; }
.msc-relative-motion__stage:fullscreen > svg, .msc-bearing-view__stage:fullscreen > svg { width: min(100vw, 177.7778vh); height: min(100vh, 56.25vw); overflow: hidden; }
.msc-bearing-view__stage svg { display: block; width: 100%; height: 100%; }
.msc-bearing-view__hills { fill: #71866f; }
.msc-bearing-view__shore { fill: #9fae7b; }
.msc-bearing-view__house-wall { fill: #f2dfbd; stroke: #765a43; stroke-width: 1.5; }
.msc-bearing-view__house-roof { fill: #a84e3d; stroke: #743729; stroke-width: 1.5; stroke-linejoin: round; }
.msc-bearing-view__house-chimney { fill: #9f7051; stroke: #694830; stroke-width: 1.2; }
.msc-bearing-view__house-door { fill: #6c4936; stroke: #4d3326; stroke-width: 1; }
.msc-bearing-view__house-window { fill: #bfe2ed; stroke: #4d7585; stroke-width: 1.2; }
.msc-bearing-view__house-window-bars { fill: none; stroke: #fff; stroke-width: 1; }
.msc-bearing-view__coastal-trees circle { fill: #477f3d; stroke: #2d5d29; stroke-width: 1.5; }
.msc-bearing-view__coastal-trees circle:nth-of-type(2n) { fill: #5b9149; }
.msc-bearing-view__coastal-trees circle:nth-of-type(3n) { fill: #376f36; }
.msc-bearing-view__coastal-trees circle:nth-of-type(5n) { fill: #6a9d53; }
.msc-bearing-view__tree-trunk { fill: #7c5636; stroke: #563b27; stroke-width: 1.2; stroke-linejoin: round; }
.msc-bearing-view__target { transform-box: fill-box; transform-origin: center; filter: drop-shadow(2px 3px 2px rgb(35 44 57 / 28%)); }
.msc-bearing-view__vessel-image { image-rendering: auto; }
.msc-bearing-view__vessel-image--submerged, .msc-bearing-view__submerged { opacity: .52; }
.msc-bearing-view__water-contact { fill: none; stroke: rgb(235 248 252 / 82%); stroke-width: 2.2; stroke-linecap: round; opacity: .8; }
.msc-bearing-view__rib-tube { fill: #303944; stroke: #fff; stroke-width: 2; }
.msc-bearing-view__rib-hull { fill: #111923; }
.msc-bearing-view__rib-console { fill: #d8e0e4; stroke: #303944; stroke-width: 1.5; }
.msc-bearing-view__rib-person { fill: #d14a45; }
.msc-bearing-view__ship-hull { fill: #222d38; stroke: #fff; stroke-width: 2; }
.msc-bearing-view__ship-stack { fill: #e5e9eb; stroke: #303944; stroke-width: 1.5; }
.msc-bearing-view__ship-container { fill: #d86545; stroke: #713a2b; stroke-width: 1; }
.msc-bearing-view__onboard-frame { transform-box: view-box; transform-origin: center; }
.msc-bearing-view__onboard-frame--port { transform: scaleX(-1); }
.msc-bearing-view__horseshoe-outline { fill: #899398; stroke: #899398; stroke-width: 4; stroke-linejoin: round; filter: drop-shadow(2px 3px 2px rgb(35 44 57 / 28%)); }
.msc-bearing-view__horseshoe-body { fill: #f4f4ed; stroke: #d9ddda; stroke-width: 1.5; stroke-linejoin: round; }
.msc-bearing-view__horseshoe-seam { fill: none; stroke: #d4d6d1; stroke-width: 1.2; stroke-linecap: round; }
.msc-bearing-view__horseshoe-line { fill: none; stroke: #e5e8df; stroke-width: 3; stroke-linecap: round; }
.msc-bearing-view__horseshoe-logo-mark { fill: #0d1116; stroke: #0d1116; stroke-width: 1.5; stroke-linejoin: round; }
.msc-bearing-view__horseshoe-logo text { fill: #0d1116; font-family: Arial, sans-serif; font-size: 3.2px; font-weight: 800; letter-spacing: -.22px; }
.msc-bearing-view__buoy-hanger-body { fill: #aab3b7; stroke: #626d73; stroke-width: 1.2; }
.msc-bearing-view__buoy-hanger-loop { fill: none; stroke: #252b30; stroke-width: 2; stroke-linecap: round; }
.msc-bearing-view__mob-light-body { fill: #171c20; stroke: #090b0d; stroke-width: 1.5; }
.msc-bearing-view__mob-light-lens { fill: #f4f0c8; stroke: #899297; stroke-width: 1.2; }
.msc-bearing-view__pushpit { fill: none; stroke: #7d8b92; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1px 2px 1px rgb(35 44 57 / 32%)); }
.msc-bearing-view__pushpit-highlight { fill: none; stroke: #d2dce0; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.msc-bearing-view__pushpit-glint { fill: none; stroke: rgb(255 255 255 / 88%); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.msc-bearing-view__guardwire { fill: none; stroke: rgb(225 229 232 / 90%); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(1px 1px 1px rgb(35 44 57 / 22%)); }
.msc-bearing-view__stanchion { fill: none; stroke: #7d8b92; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1px 2px 1px rgb(35 44 57 / 32%)); }
.msc-bearing-view__stanchion-highlight { fill: none; stroke: #d2dce0; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; }
.msc-bearing-view__stanchion-glint { fill: none; stroke: rgb(255 255 255 / 88%); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.msc-bearing-view__compass { filter: drop-shadow(0 12px 13px rgb(35 44 57 / 34%)); }
.msc-bearing-view__compass-body-image, .msc-bearing-view__compass-scale-image { image-rendering: auto; }
.msc-bearing-view__compass-bubble { fill: rgb(255 255 255 / 68%); stroke: rgb(70 86 60 / 72%); stroke-width: 1.4; filter: drop-shadow(1px 1px 1px rgb(35 44 57 / 35%)); }
.msc-bearing-view__hotspot { z-index: 5; display: none !important; }
.msc-bearing-view__hotspot[hidden] { display: none; }
.msc-bearing-view__panel.msc-modal { position: absolute; z-index: 7; inset: 0; }
.msc-bearing-view__panel .msc-modal__dialog { top: 5%; left: 59%; width: 37%; max-height: 88%; }
.msc-bearing-view[data-bearing-side="right"] .msc-bearing-view__panel .msc-modal__dialog { left: 4%; }
.msc-bearing-view__result { min-height: 50px; margin-top: 10px; padding: 12px 14px; color: var(--msc-text); background: var(--msc-surface); border-left: 4px solid var(--msc-blue); border-radius: 8px; line-height: 1.45; }

.msc-learning-catalogue { max-width: 1280px; margin: 28px auto; padding: 0 20px; }
.msc-learning-catalogue > header { max-width: 760px; margin-bottom: 28px; }
.msc-learning-catalogue > header h1 { margin: 0 0 8px; }
.msc-learning-catalogue__filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 0 0 24px; padding: 14px 16px; background: var(--msc-surface); border: 1px solid var(--msc-line); border-radius: 12px; }
.msc-learning-catalogue__filters label { width: 100%; font-weight: 700; }
.msc-learning-catalogue__filters select, .msc-learning-catalogue__filters button { min-height: 40px; font: inherit; }
.msc-learning-catalogue__filters select { min-width: min(100%, 280px); padding: 6px 34px 6px 10px; }
.msc-learning-catalogue__filters button { padding: 6px 18px; cursor: pointer; color: #fff; background: var(--msc-blue); border: 1px solid var(--msc-blue); border-radius: 7px; font-weight: 700; }
.msc-learning-eyebrow { margin: 0 0 6px; color: var(--msc-blue); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.msc-learning-catalogue__grid { display: grid; gap: 24px; }
.msc-learning-card { padding: clamp(18px, 3vw, 32px); background: #fff; border: 1px solid var(--msc-line); border-radius: 18px; box-shadow: var(--msc-learning-shadow); }
.msc-learning-card > div:first-child { display: flex; gap: 8px; }
.msc-learning-card > div:first-child span { padding: 4px 9px; color: var(--msc-blue); font-size: .76rem; font-weight: 800; background: var(--msc-learning-blue-soft); border-radius: 99px; }
.msc-learning-card h2 { margin: 14px 0 6px; }
.msc-learning-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; }
.msc-learning-card dt { font-weight: 700; }
.msc-learning-card dd { margin: 0; }
.msc-learning-card details { padding: 12px 14px; margin: 18px 0; background: var(--msc-surface); border-radius: 10px; }
.msc-learning-card summary { cursor: pointer; font-weight: 700; }
.msc-learning-card label { display: block; margin: 12px 0 4px; font-size: .82rem; font-weight: 700; }
.msc-learning-card input { width: 100%; padding: 8px; border: 1px solid var(--msc-line); border-radius: 6px; }
.msc-learning-card__preview { padding-top: 20px; border-top: 1px solid var(--msc-line); }
.msc-learning-notice { padding: 12px 14px; background: color-mix(in srgb, var(--msc-yellow) 18%, white); border-left: 4px solid var(--msc-yellow); }
.msc-learning-embed { margin: 0; padding: 18px; font-family: var(--msc-learning-font-family); background: #fff; }

@media (max-width: 1200px) {
	:root { --msc-hotspot-type-scale: .9; }
}

@media (max-width: 800px) {
	:root { --msc-hotspot-type-scale: .8; }
}

@media (max-width: 850px) {
	.msc-safe-speed-layout { grid-template-columns: 1fr; }
	.msc-safe-speed-result { min-height: 230px; }
	.msc-safe-speed-gauge { width: min(92%, 390px); }
}

@media (max-width: 650px) {
	.msc-decision-nav { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 4px; }
	.msc-decision-arrow { width: 38px; height: 38px; }
	.msc-decision-loop { --msc-decision-card-width: 170px; --msc-decision-card-gap: 8px; }
	.msc-safe-speed-key { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
	.msc-safe-speed-key > div:nth-child(2) { border-right: 0; }
	.msc-safe-speed-key strong { width: 100%; overflow-wrap: anywhere; }
	.msc-hotspot-marker { padding: .35em .8em .35em 2.1em; }
	.msc-hotspot-marker > span { left: .4em; }
	.msc-hotspot-panel .msc-modal__dialog { top: auto; right: 3%; bottom: 3%; left: 3%; width: auto; max-height: 88%; }
	.msc-video-cues { grid-template-columns: 1fr; }
	.msc-bearing-view__outcomes { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
	.msc-safe-speed-copy > div { min-height: 170px; grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
	.msc-decision-loop button { transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, opacity .28s, transform .36s cubic-bezier(.22, .8, .3, 1); }
	.msc-decision-arrow { transition: color .18s, background-color .18s, border-color .18s, opacity .18s; }
	.msc-hotspot-marker { transition: color .18s, background-color .18s, border-color .18s, transform .18s; }
	.msc-hotspot-marker:hover { transform: translate(-50%, -50%) scale(1.03); }
	.msc-hotspot-marker > span { animation: msc-hotspot-pop 7.4s ease-in-out infinite; }
	.msc-hotspot-panel--scrollable:not(.msc-hotspot-panel--scroll-end) .msc-hotspot-panel__overflow svg { animation: msc-hotspot-chevron 2.8s ease-in-out infinite; }
}

@keyframes msc-hotspot-pop { 0%, 14%, 100% { transform: translateY(-50%) scale(1); } 6% { transform: translateY(-50%) scale(1.14); } 9% { transform: translateY(-50%) scale(.96); } 12% { transform: translateY(-50%) scale(1.04); } }
@keyframes msc-hotspot-chevron { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(4px); } }

@media (prefers-reduced-motion: reduce) {
	.msc-safe-speed-needle { transition: none; }
	.msc-decision-loop button { transition: none; }
	.msc-hotspot-stage__base, .msc-hotspot-stage__layer, .msc-hotspot-marker, .msc-hotspot-marker > span, .msc-hotspot-panel__overflow, .msc-hotspot-panel__overflow svg { transition: none; animation: none; }
}

/* Points of Sail Trainer */
.msc-points-instructions { color: var(--msc-muted); margin: -.25rem 0 1rem; }
.msc-points-trainer { --msc-points-danger: var(--msc-red, #ef3e46); --msc-points-tight: var(--msc-orange); --msc-points-close: #f2cf59; --msc-points-beam: var(--msc-blue); --msc-points-broad: #2676bd; --msc-points-run: #6757a8; display: grid; gap: 16px; }
.msc-points-readout { align-items: baseline; background: var(--msc-soft); border: 1px solid var(--msc-border); border-radius: var(--msc-radius); display: grid; gap: 2px 12px; grid-template-columns: auto 1fr; padding: 12px 16px; }
.msc-points-readout span { color: var(--msc-muted); font-size: 15px; font-weight: 700; grid-row: 1 / 3; }
.msc-points-readout strong { font-size: clamp(20px, 2vw, 24px); }
.msc-points-readout small { color: var(--msc-muted); font-size: 15px; }
.msc-points-workspace { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(300px, 1fr) minmax(250px, 320px); }
.msc-points-stage { align-items: center; display: grid; gap: 8px; grid-template-columns: 44px minmax(240px, 1fr) 44px; min-width: 0; }
.msc-points-turn { align-items: center; background: #fff; border: 1px solid var(--msc-border); border-radius: 50%; color: var(--msc-text); display: inline-flex; font-size: 24px; height: 44px; justify-content: center; padding: 0; width: 44px; }
.msc-points-turn:hover, .msc-points-turn:focus-visible { border-color: var(--msc-blue); color: var(--msc-blue); }
.msc-points-dial { aspect-ratio: 1; background: conic-gradient(from -45deg, rgb(239 62 70 / 28%) 0 90deg, rgb(245 124 69 / 25%) 90deg 120deg, rgb(242 207 89 / 25%) 120deg 160deg, rgb(0 153 255 / 22%) 160deg 200deg, rgb(38 118 189 / 22%) 200deg 300deg, rgb(103 87 168 / 22%) 300deg 360deg); border: 4px solid color-mix(in srgb, var(--msc-blue) 30%, white); border-radius: 50%; box-shadow: inset 0 0 0 10px rgb(255 255 255 / 48%); cursor: crosshair; min-width: 0; position: relative; touch-action: pan-y; }
.msc-points-dial::before, .msc-points-dial::after { background: color-mix(in srgb, var(--msc-text) 16%, transparent); content: ""; left: 50%; pointer-events: none; position: absolute; top: 50%; transform: translate(-50%, -50%); }
.msc-points-dial::before { height: 1px; width: 84%; }
.msc-points-dial::after { height: 84%; width: 1px; }
.msc-points-wind { align-items: center; display: flex; flex-direction: column; font-size: 14px; left: 50%; line-height: 1; position: absolute; top: 5%; transform: translateX(-50%); z-index: 2; }
.msc-points-wind span { color: var(--msc-blue); font-size: clamp(36px, 7cqi, 64px); }
.msc-points-no-go { color: color-mix(in srgb, var(--msc-text) 70%, transparent); font-size: clamp(12px, 2.6cqi, 17px); font-weight: 800; left: 50%; position: absolute; text-transform: uppercase; top: 29%; transform: translateX(-50%); white-space: nowrap; z-index: 2; }
.msc-points-tack-label { bottom: 22%; font-size: clamp(12px, 2.7cqi, 18px); font-weight: 800; opacity: .42; position: absolute; text-transform: uppercase; }
.msc-points-tack-label--starboard { color: #16845f; right: 7%; }
.msc-points-tack-label--port { color: var(--msc-red); left: 7%; }
.msc-points-boat { --msc-points-heading: 90deg; appearance: none; background: transparent; border: 0; height: 34%; left: 50%; padding: 0; position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(var(--msc-points-heading)); transform-origin: center; width: 16%; z-index: 4; }
.msc-points-boat:focus-visible { outline: 3px solid var(--msc-blue); outline-offset: 6px; }
.msc-points-hull { background: #fff; border: 2px solid var(--msc-text); border-radius: 52% 52% 25% 25% / 18% 18% 72% 72%; box-shadow: 0 5px 12px rgb(35 44 57 / 18%); inset: 0; position: absolute; }
.msc-points-hull::after { background: var(--msc-text); content: ""; height: 70%; left: 50%; position: absolute; top: 15%; transform: translateX(-50%); width: 2px; }
.msc-points-sail { border-bottom: 3px solid var(--msc-blue); border-radius: 50%; height: 44%; left: 50%; position: absolute; top: 44%; transform: rotate(35deg); transform-origin: left center; width: 90%; }
.msc-points-trainer[data-point="no-go"] .msc-points-sail { animation: msc-points-luff .26s ease-in-out infinite alternate; border-bottom-style: dashed; }
.msc-points-manoeuvre { background: var(--msc-text); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 700; left: 50%; opacity: 0; padding: 6px 10px; pointer-events: none; position: absolute; top: 72%; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease; white-space: nowrap; z-index: 5; }
.msc-points-trainer.is-showing-manoeuvre .msc-points-manoeuvre { opacity: 1; transform: translate(-50%, 0); }
.msc-points-panel { background: #fff; border: 1px solid var(--msc-border); border-radius: var(--msc-radius); padding: 16px; }
.msc-points-panel > label { display: block; margin-bottom: 8px; }
.msc-points-panel input[type="range"] { accent-color: var(--msc-blue); width: 100%; }
.msc-points-scale { color: var(--msc-muted); display: flex; font-size: 10px; justify-content: space-between; margin-top: 2px; }
.msc-points-facts { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin: 18px 0; }
.msc-points-facts div { background: var(--msc-soft); border-radius: 8px; padding: 10px; }
.msc-points-facts dt { color: var(--msc-muted); font-size: 13px; }
.msc-points-facts dd { font-weight: 700; margin: 2px 0 0; }
.msc-points-reference { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.msc-points-reference[hidden] { display: none; }
.msc-points-reference li { align-items: center; color: var(--msc-muted); display: grid; font-size: 13px; gap: 6px; grid-template-columns: 10px auto 1fr; opacity: .74; }
.msc-points-reference li > span { background: var(--msc-blue); border-radius: 50%; height: 8px; width: 8px; }
.msc-points-reference li[data-key="no-go"] > span { background: var(--msc-points-danger); }
.msc-points-reference li[data-key="close-hauled"] > span { background: var(--msc-points-tight); }
.msc-points-reference li[data-key="close-reach"] > span { background: var(--msc-points-close); }
.msc-points-reference li[data-key="beam-reach"] > span { background: var(--msc-points-beam); }
.msc-points-reference li[data-key="broad-reach"] > span { background: var(--msc-points-broad); }
.msc-points-reference li[data-key="running"] > span { background: var(--msc-points-run); }
.msc-points-reference li.is-active { color: var(--msc-text); opacity: 1; }
.msc-points-note { background: var(--msc-soft); border-left: 4px solid var(--msc-blue); border-radius: 4px var(--msc-radius) var(--msc-radius) 4px; padding: 14px 16px; }
.msc-points-note h3 { font-size: 18px; margin: 0 0 4px; }
.msc-points-note p { margin: 0; }
@keyframes msc-points-luff { from { transform: rotate(-4deg); } to { transform: rotate(7deg); } }
@media (prefers-reduced-motion: reduce) { .msc-points-trainer[data-point="no-go"] .msc-points-sail { animation: none; } .msc-points-manoeuvre { transition: none; } }
@media (max-width: 760px) { .msc-points-workspace { grid-template-columns: 1fr; } .msc-points-panel { display: grid; } }
@media (max-width: 460px) { .msc-points-stage { gap: 4px; grid-template-columns: 36px minmax(210px, 1fr) 36px; } .msc-points-turn { height: 36px; width: 36px; } .msc-points-facts { grid-template-columns: 1fr; } .msc-points-scale span:nth-child(2), .msc-points-scale span:nth-child(4) { display: none; } }
