/* Existing public sections, scoped so the shared navigation stays unchanged. */
@scope (.legacy-content) {
*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(93,128,174,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(93,128,174,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com*/*,:after,:before{box-sizing:border-box;border:0 solid #e5e7eb}:after,:before{--tw-content:""}:host,:scope{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Lora,Georgia,serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.-left-\[30px\]{left:-30px}.top-3{top:.75rem}.top-3\.5{top:.875rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mr-3{margin-right:.75rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-2\.5{margin-top:.625rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.\!hidden{display:none!important}.hidden{display:none}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3\.5{height:.875rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-screen{min-height:100vh}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3\.5{width:.875rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-8{width:2rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.space-x-3\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(.875rem*var(--tw-space-x-reverse));margin-left:calc(.875rem*(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem*var(--tw-space-x-reverse));margin-left:calc(1rem*(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1.5rem*var(--tw-space-x-reverse));margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(.75rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem*var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem*var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem*var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem*var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem*var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-t{border-top-width:1px}.border-slate-100{--tw-border-opacity:1;border-color:rgb(237 240 244/var(--tw-border-opacity,1))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(214 219 225/var(--tw-border-opacity,1))}.border-slate-200\/60{border-color:rgba(214,219,225,.6)}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity,1))}.border-t-amber-500{--tw-border-opacity:1;border-top-color:rgb(126 159 201/var(--tw-border-opacity,1))}.bg-amber-500{--tw-bg-opacity:1;background-color:rgb(126 159 201/var(--tw-bg-opacity,1))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(237 240 244/var(--tw-bg-opacity,1))}.bg-slate-400{--tw-bg-opacity:1;background-color:rgb(147 161 179/var(--tw-bg-opacity,1))}.bg-slate-50{--tw-bg-opacity:1;background-color:rgb(247 245 240/var(--tw-bg-opacity,1))}.bg-slate-50\/50{background-color:hsla(43,30%,95%,.5)}.bg-slate-900{--tw-bg-opacity:1;background-color:rgb(32 44 60/var(--tw-bg-opacity,1))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.bg-white\/80{background-color:hsla(0,0%,100%,.8)}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.from-slate-50\/40{--tw-gradient-from:hsla(43,30%,95%,.4) var(--tw-gradient-from-position);--tw-gradient-to:hsla(43,30%,95%,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-slate-100\/25{--tw-gradient-to:rgba(237,240,244,.25) var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.object-contain{-o-object-fit:contain;object-fit:contain}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-6{padding-bottom:1.5rem}.pl-0{padding-left:0}.pl-5{padding-left:1.25rem}.pl-6{padding-left:1.5rem}.pt-3{padding-top:.75rem}.text-center{text-align:center}.font-heading{font-family:Lora,Georgia,serif}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[9px\]{font-size:9px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.leading-none{line-height:1}.leading-relaxed{line-height:1.625}.leading-snug{line-height:1.375}.tracking-widest{letter-spacing:.1em}.text-amber-500{--tw-text-opacity:1;color:rgb(126 159 201/var(--tw-text-opacity,1))}.text-amber-600{--tw-text-opacity:1;color:rgb(49 90 145/var(--tw-text-opacity,1))}.text-red-500{--tw-text-opacity:1;color:rgb(239 68 68/var(--tw-text-opacity,1))}.text-slate-400{--tw-text-opacity:1;color:rgb(147 161 179/var(--tw-text-opacity,1))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 118 138/var(--tw-text-opacity,1))}.text-slate-600{--tw-text-opacity:1;color:rgb(86 98 116/var(--tw-text-opacity,1))}.text-slate-700{--tw-text-opacity:1;color:rgb(58 70 85/var(--tw-text-opacity,1))}.text-slate-800{--tw-text-opacity:1;color:rgb(32 43 57/var(--tw-text-opacity,1))}.text-slate-900{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.text-slate-950{--tw-text-opacity:1;color:rgb(21 28 38/var(--tw-text-opacity,1))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.underline{text-decoration-line:underline}.opacity-70{opacity:.7}.shadow-2xl{--tw-shadow:0 25px 50px -12px rgba(0,0,0,.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color)}.shadow-2xl,.shadow-md{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur:blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.selection\:bg-blue-200\/70 ::-moz-selection{background-color:rgba(192,213,241,.7)}.selection\:bg-blue-200\/70 ::selection{background-color:rgba(192,213,241,.7)}.selection\:text-slate-900 ::-moz-selection{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.selection\:text-slate-900 ::selection{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.selection\:bg-blue-200\/70::-moz-selection{background-color:rgba(192,213,241,.7)}.selection\:bg-blue-200\/70::selection{background-color:rgba(192,213,241,.7)}.selection\:text-slate-900::-moz-selection{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.selection\:text-slate-900::selection{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.hover\:border-amber-500:hover{--tw-border-opacity:1;border-color:rgb(126 159 201/var(--tw-border-opacity,1))}.hover\:border-white\/40:hover{border-color:hsla(0,0%,100%,.4)}.hover\:bg-slate-100:hover{--tw-bg-opacity:1;background-color:rgb(237 240 244/var(--tw-bg-opacity,1))}.hover\:bg-slate-50:hover{--tw-bg-opacity:1;background-color:rgb(247 245 240/var(--tw-bg-opacity,1))}.hover\:bg-slate-800:hover{--tw-bg-opacity:1;background-color:rgb(32 43 57/var(--tw-bg-opacity,1))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.hover\:text-slate-900:hover{--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.hover\:underline:hover{text-decoration-line:underline}.hover\:shadow:hover{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.hover\:shadow-sm:hover,.hover\:shadow:hover{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.group:hover .group-hover\:text-amber-600,.group:hover .group-hover\:text-blue-600{--tw-text-opacity:1;color:rgb(49 90 145/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.group:hover .group-hover\:text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity,1))}.dark\:border-slate-700:is(.dark *){--tw-border-opacity:1;border-color:rgb(58 70 85/var(--tw-border-opacity,1))}.dark\:border-slate-800:is(.dark *){--tw-border-opacity:1;border-color:rgb(32 43 57/var(--tw-border-opacity,1))}.dark\:border-slate-800\/60:is(.dark *){border-color:rgba(32,43,57,.6)}.dark\:border-slate-800\/80:is(.dark *){border-color:rgba(32,43,57,.8)}.dark\:border-slate-900:is(.dark *){--tw-border-opacity:1;border-color:rgb(32 44 60/var(--tw-border-opacity,1))}.dark\:border-white\/10:is(.dark *){border-color:hsla(0,0%,100%,.1)}.dark\:border-white\/20:is(.dark *){border-color:hsla(0,0%,100%,.2)}.dark\:bg-amber-500:is(.dark *){--tw-bg-opacity:1;background-color:rgb(126 159 201/var(--tw-bg-opacity,1))}.dark\:bg-slate-100:is(.dark *){--tw-bg-opacity:1;background-color:rgb(237 240 244/var(--tw-bg-opacity,1))}.dark\:bg-slate-600:is(.dark *){--tw-bg-opacity:1;background-color:rgb(86 98 116/var(--tw-bg-opacity,1))}.dark\:bg-slate-800\/80:is(.dark *){background-color:rgba(32,43,57,.8)}.dark\:bg-slate-900\/20:is(.dark *){background-color:rgba(32,44,60,.2)}.dark\:bg-slate-900\/30:is(.dark *){background-color:rgba(32,44,60,.3)}.dark\:bg-slate-900\/40:is(.dark *){background-color:rgba(32,44,60,.4)}.dark\:bg-slate-900\/80:is(.dark *){background-color:rgba(32,44,60,.8)}.dark\:bg-white:is(.dark *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))}.dark\:from-slate-800\/25:is(.dark *){--tw-gradient-from:rgba(32,43,57,.25) var(--tw-gradient-from-position);--tw-gradient-to:rgba(32,43,57,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:to-slate-950\/35:is(.dark *){--tw-gradient-to:rgba(21,28,38,.35) var(--tw-gradient-to-position)}.dark\:text-amber-500:is(.dark *){--tw-text-opacity:1;color:rgb(126 159 201/var(--tw-text-opacity,1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity,1))}.dark\:text-slate-100:is(.dark *){--tw-text-opacity:1;color:rgb(237 240 244/var(--tw-text-opacity,1))}.dark\:text-slate-200:is(.dark *){--tw-text-opacity:1;color:rgb(214 219 225/var(--tw-text-opacity,1))}.dark\:text-slate-300:is(.dark *){--tw-text-opacity:1;color:rgb(180 191 206/var(--tw-text-opacity,1))}.dark\:text-slate-400:is(.dark *){--tw-text-opacity:1;color:rgb(147 161 179/var(--tw-text-opacity,1))}.dark\:text-slate-50:is(.dark *){--tw-text-opacity:1;color:rgb(247 245 240/var(--tw-text-opacity,1))}.dark\:text-slate-500:is(.dark *){--tw-text-opacity:1;color:rgb(102 118 138/var(--tw-text-opacity,1))}.dark\:text-slate-900:is(.dark *){--tw-text-opacity:1;color:rgb(32 44 60/var(--tw-text-opacity,1))}.dark\:text-slate-950:is(.dark *){--tw-text-opacity:1;color:rgb(21 28 38/var(--tw-text-opacity,1))}.dark\:text-white:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.dark\:hover\:border-amber-500:hover:is(.dark *){--tw-border-opacity:1;border-color:rgb(126 159 201/var(--tw-border-opacity,1))}.dark\:hover\:bg-amber-600:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(49 90 145/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-100:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(237 240 244/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-800:hover:is(.dark *){--tw-bg-opacity:1;background-color:rgb(32 43 57/var(--tw-bg-opacity,1))}.dark\:hover\:bg-slate-800\/50:hover:is(.dark *){background-color:rgba(32,43,57,.5)}.dark\:hover\:bg-slate-900\/40:hover:is(.dark *){background-color:rgba(32,44,60,.4)}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:border-white\/20:is(.dark *){border-color:hsla(0,0%,100%,.2)}.group:hover .dark\:group-hover\:text-amber-400:is(.dark *){--tw-text-opacity:1;color:rgb(155 187 232/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:text-blue-400:is(.dark *){--tw-text-opacity:1;color:rgb(126 159 201/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:text-green-400:is(.dark *){--tw-text-opacity:1;color:rgb(74 222 128/var(--tw-text-opacity,1))}.group:hover .dark\:group-hover\:text-indigo-400:is(.dark *){--tw-text-opacity:1;color:rgb(129 140 248/var(--tw-text-opacity,1))}@media (min-width:640px){.sm\:col-span-2{grid-column:span 2/span 2}.sm\:w-52{width:13rem}.sm\:flex-shrink-0{flex-shrink:0}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-start{align-items:flex-start}.sm\:items-center{align-items:center}.sm\:gap-6{gap:1.5rem}}@media (min-width:768px){.md\:col-span-4{grid-column:span 4/span 4}.md\:col-span-8{grid-column:span 8/span 8}.md\:h-72{height:18rem}.md\:w-56{width:14rem}.md\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-top:calc(0px*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px*var(--tw-space-y-reverse))}.md\:border-b-0{border-bottom-width:0}.md\:border-r{border-right-width:1px}.md\:p-10{padding:2.5rem}.md\:py-14{padding-top:3.5rem;padding-bottom:3.5rem}.md\:pb-0{padding-bottom:0}.md\:pl-4{padding-left:1rem}.md\:pr-8{padding-right:2rem}.md\:text-left{text-align:left}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:sticky{position:sticky}.lg\:top-8{top:2rem}.lg\:col-span-4{grid-column:span 4/span 4}.lg\:col-span-8{grid-column:span 8/span 8}.lg\:grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}}
/* ============================================================
   LORA — SELF-HOSTED (assets/fonts/lora/, woff2 VARIABLE files: one file
   per subset covers weights 400-700). Was a fonts.googleapis.com <link>;
   self-hosting removes two third-party origins (DNS+TLS round trips)
   from every first visit. unicode-range means a browser only downloads
   the subsets a page actually renders (uk/ru -> cyrillic, en -> latin).
   math/symbols/vietnamese subsets were dropped on purpose - the site is
   uk/en/ru; anything exotic falls back to Georgia.
   Files downloaded from Google Fonts v37 (SIL Open Font License).
   ============================================================ */
/* cyrillic-ext (italic) */

/* cyrillic (italic) */

/* latin-ext (italic) */

/* latin (italic) */

/* cyrillic-ext (normal) */

/* cyrillic (normal) */

/* latin-ext (normal) */

/* latin (normal) */


:scope {
  color-scheme: light;
  --font-sans: 'Lora', Georgia, serif;
  --font-heading: 'Lora', Georgia, serif;
  --bg-primary: #f7f5f0;
  --text-primary: #202c3c;
  --text-secondary: #566274;
  --border-color: #d6dbe1;
  --card-bg: #ffffff;
  --card-border-hover: #cbd5e1; /* Slate 300 */
  --accent: #315a91;
  --accent-strong: #254771;
  --accent-soft: #eaf0f7;
  --glass-bg: #ffffff;
  --glass-border: #d6dbe1;
  --shadow-tint: rgba(15, 23, 42, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* One glow family per theme: hover/focus halos used to mix hardcoded sky
     #38bdf8 with var(--accent) azure — two different blues on one screen. */
  --glow: var(--accent);
  --glow-soft: rgba(49, 90, 145, 0.16);
  /* One primary-button recipe + one neutral progress-bar fill. */
  --btn-grad: linear-gradient(#315a91, #315a91);
  --on-accent: #ffffff;
  --btn-radius: 0.75rem;
  --bar-grad: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.dark {
  color-scheme: dark;
  --bg-primary: #151c26;
  --text-primary: #edf0f4;
  --text-secondary: #b4bfce;
  --border-color: #3a4655;
  --card-bg: #202b39;
  --card-border-hover: #334155; /* Slate 700 */
  --accent: #9bbbe8;
  --accent-strong: #c0d5f1;
  --accent-soft: #2b3b50;
  --glass-bg: #202b39;
  --glass-border: #3a4655;
  --shadow-tint: rgba(0, 0, 0, 0.5);
  --glow: var(--accent);
  --glow-soft: rgba(155, 187, 232, 0.16);
  --on-accent: #151c26;
}

* { -webkit-tap-highlight-color: transparent; }

/* Root font size: ~17.6px base so every rem-based size scales up a touch */
:scope { scroll-behavior: smooth; font-size: 110%; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

.font-heading { font-family: var(--font-heading); }

/* A quiet, shared canvas for the public site and the learning cabinet. */
.bg-aurora { display: none; }

/* ============================================================
   FIXED TOP CONTROLS (theme + language) — always visible
   ============================================================ */
.top-controls {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: calc(100vw - 2.5rem);
}
.cab-logout-top {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cab-logout-top:hover { color: #dc2626; border-color: #dc2626; }

/* Back-to-top circular button — fixed bottom-right, fades in once scrolled
   down (see app.js for the scroll-listener that toggles .visible). Sizes
   down on small screens ("адаптивні"). */
.scroll-top-btn {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 55;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--accent);
  box-shadow: 0 6px 20px -6px rgba(15, 23, 42, 0.25);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.scroll-top-btn svg { width: 20px; height: 20px; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.dark .scroll-top-btn { box-shadow: 0 0 20px -4px rgba(59, 130, 246, 0.5); }
.dark .scroll-top-btn:hover { box-shadow: 0 0 24px -2px rgba(59, 130, 246, 0.7); }
@media (max-width: 640px) {
  .scroll-top-btn { width: 44px; height: 44px; right: 0.9rem; bottom: 0.9rem; }
  .scroll-top-btn svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn { transition: opacity 0.01ms, visibility 0.01ms; }
}
/* When relocated into the nav bar (content views): flow inline, pinned right. */
.top-controls.in-nav {
  position: static;
  top: auto;
  right: auto;
  margin-left: auto;
  max-width: none;
}

/* ============================================================
   VIEW STATE MACHINE
   ============================================================ */
#path-nav,
main.app-main { display: none; }

body:not(.view-intro) #intro-gate { display: none; }
body:not(.view-intro) #path-nav { display: block; }
body:not(.view-intro) main.app-main { display: block; }
body.view-intro #intro-gate { display: flex; }
/* Intro still hides the tab content (scientist/tutor/cabinet — those stay
   hidden via their own inline style, set by showView()) but now shows
   main.app-main's OTHER direct child, #contacts-section, so contacts +
   footer appear on the home page too, not just inside the content tabs. */
body.view-intro main.app-main { display: block; }

/* ============================================================
   INTRO GATE
   ============================================================ */
.intro-gate {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 4rem;
  /* Clip decorative art without creating a second scrolling container. */
  overflow: hidden;
  overflow: clip;
}
.intro-inner {
  width: 100%;
  max-width: 92rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}
.intro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  width: 100%;
}
.intro-copy { min-width: 0; text-align: left; }
.intro-photo {
  position: relative;
  width: 100%;
  max-width: 38rem;
  aspect-ratio: 4 / 3;
  justify-self: end;
  border-radius: 1.5rem;
}
.intro-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 22px 45px -20px var(--shadow-tint);
  position: relative;
  z-index: 2;
}

/* Keep the supplied photographs in natural colour in both themes. The
   feature layout responds to its card width, including the sidebar layout. */
.profile-content { min-width: 0; overflow-wrap: anywhere; }
.profile-feature { container-type: inline-size; }
.profile-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem;
}
.profile-feature-layout > * { min-width: 0; }
.profile-feature-layout:not(:has(> .profile-feature-photo)) { max-width: 75ch; }
.profile-education-layout { align-items: start; }
/* Only the introduction needs a sidebar. Later science sections use the
   complete row, so the portrait does not leave a permanent empty column. */
@media (min-width: 1024px) {
  #scientist-section .profile-layout { grid-template-columns: clamp(19rem, 26vw, 27.5rem) minmax(0, 1fr); }
  #scientist-section .profile-sidebar { grid-column: 1; grid-row: 1; }
  #scientist-section .profile-content { display: contents; }
  #scientist-section .profile-content > .premium-card { grid-column: 1 / -1; margin-top: 0; }
  #scientist-section .profile-content > .premium-card:first-child { grid-column: 2; grid-row: 1; }
}
.profile-feature-photo {
  width: 100%;
  max-width: 320px;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  box-shadow: 0 16px 32px -22px var(--shadow-tint);
}
.profile-feature-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
@container (min-width: 38rem) {
  .profile-feature-layout:has(> .profile-feature-photo) {
    grid-template-columns: minmax(0, 1fr) clamp(220px, 30cqw, 280px);
    gap: 2rem;
  }
}
@container (min-width: 58rem) {
  .profile-academic-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.intro-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  overflow-wrap: anywhere;
}
.intro-role {
  font-weight: 400;
  font-size: clamp(1.06rem, 1.5vw, 1.35rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 38rem;
  margin-bottom: 0;
  text-wrap: pretty;
}
.intro-name,
.choice-title { text-wrap: balance; }
.intro-hint {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.intro-hint::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Choice cards */
.intro-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 720px;
}
.choice-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 2.1rem 1.6rem;
  border-radius: 1.5rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-color);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 168px;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.choice-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.choice-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 22px 45px -18px rgba(37, 99, 235, 0.2);
}
.dark .choice-card:hover {
  box-shadow: 0 22px 45px -18px rgba(0, 0, 0, 0.6);
}
.choice-card:hover::before { opacity: 1; }
.choice-sub {
  position: relative;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.choice-title {
  position: relative;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Cabinet entry chip (top-right corner) */
.cabinet-entry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.cabinet-entry svg { width: 16px; height: 16px; }
.cabinet-entry:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
/* Cabinet chip is only relevant on the intro gate */
body:not(.view-intro) .intro-only { display: none; }

/* Signed-in user's name chip — sits at the start of .top-controls (which is
   itself right/end-aligned), so `margin-right: auto` pushes it away from the
   cabinet/theme/lang cluster to read as "on the left" of the service bar. */
.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
  padding: 0.5rem 0.95rem;
  max-width: 40vw;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.nav-user-pill svg { width: 16px; height: 16px; flex: 0 0 auto; }
.nav-user-pill span {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-pill:hover { background: var(--accent-strong); transform: translateY(-1px); }
.dark .nav-user-pill { box-shadow: 0 0 16px -4px rgba(59, 130, 246, 0.7); }
/* Inside the content-view nav bar the chip flows inline instead of pinning left */
.top-controls.in-nav .nav-user-pill { margin-right: 0; }
/* Both this and .cabinet-entry declare their own `display`, which is the same
   specificity (one class) as Tailwind's `.hidden` — and styles.css loads
   after tailwind.build.css, so without this override toggling .hidden via JS
   would silently lose the cascade and the chip would stay visible. */
.nav-user-pill.hidden, .cabinet-entry.hidden { display: none; }

/* Notification bell — same glass chip as the logout button, with an unread
   counter. The panel it opens lives in cabinet.css (.notif-panel). */
.nav-bell {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.45rem; height: 2.45rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav-bell svg { width: 18px; height: 18px; }
.nav-bell:hover, .nav-bell.is-open { color: var(--accent); border-color: var(--accent); }
.nav-bell.hidden { display: none; }
.nav-bell-count {
  position: absolute; top: -0.32rem; right: -0.32rem;
  min-width: 1.15rem; height: 1.15rem; padding: 0 0.3rem;
  border-radius: 999px;
  background: #ef4444; color: #fff;
  font: 800 0.62rem/1.15rem var(--font-heading);
  text-align: center;
  box-shadow: 0 0 0 2px var(--card-bg);
}
.nav-bell-count.hidden { display: none; }
.nav-bell.has-new svg { animation: nav-bell-ring 1.1s var(--ease) 1; transform-origin: 50% 0; }
@keyframes nav-bell-ring {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .nav-bell.has-new svg { animation: none; } }

/* ============================================================
   PATH NAV (sticky glass bar)
   ============================================================ */
.path-nav {
  transition: transform 0.25s var(--ease), background-color 0.3s ease;

  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--glass-bg);
  border-bottom: 1px solid var(--glass-border);
  animation: navDrop 0.6s var(--ease);
}
@keyframes navDrop {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.path-nav-inner {
  max-width: 64rem;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.path-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-shrink: 0;
}
.path-spacer { width: 148px; flex-shrink: 0; }
.path-home {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
/* One DTexpress logo for both themes — the gradient mark sits on transparency,
   so the per-theme light/dark variants that used to be swapped here are gone. */
.path-home img { height: 36px; width: auto; object-fit: contain; display: block; }
.path-tabs {
  display: flex;
  gap: 0.25rem;
  margin: 0 auto;
  padding: 0.25rem;
  background: var(--accent-soft);
  border-radius: 999px;
}
.path-tab {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1.05rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.path-tab:hover { color: var(--text-primary); }
.path-tab.active {
  background: var(--card-bg);
  color: var(--accent);
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.18);
}
.path-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.path-back:hover { color: var(--accent); }

/* ============================================================
   PREMIUM CARDS
   ============================================================ */
.premium-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
  transition: all 0.4s var(--ease);
}
.premium-card:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-hover);
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, 0.12);
}
.dark .premium-card:hover {
  box-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.45);
}

.logo-grad-text {
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 50%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   CONTENT SECTION TRANSITIONS
   ============================================================ */
.content-section {
  display: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.content-section.active {
  display: block;
  opacity: 1;
}
/* NOTE: the entrance is opacity-only ON PURPOSE — it must NEVER use `transform`.
   ANY transform on .content-section creates a containing block that traps the
   position:fixed cabinet modals (#reading-modal/#reading-trainer/#grammar-*/etc.)
   to the section's scrolled box, so on mobile the modal — and its × close button —
   drift off-screen as the page scrolls (the close button becomes unreachable).
   A transform here once "stuck" mid-transition and reintroduced exactly that bug. */

/* ============================================================
   STUDENT CABINET (demo)
   ============================================================ */
.cabinet-login {
  max-width: 420px;
  margin: 1rem auto 0;
}
.cabinet-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 1.75rem;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 20px 50px -20px var(--shadow-tint);
}
.cabinet-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #15273f 0%, #0a1220 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(8, 17, 34, 0.7),
              inset 0 1px 0 rgba(148, 197, 255, 0.12);
}
/* Light theme: same "no dark chip" treatment as .dt-tile — icon floats free. */
:scope:not(.dark) .cabinet-badge {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.cabinet-badge svg { width: 26px; height: 26px; }
.cabinet-badge .dt-ico { width: 32px; height: 32px; }
.cabinet-field {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.8rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cabinet-field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.cabinet-submit {
  width: 100%;
  margin-top: 1.1rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 12px 26px -10px rgba(37, 99, 235, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cabinet-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(37, 99, 235, 0.6); }
.cabinet-submit:disabled { opacity: 0.6; cursor: progress; transform: none; }
.cabinet-error {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
}
.dark .cabinet-error { color: #f87171; }
.cabinet-info {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #059669;
}
.dark .cabinet-info { color: #34d399; }
.cabinet-toggle {
  margin-top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}
.cabinet-toggle:hover { text-decoration: underline; }

/* Shared line icons. Embedded SVGs inherit the page's color-scheme. */
.dt-tile {
  --dt-size: 40px;
  flex: 0 0 auto;
  width: var(--dt-size);
  height: var(--dt-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-color);
}
.dt-tile .dt-ico { width: 80%; height: 80%; }
.dt-tile-sm { --dt-size: 30px; border-radius: 9px; }
.dt-tile-lg { --dt-size: 54px; border-radius: 14px; }
.dt-ico { display: block; }
.ui-icon {
  display: inline-block;
  width: 1.35em;
  height: 1.35em;
  flex: 0 0 auto;
  vertical-align: -0.25em;
  background: currentColor;
  -webkit-mask: var(--ui-icon) center / contain no-repeat;
  mask: var(--ui-icon) center / contain no-repeat;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--border-color);
}
svg[viewBox="0 0 24 24"][stroke="currentColor"],
svg[viewBox="0 0 24 24"][stroke="currentColor"] :is(path, circle, rect, line, polyline) {
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dashboard card header: line icon + eyebrow on a single row. */
.dash-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.dash-head .dash-eyebrow { margin: 0; }

/* Iconified section / item headings (tutor section). The wrapper owns the
   bottom margin so the heading itself can stay margin-free for centering. */
.head-ico { display: flex; align-items: center; gap: 0.75rem; }
.head-ico > :last-child { margin: 0; }

/* Floating accent inside the dark greeting hero card. */
.dash-hero-ico { position: absolute; top: 1.1rem; right: 1.1rem; z-index: 2; }
@media (max-width: 420px) { .dash-hero-ico { display: none; } }



/* ============================================================
   ENTRY ANIMATIONS
   ============================================================ */
@keyframes introRise {
  from { opacity: 0; transform: translateY(26px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.intro-anim {
  opacity: 0;
  animation: introRise 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal-card-2 {
  opacity: 0;
  animation: slideUpFade 1s var(--ease) forwards;
  animation-delay: 0.2s;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablets & small laptops */
@media (max-width: 1024px) {
  .intro-gate { padding: 5.5rem 1.5rem 3.5rem; }
  .path-nav-inner { padding: 0.7rem 1.25rem; }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .intro-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .intro-copy { width: 100%; max-width: 42rem; justify-self: center; }
  .intro-photo { max-width: 30rem; justify-self: center; }
  .intro-name { font-size: clamp(1.9rem, 5vw, 2.8rem); }
}
@media (max-width: 768px) {
  .intro-gate { padding: 5rem 1.25rem 3rem; }
  .intro-choices { gap: 1rem; }
  .choice-card { min-height: 150px; padding: 1.35rem; }
  .top-controls { top: 1rem; right: 1rem; }
}

/* Phones */
@media (max-width: 560px) {
  .intro-gate {
    padding: 4.5rem 1.1rem 2.5rem;
    min-height: 100svh;            /* avoid mobile URL-bar jump */
    justify-content: flex-start;
    /* Signed-in adds a 4th pill (name + "Вийти" + theme + 3 langs), which no
       longer fits one row even icon-only — budget for 2 wrapped rows so
       whichever combination wraps still clears the photo below it. */
    padding-top: 7rem;
  }
  .intro-name { font-size: clamp(1.6rem, 8.55vw, 2.1rem); margin-bottom: 1rem; }
  .intro-role { font-size: 1.06rem; }
  .intro-hint { letter-spacing: 0.16em; margin-bottom: 0.9rem; }
  .intro-choices { grid-template-columns: 1fr; gap: 0.85rem; }
  .choice-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 1rem;
    row-gap: 0.3rem;
    min-height: 108px;
    padding: 1rem;
    text-align: left;
    justify-items: start;
  }
  .choice-card .dt-tile { grid-row: 1 / 3; width: 44px; height: 44px; }
  .choice-card .choice-sub { align-self: end; letter-spacing: 0.12em; }
  .choice-title { align-self: start; font-size: 1.1rem; }
  /* (no margin-top on .cabinet-entry: it sits INSIDE the flex .top-controls
     row — a margin here dropped the chip 24px below the theme/lang pills,
     which read as a broken two-row cluster on every phone) */

  .top-controls { top: 0.8rem; right: 0.8rem; gap: 0.4rem; }
  /* "Кабінет учня" + theme toggle + 3 language pills is too wide for one row on
     many phones, so it wraps to a 2nd row — which then overlapped the photo
     below it (padding-top only ever budgeted for a single row). Icon-only
     cabinet chip is narrow enough to keep everything on one row instead. */
  .cabinet-entry span { display: none; }
  .cabinet-entry { min-width: 44px; min-height: 44px; padding: 0.5rem 0.65rem; justify-content: center; }
  /* Signed in: the name chip's `margin-right: auto` (desktop: pins it to the
     left, opposite the theme/lang cluster) instead splits a WRAPPED 2-row
     layout into "name alone, far left" + "everything else, far right" with a
     big gap — drop it here so every row just packs flush right like the rest. */
  .nav-user-pill { min-height: 44px; margin-right: 0; max-width: 55vw; }
  .cab-logout-top { min-height: 44px; padding: 0.5rem 0.8rem; font-size: 0.72rem; }
  .top-controls .lang-btn { min-width: 44px; min-height: 44px; }
  .top-controls #theme-toggle { min-width: 44px; min-height: 44px; }
  .top-controls #nav-bell { min-width: 44px; min-height: 44px; }

  /* Two-row nav: logo on row 1 (controls float top-right), tabs on row 2 */
  .path-nav-inner { padding: 0.55rem 0.9rem; gap: 0.4rem; flex-wrap: wrap; }
  .path-left { gap: 0.45rem; order: 0; }
  .path-home { min-height: 44px; }
  .path-back { min-width: 44px; min-height: 44px; justify-content: center; }
  .path-spacer { order: 1; flex: 1 1 auto; width: auto; min-width: 0; }
  .path-tabs { order: 2; flex-basis: 100%; margin: 0.35rem auto 0; gap: 0; padding: 0.2rem; justify-content: center; }
  .path-tab { padding: 0.42rem 0.9rem; font-size: 0.78rem; }
  .path-back span { display: none; }
  .path-home img { height: 28px; }

  .cabinet-card { padding: 2rem 1.4rem; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .intro-anim { opacity: 1; }
}

/* Shared surfaces. */
.intro-gate { background: var(--bg-primary); }
.intro-inner { position: relative; z-index: 2; }
.intro-blob { display: none; }
.intro-photo img { border-color: var(--border-color); box-shadow: 0 18px 45px -28px var(--shadow-tint); }
.intro-name, .choice-title { color: var(--text-primary); }
.intro-role { color: var(--text-secondary); }
.choice-sub { color: var(--accent); }
.choice-card { background: var(--card-bg); border-color: var(--border-color); }
.choice-card:hover, .dark .choice-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -20px var(--shadow-tint);
}
.premium-card { position: relative; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================
   MARKETING SECTIONS — bigger, more uniform type
   The public-facing sections (Science / Tutor / Contacts) mixed
   many tiny Tailwind sizes (text-xs, text-[9px]…[11px]) next to
   large headings, which read as small + jarring. This raises body
   copy to one comfortable size and collapses the micro-labels to a
   single uniform size. The student-cabinet / app areas are NOT
   matched, so their dense layouts stay intact.
   ============================================================ */
#scientist-section,
#tutor-section,
#contacts-section { font-size: 1.05rem; }

/* body copy → one comfortable, even size */
#scientist-section p, #tutor-section p, #contacts-section p,
#scientist-section li, #tutor-section li {
  font-size: 1.02rem;
  line-height: 1.65;
}

/* small meta + uppercase eyebrow labels → one uniform size */
#scientist-section .text-xs, #tutor-section .text-xs, #contacts-section .text-xs,
#scientist-section [class*="text-["],
#tutor-section [class*="text-["],
#contacts-section [class*="text-["] {
  font-size: 0.86rem;
  line-height: 1.5;
}

/* keep the email button from overflowing now that text is larger */
#scientist-section a[href^="mailto:"],
#tutor-section a[href^="mailto:"] { word-break: break-word; }


/* Public contact actions share the same solid accent in both themes. */
:scope:scope a[data-i18n="telegramBtn"], :scope:scope a[data-i18n="tutorCtaBtn"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: none;
}
:scope:scope a[data-i18n="telegramBtn"]:hover, :scope:scope a[data-i18n="tutorCtaBtn"]:hover {
  background: var(--accent-strong);
}

/* --- FAQ accordion (tutor page) --- */
.faq-item { border: 1px solid var(--border-color); border-radius: 0.9rem; padding: 0; overflow: hidden; transition: border-color 0.2s var(--ease); }
.faq-item:hover { border-color: var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; padding: 0.85rem 2.6rem 0.85rem 1.05rem; font-size: 0.9rem; font-weight: 700; color: var(--text-primary); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 1.05rem; top: 50%; transform: translateY(-50%); font-size: 1.15rem; font-weight: 600; color: var(--accent); transition: transform 0.2s var(--ease); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 1.05rem 0.95rem; font-size: 0.84rem; line-height: 1.65; color: var(--text-secondary); }

/* --- Student reviews (tutor page): scroll-snap slider ---
   Native horizontal scroll with snap points = swipe on phones, wheel/keys on
   desktop, no JS required to move. Cards are 84% wide so the next one "peeks"
   in from the edge — the strongest "there are more" signal, stronger than any
   auto-advance. .rv-single (exactly one review) drops the slider chrome. */
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.rv-count { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--text-secondary); padding: 0.3rem 0.7rem; border: 1px solid var(--border-color); border-radius: 999px; }
.rv-slider { position: relative; }
.rv-track {
  display: flex; gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: 0; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding: 0.25rem 0.15rem 0.6rem; margin: -0.25rem -0.15rem -0.6rem;
  outline: none; border-radius: 1rem;
}
.rv-track::-webkit-scrollbar { display: none; }
/* End spacer so the LAST card can still snap to the start edge (otherwise the
   scroll range ends 16% short and the final card sits half-peeked forever). */
.rv-track::after { content: ""; flex: 0 0 calc(16% - 1rem); }
.rv-single .rv-track::after { display: none; }
.rv-track:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
.rv-card {
  flex: 0 0 84%; max-width: 84%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; gap: 0.7rem; padding: 1.15rem 1.25rem;
  border: 1px solid var(--border-color); border-radius: 1.1rem; background: var(--card-bg);
  box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.35);
}
.dark .rv-card { background: rgba(15, 23, 42, 0.55); }
.rv-single .rv-card { flex-basis: 100%; max-width: 100%; }
.rv-single .rv-arrow, .rv-single .rv-dots { display: none; }
.rv-who { display: flex; align-items: center; gap: 0.75rem; }
.rv-who-copy { flex: 1 1 auto; min-width: 0; }
.rv-name { font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.rv-meta { font-size: 0.74rem; color: var(--text-secondary); margin-top: 0.1rem; }
.rv-avatar {
  flex: 0 0 auto; width: 3.5rem; height: 3.5rem; border-radius: 1rem; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(56,189,248,0.25), rgba(99,102,241,0.18)); border: 1px solid var(--border-color);
  font: 800 1.3rem/1 var(--font-heading); color: var(--accent);
}
.rv-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-avatar-sprite { background-image: var(--avatar-sheet); background-size: 300% 300%; background-position: var(--avatar-x) var(--avatar-y); background-repeat: no-repeat; background-color: #1e293b; }
.rv-stars { flex: 0 0 auto; color: #f59e0b; font-size: 0.95rem; letter-spacing: 0.05em; white-space: nowrap; }
.rv-stars-off { color: var(--border-color); }
.rv-headline { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--text-primary); }
.rv-body { margin: 0; font-size: 0.88rem; line-height: 1.7; color: var(--text-primary); white-space: pre-line; overflow-wrap: anywhere; }
.rv-body.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-more { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font-weight: 700; font-size: 0.8rem; cursor: pointer; }
.rv-more:hover { text-decoration: underline; }
.rv-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%;
  border: 1px solid var(--border-color); background: var(--card-bg); color: var(--text-primary); cursor: pointer;
  font-size: 1.5rem; line-height: 1; display: grid; place-items: center; box-shadow: 0 8px 18px -10px var(--shadow-tint, rgba(2,6,23,0.35));
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.rv-arrow:hover { border-color: var(--accent); transform: translateY(-50%) scale(1.06); }
.rv-prev { left: -1.1rem; } .rv-next { right: -1.1rem; }
.rv-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 0.9rem; }
.rv-dot { width: 0.5rem; height: 0.5rem; border-radius: 999px; border: 0; padding: 0; background: var(--border-color); cursor: pointer; transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.rv-dot.is-on { width: 1.4rem; background: var(--accent); }
@media (max-width: 640px) {
  .rv-card { flex-basis: 88%; max-width: 88%; padding: 1rem; }
  .rv-track::after { flex-basis: calc(12% - 1rem); }
  .rv-arrow { display: none; }   /* phones swipe; the peek + dots carry the affordance */
}
@media (prefers-reduced-motion: reduce) { .rv-track { scroll-behavior: auto; } }

/* --- Compact nav on phones: three stacked control rows ate ~140px of sticky
   header. Icon-only "home", tighter pills → two rows max. --- */
@media (max-width: 640px) {
  .path-back span { display: none; }
  .path-back { padding: 0.45rem 0.55rem; }
  .top-controls { gap: 0.35rem; }
  .top-controls .lang-btn { padding: 0.25rem 0.45rem; }
  .top-controls #theme-toggle { padding: 0.4rem; }
  .nav-user-pill { max-width: 6rem; }
  .nav-user-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cab-logout-top { padding: 0.3rem 0.55rem; }
}


/* ============================================================
   PRACTICUM 2.0 — mascot, quiz feedback animations, rich summary,
   mistakes review and the writing trainer. All colours go through the
   theme variables; every animation is disabled under reduced motion.
   ============================================================ */

/* ---- Mascot (inline SVG robot buddy, moods via .dtm--* on the wrapper) ---- */
.dtm { width: 64px; height: 64px; display: inline-block; flex-shrink: 0; }
.dtm svg { width: 100%; height: 100%; display: block; overflow: visible; }
/* Percentage transform-origins must resolve against each element's own box,
   not the whole SVG viewport, for the pivots to look right. */
.dtm .dtm-inner, .dtm .dtm-ear-l, .dtm .dtm-ear-r, .dtm .dtm-spark { transform-box: fill-box; }
.dtm .dtm-inner { transform-origin: 50% 78%; animation: dtmFloat 3.6s ease-in-out infinite; }
/* Side bolts flash like little indicator lights on celebrate. */
.dtm--celebrate .dtm-ear-l circle, .dtm--celebrate .dtm-ear-r circle { animation: dtmBoltFlash 0.5s ease-in-out 4; }
@keyframes dtmBoltFlash { 50% { fill: #7dd3fc; } }
@keyframes dtmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Blink: the lids are body-coloured rects that briefly slide over the open eyes. */
.dtm .dtm-lids { opacity: 0; animation: dtmBlink 4.4s ease-in-out infinite; }
@keyframes dtmBlink { 0%, 94%, 100% { opacity: 0; } 95%, 98% { opacity: 1; } }
/* Face variants: exactly one eye/mouth set is visible per mood. */
.dtm .dtm-eye-happy, .dtm .dtm-eye-sad, .dtm .dtm-blush, .dtm .dtm-mouth-sad,
.dtm .dtm-mouth-o, .dtm .dtm-spark { display: none; }
.dtm--happy .dtm-eye-open, .dtm--happy .dtm-lids, .dtm--celebrate .dtm-eye-open,
.dtm--celebrate .dtm-lids, .dtm--sad .dtm-eye-open, .dtm--sad .dtm-lids { display: none; }
.dtm--happy .dtm-eye-happy, .dtm--happy .dtm-blush,
.dtm--celebrate .dtm-eye-happy, .dtm--celebrate .dtm-blush, .dtm--celebrate .dtm-spark { display: block; }
.dtm--sad .dtm-eye-sad, .dtm--sad .dtm-mouth-sad { display: block; }
.dtm--sad .dtm-mouth-smile { display: none; }
.dtm--think .dtm-mouth-smile { display: none; }
.dtm--think .dtm-mouth-o { display: block; }
/* Mood motion */
.dtm--happy .dtm-inner { animation: dtmBounce 0.55s var(--ease); }
.dtm--sad .dtm-inner { animation: dtmSway 0.7s var(--ease); }
.dtm--celebrate .dtm-inner { animation: dtmJump 0.8s var(--ease) 2; }
.dtm--think .dtm-inner { animation: dtmWobble 2.4s ease-in-out infinite; }
@keyframes dtmBounce { 0% { transform: scale(1); } 35% { transform: scale(1.12) translateY(-5px); } 70% { transform: scale(0.97); } 100% { transform: scale(1); } }
@keyframes dtmSway { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-7deg); } 65% { transform: rotate(5deg); } }
@keyframes dtmJump { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9px) rotate(-4deg); } 60% { transform: translateY(-7px) rotate(4deg); } }
@keyframes dtmWobble { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2.5deg); } }
.dtm--celebrate .dtm-spark { animation: dtmSpark 1s ease-out infinite; transform-origin: center; }
@keyframes dtmSpark { 0% { opacity: 0; transform: scale(0.4); } 40% { opacity: 1; transform: scale(1.1); } 100% { opacity: 0; transform: scale(0.6); } }
.dark .dtm svg { filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45)); }

/* Waving arm on the "wave" pose */
.dtm .dtm-arm-wave { transform-box: fill-box; transform-origin: 15% 92%; animation: dtmWave 1.7s ease-in-out infinite; }
@keyframes dtmWave { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg); } 60% { transform: rotate(7deg); } }

/* ---- "Seller" placements across the site ---- */
.login-mascot { display: flex; justify-content: center; margin-bottom: 0.4rem; }
.login-mascot .dtm { width: 84px; height: 84px; }
.login-bubble { display: table; margin: 0 auto 0.8rem; }
.hero-mascot { position: absolute; right: 1rem; bottom: 0.35rem; z-index: 1; pointer-events: none; }
.hero-mascot .dtm { width: 78px; height: 78px; }
@media (max-width: 640px) { .hero-mascot .dtm { width: 56px; height: 56px; } }
@media (max-width: 420px) { .hero-mascot { display: none; } }
.tutor-mascot { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding-top: 0.4rem; }
.tutor-mascot .dtm { width: 58px; height: 58px; }
.tutor-mascot .qz-bubble { margin: 0; text-align: left; font-size: 0.78rem; }
.qr-mascot { position: absolute; right: -1.9rem; bottom: -0.9rem; pointer-events: none; }
.qr-mascot .dtm { width: 52px; height: 52px; }
.empty-mascot { display: flex; justify-content: center; margin-bottom: 0.5rem; }
.empty-mascot .dtm { width: 56px; height: 56px; }
.empty-state-sm .empty-mascot .dtm { width: 46px; height: 46px; }

/* Mascot slot inside the quiz modals: top-left corner, mirrors the × close. */
.qz-mascot { position: absolute; top: 0.55rem; left: 0.85rem; }
.qz-mascot .dtm { width: 46px; height: 46px; }
/* Hub hero: mascot + greeting side by side */
.ph-hero { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.ph-hero .dtm { width: 72px; height: 72px; }
.ph-hero .gm-title { margin: 0 0 0.15rem; }
.ph-hero .pr-hub-sub { margin: 0; }
/* Summary mascot is bigger and centred */
.qz-sum-mascot { display: flex; justify-content: center; margin-bottom: 0.4rem; }
.qz-sum-mascot .dtm { width: 92px; height: 92px; }
.qz-bubble {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.9rem;
  background: var(--accent-soft);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  animation: qzFadeUp 0.35s var(--ease);
}


/* ============================================================
   LANDING "DOWNLOAD THE APP" SECTION (#pwa-section) — permanent,
   above contacts on every view. Winky + two store-style badges.
   NO backdrop-filter and no blurred layers here (iPhone heat).
   ============================================================ */
.pwa-sec-card { position: relative; overflow: hidden; }
/* static neon wash in the corner — a plain radial gradient, not a filter */
.pwa-sec-card::before {
  content: ""; position: absolute; top: -55%; right: -12%;
  width: 26rem; height: 26rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 68%);
}
.dark .pwa-sec-card::before { background: radial-gradient(circle, rgba(56, 189, 248, 0.12), transparent 68%); }
.pwa-sec { position: relative; z-index: 1; display: flex; align-items: center; gap: 2rem; }
.pwa-sec-mascot { flex-shrink: 0; }
.pwa-sec-mascot .dtm { width: 108px; height: 108px; }
@media (prefers-reduced-motion: no-preference) {
  .pwa-sec-mascot { animation: pwaBob 3.6s ease-in-out infinite alternate; }
  /* an animated element behind an open modal would force iOS to re-blur the
     modal's backdrop every frame — pause Winky whenever a modal is up */
  :scope.modal-open .pwa-sec-mascot { animation-play-state: paused; }
}
@keyframes pwaBob { from { transform: translateY(3px); } to { transform: translateY(-5px); } }
.pwa-sec-copy { flex: 1; min-width: 0; }
.pwa-sec-body { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.55; color: var(--text-secondary); max-width: 46rem; }
.pwa-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.15rem; }
.pwa-badge {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.55rem 1.15rem 0.55rem 0.95rem; border-radius: 0.9rem;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(56, 189, 248, 0.3); color: #f8fafc; cursor: pointer;
  transition: box-shadow 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.pwa-badge svg { width: 1.45rem; height: 1.45rem; fill: currentColor; flex-shrink: 0; }
.pwa-badge:hover {
  border-color: #38bdf8; transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55), 0 0 18px rgba(56, 189, 248, 0.45);
}
.pwa-badge-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
.pwa-badge-txt small { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.72; }
.pwa-badge-txt b { font-size: 0.98rem; font-weight: 800; font-family: var(--font-heading); }
.pwa-sec-steps {
  margin-top: 0.85rem; padding: 0.55rem 0.85rem; max-width: 46rem;
  font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08); border: 1px dashed rgba(56, 189, 248, 0.45);
  border-radius: 0.65rem;
}
.pwa-sec-steps.hidden { display: none; }
@media (max-width: 640px) {
  .pwa-sec { flex-direction: column; text-align: center; gap: 1rem; }
  .pwa-sec-mascot .dtm { width: 88px; height: 88px; }
  .pwa-badges { justify-content: center; }
  .pwa-badge { flex: 1 1 10.5rem; justify-content: center; }
  .pwa-sec-body, .pwa-sec-steps { text-align: left; }
}


/* «Забули пароль?» under the login form */
.cab-forgot { display: block; margin: 0.6rem auto 0; border: none; background: none; padding: 0.2rem 0.4rem; color: var(--accent); font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.cab-forgot:hover { text-decoration: underline; }
.dark .cab-forgot { color: #7dd3fc; }


/* ============================================================
   WIDE VIEWPORT LAYOUT
   The product used to be capped at 64rem, leaving roughly 40% of a typical
   desktop viewport unused. Keep a small, fluid page gutter instead: the site
   now scales with the screen while the content grids protect readable line
   lengths inside individual cards.
   ============================================================ */
:scope {
  --site-gutter: clamp(1rem, 3vw, 3.5rem);
}

.site-shell,
.path-nav-inner {
  width: calc(100% - (2 * var(--site-gutter)));
  max-width: none;
  margin-inline: auto;
}

main.app-main {
  padding-inline: 0;
}

.path-nav-inner {
  padding-inline: 0;
}

/* Keep the portrait, introduction and both choices on one shared canvas. */
.intro-inner {
  width: calc(100% - (2 * var(--site-gutter)));
}
.intro-choices { max-width: 92rem; gap: clamp(1rem, 2vw, 1.75rem); }
.choice-card { min-height: 184px; }
@media (min-width: 561px) {
  .choice-card { padding-inline: clamp(1.5rem, 3vw, 3rem); }
}

/* On wide screens the portrait remains compact and the useful information
   gets the majority of the row. The existing 4/8 Tailwind layout remains in
   charge on small laptops and tablets. */
@media (min-width: 1280px) {
  .profile-layout {
    grid-template-columns: clamp(21rem, 24vw, 27.5rem) minmax(0, 1fr);
    gap: clamp(2rem, 3vw, 3.5rem);
  }
  .profile-layout > .profile-sidebar,
  .profile-layout > .profile-content {
    grid-column: auto;
  }
  .dash-grid {
    --card-pad: clamp(1.5rem, 1.8vw, 2rem);
    --card-gap: clamp(1.25rem, 1.7vw, 1.75rem);
  }
}

@media (min-width: 1536px) {
  .choice-title { font-size: 1.75rem; }
}

@media (max-width: 1024px) {
  :scope { --site-gutter: clamp(0.9rem, 2.4vw, 1.5rem); }
}

@media (max-width: 560px) {
  :scope { --site-gutter: 0.75rem; }
  .intro-inner { width: 100%; }
  .choice-card { min-height: 108px; }
}

/* Shared brand details for public pages, controls and the login screen. */
body[class] { color: var(--text-primary); }
.ui-icon-img { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -0.25em; flex: 0 0 auto; object-fit: contain; }
:scope .top-controls > #theme-toggle,
:scope .top-controls > .flex,
:scope .cabinet-badge {
  background: var(--card-bg);
  color: var(--accent);
  border-color: var(--border-color);
  box-shadow: none;
}
:scope .cabinet-badge { background: var(--accent-soft); }
:scope .nav-user-pill { background: var(--accent); color: var(--on-accent); box-shadow: none; }
:scope .cabinet-submit { background: var(--btn-grad); box-shadow: none; }
:scope .cabinet-submit:hover { box-shadow: 0 8px 18px -12px var(--shadow-tint); }
:scope .premium-card, :scope .premium-card:hover { background: var(--card-bg); border-color: var(--border-color); box-shadow: 0 8px 24px -22px var(--shadow-tint); }
:scope .premium-card:hover { border-color: var(--card-border-hover); }
:scope .pwa-sec-card::before { display: none; }
:scope .pwa-badge { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: none; }
:scope .pwa-badge:hover { background: var(--accent-strong); border-color: var(--accent-strong); box-shadow: none; }
:scope .rv-card { background: var(--card-bg); }
:scope .rv-stars { color: var(--accent); }
:scope .cab-forgot, :scope .scroll-top-btn { color: var(--accent); }
:is(#scientist-section, #tutor-section, #contacts-section) :is(.text-slate-400, .text-slate-450, .text-slate-500, .text-slate-600) { color: var(--text-secondary); }
:is(#scientist-section, #tutor-section, #contacts-section) :is(.text-blue-500, .text-blue-600, .text-blue-700, .text-sky-500, .text-sky-600, .text-indigo-600) { color: var(--accent); }
#contacts-section a:hover { background: var(--accent-soft); }
#contacts-section a:hover span { color: var(--accent); }
:scope:scope [data-i18n="sciLaureate"] { color: var(--accent); }
:scope :is(.choice-card, .cabinet-entry, .path-back, #theme-toggle, .lang-btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Section entries carry the cover's cobalt and brass into the public pages. */
.section-cover {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 160px;
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
  border-radius: 1.25rem;
  background: linear-gradient(115deg, #142b4b, #234d9c);
  border: 1px solid #496083;
  color: #f8f6f0;
}
.section-cover > div { max-width: 100%; }
:is(#scientist-section, #tutor-section) .section-cover p {
  font: 650 .7rem/1.4 system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .17em;
  color: #dec78f;
  margin-bottom: .6rem;
}
.section-cover h2 { font: 700 clamp(1.8rem, 3vw, 3rem)/1.15 var(--font-heading); color: #f8f6f0; }

/* Login stays a real form; only its presentation shares the public cover. */
.cabinet-loading { min-height: 320px; padding: 4rem 1.5rem; text-align: center; color: var(--text-secondary); }
.cabinet-loading-brand { display: block; margin-bottom: 1rem; font: 650 1.1rem/1.4 system-ui, sans-serif; color: var(--text-primary); }
.cabinet-login { max-width: 960px; margin: 1rem auto 3rem; border-radius: 1.5rem; overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 25px 65px -40px var(--shadow-tint); }
.cabinet-login:not(.hidden) { display: grid; grid-template-columns: .95fr 1.05fr; }
.login-welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 3rem 2.5rem;
  background: linear-gradient(145deg, #234d9c, #142b4b);
  color: #f8f6f0;
  text-align: center;
}
.login-welcome > * { position: relative; }
.login-wordmark { align-self: flex-start; color: #dec78f; font: 650 .85rem/1.4 system-ui, sans-serif; letter-spacing: .08em; margin-bottom: 2rem; }
.login-welcome h2 { font: 700 clamp(1.8rem, 2.5vw, 2.4rem)/1.2 var(--font-heading); color: #f8f6f0; }
.login-welcome .login-mascot { width: 150px; height: 150px; margin: 1.4rem auto .5rem; }
.login-welcome .login-mascot .dtm { width: 100%; height: 100%; }
.login-welcome-note { max-width: 18rem; color: #dce7f5; font: 400 .95rem/1.6 system-ui, sans-serif; }
.cabinet-login .cabinet-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 3rem 2.5rem; border: 0; border-radius: 0; box-shadow: none; background: var(--card-bg); }
.cabinet-login .cabinet-card h2 { font-size: 1.6rem; line-height: 1.25; }
.cabinet-login .cabinet-label { display: block; text-align: left; margin-top: 1.2rem; font: 600 .8rem/1.4 system-ui, sans-serif; color: var(--text-primary); }
.cabinet-login .cabinet-field { margin-top: .4rem; min-height: 48px; font-family: system-ui, sans-serif; }
.cabinet-login .cabinet-submit { background: #234d9c; min-height: 48px; color: #fff; }
.cabinet-login .cab-forgot { min-height: 44px; }
@media (max-width: 700px) {
  .section-cover { min-height: 130px; padding: 1.5rem; margin-bottom: 1.5rem; }
  .section-cover > div { max-width: 100%; }
  .section-cover h2 { font-size: clamp(1.65rem, 5vw, 2.1rem); }
  .cabinet-login:not(.hidden) { grid-template-columns: 1fr; }
  .login-welcome { padding: 1.5rem; }
  .login-wordmark { margin-bottom: .65rem; }
  .login-welcome h2 { font-size: 1.55rem; }
  .login-welcome .login-mascot { width: 85px; height: 85px; margin: .5rem auto 0; }
  .login-welcome-note { font-size: .8rem; }
  .cabinet-login .cabinet-card { padding: 1.75rem 1.5rem; }
  .cabinet-login .cabinet-card h2 { font-size: 1.4rem; }
  .cabinet-login .cabinet-badge { display: none; }
}

/* Personal cover: editorial type and a soft blue glow.
   The portrait keeps its natural colour and full frame. */
.intro-gate {
  --cover-ink: #132e5b;
  --cover-glow: rgb(102 142 192 / .34);
  background: var(--bg-primary);
  padding-block: 7.5rem 3rem;
}
.dark .intro-gate {
  --cover-ink: #f3f8fb;
  --cover-glow: rgb(75 113 173 / .38);
}
.intro-art {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 62% 78% at 92% 24%, var(--cover-glow), transparent 74%);
  /* Fade to the page background before the section ends. */
  -webkit-mask-image: linear-gradient(#000 48%, transparent 100%);
  mask-image: linear-gradient(#000 48%, transparent 100%);
  pointer-events: none;
}
.intro-inner { max-width: 88rem; gap: 2.5rem; }
.intro-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; }
.intro-copy { padding-block: 1rem; }
.intro-name { color: var(--cover-ink); margin-bottom: 1.6rem; text-wrap: initial; overflow-wrap: normal; }
.intro-name-main {
  display: block;
  max-width: 8em;
  font-size: clamp(4rem, 6.9vw, 7.3rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.intro-role { max-width: 32rem; font: 400 clamp(1rem, 1.25vw, 1.15rem)/1.75 system-ui, sans-serif; }
.intro-photo { max-width: 38rem; border-radius: 1.25rem; }
.intro-photo img {
  border-radius: inherit;
  border: 6px solid var(--bg-primary);
  box-shadow: 0 28px 60px -30px #061934aa;
}
.dark .intro-photo img { border-color: #293e5c; }
.intro-choices { gap: 1.3rem; }
.intro-choices .choice-card {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) 2.5rem;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: .5rem;
  min-height: 154px;
  padding: 2rem;
  text-align: left;
  justify-items: start;
  border-radius: .8rem;
  background: #244c7c;
  border: 1px solid #5f7d9c;
  box-shadow: 0 18px 35px -26px #081d3e88;
  color: #fff;
  color-scheme: dark;
}
.dark .intro-choices .choice-card { background: #2c4d77; border-color: #7185a0; }
.intro-choices .choice-card::before {
  background: linear-gradient(110deg, #315d92, #244c7c);
}
.intro-choices .choice-card:hover { transform: translateY(-5px); border-color: #83cdea; }
.intro-choices .dt-tile {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 3.2rem;
  height: 3.2rem;
  background: #ffffff0d;
  border: 1px solid #ffffff24;
  border-radius: .7rem;
  position: relative;
}
.intro-choices .choice-sub { grid-column: 2; align-self: end; font: 600 .65rem/1.4 system-ui, sans-serif; letter-spacing: .16em; color: #b9e7f8; }
.intro-choices .choice-title { grid-column: 2; align-self: start; font-size: clamp(1.25rem, 1.75vw, 1.8rem); color: #f4f8fb; text-wrap: initial; }
.choice-arrow { grid-column: 3; grid-row: 1 / 3; width: 1.6rem; height: 1.6rem; align-self: center; color: #9bdaf3; position: relative; transition: transform .25s ease; }
.choice-card:hover .choice-arrow { transform: translate(3px, -3px); }
@media (min-width: 901px) and (max-width: 1150px) {
  .intro-hero { gap: 2rem; }
  .intro-choices .choice-card { padding: 1.5rem; column-gap: .8rem; }
}
@media (max-width: 900px) {
  .intro-gate { padding-top: 7rem; }
  .intro-hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .intro-copy { max-width: 38rem; }
  .intro-art { background: radial-gradient(ellipse 95% 56% at 82% 48%, var(--cover-glow), transparent 78%); }
  .intro-name-main { max-width: none; font-size: clamp(3.5rem, 9vw, 5.5rem); }
  .intro-photo { max-width: 34rem; }
  .intro-role { max-width: 36rem; }
  .intro-choices .choice-card { padding: 1.25rem; column-gap: .8rem; grid-template-columns: 2.7rem minmax(0,1fr) 1.3rem; }
  .intro-choices .dt-tile { width: 2.7rem; height: 2.7rem; }
  .choice-arrow { width: 1.2rem; height: 1.2rem; }
}
@media (max-width: 560px) {
  .intro-gate { padding: 6.7rem 1.25rem 2rem; }
  .intro-inner { gap: 1.75rem; }
  .intro-copy { padding: 0; }
  .intro-name-main { font-size: clamp(3.2rem, 14vw, 4.7rem); max-width: 7em; }
  .intro-role { font-size: .95rem; line-height: 1.65; }
  .intro-photo { border-radius: 1rem; }
  .intro-photo img { border-width: 3px; }
  .intro-choices { gap: .8rem; }
  .intro-choices .choice-card { min-height: 108px; padding: 1.1rem; }
  .intro-choices .choice-sub { font-size: .6rem; letter-spacing: .1em; }
  .intro-choices .choice-title { font-size: 1.13rem; }
}

/* ============================================================
   TRIAL-LESSON REQUEST — button, band under the fees, modal, sticky bar.
   Marketing-side only (the cabinet's own card lives in cabinet.css).
   Tokens only: no hardcoded blues, glow stays hover/focus-only.
   ============================================================ */
.lead-btn {
  background: var(--btn-grad);
  color: var(--on-accent);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), filter .2s var(--ease);
}
.lead-btn:hover { filter: brightness(1.06); box-shadow: 0 0 0 4px var(--glow-soft); }
.lead-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--glow-soft), 0 0 0 1px var(--glow); }
.lead-btn:disabled { opacity: .6; cursor: default; filter: none; box-shadow: none; }
.lead-btn-lg { padding: .85rem 1.5rem; font-size: .82rem; }
.lead-btn-block { display: block; width: 100%; }

/* The band right under the fees: the moment a visitor decides or leaves. */
.lead-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.lead-band-copy { flex: 1 1 20rem; min-width: 0; }
.lead-band .lead-btn-lg { flex: 0 0 auto; }
/* Once the band wraps, a button hugging its own text looks like an afterthought
   next to full-width cards — and is a smaller tap target than it should be. */
@media (max-width: 640px) { .lead-band .lead-btn-lg { width: 100%; } }

/* ---- Modal ---- */
.lead-modal { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lead-modal[hidden] { display: none; }
.lead-backdrop { position: absolute; inset: 0; background: rgba(8, 14, 24, .55); }
.lead-dialog {
  position: relative;
  width: min(34rem, 100%);
  max-height: min(88vh, 46rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 24px 60px var(--shadow-tint);
  animation: leadIn .22s var(--ease) both;
}
@keyframes leadIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lead-dialog { animation: none; } }
.lead-dialog h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin: 0 2rem 0 0; }
.lead-intro { color: var(--text-secondary); font-size: .8rem; line-height: 1.6; margin: .55rem 0 1.25rem; }
.lead-close {
  position: absolute; top: .6rem; right: .6rem;
  width: 44px; height: 44px; border: 0; border-radius: .75rem;
  background: transparent; color: var(--text-secondary);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.lead-close:hover { background: var(--accent-soft); color: var(--text-primary); }

.lead-field { display: block; margin-bottom: .9rem; }
.lead-field > span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .35rem; color: var(--text-secondary); }
.lead-field input, .lead-field textarea, .lead-field select {
  width: 100%;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on focus. */
  font-size: 16px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: .7rem;
  padding: .7rem .8rem;
  min-height: 44px;
}
.lead-field textarea { resize: vertical; line-height: 1.5; }
.lead-field input:focus, .lead-field textarea:focus, .lead-field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow-soft);
}
.lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 480px) { .lead-row { grid-template-columns: 1fr; } }

/* Honeypot: reachable by a bot's DOM walk, invisible to everyone else. */
.lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.lead-privacy { color: var(--text-secondary); font-size: .68rem; line-height: 1.5; margin: .7rem 0 0; text-align: center; }
.lead-status { font-size: .78rem; margin: .6rem 0 0; text-align: center; min-height: 1.2em; }
.lead-status.is-ok { color: var(--accent-strong); font-weight: 700; }
.lead-status.is-err { color: #b4432f; font-weight: 700; }
.dark .lead-status.is-err { color: #f0a08e; }

/* Lock the page behind the dialog. On <html> (not body) to match the cabinet's
   modalScrollLock(); app.js compensates for the removed scrollbar. */
:scope.lead-open { overflow: hidden; }

/* ---- Sticky bar: phones only, and only on the tutor view ---- */
.lead-sticky { display: none; }
@media (max-width: 767px) {
  body.view-tutor {
    /* The bar is fixed, so without this the last card ends up underneath it. */
    --lead-bar-h: 4.6rem;
    padding-bottom: calc(var(--lead-bar-h) + env(safe-area-inset-bottom));
  }
  body.view-tutor .lead-sticky {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
    /* Opaque, not translucent: text scrolling under a see-through bar was the
       one place the CTA stopped being readable. */
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
  }
  /* Back-to-top sits at bottom:.9rem with z-index 55 — i.e. hidden behind the
     bar. Lift it above the bar for as long as the bar is on screen. */
  body.view-tutor .scroll-top-btn { bottom: calc(var(--lead-bar-h) + .9rem + env(safe-area-inset-bottom)); }
  body.lead-open .lead-sticky { display: none; }
}

.tutor-help {
  --help-paper: #f5f2ea;
  --help-ink: #28312e;
  --help-gold: #a59665;
  margin: 0 0 clamp(2rem, 4vw, 4rem);
  padding: clamp(1.4rem, 3.5vw, 3.5rem) 0 clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid #343c35;
  border-radius: 28px;
  background: #202924;
  color: var(--help-paper);
  overflow: hidden;
}
.tutor-help-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.tutor-help h3 {
  margin: 0;
  max-width: 24ch;
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.6rem, 2.6vw, 2.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.tutor-help-controls { display: flex; gap: .5rem; flex-shrink: 0; }
.tutor-help-controls button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #707567;
  border-radius: 50%;
  color: #eee9da;
  background: transparent;
  transition: background .2s, border-color .2s;
}
.tutor-help-controls button:hover { background: #3b4438; border-color: #b7ac86; }
.tutor-help-controls svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.tutor-help-controls button:focus-visible, .tutor-help-track:focus-visible { outline: 2px solid #c8b780; outline-offset: 4px; }
.tutor-help-controls [aria-pressed="true"] .help-pause-icon,
.tutor-help-controls [aria-pressed="false"] .help-play-icon { display: none; }
.tutor-help-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(1.25rem, 3.5vw, 3.5rem);
  padding: 6px clamp(1.25rem, 3.5vw, 3.5rem) 14px;
}
.tutor-help-track::-webkit-scrollbar { display: none; }
.tutor-help-track.is-animating { scroll-snap-type: none; }
.tutor-help-card {
  flex: 0 0 calc((100% - 64px) / 3.15);
  min-width: 0;
  padding: clamp(1.2rem, 2vw, 2rem);
  border: 1px solid #e8e3d6;
  border-radius: 16px;
  background: var(--help-paper);
  color: var(--help-ink);
  scroll-snap-align: start;
  transition: transform .3s, box-shadow .3s;
}
.tutor-help-card:hover { transform: translateY(-4px); box-shadow: 0 8px 18px #0002; }
.tutor-help-art { display: block; width: 100%; height: auto; aspect-ratio: 280 / 180; margin-bottom: 1.5rem; }
.tutor-help-card h4 { margin: 0 0 .8rem; font-family: Lora, Georgia, serif; font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 500; line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; }
.tutor-help-card p { margin: 0; color: #62675c; font-size: .9rem; line-height: 1.65; }
@media (max-width: 1023px) { .tutor-help-card { flex-basis: calc((100% - 36px) / 2.12); } }
@media (max-width: 600px) {
  .tutor-help { border-radius: 22px; }
  .tutor-help-head { align-items: start; flex-direction: column; gap: 1.25rem; }
  .tutor-help-track { gap: 14px; }
  .tutor-help-card { flex-basis: 86%; padding: 1.35rem; }
  .tutor-help-card h4 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .tutor-help-card, .tutor-help-controls button { transition: none; }
  .tutor-help-card:hover { transform: none; }
}

}
