/* EHÖK akadálymentesítés – gomb, panel, preferenciák */

/* Skip link: Tab-ra azonnal megjelenik (WCAG) */
.ehok-skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 100000;
    padding: 0.85rem 1.15rem;
    background: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    border: 3px solid #ffd400;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.ehok-skip-link:focus,
.ehok-skip-link:focus-visible {
    transform: translateY(0);
    outline: 3px solid #ffd400;
    outline-offset: 3px;
    color: #fff;
}

/* Jól látható belépő gomb – fekete ikon/szöveg sárga alapon */
.ehok-a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0.55rem 0.95rem;
    margin: 0;
    border: 2px solid #000;
    border-radius: 8px;
    background: #ffd400;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ehok-a11y-btn:hover {
    background: #ffe566;
    color: #000;
}

.ehok-a11y-btn:focus {
    outline: none;
}

.ehok-a11y-btn:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #000;
}

.ehok-a11y-btn:active {
    transform: translateY(1px);
}

.ehok-a11y-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    line-height: 1;
    width: 1.15em;
    height: 1.15em;
}

.ehok-a11y-btn__icon i {
    display: block;
    line-height: 1;
    width: 1em;
    height: 1em;
    text-align: center;
}

.ehok-a11y-btn__label {
    white-space: nowrap;
}

/* Desktop header: ghost ikon, mint a kereső */
.ehok-a11y-btn--header {
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 10px 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
}

.ehok-a11y-btn--header .ehok-a11y-btn__icon {
    font-size: 1.05rem;
    width: 1em;
    height: 1em;
}

.ehok-a11y-btn--header:hover {
    background: transparent;
    color: var(--ehok-orange, #f9a733);
}

.ehok-a11y-btn--header:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
    color: var(--ehok-orange, #f9a733);
}

.ehok-a11y-btn--header:active {
    transform: none;
}

/* Mobil lenyíló menü: feliratos sor a nav alján */
.ehok-a11y-nav-wrap {
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ehok-a11y-btn--nav {
    width: 100%;
    justify-content: flex-start;
    min-height: 0;
    padding: 10px 15px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: uppercase;
    box-shadow: none;
}

.ehok-a11y-btn--nav .ehok-a11y-btn__icon {
    font-size: 1.05rem;
    width: 1.1em;
    height: 1.1em;
}

.ehok-a11y-btn--nav:hover,
.ehok-a11y-btn--nav:focus-visible {
    background: transparent;
    color: var(--ehok-orange, #f9a733);
}

.ehok-a11y-btn--nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: none;
}

.ehok-a11y-btn--nav:active {
    transform: none;
}

.ehok-a11y-btn--footer {
    margin-bottom: 1rem;
    border-width: 3px;
    box-shadow: 0 2px 0 #000;
}

.ehok-a11y-btn--footer:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px #000;
}

.ehok-a11y-btn--footer:active {
    box-shadow: none;
}

/* Panel */
.ehok-a11y-panel {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5.5rem 1rem 2rem;
}

.ehok-a11y-panel[hidden] {
    display: none !important;
}

.ehok-a11y-panel__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.ehok-a11y-panel__dialog {
    position: relative;
    z-index: 1;
    width: min(32rem, 100%);
    max-height: calc(100vh - 7rem);
    overflow: auto;
    background: #fff;
    color: #111;
    border: 3px solid #000;
    border-radius: 12px;
    padding: 1.5rem 1.35rem 1.35rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ehok-a11y-panel__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 44px;
    height: 44px;
    border: 2px solid #000;
    border-radius: 8px;
    background: #ffd400;
    color: #000;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.ehok-a11y-panel__close:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

.ehok-a11y-panel__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #000;
    margin: 0 2.5rem 0.75rem 0;
}

.ehok-a11y-panel__lead {
    margin: 0 0 1.25rem;
    color: #222;
    line-height: 1.55;
    font-size: 1rem;
}

.ehok-a11y-panel__options {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.ehok-a11y-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #111;
    text-align: left;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.ehok-a11y-option:hover {
    background: #fff8d6;
}

.ehok-a11y-option:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: 2px;
}

.ehok-a11y-option.is-on {
    background: #ffd400;
}

.ehok-a11y-option__label {
    font-weight: 600;
}

.ehok-a11y-option__status {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #000;
    background: #eee;
    border: 1px solid #000;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    min-width: 2.5rem;
    text-align: center;
}

.ehok-a11y-option.is-on .ehok-a11y-option__status {
    background: #000;
    color: #ffd400;
}

.ehok-a11y-reset {
    width: 100%;
    min-height: 44px;
    margin: 0 0 1.1rem;
    padding: 0.7rem 1rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.ehok-a11y-reset:hover {
    background: #f0f0f0;
}

.ehok-a11y-reset:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: 2px;
}

.ehok-a11y-panel__note {
    margin: 0;
    font-size: 0.95rem;
    color: #222;
}

.ehok-a11y-panel__note a {
    color: #000;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ehok-a11y-panel__note a:focus-visible {
    outline: 3px solid #ffd400;
    outline-offset: 2px;
}

body.ehok-a11y-panel-open {
    overflow: hidden;
}

/* --- Preferenciák --- */

html.ehok-a11y-font {
    font-size: 118%;
}

html.ehok-a11y-font .navbar-nav .nav-link {
    font-size: 1.05em;
}

html.ehok-a11y-links a:not(.btn):not(.ehok-a11y-btn):not(.nav-link) {
    text-decoration: underline !important;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
}

html.ehok-a11y-motion *,
html.ehok-a11y-motion *::before,
html.ehok-a11y-motion *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
}

/*
 * Nagy kontraszt – rövid, általános szabály.
 * Fekete felület, fehér szöveg, sárga link/gomb.
 * NINCS univerzális border (az keretezte szét az oldalt).
 */
html.ehok-a11y-contrast {
    background: #000 !important;
}

html.ehok-a11y-contrast body {
    background: #000 !important;
    color: #fff !important;
}

html.ehok-a11y-contrast *:not(img):not(picture):not(video):not(canvas):not(iframe):not(embed):not(object):not(svg):not(path):not(circle):not(line):not(polygon):not(polyline):not(rect):not(g) {
    background-color: #000 !important;
    color: #fff !important;
    box-shadow: none !important;
    text-shadow: none !important;
    caret-color: #ffd400 !important;
}

/*
 * Gradiensek (navbar / footer / spinner / inline style="…gradient…")
 * A background-color NEM törli a background-image-et – ezért kell külön.
 */
html.ehok-a11y-contrast .navbar,
html.ehok-a11y-contrast .navbar.navbar-dark,
html.ehok-a11y-contrast .navbar.sticky-top,
html.ehok-a11y-contrast footer,
html.ehok-a11y-contrast .socket,
html.ehok-a11y-contrast .spinner,
html.ehok-a11y-contrast .carousel-overlay,
html.ehok-a11y-contrast .dropdown-menu,
html.ehok-a11y-contrast main,
html.ehok-a11y-contrast .ehok-kollegium-archive,
html.ehok-a11y-contrast [style*="gradient"] {
    background: #000 !important;
    background-image: none !important;
}

html.ehok-a11y-contrast .spinner > div {
    background-color: #ffd400 !important;
}

html.ehok-a11y-contrast img,
html.ehok-a11y-contrast picture,
html.ehok-a11y-contrast video,
html.ehok-a11y-contrast canvas,
html.ehok-a11y-contrast iframe,
html.ehok-a11y-contrast embed,
html.ehok-a11y-contrast object,
html.ehok-a11y-contrast svg {
    background-color: transparent !important;
    color: unset !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
}

/* Linkek: sárga, aláhúzás NÉLKÜL (az külön kapcsoló) */
html.ehok-a11y-contrast a:not(
    .btn,
    .btn-slider,
    .btn-ehok-orange,
    .btn-ehok-outline,
    .ehok-a11y-btn,
    .esemeny-kartya-button,
    .cpts-share-btn,
    .btn-share,
    .pdf-download-btn,
    .legal-print-btn,
    .navbar-brand
) {
    color: #ffd400 !important;
    text-decoration: none !important;
}

html.ehok-a11y-contrast a:not(
    .btn,
    .btn-slider,
    .btn-ehok-orange,
    .btn-ehok-outline,
    .ehok-a11y-btn,
    .esemeny-kartya-button,
    .cpts-share-btn,
    .btn-share,
    .pdf-download-btn,
    .legal-print-btn,
    .navbar-brand
):hover,
html.ehok-a11y-contrast a:not(
    .btn,
    .btn-slider,
    .btn-ehok-orange,
    .btn-ehok-outline,
    .ehok-a11y-btn,
    .esemeny-kartya-button,
    .cpts-share-btn,
    .btn-share,
    .pdf-download-btn,
    .legal-print-btn,
    .navbar-brand
):focus-visible {
    color: #fff !important;
    text-decoration: underline !important;
}

/* Aláhúzás csak a „Linkek kiemelése” kapcsolóval */
html.ehok-a11y-contrast.ehok-a11y-links a:not(
    .btn,
    .btn-slider,
    .btn-ehok-orange,
    .btn-ehok-outline,
    .ehok-a11y-btn,
    .esemeny-kartya-button,
    .cpts-share-btn,
    .btn-share,
    .pdf-download-btn,
    .legal-print-btn,
    .navbar-brand
) {
    text-decoration: underline !important;
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.15em;
}

/* Valódi gombok – sárga alap, fekete szöveg (látható) */
html.ehok-a11y-contrast .btn,
html.ehok-a11y-contrast a.btn,
html.ehok-a11y-contrast .btn-slider,
html.ehok-a11y-contrast a.btn-slider,
html.ehok-a11y-contrast .btn-ehok-orange,
html.ehok-a11y-contrast .btn-ehok-outline,
html.ehok-a11y-contrast a.btn-ehok-orange,
html.ehok-a11y-contrast a.btn-ehok-outline,
html.ehok-a11y-contrast .ehok-a11y-btn:not(.ehok-a11y-btn--header):not(.ehok-a11y-btn--nav),
html.ehok-a11y-contrast .ehok-a11y-option,
html.ehok-a11y-contrast .ehok-a11y-reset,
html.ehok-a11y-contrast .ehok-a11y-panel__close,
html.ehok-a11y-contrast .esemeny-kartya-button,
html.ehok-a11y-contrast a.esemeny-kartya-button,
html.ehok-a11y-contrast .cpts-share-btn,
html.ehok-a11y-contrast .btn-share,
html.ehok-a11y-contrast .pdf-download-btn,
html.ehok-a11y-contrast .legal-print-btn,
html.ehok-a11y-contrast input[type="submit"],
html.ehok-a11y-contrast input[type="button"],
html.ehok-a11y-contrast input[type="reset"] {
    background: #ffd400 !important;
    background-image: none !important;
    color: #000 !important;
    border: 2px solid #fff !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

html.ehok-a11y-contrast .btn *,
html.ehok-a11y-contrast a.btn *,
html.ehok-a11y-contrast .btn-slider *,
html.ehok-a11y-contrast .btn-ehok-orange *,
html.ehok-a11y-contrast .btn-ehok-outline *,
html.ehok-a11y-contrast .ehok-a11y-btn:not(.ehok-a11y-btn--header):not(.ehok-a11y-btn--nav) *,
html.ehok-a11y-contrast .esemeny-kartya-button *,
html.ehok-a11y-contrast .cpts-share-btn *,
html.ehok-a11y-contrast .btn-share *,
html.ehok-a11y-contrast .pdf-download-btn * {
    background: transparent !important;
    background-image: none !important;
    color: #000 !important;
    border-color: transparent !important;
    text-decoration: none !important;
}

/* Carousel vezérlők: ne legyen belőlük óriás sárga gomb */
html.ehok-a11y-contrast .carousel-control-prev,
html.ehok-a11y-contrast .carousel-control-next,
html.ehok-a11y-contrast .carousel-indicators [data-bs-target] {
    background: transparent !important;
    background-image: none !important;
    border: 2px solid #ffd400 !important;
    color: #ffd400 !important;
    opacity: 1 !important;
}

html.ehok-a11y-contrast .carousel-control-prev-icon,
html.ehok-a11y-contrast .carousel-control-next-icon {
    filter: none !important;
    background-color: transparent !important;
}

/* Elkülönítés: csak a fő tartalomblokkok kapnak keretet */
html.ehok-a11y-contrast .cpts-magazine-card,
html.ehok-a11y-contrast .esemeny-kartya,
html.ehok-a11y-contrast .sidebar-widget,
html.ehok-a11y-contrast .card,
html.ehok-a11y-contrast .legal-content-card,
html.ehok-a11y-contrast .legal-meta-card,
html.ehok-a11y-contrast .ehok-info-panel,
html.ehok-a11y-contrast .pdf-preview-box,
html.ehok-a11y-contrast .ehok-search-form .form-control,
html.ehok-a11y-contrast .ehok-search-form .input-group,
html.ehok-a11y-contrast .dropdown-menu,
html.ehok-a11y-contrast .accordion-item,
html.ehok-a11y-contrast #osztondijak-accordion > article,
html.ehok-a11y-contrast .ehok-osztondij-info,
html.ehok-a11y-contrast .ehok-osztondij-related__card {
    border: 1px solid #ffd400 !important;
}

/* Accordion: gomb és nyíl látható legyen fekete alapon */
html.ehok-a11y-contrast .accordion-button {
    background: #000 !important;
    background-image: none !important;
    color: #fff !important;
    box-shadow: none !important;
}

html.ehok-a11y-contrast .accordion-button:not(.collapsed) {
    background: #000 !important;
    color: #ffd400 !important;
}

html.ehok-a11y-contrast .accordion-button::after {
    background-color: transparent !important;
    filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg) brightness(1.2);
    opacity: 1 !important;
}

html.ehok-a11y-contrast .accordion-body {
    background: #000 !important;
    color: #fff !important;
    border-top: 1px solid #ffd400 !important;
}

html.ehok-a11y-contrast input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
html.ehok-a11y-contrast select,
html.ehok-a11y-contrast textarea {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #ffd400 !important;
}

html.ehok-a11y-contrast input::placeholder,
html.ehok-a11y-contrast textarea::placeholder {
    color: #ccc !important;
    opacity: 1 !important;
}

html.ehok-a11y-contrast :focus-visible {
    outline: 3px solid #ffd400 !important;
    outline-offset: 2px !important;
}

html.ehok-a11y-contrast input[type="checkbox"],
html.ehok-a11y-contrast input[type="radio"] {
    accent-color: #ffd400;
    forced-color-adjust: none;
    width: 1.15em;
    height: 1.15em;
}

html.ehok-a11y-contrast .navbar-nav .nav-link,
html.ehok-a11y-contrast .navbar-toggler,
html.ehok-a11y-contrast .ehok-navbar-search-btn,
html.ehok-a11y-contrast .ehok-a11y-btn--header,
html.ehok-a11y-contrast .ehok-a11y-btn--nav {
    color: #ffd400 !important;
    background: transparent !important;
    border-color: #ffd400 !important;
}

html.ehok-a11y-contrast .ehok-a11y-btn--header *,
html.ehok-a11y-contrast .ehok-a11y-btn--nav * {
    color: inherit !important;
}

html.ehok-a11y-contrast .ehok-a11y-nav-wrap {
    border-top-color: rgba(255, 212, 0, 0.35);
}

html.ehok-a11y-contrast .slider-title,
html.ehok-a11y-contrast .slider-desc,
html.ehok-a11y-contrast .carousel-caption {
    color: #fff !important;
    background: transparent !important;
}

@media (max-width: 575.98px) {
    .ehok-a11y-panel {
        padding: 4.5rem 0.75rem 1rem;
    }

    .ehok-a11y-btn--footer {
        width: 100%;
    }
}
