/* ==========================================================================
   DESA.ID - Stylesheet Aksesibilitas WCAG 2.1 AA (100% Self-Hosted, 0 CDN)
   Kompatibel dengan Tema Polo (desa.id) & desa-a11y.js
   ========================================================================== */

/* ==========================================================================
   1. FONDASI WCAG 2.1 AA PERMANEN UNTUK TEMA POLO (DESA.ID)
   ========================================================================== */

/* Skip to main content link */
.desa-a11y-skip-link {
    position: fixed !important;
    top: -100px;
    left: 10px;
    z-index: 100002;
    background: #FFD500 !important;
    color: #000000 !important;
    border: 2px solid #000000 !important;
    padding: 10px 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: top 0.12s ease-out;
}

.desa-a11y-skip-link:focus,
.desa-a11y-skip-link:focus-visible {
    top: 10px !important;
    left: 10px !important;
    color: #000000 !important;
    background: #FFD500 !important;
    outline: 3px solid #000000 !important;
    outline-offset: 2px !important;
}

/* Screen-reader only utility */
.desa-a11y-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Pemulihan focus ring kontras tinggi pada semua elemen interaktif */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid #FFD500 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #111111 !important;
}

main#main-content:focus:not(:focus-visible) {
    outline: none !important;
    box-shadow: none !important;
}

/* WCAG 2.2 Focus Not Obscured (header sticky tidak menutupi elemen terfokus) */
main#main-content,
main#main-content [id],
main#main-content h1,
main#main-content h2,
main#main-content h3,
main#main-content h4,
main#main-content a,
main#main-content button,
main#main-content input,
main#main-content select,
main#main-content textarea {
    scroll-margin-top: 96px;
}

@media (max-width: 991px) {
    main#main-content,
    main#main-content [id],
    main#main-content h1,
    main#main-content h2,
    main#main-content h3,
    main#main-content h4,
    main#main-content a,
    main#main-content button,
    main#main-content input,
    main#main-content select,
    main#main-content textarea {
        scroll-margin-top: 72px;
    }
}

/* Dukungan keyboard dropdown pada header Polo */
#mainMenu nav > ul > li.dropdown:focus-within > .dropdown-menu,
#mainMenu nav > ul > li.dropdown.desa-a11y-dd-open > .dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* Perbaikan kontras AA/AAA permanen tema Polo (>= 7:1) */
.post-meta-category,
.post-meta-category a,
.post-item .post-image .post-meta-category,
.post-item .post-image .post-meta-category a,
.post-item .post-slider .post-meta-category,
.post-item .post-slider .post-meta-category a {
    color: #1A1A1A !important;
    font-weight: 700 !important;
}

.post-meta-category a:hover,
.post-meta-category a:focus {
    color: #000000 !important;
    text-decoration: underline !important;
}

/* Hover link di konten utama latar terang -> #7C0810 (11.06:1) */
main#main-content a:not(.btn):not(.badge):hover,
main#main-content .heading-text p a:hover,
main#main-content #page-content a:hover,
main#main-content #blog .post-item-description .item-link:hover,
main#main-content .post-item .post-item-description .item-link:hover {
    color: #7C0810 !important;
}

/* Pertahankan kontras tinggi pada tautan di atas blok gelap/hero */
main#main-content .hero-heading-2 a:not(.btn):not(.badge):hover,
main#main-content .call-to-action-colored a:not(.btn):not(.badge):hover,
main#main-content .bg-dark a:not(.btn):not(.badge):hover {
    color: #FFD500 !important;
}

/* Paragraf konten -> #4A5568 (7.53:1) */
main#main-content p {
    color: #4A5568;
}

main#main-content .hero-heading-2 p,
main#main-content .call-to-action-colored p,
main#main-content .bg-dark p,
main#main-content .text-light p,
main#main-content .text-white p,
main#main-content p.text-light,
main#main-content p.text-white {
    color: #FFFFFF;
}

/* Meta tanggal & komentar -> #595959 (7.00:1) */
.post-meta-date,
.post-meta-comments {
    color: #595959 !important;
}

/* Dropdown hover/focus di latar putih (desktop) */
#mainMenu nav > ul > li .dropdown-menu > li > a:hover,
#mainMenu nav > ul > li .dropdown-menu > li > a:focus {
    color: #7C0810 !important;
}

@media (max-width: 1024px) {
    #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li > a:hover,
    #mainMenu:not(.menu-overlay) nav > ul > li .dropdown-menu > li > a:focus {
        color: #FFD500 !important;
    }
}

/* ==========================================================================
   2. MODE AKSESIBILITAS (TANPA FILTER PADA HTML/BODY)
   ========================================================================== */

/* --------------------------------------------------------------------------
   2.1 Skala Huruf Proporsional (Tanpa Multiplier Berantai & Tanpa Mengubah Widget)
   -------------------------------------------------------------------------- */
html.desa-a11y-fs-m1 {
    font-size: 88%;
    --desa-a11y-scale: 0.88;
}

html.desa-a11y-fs-p1 {
    font-size: 112%;
    --desa-a11y-scale: 1.12;
}

html.desa-a11y-fs-p2 {
    font-size: 125%;
    --desa-a11y-scale: 1.25;
}

html.desa-a11y-fs-p3 {
    font-size: 138%;
    --desa-a11y-scale: 1.38;
}

html.desa-a11y-fs-p4 {
    font-size: 150%;
    --desa-a11y-scale: 1.5;
}

html[class*="desa-a11y-fs-"] .body-inner p,
html[class*="desa-a11y-fs-"] .body-inner li,
html[class*="desa-a11y-fs-"] .body-inner td,
html[class*="desa-a11y-fs-"] .body-inner th,
html[class*="desa-a11y-fs-"] .body-inner dd,
html[class*="desa-a11y-fs-"] .body-inner dt,
html[class*="desa-a11y-fs-"] .body-inner blockquote,
html[class*="desa-a11y-fs-"] .body-inner figcaption,
html[class*="desa-a11y-fs-"] .body-inner label,
html[class*="desa-a11y-fs-"] .body-inner input,
html[class*="desa-a11y-fs-"] .body-inner select,
html[class*="desa-a11y-fs-"] .body-inner textarea,
html[class*="desa-a11y-fs-"] .body-inner .post-item-description {
    font-size: calc(15px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] .body-inner .heading-text.heading-section p {
    font-size: calc(18px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] .body-inner .icon-box.small p,
html[class*="desa-a11y-fs-"] .body-inner #footer,
html[class*="desa-a11y-fs-"] .body-inner #footer p,
html[class*="desa-a11y-fs-"] .body-inner #footer li,
html[class*="desa-a11y-fs-"] .body-inner #footer a {
    font-size: calc(14px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] .body-inner .post-meta-date,
html[class*="desa-a11y-fs-"] .body-inner .post-meta-comments,
html[class*="desa-a11y-fs-"] .body-inner .post-meta-category,
html[class*="desa-a11y-fs-"] .body-inner small {
    font-size: calc(13px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] .body-inner h1 {
    font-size: calc(34px * var(--desa-a11y-scale)) !important;
    line-height: 1.25 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h2,
html[class*="desa-a11y-fs-"] .body-inner .heading-text.heading-section h2 {
    font-size: calc(28px * var(--desa-a11y-scale)) !important;
    line-height: 1.3 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h3,
html[class*="desa-a11y-fs-"] .body-inner .icon-box.small h3 {
    font-size: calc(21px * var(--desa-a11y-scale)) !important;
    line-height: 1.35 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h4 {
    font-size: calc(18px * var(--desa-a11y-scale)) !important;
    line-height: 1.35 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h5 {
    font-size: calc(16px * var(--desa-a11y-scale)) !important;
    line-height: 1.4 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h6 {
    font-size: calc(15px * var(--desa-a11y-scale)) !important;
    line-height: 1.4 !important;
}

html[class*="desa-a11y-fs-"] .body-inner h1 a,
html[class*="desa-a11y-fs-"] .body-inner h2 a,
html[class*="desa-a11y-fs-"] .body-inner h3 a,
html[class*="desa-a11y-fs-"] .body-inner h4 a,
html[class*="desa-a11y-fs-"] .body-inner p a,
html[class*="desa-a11y-fs-"] .body-inner li a,
html[class*="desa-a11y-fs-"] .body-inner td a,
html[class*="desa-a11y-fs-"] .body-inner th a {
    font-size: inherit !important;
}

html[class*="desa-a11y-fs-"] .body-inner .post-item .post-item-description h2,
html[class*="desa-a11y-fs-"] .body-inner #blog .post-item-description h2 {
    font-size: calc(18px * var(--desa-a11y-scale)) !important;
    line-height: 1.35 !important;
}

html[class*="desa-a11y-fs-"] .body-inner .btn,
html[class*="desa-a11y-fs-"] .body-inner main#main-content button {
    font-size: calc(14px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] #mainMenu nav > ul > li > a {
    font-size: calc(12px * var(--desa-a11y-scale)) !important;
}

html[class*="desa-a11y-fs-"] #mainMenu nav > ul > li .dropdown-menu > li > a {
    font-size: calc(13px * var(--desa-a11y-scale)) !important;
}

/* Lindungi ikon font agar tidak terdistorsi */
html[class*="desa-a11y-fs-"] .body-inner i.fa,
html[class*="desa-a11y-fs-"] .body-inner i.fas,
html[class*="desa-a11y-fs-"] .body-inner i.far,
html[class*="desa-a11y-fs-"] .body-inner i.fab,
html[class*="desa-a11y-fs-"] .body-inner i.fal,
html[class*="desa-a11y-fs-"] .body-inner i.fad,
html[class*="desa-a11y-fs-"] .body-inner [class^="icon-"],
html[class*="desa-a11y-fs-"] .body-inner [class*=" icon-"] {
    font-size: inherit;
}

/* --------------------------------------------------------------------------
   2.2 Font Ramah Disleksia (sebelum Tinggi Baris & Spasi agar kontrol manual menang)
   -------------------------------------------------------------------------- */
body.desa-a11y-dyslexia .body-inner,
body.desa-a11y-dyslexia .body-inner p,
body.desa-a11y-dyslexia .body-inner li,
body.desa-a11y-dyslexia .body-inner a,
body.desa-a11y-dyslexia .body-inner td,
body.desa-a11y-dyslexia .body-inner th,
body.desa-a11y-dyslexia .body-inner div,
body.desa-a11y-dyslexia .body-inner label,
body.desa-a11y-dyslexia .body-inner input,
body.desa-a11y-dyslexia .body-inner select,
body.desa-a11y-dyslexia .body-inner textarea,
body.desa-a11y-dyslexia .body-inner button,
body.desa-a11y-dyslexia .body-inner blockquote,
body.desa-a11y-dyslexia .body-inner figcaption,
body.desa-a11y-dyslexia .body-inner .card,
body.desa-a11y-dyslexia .body-inner .widget-title,
body.desa-a11y-dyslexia .body-inner #mainMenu nav > ul > li > a,
body.desa-a11y-dyslexia .body-inner h1,
body.desa-a11y-dyslexia .body-inner h2,
body.desa-a11y-dyslexia .body-inner h3,
body.desa-a11y-dyslexia .body-inner h4,
body.desa-a11y-dyslexia .body-inner h5,
body.desa-a11y-dyslexia .body-inner h6,
body.desa-a11y-dyslexia .body-inner span:not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not([class^="icon-"]):not([class*=" icon-"]) {
    font-family: "Atkinson Hyperlegible", "Lexend", Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important;
    font-style: normal !important;
    word-spacing: 0.14em !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
}

body.desa-a11y-dyslexia #mainMenu nav > ul > li.dropdown:before {
    font-family: "inspiro-icons" !important;
}

/* --------------------------------------------------------------------------
   2.3 Tinggi Baris (Line Height)
   -------------------------------------------------------------------------- */
body.desa-a11y-lh-1 main#main-content,
body.desa-a11y-lh-1 main#main-content p,
body.desa-a11y-lh-1 main#main-content li,
body.desa-a11y-lh-1 main#main-content td,
body.desa-a11y-lh-1 main#main-content th,
body.desa-a11y-lh-1 main#main-content span:not(.fa):not(.fas):not(.far):not(.fab):not([class^="icon-"]),
body.desa-a11y-lh-1 main#main-content a,
body.desa-a11y-lh-1 main#main-content blockquote,
body.desa-a11y-lh-1 main#main-content .post-item-description,
body.desa-a11y-lh-1 main#main-content .card,
body.desa-a11y-lh-1 footer#footer p,
body.desa-a11y-lh-1 footer#footer li {
    line-height: 1.75 !important;
}

body.desa-a11y-lh-1 main#main-content h1,
body.desa-a11y-lh-1 main#main-content h2,
body.desa-a11y-lh-1 main#main-content h3,
body.desa-a11y-lh-1 main#main-content h4,
body.desa-a11y-lh-1 main#main-content h5,
body.desa-a11y-lh-1 main#main-content h6 {
    line-height: 1.45 !important;
}

body.desa-a11y-lh-2 main#main-content,
body.desa-a11y-lh-2 main#main-content p,
body.desa-a11y-lh-2 main#main-content li,
body.desa-a11y-lh-2 main#main-content td,
body.desa-a11y-lh-2 main#main-content th,
body.desa-a11y-lh-2 main#main-content span:not(.fa):not(.fas):not(.far):not(.fab):not([class^="icon-"]),
body.desa-a11y-lh-2 main#main-content a,
body.desa-a11y-lh-2 main#main-content blockquote,
body.desa-a11y-lh-2 main#main-content .post-item-description,
body.desa-a11y-lh-2 main#main-content .card,
body.desa-a11y-lh-2 footer#footer p,
body.desa-a11y-lh-2 footer#footer li {
    line-height: 2.1 !important;
}

body.desa-a11y-lh-2 main#main-content h1,
body.desa-a11y-lh-2 main#main-content h2,
body.desa-a11y-lh-2 main#main-content h3,
body.desa-a11y-lh-2 main#main-content h4,
body.desa-a11y-lh-2 main#main-content h5,
body.desa-a11y-lh-2 main#main-content h6 {
    line-height: 1.65 !important;
}

/* --------------------------------------------------------------------------
   2.4 Spasi Huruf (Letter Spacing)
   -------------------------------------------------------------------------- */
body.desa-a11y-ls-1 .body-inner,
body.desa-a11y-ls-1 .body-inner p,
body.desa-a11y-ls-1 .body-inner li,
body.desa-a11y-ls-1 .body-inner a,
body.desa-a11y-ls-1 .body-inner td,
body.desa-a11y-ls-1 .body-inner th,
body.desa-a11y-ls-1 .body-inner span:not(.fa):not(.fas):not(.far):not(.fab):not([class^="icon-"]),
body.desa-a11y-ls-1 .body-inner label,
body.desa-a11y-ls-1 .body-inner button,
body.desa-a11y-ls-1 .body-inner h1,
body.desa-a11y-ls-1 .body-inner h2,
body.desa-a11y-ls-1 .body-inner h3,
body.desa-a11y-ls-1 .body-inner h4,
body.desa-a11y-ls-1 .body-inner h5,
body.desa-a11y-ls-1 .body-inner h6 {
    letter-spacing: 0.06em !important;
}

body.desa-a11y-ls-2 .body-inner,
body.desa-a11y-ls-2 .body-inner p,
body.desa-a11y-ls-2 .body-inner li,
body.desa-a11y-ls-2 .body-inner a,
body.desa-a11y-ls-2 .body-inner td,
body.desa-a11y-ls-2 .body-inner th,
body.desa-a11y-ls-2 .body-inner span:not(.fa):not(.fas):not(.far):not(.fab):not([class^="icon-"]),
body.desa-a11y-ls-2 .body-inner label,
body.desa-a11y-ls-2 .body-inner button,
body.desa-a11y-ls-2 .body-inner h1,
body.desa-a11y-ls-2 .body-inner h2,
body.desa-a11y-ls-2 .body-inner h3,
body.desa-a11y-ls-2 .body-inner h4,
body.desa-a11y-ls-2 .body-inner h5,
body.desa-a11y-ls-2 .body-inner h6 {
    letter-spacing: 0.12em !important;
}

/* --------------------------------------------------------------------------
   2.5 Rata Kiri
   -------------------------------------------------------------------------- */
body.desa-a11y-align-left main#main-content p,
body.desa-a11y-align-left main#main-content li,
body.desa-a11y-align-left main#main-content .post-item-description,
body.desa-a11y-align-left main#main-content .heading-text.heading-section p,
body.desa-a11y-align-left main#main-content blockquote,
body.desa-a11y-align-left main#main-content td,
body.desa-a11y-align-left main#main-content .icon-box.small,
body.desa-a11y-align-left main#main-content .icon-box.small p {
    text-align: left !important;
}

/* --------------------------------------------------------------------------
   2.6 Kontras Tinggi Gelap (Pure Color Overrides, 0 Filter)
   -------------------------------------------------------------------------- */
body.desa-a11y-hc-dark,
body.desa-a11y-hc-dark .body-inner,
body.desa-a11y-hc-dark #header,
body.desa-a11y-hc-dark #header .header-inner,
body.desa-a11y-hc-dark #header #header-wrap,
body.desa-a11y-hc-dark #header.header-sticky.sticky-active .header-inner,
body.desa-a11y-hc-dark #header.header-sticky.sticky-active #header-wrap,
body.desa-a11y-hc-dark main#main-content,
body.desa-a11y-hc-dark main#main-content section,
body.desa-a11y-hc-dark footer#footer,
body.desa-a11y-hc-dark footer#footer .copyright-content,
body.desa-a11y-hc-dark .call-to-action,
body.desa-a11y-hc-dark .call-to-action.call-to-action-colored {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    color: #FFFFFF !important;
}

body.desa-a11y-hc-dark .card,
body.desa-a11y-hc-dark .modal-content,
body.desa-a11y-hc-dark .modal-header,
body.desa-a11y-hc-dark .modal-body,
body.desa-a11y-hc-dark .modal-footer,
body.desa-a11y-hc-dark .dropdown-menu,
body.desa-a11y-hc-dark .sidebar .widget,
body.desa-a11y-hc-dark #blog .post-item,
body.desa-a11y-hc-dark .post-item.border,
body.desa-a11y-hc-dark .icon-box.small,
body.desa-a11y-hc-dark .hero-heading-2,
body.desa-a11y-hc-dark footer#footer .card,
body.desa-a11y-hc-dark .body-inner table,
body.desa-a11y-hc-dark .body-inner th,
body.desa-a11y-hc-dark .body-inner td,
body.desa-a11y-hc-dark .body-inner input,
body.desa-a11y-hc-dark .body-inner select,
body.desa-a11y-hc-dark .body-inner textarea,
body.desa-a11y-hc-dark .modal-content input,
body.desa-a11y-hc-dark .modal-content select,
body.desa-a11y-hc-dark .modal-content textarea {
    background: #121212 !important;
    background-color: #121212 !important;
    background-image: none !important;
    color: #FFFFFF !important;
    border-color: #FFE600 !important;
    box-shadow: none !important;
}

body.desa-a11y-hc-dark .card,
body.desa-a11y-hc-dark .modal-content,
body.desa-a11y-hc-dark .dropdown-menu,
body.desa-a11y-hc-dark .sidebar .widget,
body.desa-a11y-hc-dark #blog .post-item,
body.desa-a11y-hc-dark .post-item.border,
body.desa-a11y-hc-dark .icon-box.small,
body.desa-a11y-hc-dark .hero-heading-2,
body.desa-a11y-hc-dark footer#footer .card {
    border: 1.5px solid #FFE600 !important;
}

body.desa-a11y-hc-dark .body-inner h1,
body.desa-a11y-hc-dark .body-inner h2,
body.desa-a11y-hc-dark .body-inner h3,
body.desa-a11y-hc-dark .body-inner h4,
body.desa-a11y-hc-dark .body-inner h5,
body.desa-a11y-hc-dark .body-inner h6,
body.desa-a11y-hc-dark .body-inner p,
body.desa-a11y-hc-dark .body-inner li,
body.desa-a11y-hc-dark .body-inner span,
body.desa-a11y-hc-dark .body-inner label,
body.desa-a11y-hc-dark .body-inner td,
body.desa-a11y-hc-dark .body-inner th,
body.desa-a11y-hc-dark .body-inner .widget-title,
body.desa-a11y-hc-dark .body-inner .post-meta-date,
body.desa-a11y-hc-dark .body-inner .post-meta-comments,
body.desa-a11y-hc-dark .body-inner .icon-box.small h3,
body.desa-a11y-hc-dark .body-inner .icon-box.small p,
body.desa-a11y-hc-dark .modal-content h1,
body.desa-a11y-hc-dark .modal-content h2,
body.desa-a11y-hc-dark .modal-content h3,
body.desa-a11y-hc-dark .modal-content h4,
body.desa-a11y-hc-dark .modal-content h5,
body.desa-a11y-hc-dark .modal-content p,
body.desa-a11y-hc-dark .modal-content li,
body.desa-a11y-hc-dark .modal-content td,
body.desa-a11y-hc-dark .modal-content th {
    color: #FFFFFF !important;
}

body.desa-a11y-hc-dark .body-inner a,
body.desa-a11y-hc-dark .modal-content a,
body.desa-a11y-hc-dark #mainMenu nav > ul > li > a,
body.desa-a11y-hc-dark #mainMenu nav > ul > li .dropdown-menu > li > a,
body.desa-a11y-hc-dark footer#footer a,
body.desa-a11y-hc-dark #blog .post-item-description h2 a,
body.desa-a11y-hc-dark .post-item .post-item-description h2 a {
    color: #FFE600 !important;
    border-color: #FFE600 !important;
}

body.desa-a11y-hc-dark .body-inner a:hover,
body.desa-a11y-hc-dark .body-inner a:focus,
body.desa-a11y-hc-dark .modal-content a:hover,
body.desa-a11y-hc-dark .modal-content a:focus {
    color: #FFFFFF !important;
    text-decoration: underline !important;
}

body.desa-a11y-hc-dark .body-inner .btn,
body.desa-a11y-hc-dark .body-inner button,
body.desa-a11y-hc-dark .body-inner input[type="submit"],
body.desa-a11y-hc-dark .body-inner input[type="button"],
body.desa-a11y-hc-dark .body-inner #table-data .tombol_detail,
body.desa-a11y-hc-dark .modal-content .btn,
body.desa-a11y-hc-dark .modal-content button,
body.desa-a11y-hc-dark .post-meta-category {
    background: #FFE600 !important;
    background-color: #FFE600 !important;
    color: #000000 !important;
    border: 2px solid #FFE600 !important;
}

body.desa-a11y-hc-dark .post-meta-category a,
body.desa-a11y-hc-dark .body-inner .btn *,
body.desa-a11y-hc-dark .body-inner button * {
    color: #000000 !important;
}

body.desa-a11y-hc-dark .body-inner hr,
body.desa-a11y-hc-dark .heading-text.heading-section h2:before {
    border-color: #FFE600 !important;
    background-color: #FFE600 !important;
}

body.desa-a11y-hc-dark .icon-box.small .icon {
    background-color: #FFE600 !important;
    color: #000000 !important;
}

/* --------------------------------------------------------------------------
   2.7 Kontras Tinggi Terang (Pure Color Overrides, 0 Filter)
   -------------------------------------------------------------------------- */
body.desa-a11y-hc-light,
body.desa-a11y-hc-light .body-inner,
body.desa-a11y-hc-light #header,
body.desa-a11y-hc-light #header .header-inner,
body.desa-a11y-hc-light #header #header-wrap,
body.desa-a11y-hc-light #header.header-sticky.sticky-active .header-inner,
body.desa-a11y-hc-light #header.header-sticky.sticky-active #header-wrap,
body.desa-a11y-hc-light main#main-content,
body.desa-a11y-hc-light main#main-content section,
body.desa-a11y-hc-light footer#footer,
body.desa-a11y-hc-light footer#footer .copyright-content,
body.desa-a11y-hc-light .card,
body.desa-a11y-hc-light .modal-content,
body.desa-a11y-hc-light .modal-header,
body.desa-a11y-hc-light .modal-body,
body.desa-a11y-hc-light .modal-footer,
body.desa-a11y-hc-light .dropdown-menu,
body.desa-a11y-hc-light .sidebar .widget,
body.desa-a11y-hc-light #blog .post-item,
body.desa-a11y-hc-light .post-item.border,
body.desa-a11y-hc-light .icon-box.small,
body.desa-a11y-hc-light .hero-heading-2,
body.desa-a11y-hc-light .call-to-action,
body.desa-a11y-hc-light .call-to-action.call-to-action-colored,
body.desa-a11y-hc-light footer#footer .card,
body.desa-a11y-hc-light .body-inner table,
body.desa-a11y-hc-light .body-inner th,
body.desa-a11y-hc-light .body-inner td,
body.desa-a11y-hc-light .body-inner input,
body.desa-a11y-hc-light .body-inner select,
body.desa-a11y-hc-light .body-inner textarea,
body.desa-a11y-hc-light .modal-content input,
body.desa-a11y-hc-light .modal-content select,
body.desa-a11y-hc-light .modal-content textarea {
    background: #FFFFFF !important;
    background-color: #FFFFFF !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #000000 !important;
    box-shadow: none !important;
}

body.desa-a11y-hc-light #header .header-inner,
body.desa-a11y-hc-light footer#footer {
    border-bottom: 2px solid #000000 !important;
    border-top: 2px solid #000000 !important;
}

body.desa-a11y-hc-light .card,
body.desa-a11y-hc-light .modal-content,
body.desa-a11y-hc-light .dropdown-menu,
body.desa-a11y-hc-light .sidebar .widget,
body.desa-a11y-hc-light #blog .post-item,
body.desa-a11y-hc-light .post-item.border,
body.desa-a11y-hc-light .icon-box.small,
body.desa-a11y-hc-light .hero-heading-2,
body.desa-a11y-hc-light footer#footer .card,
body.desa-a11y-hc-light .body-inner th,
body.desa-a11y-hc-light .body-inner td,
body.desa-a11y-hc-light .body-inner input,
body.desa-a11y-hc-light .body-inner select,
body.desa-a11y-hc-light .body-inner textarea {
    border: 1.5px solid #000000 !important;
}

body.desa-a11y-hc-light .body-inner h1,
body.desa-a11y-hc-light .body-inner h2,
body.desa-a11y-hc-light .body-inner h3,
body.desa-a11y-hc-light .body-inner h4,
body.desa-a11y-hc-light .body-inner h5,
body.desa-a11y-hc-light .body-inner h6,
body.desa-a11y-hc-light .body-inner p,
body.desa-a11y-hc-light .body-inner li,
body.desa-a11y-hc-light .body-inner span,
body.desa-a11y-hc-light .body-inner label,
body.desa-a11y-hc-light .body-inner td,
body.desa-a11y-hc-light .body-inner th,
body.desa-a11y-hc-light .body-inner .widget-title,
body.desa-a11y-hc-light .body-inner .post-meta-date,
body.desa-a11y-hc-light .body-inner .post-meta-comments,
body.desa-a11y-hc-light .body-inner .icon-box.small h3,
body.desa-a11y-hc-light .body-inner .icon-box.small p,
body.desa-a11y-hc-light .modal-content h1,
body.desa-a11y-hc-light .modal-content h2,
body.desa-a11y-hc-light .modal-content h3,
body.desa-a11y-hc-light .modal-content h4,
body.desa-a11y-hc-light .modal-content h5,
body.desa-a11y-hc-light .modal-content p,
body.desa-a11y-hc-light .modal-content li,
body.desa-a11y-hc-light .modal-content td,
body.desa-a11y-hc-light .modal-content th {
    color: #000000 !important;
}

body.desa-a11y-hc-light .body-inner a,
body.desa-a11y-hc-light .modal-content a,
body.desa-a11y-hc-light #mainMenu nav > ul > li > a,
body.desa-a11y-hc-light #mainMenu nav > ul > li .dropdown-menu > li > a,
body.desa-a11y-hc-light footer#footer a,
body.desa-a11y-hc-light #blog .post-item-description h2 a,
body.desa-a11y-hc-light .post-item .post-item-description h2 a {
    color: #0000CC !important;
    text-decoration: underline !important;
}

body.desa-a11y-hc-light .body-inner a:hover,
body.desa-a11y-hc-light .body-inner a:focus,
body.desa-a11y-hc-light .modal-content a:hover,
body.desa-a11y-hc-light .modal-content a:focus {
    color: #000000 !important;
    background-color: #FFF3A1 !important;
}

body.desa-a11y-hc-light .body-inner .btn,
body.desa-a11y-hc-light .body-inner button,
body.desa-a11y-hc-light .body-inner input[type="submit"],
body.desa-a11y-hc-light .body-inner input[type="button"],
body.desa-a11y-hc-light .body-inner #table-data .tombol_detail,
body.desa-a11y-hc-light .modal-content .btn,
body.desa-a11y-hc-light .modal-content button,
body.desa-a11y-hc-light .post-meta-category {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #FFFFFF !important;
    border: 2px solid #000000 !important;
    text-decoration: none !important;
}

body.desa-a11y-hc-light .post-meta-category a,
body.desa-a11y-hc-light .body-inner .btn *,
body.desa-a11y-hc-light .body-inner button * {
    color: #FFFFFF !important;
}

body.desa-a11y-hc-light .lines,
body.desa-a11y-hc-light .lines:before,
body.desa-a11y-hc-light .lines:after,
body.desa-a11y-hc-light .heading-text.heading-section h2:before {
    background-color: #000000 !important;
}

body.desa-a11y-hc-light #mainMenu nav > ul > li.dropdown:before {
    color: #000000 !important;
}

body.desa-a11y-hc-light .icon-box.small .icon {
    background-color: #000000 !important;
    color: #FFFFFF !important;
}

/* --------------------------------------------------------------------------
   2.8 Sorot Tautan (setelah Kontras Tinggi agar tetap terbaca pada semua mode)
   -------------------------------------------------------------------------- */
body.desa-a11y-highlight-links .body-inner a,
body.desa-a11y-highlight-links #mainMenu nav > ul > li > a,
body.desa-a11y-highlight-links #mainMenu nav > ul > li .dropdown-menu > li > a,
body.desa-a11y-highlight-links footer#footer a,
body.desa-a11y-highlight-links #blog .post-item-description h2 a,
body.desa-a11y-highlight-links .post-item .post-item-description h2 a {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 2px !important;
    background-color: #FFF3A1 !important;
    color: #000000 !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
}

body.desa-a11y-highlight-links .body-inner a:hover,
body.desa-a11y-highlight-links .body-inner a:focus {
    background-color: #FFD500 !important;
    color: #000000 !important;
}

/* --------------------------------------------------------------------------
   2.9 Skala Abu-abu (HANYA pada main, footer, header - BUKAN html/body!)
   -------------------------------------------------------------------------- */
body.desa-a11y-grayscale main#main-content,
body.desa-a11y-grayscale footer#footer,
body.desa-a11y-grayscale #header {
    filter: grayscale(100%) !important;
}

/* --------------------------------------------------------------------------
   2.10 Balikan Warna (HANYA pada main, footer, header - BUKAN html/body!)
   -------------------------------------------------------------------------- */
body.desa-a11y-invert main#main-content,
body.desa-a11y-invert footer#footer,
body.desa-a11y-invert #header {
    filter: invert(100%) hue-rotate(180deg) !important;
}

body.desa-a11y-invert main#main-content img,
body.desa-a11y-invert main#main-content video,
body.desa-a11y-invert main#main-content iframe,
body.desa-a11y-invert footer#footer img,
body.desa-a11y-invert footer#footer video,
body.desa-a11y-invert footer#footer iframe,
body.desa-a11y-invert #header img {
    filter: invert(100%) hue-rotate(180deg) !important;
}

/* --------------------------------------------------------------------------
   2.10b Saturasi Warna (HANYA pada main, footer, header - BUKAN html/body!)
   -------------------------------------------------------------------------- */
body.desa-a11y-sat-low main#main-content,
body.desa-a11y-sat-low footer#footer,
body.desa-a11y-sat-low #header {
    filter: saturate(0.45) !important;
}

body.desa-a11y-sat-high main#main-content,
body.desa-a11y-sat-high footer#footer,
body.desa-a11y-sat-high #header {
    filter: saturate(2.2) !important;
}

/* --------------------------------------------------------------------------
   2.11 Sembunyikan Gambar Dekoratif (Logo Header & Widget Tetap Utuh)
   -------------------------------------------------------------------------- */
body.desa-a11y-hide-images main#main-content img,
body.desa-a11y-hide-images main#main-content picture,
body.desa-a11y-hide-images main#main-content .slide-captions {
    display: none !important;
}

body.desa-a11y-hide-images main#main-content .slide,
body.desa-a11y-hide-images main#main-content [style*="background-image"] {
    background-image: none !important;
}

/* --------------------------------------------------------------------------
   2.12 Jeda Animasi (CSS Murni, 0 JS Interval)
   -------------------------------------------------------------------------- */
body.desa-a11y-pause-anim *,
body.desa-a11y-pause-anim *::before,
body.desa-a11y-pause-anim *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

/* --------------------------------------------------------------------------
   2.13 Kursor Besar Kontras Tinggi Hitam-Kuning (Offline Data-URI SVG)
   -------------------------------------------------------------------------- */
body.desa-a11y-big-cursor,
body.desa-a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M3 2 L3 30 L11 23 L17 34 L22 31 L16 20 L27 20 Z' fill='%23FFD500' stroke='%23000000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important;
}

body.desa-a11y-big-cursor a,
body.desa-a11y-big-cursor button,
body.desa-a11y-big-cursor [role="button"],
body.desa-a11y-big-cursor input[type="submit"],
body.desa-a11y-big-cursor input[type="button"],
body.desa-a11y-big-cursor select,
body.desa-a11y-big-cursor summary,
body.desa-a11y-big-cursor label {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath d='M12 3 L12 18 L8 15 C6 14 4 16 5 18 L12 31 C13 33 15 34 18 34 L25 34 C29 34 31 31 31 27 L31 16 C31 14 29 13 27 14 L27 12 C27 10 25 9 23 10 L23 9 C23 7 21 6 19 7 L19 3 C19 1 12 1 12 3 Z' fill='%23FFD500' stroke='%23000000' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") 12 3, pointer !important;
}

/* --------------------------------------------------------------------------
   2.14 Mode Klik-Baca & Sorotan Sedang Dibaca (TTS)
   -------------------------------------------------------------------------- */
body.desa-a11y-click-read main#main-content p:hover,
body.desa-a11y-click-read main#main-content h1:hover,
body.desa-a11y-click-read main#main-content h2:hover,
body.desa-a11y-click-read main#main-content h3:hover,
body.desa-a11y-click-read main#main-content h4:hover,
body.desa-a11y-click-read main#main-content h5:hover,
body.desa-a11y-click-read main#main-content h6:hover,
body.desa-a11y-click-read main#main-content li:hover,
body.desa-a11y-click-read main#main-content td:hover,
body.desa-a11y-click-read main#main-content th:hover,
body.desa-a11y-click-read main#main-content blockquote:hover,
body.desa-a11y-click-read main#main-content figcaption:hover {
    cursor: pointer !important;
    outline: 2px dashed #1D4ED8 !important;
    outline-offset: 2px;
    background-color: rgba(29, 78, 216, 0.08) !important;
    border-radius: 4px;
}

.desa-a11y-speaking {
    outline: 3px solid #1D4ED8 !important;
    outline-offset: 2px !important;
    background-color: rgba(255, 230, 0, 0.35) !important;
    border-radius: 4px;
}

body.desa-a11y-hc-dark .desa-a11y-speaking {
    outline: 3px solid #FFE600 !important;
    background-color: #1E3A8A !important;
    color: #FFFFFF !important;
}

body.desa-a11y-hc-light .desa-a11y-speaking {
    outline: 3px solid #0000CC !important;
    background-color: #FFF3A1 !important;
    color: #000000 !important;
}

/* ==========================================================================
   3. WIDGET UI AKSESIBILITAS (#desa-a11y-root)
   Terisolasi dari style tema agar selalu solid, modern, dan kontras tinggi
   ========================================================================== */
#desa-a11y-root {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-align: left !important;
    color: #111827 !important;
    box-sizing: border-box;
}

#desa-a11y-root *,
#desa-a11y-root *::before,
#desa-a11y-root *::after {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-style: normal !important;
}

/* Tombol Floating Kiri-Bawah (Bebas overlap #scrollTop di kanan-bawah) */
#desa-a11y-toggle {
    position: fixed !important;
    left: 16px;
    bottom: 20px;
    z-index: 100000;
    width: 52px;
    height: 52px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    background: #0F3D6E !important;
    color: #FFFFFF !important;
    border: 3px solid #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28) !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

#desa-a11y-toggle:hover {
    background: #0B2E54 !important;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.36) !important;
}

#desa-a11y-toggle[aria-expanded="true"],
#desa-a11y-toggle.is-open {
    background: #1D4ED8 !important;
}

#desa-a11y-toggle svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
    flex-shrink: 0;
}

#desa-a11y-toggle[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #0F172A;
    color: #FFFFFF;
    border: 1px solid #FFD500;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#desa-a11y-toggle[data-tooltip]:hover::after,
#desa-a11y-toggle[data-tooltip]:focus-visible::after {
    opacity: 1;
    visibility: visible;
}

.desa-a11y-toggle-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FFD500 !important;
    color: #000000 !important;
    border: 2px solid #0F3D6E !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Panel Drawer Kiri-Bawah */
#desa-a11y-panel {
    position: fixed !important;
    left: 16px;
    bottom: 82px;
    width: 350px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 104px);
    z-index: 100001;
    background: #FFFFFF !important;
    color: #111827 !important;
    border: 2px solid #0F3D6E !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28) !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#desa-a11y-panel.is-open {
    display: flex !important;
}

/* Header Panel */
.desa-a11y-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    background: #0F3D6E !important;
    color: #FFFFFF !important;
    flex-shrink: 0;
}

.desa-a11y-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.desa-a11y-close {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.65) !important;
    border-radius: 8px !important;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.desa-a11y-close:hover {
    background: rgba(255, 255, 255, 0.28) !important;
}

/* Tab Navigasi Panel */
.desa-a11y-tabs {
    display: flex;
    align-items: stretch;
    gap: 6px;
    padding: 6px 8px;
    background: #F1F5F9 !important;
    border-bottom: 1px solid #CBD5E1 !important;
    flex-shrink: 0;
}

.desa-a11y-tab {
    flex: 1 1 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent !important;
    color: #1E293B !important;
    border: 1.5px solid transparent !important;
    border-radius: 8px !important;
    padding: 8px 10px !important;
    min-height: 38px;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.desa-a11y-tab:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

.desa-a11y-tab.is-active,
.desa-a11y-tab[aria-selected="true"] {
    background: #0F3D6E !important;
    color: #FFFFFF !important;
    border-color: #0F3D6E !important;
}

.desa-a11y-tabpanel[hidden] {
    display: none !important;
}

/* Body Konten Panel */
.desa-a11y-body {
    padding: 12px 14px;
    overflow-y: auto;
    flex: 1 1 auto;
    background: #FFFFFF !important;
    color: #111827 !important;
    overscroll-behavior: contain;
}

.desa-a11y-section {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2E8F0;
}

.desa-a11y-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.desa-a11y-section-title {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em !important;
    color: #0F3D6E !important;
    line-height: 1.3 !important;
}

/* Profil Preset 1-Klik */
.desa-a11y-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.desa-a11y-profile-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px !important;
    background: #F8FAFC !important;
    color: #111827 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-profile-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.desa-a11y-profile-btn:hover {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
    color: #0F172A !important;
}

.desa-a11y-profile-btn.is-active,
.desa-a11y-profile-btn[aria-pressed="true"] {
    background: #1D4ED8 !important;
    border-color: #1E40AF !important;
    color: #FFFFFF !important;
}

.desa-a11y-profile-btn span,
.desa-a11y-profile-btn small {
    color: inherit !important;
    line-height: 1.2 !important;
}

.desa-a11y-profile-btn small {
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.9;
}

/* Grid & Tombol Fitur */
.desa-a11y-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.desa-a11y-grid-1 {
    grid-template-columns: 1fr;
}

.desa-a11y-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.desa-a11y-btn {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-height: 44px;
    padding: 8px 10px !important;
    background: #F8FAFC !important;
    color: #111827 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    text-align: center !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-btn:hover {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
    color: #0F172A !important;
}

.desa-a11y-btn.is-active,
.desa-a11y-btn[aria-pressed="true"] {
    background: #1D4ED8 !important;
    border-color: #1E40AF !important;
    color: #FFFFFF !important;
}

.desa-a11y-btn span,
.desa-a11y-btn small {
    color: inherit !important;
    line-height: 1.2 !important;
}

.desa-a11y-btn small,
.desa-a11y-btn .desa-a11y-btn-sub {
    font-size: 11px !important;
    font-weight: 500 !important;
    opacity: 0.9;
}

.desa-a11y-btn-sm {
    min-height: 36px;
    padding: 6px 6px !important;
    font-size: 12px !important;
}

/* Stepper Ukuran Huruf */
.desa-a11y-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    margin-bottom: 8px;
    background: #F8FAFC !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px;
}

.desa-a11y-stepper button {
    appearance: none;
    -webkit-appearance: none;
    min-width: 44px;
    min-height: 38px;
    padding: 6px 12px !important;
    background: #FFFFFF !important;
    color: #0F3D6E !important;
    border: 1.5px solid #0F3D6E !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-stepper button:hover:not(:disabled) {
    background: #0F3D6E !important;
    color: #FFFFFF !important;
}

.desa-a11y-stepper button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.desa-a11y-stepper-val,
.desa-a11y-stepper > span {
    flex: 1 1 auto;
    text-align: center !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    line-height: 1.2 !important;
}

/* Daftar Navigasi Difabel & Peta Heading */
.desa-a11y-nav-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.desa-a11y-nav-list li {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
}

.desa-a11y-nav-item {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    padding: 8px 10px !important;
    background: #F8FAFC !important;
    color: #111827 !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    text-align: left !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-nav-item:hover {
    background: #EFF6FF !important;
    border-color: #1D4ED8 !important;
    color: #1D4ED8 !important;
}

.desa-a11y-nav-item .desa-a11y-nav-level,
.desa-a11y-nav-item .desa-a11y-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #0F3D6E !important;
    color: #FFFFFF !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    flex-shrink: 0;
}

.desa-a11y-nav-item[data-level="2"],
.desa-a11y-nav-item.desa-a11y-nav-h2 {
    padding-left: 14px !important;
}

.desa-a11y-nav-item[data-level="3"],
.desa-a11y-nav-item.desa-a11y-nav-h3 {
    padding-left: 22px !important;
}

.desa-a11y-nav-item[data-level="4"],
.desa-a11y-nav-item.desa-a11y-nav-h4 {
    padding-left: 30px !important;
}

#desa-a11y-root kbd {
    display: inline-block;
    padding: 2px 6px;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0F172A !important;
    background: #E2E8F0 !important;
    border: 1px solid #94A3B8 !important;
    border-radius: 4px;
}

/* Pernyataan Aksesibilitas (Tab Navigasi Difabel) */
.desa-a11y-statement {
    padding: 10px 12px;
    background: #F8FAFC !important;
    color: #1E293B !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 8px;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.desa-a11y-statement h4,
.desa-a11y-statement strong {
    color: #0F3D6E !important;
    font-weight: 700 !important;
}

.desa-a11y-statement p {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #1E293B !important;
}

.desa-a11y-statement p:last-child {
    margin-bottom: 0 !important;
}

/* Notice / Informasi */
.desa-a11y-notice {
    margin-top: 8px;
    padding: 8px 10px;
    background: #FEF3C7 !important;
    color: #111827 !important;
    border: 1px solid #B45309 !important;
    border-radius: 6px;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

/* Footer Panel, Posisi & Reset */
.desa-a11y-footer {
    padding: 10px 14px;
    background: #F8FAFC !important;
    border-top: 1px solid #CBD5E1 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-shrink: 0;
}

.desa-a11y-pos-btn {
    appearance: none;
    -webkit-appearance: none;
    min-height: 42px;
    padding: 8px 10px !important;
    background: #FFFFFF !important;
    color: #0F3D6E !important;
    border: 1.5px solid #0F3D6E !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-pos-btn:hover {
    background: #0F3D6E !important;
    color: #FFFFFF !important;
}

.desa-a11y-reset {
    appearance: none;
    -webkit-appearance: none;
    flex: 1 1 auto;
    min-height: 42px;
    padding: 8px 14px !important;
    background: #FFFFFF !important;
    color: #991B1B !important;
    border: 1.5px solid #991B1B !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.desa-a11y-reset:hover {
    background: #991B1B !important;
    color: #FFFFFF !important;
}

/* Floating TTS Control Bar (Bawah Tengah) */
#desa-a11y-tts-bar {
    position: fixed !important;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100001;
    background: #0F172A !important;
    color: #FFFFFF !important;
    border: 2px solid #FFD500 !important;
    border-radius: 999px !important;
    padding: 8px 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: calc(100vw - 24px);
    flex-wrap: wrap;
}

#desa-a11y-tts-bar.is-active {
    display: flex !important;
}

#desa-a11y-tts-bar button {
    appearance: none;
    -webkit-appearance: none;
    min-height: 34px;
    padding: 5px 11px !important;
    background: #1E293B !important;
    color: #FFFFFF !important;
    border: 1px solid #64748B !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

#desa-a11y-tts-bar button:hover {
    background: #FFD500 !important;
    color: #000000 !important;
    border-color: #FFD500 !important;
}

.desa-a11y-tts-status {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #FFD500 !important;
    padding: 0 4px;
    line-height: 1.2 !important;
    white-space: nowrap;
}

/* Garis Panduan Baca */
#desa-a11y-guide {
    position: fixed !important;
    left: 0;
    right: 0;
    top: -100px;
    height: 14px;
    background: rgba(255, 213, 0, 0.28);
    border-top: 2px solid #0F3D6E;
    border-bottom: 2px solid #0F3D6E;
    pointer-events: none;
    z-index: 99999;
    display: none;
}

#desa-a11y-guide.is-active {
    display: block !important;
}

/* Masker Bacaan (Reading Mask) */
.desa-a11y-mask {
    position: fixed !important;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.58);
    pointer-events: none;
    z-index: 99998;
    display: none;
}

.desa-a11y-mask.is-active {
    display: block !important;
}

#desa-a11y-mask-top {
    top: 0;
    border-bottom: 2px solid #FFD500;
}

#desa-a11y-mask-bottom {
    bottom: 0;
    border-top: 2px solid #FFD500;
}

/* Posisi Widget Kanan (Aman di atas #scrollTop kanan bawah) */
#desa-a11y-root.desa-a11y-pos-right #desa-a11y-toggle {
    left: auto;
    right: 16px;
    bottom: 82px;
}

#desa-a11y-root.desa-a11y-pos-right #desa-a11y-toggle[data-tooltip]::after {
    left: auto;
    right: 60px;
}

#desa-a11y-root.desa-a11y-pos-right #desa-a11y-panel {
    left: auto;
    right: 16px;
    bottom: 142px;
    max-height: calc(100vh - 160px);
}

/* ==========================================================================
   4. RESPONSIVITAS MOBILE, REDUCED MOTION & PRINT
   ========================================================================== */
@media (max-width: 640px) {
    #desa-a11y-tts-bar {
        bottom: 76px;
        border-radius: 14px !important;
        padding: 8px 10px;
        gap: 6px;
        width: calc(100vw - 20px);
    }
}

@media (max-width: 520px) {
    #desa-a11y-toggle {
        width: 48px;
        height: 48px;
        left: 12px;
        bottom: 16px;
    }

    #desa-a11y-toggle[data-tooltip]::after {
        display: none;
    }

    #desa-a11y-panel {
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        bottom: 74px;
        max-height: 76vh;
    }

    #desa-a11y-root.desa-a11y-pos-right #desa-a11y-toggle {
        left: auto;
        right: 12px;
        bottom: 76px;
    }

    #desa-a11y-root.desa-a11y-pos-right #desa-a11y-panel {
        left: 8px;
        right: 8px;
        width: auto;
        max-width: none;
        bottom: 132px;
        max-height: calc(100vh - 148px);
    }
}

@media (max-width: 340px) {
    .desa-a11y-grid,
    .desa-a11y-profiles {
        grid-template-columns: 1fr;
    }

    .desa-a11y-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    #desa-a11y-root *,
    .desa-a11y-skip-link {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

@media print {
    #desa-a11y-root,
    #desa-a11y-tts-bar,
    #desa-a11y-guide,
    .desa-a11y-mask,
    .desa-a11y-skip-link {
        display: none !important;
    }
}
