
.lesson-video-entry{width:min(1320px,92vw);margin:18px auto 0;scroll-margin-top:calc(var(--site-header-height) + 20px)}
.video-launch,.video-toggle{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.video-play-icon{width:32px;height:32px;flex:none;filter:drop-shadow(0 2px 3px #0005)}
.video-modal-open,.video-expanded-open{overflow:hidden}
.lesson-video-dialog{position:fixed;inset:0;margin:auto;width:min(1180px,calc(100% - 32px));max-width:none;max-height:94dvh;padding:0;border:1px solid #cda34a70;border-radius:20px;background:#0b1b2d;color:#e5edf7;box-shadow:0 28px 100px #000b;overflow:auto;overscroll-behavior:contain}
.lesson-video-dialog::backdrop{background:#020810da;backdrop-filter:blur(5px)}
.video-dialog-head{position:sticky;top:0;z-index:12;background:#0b1b2dfa;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 20px;border-bottom:1px solid #ffffff19}
.video-dialog-head h2{font-size:1.6rem;margin:3px 0}
.video-dialog-head [data-close-video]{width:40px;height:40px;flex:none;font-size:1.8rem;border:1px solid #ffffff25;border-radius:50%;background:#152d46;color:var(--gold)}
.video-player{padding:16px;scroll-margin-top:calc(var(--site-header-height) + 16px);background:radial-gradient(ellipse at top left,#17354e,#081521 75%);min-width:0}
.video-player [hidden]{display:none!important}
.video-player button,.video-player select{min-height:36px;font-size:.875rem}
.video-player button:not(.primary){padding:7px 9px;border:1px solid #8bb2c83d;border-radius:8px;color:#dcebf5;background:#12293e;cursor:pointer}
.video-player button:hover{border-color:var(--gold);background:#1c3850}
.video-player button:disabled{opacity:.4;cursor:default}
.video-player button[aria-pressed=true]{border-color:#eac46d;color:#ffe1a1;background:#3a341f}
.video-player :focus-visible,.contact-form :focus-visible{outline:2px solid #ffd458;outline-offset:3px}
.video-player select{width:100%;min-width:0;padding:6px 24px 6px 8px;border:1px solid #8bb2c84a;border-radius:7px;background:#0d2134;color:#e5edf7}
.video-player input[type=range]{accent-color:#f4c355;min-width:0;min-height:26px;margin:0}
.video-preferences{display:flex;align-items:center;gap:8px;margin-bottom:14px;min-width:0}
.video-preferences>button{flex:none;white-space:nowrap}
.voice-options{display:flex;align-items:center;gap:7px;flex:1;min-width:0}
.voice-choice{display:flex;align-items:center;gap:5px;flex:1 1 170px;min-width:120px;max-width:250px;font-size:.875rem;color:#bdd1df}
.voice-choice select{font-size:.8125rem}
.voice-profiles{display:flex;gap:3px;flex:none}
.video-player .voice-profiles button{padding:5px 7px;font-size:.8125rem;background:transparent;border-color:transparent}
.video-player .voice-profiles button[aria-pressed=true]{color:#ffe1a1;background:#3a341f}
.voice-adjust{display:flex;flex-direction:column;gap:0;flex:0 0 97px;min-width:0;color:#bed3e2;font-size:.8125rem;line-height:1.3}
.voice-adjust>span{display:flex;justify-content:space-between;gap:5px;white-space:nowrap}
.voice-adjust output{color:#ffe0a0;font-variant-numeric:tabular-nums}
.voice-adjust input{width:100%}
.video-player .voice-preview,.video-player .voice-reset{background:transparent;border-color:transparent;padding:5px;flex:none}
.video-player .voice-reset{font-size:1.2rem;width:30px}
.video-preferences>.video-fullscreen{display:inline-flex;align-items:center;justify-content:center;gap:5px;margin-left:auto;color:#ffe0a0}
.video-fullscreen svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.video-notice{padding:10px 14px;border:1px solid #ffcf6c66;border-radius:9px;color:#ffe3a9;font-size:.875rem;background:#332a18;line-height:1.5}
.video-stage{display:grid;grid-template-columns:var(--video-columns,minmax(0,1fr) 18px minmax(0,1fr));align-items:stretch;min-width:0}
.video-caption-panel{grid-column:1;min-width:0;padding:4px 7px 4px 0;display:flex;flex-direction:column}
.video-caption-panel h3{font-size:1.3rem;line-height:1.35;margin:8px 0 12px}
.video-caption-lines{position:relative;max-height:410px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-right:6px}
.video-caption{font-size:1rem;line-height:1.7;color:#a8bbcc;padding:10px 12px;margin:0 0 9px;border-radius:8px}
.video-caption.is-current{color:#d4e1ec;background:#a0c7e20a}
.video-sentence{border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.video-is-speaking .video-sentence.is-speaking{color:#edffe9;background:#8ddd8838;font-weight:600}
.video-player .video-caption,.video-player .video-sentence,.video-player .video-caption.is-current,.video-player .video-sentence.is-speaking{border:0;outline:0;text-decoration:none;box-shadow:none;text-shadow:none}
.video-player .video-caption::before,.video-player .video-caption::after,.video-player .video-sentence::before,.video-player .video-sentence::after{content:none}
.video-divider{grid-column:2;min-width:0;min-height:44px;display:flex;align-items:center;justify-content:center;align-self:stretch;cursor:col-resize;touch-action:none;user-select:none;border-radius:8px}
.video-divider span{width:3px;height:55px;max-height:75%;border-radius:4px;background:#7294a86b;box-shadow:0 0 0 3px #7294a80a}
.video-divider:hover,.video-divider:focus-visible,.video-is-resizing .video-divider{background:#f3c44d12}
.video-divider:hover span,.video-divider:focus-visible span,.video-is-resizing .video-divider span{background:#f7cd6d}
.video-is-resizing,.video-is-resizing *{user-select:none!important}
.video-board-column{grid-column:3;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding-left:5px}
.video-board-shell{position:relative;isolation:isolate;width:min(100%,var(--video-fit-board,100%));max-width:none;margin:0 auto}
.video-player .board{width:100%;max-width:none;min-width:0;border:6px solid #c78b3d;border-radius:10px;aspect-ratio:1;box-shadow:0 8px 30px #0006}
.video-watermark{position:absolute;right:9px;bottom:9px;z-index:8;font:650 clamp(9px,1vw,12px)/1.1 system-ui;letter-spacing:.01em;padding:3px 5px;color:#fff3d1;background:#25190dbf;border-radius:4px;pointer-events:none;text-shadow:0 1px 2px #000}
.video-move{width:100%;max-width:var(--video-fit-board);font-size:.875rem;line-height:1.4;margin:8px 0 0;color:#ffe0a0;min-height:0;text-align:center}
.video-piece-ghost{position:absolute;z-index:6;pointer-events:none;will-change:transform}
.video-piece-ghost .chess-piece{visibility:visible!important}
.video-area:before,.video-move-square:before{content:'';position:absolute;inset:2px;border:3px solid #fff15a;border-radius:4px;background:#fff36d66;box-shadow:inset 0 0 18px #fff7a5a8,0 0 12px #fff15a8c;pointer-events:none}
.video-area:after,.video-move-square:after{padding:2px 3px;border-radius:3px;background:#fff2a8;color:#302100!important;font-weight:900;text-shadow:none}
.video-move-square:before{border-color:#63f3ff;background:#38dceb75;box-shadow:inset 0 0 20px #b9fbffbf,0 0 14px #63f3ff9e}
.video-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 0 6px;border-top:1px solid #ffffff1a;margin-top:12px;background:#0a1b2b;position:relative;z-index:9}
.video-toggle{min-width:135px}
.video-controls>[data-video-count]{font-size:.8125rem;color:#adc4d4;white-space:nowrap;margin-left:4px}
.video-controls>[data-video-seek]{flex:1;min-width:90px}
.video-chapter-choice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.875rem;margin-top:8px}
.video-chapter-choice select{flex:1;min-width:140px}
.video-chapter-choice>span{flex-basis:100%;font-size:.8125rem;color:#adc2d2}
.without-captions .video-stage{display:flex;justify-content:center}
.without-captions .video-board-column{width:100%;max-width:700px;margin:auto;padding:0}
.lesson-video-dialog.is-video-expanded{inset:0;width:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;overflow:hidden}
.lesson-video-dialog.is-video-expanded>.video-dialog-head{display:none}
.video-player.is-video-expanded{position:fixed;inset:0;z-index:10000;box-sizing:border-box;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(14px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:8px;overflow:hidden}
.video-player.is-video-expanded .video-preferences{flex:none;margin:0}
.video-player.is-video-expanded .video-notice{flex:none;max-height:15dvh;overflow:auto;margin:0}
.video-player.is-video-expanded .video-stage{flex:1;min-height:0}
.video-player.is-video-expanded .video-board-column{justify-content:center;min-height:0;max-width:none}
.video-player.is-video-expanded .video-caption-panel{min-height:0;padding:0 5px 0 0}
.video-player.is-video-expanded .video-caption-panel>.eyebrow{display:none}
.video-player.is-video-expanded .video-caption-panel h3{flex:none;font-size:clamp(1rem,1.6vw,1.65rem);margin:0 0 8px}
.video-player.is-video-expanded .video-caption-lines{flex:1;min-height:0;max-height:none;padding:4px 6px 8px 0}
.video-player.is-video-expanded .video-caption{font-size:clamp(1rem,1.4vw,1.3rem);line-height:1.7;padding:10px 12px}
.video-player.is-video-expanded .video-controls{position:static;flex:none;margin:0;padding:6px 0 0;box-shadow:none;background:transparent}
.video-player.is-video-expanded .video-chapter-choice{flex:none;margin:0;flex-wrap:nowrap}
.video-player.is-video-expanded [data-video-status]{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:1100px){
 .video-preferences{flex-wrap:wrap}.voice-options{order:2;flex:1 0 100%}.voice-choice{max-width:none}
}
@media(max-width:600px){
 .lesson-video-dialog{width:calc(100% - 12px);max-height:calc(100dvh - 12px);border-radius:14px}
 .video-dialog-head{padding:9px 11px}.video-dialog-head h2{font-size:1.2rem}.video-dialog-head .eyebrow{font-size:.6875rem}
 .video-dialog-head [data-close-video]{width:36px;height:36px;min-height:36px}
 .video-player{padding:8px}
 .video-preferences{gap:6px;margin-bottom:10px}.video-preferences>button{font-size:.8125rem;min-height:36px}
 .voice-options{display:grid;grid-template-columns:1fr 1fr auto auto;gap:6px}
 .voice-choice{grid-column:1/3;min-width:0;font-size:.8125rem}
 .voice-profiles{grid-column:3/5}.voice-profiles button{min-height:36px}
 .voice-adjust{min-width:0;font-size:.8125rem}.voice-adjust input{min-height:30px}
 .video-player .voice-preview{font-size:.8125rem;padding:4px}.video-player .voice-reset{width:28px}
 .video-stage{display:flex;flex-direction:column;min-width:0}
 .video-board-column{order:0;padding:0}.video-divider{order:1;min-height:22px;height:22px;flex:none;cursor:row-resize}
 .video-divider span{height:3px;width:55px;max-height:none}
 .video-caption-panel{order:2;padding:4px 0;min-height:0}
 .video-player .board{border-width:5px}
 .video-caption-panel>.eyebrow{display:none}.video-caption-panel h3{font-size:1rem;margin:4px 0 8px}
 .video-caption-lines{max-height:180px;padding-right:3px}.video-caption{font-size:1rem;line-height:1.6;padding:8px 10px}
 .video-move{font-size:.8125rem;line-height:1.4;margin:6px 0}
 .video-controls{position:sticky;bottom:-1px;margin-top:8px;padding:8px 0 5px;gap:6px;box-shadow:0 -5px 12px #081b2b}
 .video-controls [data-video-seek]{order:2;flex-basis:calc(100% - 55px);min-width:0}
 .video-controls [data-video-restart]{order:3}.video-controls [data-video-count]{margin-left:auto}
 .video-toggle{flex:1;min-width:110px}
 .video-chapter-choice{margin-top:6px}.video-chapter-choice select{font-size:.8125rem}
 .lesson-video-entry{margin-top:14px}.lesson-video-entry .primary{width:100%}
 .video-watermark{font-size:9px;right:8px;bottom:8px}
 .video-player.is-video-expanded{padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));gap:5px}
 .video-player.is-video-expanded .video-board-column{flex:none}
 .video-player.is-video-expanded .video-caption-panel{flex:1;padding:0}
 .video-player.is-video-expanded .video-caption-panel h3{font-size:1rem;margin:0 0 4px}
 .video-player.is-video-expanded .video-caption{font-size:1rem;padding:7px 9px}
 .video-player.is-video-expanded .video-chapter-choice>label{display:none}
 .video-player.is-video-expanded .video-chapter-choice select{min-height:34px;padding-top:5px;padding-bottom:5px}
}
@media(max-height:480px) and (min-width:601px){
 .video-player.is-video-expanded{gap:4px;padding:6px 10px}
 .video-player.is-video-expanded .video-controls{padding-top:4px}
 .video-player.is-video-expanded .video-chapter-choice{display:none}
}
@media(prefers-reduced-motion:reduce){.video-player *{scroll-behavior:auto!important}}

.contact-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:50px;max-width:1120px}.contact-intro h2{font-size:2rem}.contact-intro p{color:var(--muted);line-height:1.8}.contact-details{display:grid;gap:10px;margin:24px 0;padding:20px;border:1px solid #eac46d55;border-radius:16px;background:#10263b;font-style:normal}.contact-details strong{color:#ffe1a1;font-size:1.05rem}.contact-details a{display:flex;flex-wrap:wrap;gap:8px;color:#e7f0f9;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}.contact-details a span{min-width:3.4rem;color:var(--gold);font-weight:700;text-decoration:none}.contact-note{font-size:.9375rem}.contact-form{display:flex;flex-direction:column;gap:12px;padding:26px;background:#10263b;border:1px solid #95c1d22e;border-radius:20px}.contact-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.contact-field{min-width:0}.contact-field-wide{grid-column:1/-1}.contact-form input,.contact-form select,.contact-form textarea{width:100%;min-width:0;background:#061626;border:1px solid #8fb6ca66;color:#e7f0f9;border-radius:10px;font:inherit;padding:12px;margin:6px 0 0}.contact-form select{min-height:50px}.contact-form textarea{resize:vertical}.contact-form label{display:block;font-size:.9375rem;font-weight:650}.contact-form small{color:#a8bdd0;line-height:1.5;margin:0 0 8px}.contact-form .muted{font-weight:400;color:#a8bdd0}.contact-form [type=submit]{align-self:flex-start}.contact-form #contact-status{color:#ffe2a3;margin:0;line-height:1.5}.contact-form[hidden],.contact-thanks[hidden]{display:none}.contact-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.contact-thanks{align-self:start;border:1px solid #c6a55955;background:#10263b;border-radius:20px;overflow:hidden}.contact-thanks img{display:block;width:100%;height:auto}.contact-thanks>div{padding:22px}.contact-thanks p{color:#bed1de;line-height:1.7}.contact-thanks button{padding:10px 14px;background:#233e51;border:1px solid #eac46d;color:#ffe1a1;border-radius:10px}
@media(max-width:850px){.contact-section{gap:25px}}
@media(max-width:600px){.contact-section{grid-template-columns:1fr;gap:20px}.contact-intro h2{font-size:1.6rem;margin-top:10px}.contact-form{padding:20px}.contact-fields{grid-template-columns:1fr}.contact-form input,.contact-form select,.contact-form textarea{font-size:max(16px,1rem)}}

/* Ten themes also cover video and contact surfaces. */
.lesson-video-dialog{background:var(--theme-control);color:var(--ink);border-color:var(--line);box-shadow:0 28px 100px var(--theme-shadow)}
.video-dialog-head{background:var(--theme-panel-background);border-color:var(--line)}.video-dialog-head [data-close-video]{background:var(--theme-surface);color:var(--gold);border-color:var(--line)}
.video-player{background:var(--theme-page-background)}.video-player button:not(.primary){color:var(--theme-strong-copy);background:var(--theme-surface);border-color:var(--line)}.video-player button:hover{background:var(--theme-option-hover)}.video-player button[aria-pressed=true],.video-player .voice-profiles button[aria-pressed=true]{color:var(--theme-heading);background:var(--theme-accent-wash)}
.video-player select{background:var(--theme-control);color:var(--ink);border-color:var(--line)}.voice-choice,.voice-adjust,.video-caption,.video-controls>[data-video-count],.video-chapter-choice>span{color:var(--muted)}.voice-adjust output,.video-preferences>.video-fullscreen,.video-move{color:var(--theme-heading)}
.video-notice{color:var(--theme-heading);background:var(--theme-accent-wash);border-color:var(--gold)}.video-caption.is-current{color:var(--theme-copy);background:var(--theme-panel-item)}.video-is-speaking .video-sentence.is-speaking{color:var(--theme-strong-copy);background:var(--theme-success)}.video-controls{background:var(--theme-control);border-color:var(--line)}
.contact-form,.contact-thanks,.contact-details{background:var(--theme-surface);border-color:var(--line)}.contact-form input,.contact-form select,.contact-form textarea{background:var(--theme-control);border-color:var(--line);color:var(--ink)}.contact-form small,.contact-form .muted,.contact-thanks p{color:var(--muted)}.contact-form #contact-status{color:var(--theme-heading)}.contact-thanks button{background:var(--theme-option-hover);border-color:var(--gold);color:var(--theme-heading)}
