/* Shared teaching components; deliberately scoped away from the club's other pages. */
.exposure-body, .optics-body, .parameters-body { --course-accent: #ff956b; --course-line: #303c49; --course-muted: #afbac4; }
.optics-body { --course-accent: #6ed9ff; }
.parameters-body { --course-accent: #b5a0ff; color: #f4f2ec; background: radial-gradient(ellipse at 85% 0, #211936, transparent 650px), #090b10; }
.course-page { width: min(1240px, calc(100% - 40px)); margin: auto; padding-bottom: 90px; }
.course-header { width: min(1240px, calc(100% - 40px)); }
.course-hero { padding: 75px 0 45px; max-width: 940px; }
.course-eyebrow { color: var(--course-accent, #b5a0ff); font-size: .76rem; font-weight: 800; letter-spacing: .13em; }
.course-hero h1 { margin: 15px 0 24px; font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: 1.05; letter-spacing: -.06em; }
.course-hero > p:last-of-type { color: #bbc5ce; font-size: 1.12rem; line-height: 1.9; max-width: 780px; }
.course-route { margin: 26px 0; padding: 22px; border: 1px solid var(--course-line, #36404c); border-radius: 12px; background: #10151e; color: #d9e1e8; }
.course-route h2, .course-route h3 { margin: 0 0 12px; font-size: 1.12rem; color: #f4f2ec; }
.course-route p { color: #b5bfc9; line-height: 1.8; }
.course-route nav, .course-chapters { display: flex; flex-wrap: wrap; gap: 9px; }
.course-route a, .course-chapters a { padding: 8px 12px; background: #1a2230; border: 1px solid #394656; border-radius: 6px; color: var(--course-accent, #b5a0ff); font-size: .85rem; }
.course-route p a { padding: 0; border: 0; border-radius: 0; background: none; font-size: inherit; text-underline-offset: 3px; }
.course-route--further { margin-top: 64px; scroll-margin-top: 24px; border-top: 3px solid var(--course-accent); }
.course-route .course-route-note { margin-bottom: 0; font-size: .85rem; }
.course-layer-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0 0; }
.course-layer-map > div { min-width: 0; padding: 16px 18px; border: 1px solid #354454; border-radius: 9px; background: #151e29; }
.course-layer-map strong { display: block; margin-bottom: 6px; color: #f5f1e9; }
.course-layer-map p { margin: 0; font-size: .88rem; line-height: 1.75; }
.course-law-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.course-law-strip article { min-width: 0; padding: 17px 18px; border: 1px solid #4c3b3b; border-radius: 9px; background: #1a171a; }
.course-law-strip span { color: var(--course-accent); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.course-law-strip b { display: block; margin-top: 8px; color: #f1ece3; line-height: 1.5; }
.course-law-strip p { margin: 8px 0 0; color: #b9c1c8; font-size: .86rem; line-height: 1.75; }
.course-advanced { margin: 64px 0 0; border: 1px solid #4c405a; border-top: 3px solid var(--course-accent); border-radius: 12px; background: #11131c; scroll-margin-top: 24px; overflow: clip; }
.course-advanced--inline { margin-top: 28px; margin-bottom: 44px; }
.course-advanced > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 20px 24px; cursor: pointer; list-style: none; }
.course-advanced > summary::-webkit-details-marker { display: none; }
.course-advanced > summary::before { content: "＋"; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #776289; border-radius: 50%; color: var(--course-accent); font-size: 1.25rem; line-height: 1; }
.course-advanced[open] > summary::before { content: "−"; }
.course-advanced__eyebrow { display: block; color: var(--course-accent); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.course-advanced__copy { min-width: 0; }
.course-advanced__title { display: block; margin-top: 4px; color: #f4f2ec; font-size: clamp(1rem, 2.3vw, 1.35rem); line-height: 1.4; }
.course-advanced__hint { color: #b7a8c5; font-size: .8rem; white-space: nowrap; }
.course-advanced__body { padding: 0 24px 32px; border-top: 1px solid #3e334b; }
.course-advanced__body > .course-route { margin: 24px 0 28px; }
.course-advanced-primer { margin: 28px 0 36px; }
.course-advanced-primer h2, .course-advanced-primer h3 { margin-top: 0; color: #f2eee6; }
.course-advanced :focus-visible { outline: 2px solid var(--course-accent); outline-offset: 4px; }
.course-bridge { margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--course-accent); background: #111923; color: #becbd5; font-size: .9rem; line-height: 1.9; }
.course-bridge a, .term-primer a, .simulation-note a, .fine-print a { color: var(--course-accent, #ff956b); text-underline-offset: 3px; }
.course-bridge h3 { margin-top: 0; color: #eef4fa; font-size: 1rem; }
.course-bridge p:last-child { margin-bottom: 0; }
.course-route a:focus-visible, .course-bridge a:focus-visible, .term-primer a:focus-visible { outline: 2px solid var(--course-accent); outline-offset: 4px; }
.course-section { margin-top: 60px; padding-top: 38px; border-top: 1px solid var(--course-line); scroll-margin-top: 22px; }
.course-section > h2 { margin: 12px 0 18px; font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.3; letter-spacing: -.035em; }
.course-section > p, .course-lab p, .term-primer p { color: #bac4ce; line-height: 1.9; }
.term-primer { margin: 20px 0; padding: 20px 24px; border-left: 3px solid var(--course-accent, #ff956b); background: #121922; border-radius: 0 9px 9px 0; }
.term-primer h3, .term-primer h4 { margin: 0 0 12px; font-size: 1rem; color: var(--course-accent, #ff956b); }
.term-primer dl { display: grid; grid-template-columns: minmax(110px, .24fr) 1fr; gap: 10px 20px; margin: 0; font-size: .91rem; line-height: 1.85; }
.term-primer dt { color: #f0ece4; font-weight: 750; }
.term-primer dd { margin: 0; color: #b7c3cd; }
.course-lab { margin: 24px 0; border: 1px solid #3a4656; background: #10161e; border-radius: 14px; overflow: hidden; }
.course-lab-heading { padding: 18px 22px; border-bottom: 1px solid #303c49; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.course-lab-heading h3 { margin: 0; font-size: 1rem; }
.course-lab-heading span { color: var(--course-accent); font-size: .75rem; }
.course-lab-body { padding: 22px; }
.course-lab canvas, .course-lab svg { display: block; width: 100%; height: auto; background: #090f17; border-radius: 8px; }
.course-lab svg text { fill: #d7dfe8; font: 15px system-ui, sans-serif; }
.course-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; padding: 20px 22px; border-top: 1px solid #303c49; }
.course-controls label { display: grid; align-content: start; gap: 10px; font-size: .9rem; color: #e0e7ec; }
.course-controls input[type=range] { width: 100%; accent-color: var(--course-accent); }
.course-controls input[type=checkbox] { accent-color: var(--course-accent); }
.course-controls select, .course-controls input[type=number] { width: 100%; padding: 9px 10px; border: 1px solid #566276; border-radius: 6px; background: #1c2430; color: #f3f4f6; font: inherit; }
.course-controls output { color: var(--course-accent); font-variant-numeric: tabular-nums; }
.course-readout { margin: 0; padding: 20px 24px; border-top: 1px solid #303c49; background: #181e29; color: #ecede7; line-height: 1.85; }
.course-instruction, .course-caption { margin: 14px 22px; font-size: .85rem; line-height: 1.8; color: #aebdca; }
.course-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.course-buttons button, .course-button { padding: 10px 15px; border: 1px solid #506078; border-radius: 7px; background: #192231; color: #e5eaf0; font: inherit; font-size: .9rem; cursor: pointer; }
.course-buttons button[aria-pressed=true] { border-color: var(--course-accent); color: var(--course-accent); background: #283346; }
.course-section :focus-visible, .course-route :focus-visible, .course-lab :focus-visible, .course-myth :focus-visible, .course-check :focus-visible { outline: 2px solid var(--course-accent); outline-offset: 4px; }
.course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.course-cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-cards article { min-width: 0; padding: 23px; background: #111923; border: 1px solid #303d4b; border-radius: 10px; }
.course-cards article > span { color: var(--course-accent); font-size: .74rem; font-weight: 750; letter-spacing: .08em; }
.course-cards h3, .course-cards h4 { font-size: 1.12rem; margin: 12px 0; color: #eeeae0; }
.course-cards p { margin: 10px 0 0; font-size: .92rem; line-height: 1.9; color: #b7c2cf; }
.course-cards b, .course-cards strong { color: #e5eaf0; }
.color-range-comparison a { color: var(--course-accent); text-underline-offset: 3px; }
.bit-depth-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 20px 22px; background: #181e29; }
.bit-depth-facts div { min-width: 0; }
.bit-depth-facts dt { color: #b7c2cf; font-size: .85rem; }
.bit-depth-facts dd { margin: 8px 0 0; color: #d7c7ff; font-size: clamp(1.1rem, 2.1vw, 1.5rem); font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.course-myth, .course-check { margin: 16px 0; padding: 17px 21px; border: 1px solid #46515f; border-radius: 9px; background: #151b24; }
.course-myth summary, .course-check summary { cursor: pointer; color: #f2d78e; font-size: .95rem; font-weight: 700; line-height: 1.7; }
.course-myth p, .course-check p { color: #c3cdd7; font-size: .93rem; line-height: 1.9; }
.course-table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid #3a4654; border-radius: 10px; }
.course-table { width: 100%; min-width: 640px; border-collapse: collapse; background: #101720; font-size: .88rem; line-height: 1.8; }
.course-table caption { text-align: left; padding: 16px; color: #c9d2db; }
.course-table th, .course-table td { padding: 14px 16px; border-bottom: 1px solid #303c49; text-align: left; vertical-align: top; }
.course-table thead { color: var(--course-accent); background: #1a2330; }
.course-table td { color: #bbc7d4; }
.course-table tbody th { color: #e3e6ea; }
.course-sources { color: #b6c2cd; font-size: .83rem; line-height: 1.9; margin-top: 25px; }
.course-sources a { color: var(--course-accent, #7bd9f7); text-decoration: underline; text-underline-offset: 4px; }
.course-footer { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; margin-top: 60px; padding-top: 25px; border-top: 1px solid #3a4451; }
.course-footer a { color: var(--course-accent); }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.scope-grid figure { min-width: 0; margin: 0; }
.scope-grid figcaption { color: #acbdcc; margin: 9px 0; font-size: .85rem; line-height: 1.8; }
.mode-responsibility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mode-responsibility div { padding: 22px; background: #1b2432; border-radius: 8px; }
.mode-responsibility span { display: block; color: #afbdca; font-size: .84rem; }
.mode-responsibility strong { display: block; color: var(--course-accent); font-size: 1.3rem; margin-top: 10px; }
.shutter-mechanism-visual[data-mechanism=efcs] .shutter-kind-demo--efcs { display: grid; }
.shutter-kind-demo--efcs svg { width: 100%; height: auto; }
.efcs-start { stroke: #6ed9ff; stroke-width: 4; }
.efcs-end { stroke: #ff956b; stroke-width: 8; }
.parameters-course-card { border-color: #5b4d80; background: linear-gradient(110deg, #17151e, #302343); }
.shutter-replay-button:disabled { opacity: .65; cursor: default; }
.parameters-course-card .exposure-course-index, .parameters-course-card strong { color: #b5a0ff; }
.course-map-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.course-map-grid ol { margin: 0; padding-left: 23px; line-height: 2; }
.course-map-grid h3 { color: #d7c7ff; margin-top: 0; }
.course-map-grid a { background: none; border: 0; padding: 0; color: #d0dce7; }
.lighting-foundation { --lighting-accent: #ffd061; border-top: 3px solid var(--lighting-accent); background: radial-gradient(ellipse at 90% 0, rgba(255, 208, 97, .12), transparent 520px), #10161e; }
.lighting-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .38fr); gap: 26px; align-items: start; }
.lighting-heading h2 { margin: 8px 0 16px; font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.3; letter-spacing: -.035em; }
.lighting-heading p:not(.course-eyebrow) { color: #bac4ce; line-height: 1.9; }
.lighting-checklist { padding: 19px 20px; border: 1px solid #5b4c2b; border-radius: 10px; background: rgba(40, 34, 19, .65); color: #f2dfa1; }
.lighting-checklist strong { display: block; margin-bottom: 10px; }
.lighting-checklist ol { margin: 0; padding-left: 21px; color: #d7cfb7; line-height: 1.9; }
.lighting-lab { margin-top: 24px; border: 1px solid #4a4b46; border-radius: 14px; background: #0e141b; overflow: hidden; }
.lighting-lab-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 0; }
.lighting-stage { position: relative; min-height: 330px; overflow: hidden; isolation: isolate; background: linear-gradient(180deg, #172431 0%, #0b1118 72%); --lighting-size: 1; --lighting-distance: 1; }
.lighting-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at var(--light-x, 20%) 42%, rgba(255, 222, 157, .22), transparent 18%), linear-gradient(115deg, rgba(255, 214, 134, .1), transparent 38%); opacity: var(--light-opacity, 1); }
.lighting-stage[data-direction="front"] { --light-x: 50%; }
.lighting-stage[data-direction="side"] { --light-x: 16%; }
.lighting-stage[data-direction="back"] { --light-x: 84%; }
.lighting-stage-label, .lighting-stage-note { position: absolute; left: 18px; color: #dce4ee; font-size: .82rem; line-height: 1.7; }
.lighting-stage-label { top: 17px; color: #ffd061; font-weight: 800; letter-spacing: .06em; }
.lighting-stage-note { right: 18px; bottom: 16px; left: auto; max-width: 62%; color: #b7c3cd; text-align: right; }
.lighting-source { position: absolute; top: 43%; left: var(--light-x); display: grid; gap: 5px; justify-items: center; transform: translate(-50%, -50%); color: #ffd061; font-size: .74rem; font-weight: 700; }
.lighting-source i { display: block; width: var(--source-size, 66px); height: var(--source-size, 66px); border-radius: 50%; background: radial-gradient(circle, #fff8d4 0 25%, #ffd061 57%, rgba(255, 174, 80, .18) 72%, transparent 73%); box-shadow: 0 0 24px rgba(255, 208, 97, .75); }
.lighting-subject { position: absolute; bottom: 62px; left: 50%; display: grid; justify-items: center; transform: translateX(-50%); color: #eef4fa; font-size: .78rem; font-weight: 700; }
.lighting-subject i { position: relative; display: block; width: 70px; height: 118px; border-radius: 42% 42% 18% 18%; background: linear-gradient(90deg, #25384b 0 38%, #d7b16d 39% 62%, #1e2d3c 63%); box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.lighting-subject i::before { content: ""; position: absolute; top: -32px; left: 18px; width: 35px; height: 35px; border-radius: 50%; background: #d7b16d; box-shadow: inset -7px 0 0 rgba(10, 16, 23, .42); }
.lighting-shadow { position: absolute; bottom: 49px; left: 51%; width: var(--shadow-width, 107px); height: var(--shadow-height, 44px); border-radius: 50%; transform: translateX(var(--shadow-shift, 50px)) rotate(-4deg); background: rgba(2, 6, 10, .72); filter: blur(var(--shadow-blur, 7px)); opacity: var(--shadow-opacity, .62); }
.lighting-stage[data-direction="front"] .lighting-shadow { --shadow-shift: 8px; }
.lighting-stage[data-direction="back"] .lighting-shadow { --shadow-shift: -75px; }
.lighting-fill { position: absolute; bottom: 102px; left: 41%; width: 30px; height: 74px; border-radius: 50%; background: rgba(110, 217, 255, .35); filter: blur(14px); opacity: 0; }
.lighting-stage[data-fill="true"] .lighting-fill { opacity: .8; }
.lighting-floor { position: absolute; right: -10%; bottom: 0; left: -10%; height: 83px; z-index: -1; background: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 2px, transparent 2px 48px), linear-gradient(180deg, #182532, #0d141c); transform: perspective(180px) rotateX(18deg); transform-origin: bottom; }
.lighting-controls { align-content: start; border-top: 0; border-left: 1px solid #303c49; }
.lighting-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.lighting-choice legend { margin-bottom: 10px; color: #e0e7ec; font-size: .9rem; }
.lighting-choice .course-buttons { margin: 0; }
.lighting-checkbox { display: flex !important; grid-template-columns: 1fr; gap: 10px; }
.lighting-checkbox span:last-child { color: #bfcbd5; }
.lighting-cards { margin-bottom: 0; }
@media (max-width: 760px) {
  .lighting-heading, .lighting-lab-body { grid-template-columns: 1fr; }
  .lighting-controls { border-top: 1px solid #303c49; border-left: 0; }
  .lighting-stage { min-height: 290px; }
  .lighting-stage-note { max-width: 78%; }
}
@media (max-width: 760px) {
  .course-cards, .course-map-grid { grid-template-columns: 1fr; }
  .course-cards--two { grid-template-columns: 1fr; }
  .course-layer-map { grid-template-columns: 1fr; }
  .course-law-strip { grid-template-columns: 1fr; }
  .course-advanced > summary { grid-template-columns: auto minmax(0, 1fr); padding: 17px 15px; }
  .course-advanced__hint { grid-column: 2; white-space: normal; }
  .course-advanced__body { padding: 0 15px 24px; }
  .bit-depth-facts { grid-template-columns: 1fr; padding: 18px 15px; }
  .course-page, .course-header { width: calc(100% - 28px); }
  .course-hero { padding-top: 36px; }
  .scope-grid { grid-template-columns: 1fr; }
  .course-lab-body, .course-controls { padding: 15px; }
  .term-primer { padding: 17px; }
  .term-primer dl { grid-template-columns: 1fr; gap: 4px; }
  .term-primer dd { margin-bottom: 10px; }
  .mode-responsibility { gap: 8px; }
  .mode-responsibility div { padding: 12px; }
  .mode-responsibility strong { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
