/* Hand-written additions (appended to shared.css by tools/css.py). */
.ls [hidden]{display:none!important}
.ls .wgl-msg{margin:12px 0 0;font-size:14px;font-weight:700;color:var(--orange)}
.ls .wgl-hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}
/* Video inside the TV frame */
.ls .tv-screen .wgl-video{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s;background:#000}
.ls .tv-screen.started .wgl-video{opacity:1}
.ls .tv-screen.started .vid-chip{display:none}
.ls .tv-screen.playing .play>span:not(.play-ic){display:none}
.ls .tv-screen.playing .play-ic,.ls .wgl-mute{width:clamp(44px,4.6vw,60px)}
.ls .tv-screen.playing .play-ic::before,.ls .tv-screen.playing .play-ic::after{display:none}
.ls .play-ic .ic-pause{display:none;width:34%;height:34%}
.ls .tv-screen.playing .play-ic .icf:not(.ic-pause){display:none}
.ls .tv-screen.playing .play-ic .ic-pause{display:block;margin:0}
.ls .wgl-mute{position:absolute;z-index:4;right:clamp(16px,3vw,40px);bottom:clamp(16px,3vw,36px);display:none;place-items:center;aspect-ratio:1;padding:0;border:0;border-radius:50%;background:rgba(14,11,9,.72);color:var(--fg);cursor:pointer;transition:transform .5s var(--spring)}
.ls .wgl-mute:hover{transform:scale(1.08)}
.ls .tv-screen.started .wgl-mute{display:grid}
.ls .wgl-mute .ic{width:46%;height:46%}
.ls .wgl-mute .off,.ls .wgl-mute[aria-pressed=true] .on{display:none}
.ls .wgl-mute[aria-pressed=true] .off{display:block}
/* YouTube/Vimeo: 16:9 frame scaled to cover the 4:3 screen; clicks go to our own controls */
.ls .tv-screen .wgl-embed{overflow:hidden}
.ls .tv-screen .wgl-embed iframe{position:absolute;top:0;left:-16.67%;width:133.34%;height:100%;border:0;pointer-events:none}
.ls .tv-screen.clickable{cursor:pointer}
/* Per-section visibility options */
@media (max-width:720px){body:not(.editor-styles-wrapper) .wg-hide-m{display:none!important}}
@media (min-width:721px){body:not(.editor-styles-wrapper) .wg-hide-d{display:none!important}}
.ls .wgl-cap{margin:14px 0 4px}
.grecaptcha-badge{z-index:190}
/* Fix (differs from the static design on purpose): on small screens the timeline number overlapped the step heading. */
@media (max-width:720px){.ls .tl-step{padding-left:64px}}
/* Extra form field types (same look as the design's inputs) */
.ls .fld select{flex:1;min-width:0;height:58px;padding:0 clamp(12px,1.25vw,18px) 0 0;border:0;background:transparent;color:var(--ink);font:inherit;font-size:clamp(15px,1.18vw,17px);outline:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.ls .f-box:has(select)::after{content:'';flex:none;width:9px;height:9px;margin:0 22px 4px 0;border-right:2px solid #5B4B3E;border-bottom:2px solid #5B4B3E;transform:rotate(45deg);pointer-events:none}
.ls .fld input[type=file]{height:auto;padding:16px 12px 16px 0;font-size:14px}
.ls .fld .f-box>input:first-child,.ls .fld .f-box>select:first-child{padding-left:clamp(12px,1.39vw,20px)}
.ls .f-opts{display:flex;flex-wrap:wrap;gap:10px 12px}
.ls .f-opt{display:inline-flex;align-items:center;gap:10px;min-height:46px;padding:0 18px 0 14px;border-radius:999px;background:#F4EDE0;color:var(--ink);font-size:15px;font-weight:700;cursor:pointer;transition:background .3s,color .3s}
.ls .f-opt:hover{background:#EFE6D6}
.ls .f-opt:has(input:checked){background:var(--ink);color:var(--paper)}
.ls .fld .f-opt input,.ls .fld.f-consent input{flex:none;width:20px;height:20px;margin:0;padding:0;accent-color:var(--orange)}
.ls .fld.f-consent{flex-direction:row;align-items:flex-start;gap:12px;font-size:15px;line-height:1.45;color:#5B4B3E;cursor:pointer}
.ls .fld.f-consent input{margin-top:1px}
/* Fix (differs from the static design on purpose): underlined links that wrap onto two lines on phones keep the line under the text. */
@media (max-width:720px){.ls .link{padding:8px 0 12px;background-position:0 calc(100% - 6px)}}
/* Form inputs: focus is shown on the field's own box/line instead of a browser outline around the bare input; autofill keeps the design colours. */
.ls .fld input:focus-visible,.ls .fld textarea:focus-visible,.ls .fld select:focus-visible,.ls .ft3-form input:focus-visible,.ls .fld input:focus,.ls .ft3-form input:focus{outline:none}
.ls .ft3-form{transition:box-shadow .3s}
.ls .ft3-form:focus-within{box-shadow:0 2px 0 0 currentColor}
.ls .fld .f-opt:focus-within,.ls .fld.f-consent:focus-within{outline:3px solid var(--lime);outline-offset:3px}
.ls .fld .f-opt input:focus-visible,.ls .fld.f-consent input:focus-visible{outline:none}
.ls .fld input:-webkit-autofill,.ls .fld textarea:-webkit-autofill,.ls .fld select:-webkit-autofill,.ls .ft3-form input:-webkit-autofill{-webkit-text-fill-color:currentColor;caret-color:currentColor;-webkit-box-shadow:0 0 0 1000px transparent inset;box-shadow:0 0 0 1000px transparent inset;transition:background-color 99999s ease-out,color 99999s ease-out}
.ls .fld input:autofill,.ls .ft3-form input:autofill{background-color:transparent!important;background-image:none!important}
.ls .fld input:-webkit-autofill{-webkit-text-fill-color:var(--ink)}
/* Whole card clickable */
.ls [data-cardlink]{cursor:pointer}
.ls [data-cardlink]:has(a[href]:focus-visible){outline:3px solid var(--lime);outline-offset:3px}
/* TV dials as sound controls (only when the section has a video) */
.ls .tv.knobs .knob{rotate:var(--kr,0deg)!important;cursor:pointer;transition:rotate .25s var(--ease);touch-action:none}
.ls .tv.knobs .knob:focus-visible{outline:3px solid var(--lime);outline-offset:4px}
.ls .tv.knobs .knob.k2[aria-pressed=true]::after{background:var(--orange)}
.ls .tv.knobs .led{opacity:.35;box-shadow:none;transition:opacity .3s,box-shadow .3s}
.ls .tv.knobs.playing .led{opacity:1;box-shadow:0 0 10px var(--green)}
