/* Erebe v8: black/yellow mode and built-in, optional speech controls.  */
html[data-erebe-yellow="true"] { color-scheme:dark; --background:#000;--foreground:#ffe600;--border:#ffe600;--muted:#ffe600;scrollbar-color:#ffe600 #000; }
html[data-erebe-yellow="true"] body,
html[data-erebe-yellow="true"] body *:not(svg):not(path):not(rect):not(circle):not(line):not(polyline):not(polygon):not(ellipse):not(g):not(img):not(video):not(canvas):not(iframe):not(source) {
  color:#ffe600!important; background-color:#000!important; background-image:none!important;
  border-color:#ffe600!important; text-shadow:none!important; box-shadow:none!important;
}
html[data-erebe-yellow="true"] body *::before,
html[data-erebe-yellow="true"] body *::after {background-color:transparent!important;background-image:none!important;border-color:#ffe600!important;color:#ffe600!important;box-shadow:none!important;text-shadow:none!important;}
html[data-erebe-yellow="true"] :where(a,button,summary,input,select,textarea,option,label,output,legend) {color:#ffe600!important;}
html[data-erebe-yellow="true"] :where(a) {text-decoration:underline!important;text-underline-offset:.19em!important;}
html[data-erebe-yellow="true"] :where(a:hover,a:focus-visible) {text-decoration-thickness:.18em!important;}
html[data-erebe-yellow="true"] :where(button,[role=button],summary,input,select,textarea,a.btn,.header-cta,.map-action,.presentation-download) {border:2px solid #ffe600!important;}
html[data-erebe-yellow="true"] body button[aria-pressed="true"],html[data-erebe-yellow="true"] body a[aria-current="page"],html[data-erebe-yellow="true"] body .hero-dot[aria-pressed="true"] {background-color:#ffe600!important;color:#000!important;}
html[data-erebe-yellow="true"] body button[aria-pressed="true"] :where(span,svg),html[data-erebe-yellow="true"] body a[aria-current="page"] :where(span,svg) {color:#000!important;}
html[data-erebe-yellow="true"] :where(a,button,summary,input,select,textarea,[tabindex]):focus-visible {outline:4px solid #ffe600!important;outline-offset:4px!important;box-shadow:0 0 0 7px #fff!important;}
html[data-erebe-yellow="true"] :where(svg){color:inherit!important;}
html[data-erebe-yellow="true"] :where(input,select,textarea) {accent-color:#ffe600!important;caret-color:#ffe600!important;}
html[data-erebe-yellow="true"] :where(input,textarea)::placeholder {color:#ffe680!important;opacity:1;}
html[data-erebe-yellow="true"] :where(img,video,iframe,canvas){outline:2px solid #ffe600;outline-offset:-2px;}
/* A hero és a sötét fotóátmenetek nem kerülhetnek a sárga szöveg mögé. */
html[data-erebe-yellow="true"] :where(.hero-slides,.closing>img){visibility:hidden!important;}
html[data-erebe-yellow="true"] :where(.hero,.closing,.hero-content,.closing-inner){isolation:isolate;}
html[data-erebe-yellow="true"] :where(.term-trigger,.term-pop,.map-action,.map-resource-badge,.game-panel,.presentation-card,.a11y-settings-panel,.speech-panel,.speech-settings>summary){border-color:#ffe600!important;}
html[data-erebe-yellow="true"] :where(.term-pop,.speech-panel,.a11y-settings-panel){border-width:2px!important;border-style:solid!important;}
html[data-erebe-yellow="true"] :where(.hero-dot){border:2px solid #ffe600!important;min-width:44px;min-height:44px;}
html[data-erebe-yellow="true"] :where(.hero-dot[aria-pressed="true"]){background:#ffe600!important;}
html[data-erebe-yellow="true"] :where(.hero-play-toggle){border:2px solid #ffe600!important;}
html[data-erebe-yellow="true"] :where(.raster-map,.map-tiles){background:#000!important;}
html[data-erebe-yellow="true"] :where(.raster-map img,.map-schematic img){outline:2px solid #ffe600;}
html[data-erebe-yellow="true"] ::selection{background:#ffe600!important;color:#000!important;}
@media print { html[data-erebe-yellow="true"] body,html[data-erebe-yellow="true"] body *{background:#fff!important;color:#000!important;} }
/* Felolvasó panel */
.speech-settings{position:relative;z-index:95;align-self:center;margin-left:5px;font-size:.9rem}
.speech-settings>summary{display:flex;align-items:center;gap:7px;min-height:44px;border:1px solid #a58c60;background:#f7f0df;color:#183326;border-radius:5px;padding:8px 13px;cursor:pointer;list-style:none;font-weight:750}
.speech-settings>summary::-webkit-details-marker{display:none}
.speech-settings[open]>summary{background:#e8dab7}
.speech-panel{position:absolute;top:calc(100% + 6px);right:0;z-index:100;background:#fffef7;color:#192e25;padding:16px 17px;border:2px solid #456348;border-radius:9px;box-shadow:0 15px 35px #15251f44;width:min(400px,calc(100vw - 26px));max-height:min(70vh,560px);overflow:auto}
.speech-panel-title{margin:0 0 12px;font-size:1.18rem;font-weight:800;line-height:1.35}
.speech-actions{display:flex;flex-wrap:wrap;gap:8px}
.speech-actions button{background:#204b34;color:#fff;border:2px solid #204b34;padding:10px 12px;border-radius:6px;min-height:48px;font:inherit;font-weight:750;line-height:1.4;cursor:pointer;flex:1 1 140px}
.speech-actions button:disabled{background:#e8e9de;color:#41483d;border-color:#8d9886;cursor:not-allowed;opacity:1}
.speech-panel label{display:block;font-weight:700;margin-top:13px;margin-bottom:6px}
.speech-panel select{font:inherit;min-height:48px;width:100%;padding:9px 12px;border:2px solid #5a725d;border-radius:5px;color:#1c3225;background:#fffdf6}
.speech-status{font-size:.92rem;line-height:1.55;margin:13px 0 0;min-height:1.5em}
.speech-panel-close{margin-top:11px;min-height:44px;border:2px solid #315944;border-radius:6px;background:#f2eddc;color:#153524;font:inherit;font-weight:750;padding:9px 11px;cursor:pointer}
.speech-help{font-size:.86rem;line-height:1.55;margin:9px 0 0}
.a11y-settings[open],.speech-settings[open]{z-index:1100}
@media(max-width:700px){
 .a11y-settings-panel{position:fixed!important;top:clamp(12px,12vh,75px)!important;left:12px!important;right:12px!important;width:auto!important;max-width:none!important;max-height:calc(100dvh - 90px);overflow:auto}
 .speech-panel{position:fixed;top:clamp(12px,12vh,75px);left:12px;right:12px;width:auto;max-height:calc(100dvh - 90px)}
 .speech-settings{margin-left:0}
}
@media(max-height:500px){.speech-panel{position:fixed;top:12px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 24px)}}
@media(prefers-reduced-motion:reduce){.speech-settings *{animation:none!important;transition:none!important}}
@media print{.speech-settings{display:none!important}}
