/* IPA Accessibility Panel + feature effects
   Panel UI excluded from page-level filters via isolation. */

@font-face {
    font-family: "OpenDyslexic";
    src: url("https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/compiled/OpenDyslexic-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "OpenDyslexic";
    src: url("https://cdn.jsdelivr.net/gh/antijingoist/open-dyslexic@master/compiled/OpenDyslexic-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ── Panel shell ─────────────────────────────────────────────────────────── */
.ipa-a11y-panel {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: stretch;
    /* Layout axis stays LTR so flex-start = physical left, flex-end = physical right */
    direction: ltr;
    justify-content: flex-end;
    pointer-events: none;
}

.ipa-a11y-panel[hidden] {
    display: none !important;
    pointer-events: none !important;
}

/* Only backdrop + shell capture clicks — page stays usable if panel state glitches */
.ipa-a11y-panel:not([hidden]) {
    pointer-events: none;
}

.ipa-a11y-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(1, 46, 93, 0.35);
    pointer-events: auto;
}

.ipa-a11y-panel__shell {
    position: relative;
    z-index: 1;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    width: min(460px, 100vw);
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    background: #eef2f6;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
    transform-origin: top right;
    isolation: isolate;
}

/* Physical left (Arabic default + Move Widget → Left) */
html.ipa-a11y-widget-left .ipa-a11y-panel {
    justify-content: flex-start;
}

html.ipa-a11y-widget-left .ipa-a11y-panel__shell {
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
    transform-origin: top left;
}

.ipa-a11y-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #012e5d;
    color: #fff;
    flex-shrink: 0;
}

.ipa-a11y-panel__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.ipa-a11y-panel__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ipa-a11y-panel__close:hover,
.ipa-a11y-panel__close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ipa-a11y-panel__toolbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #fff;
    border-bottom: 1px solid #d7dee7;
    flex-shrink: 0;
}

.ipa-a11y-panel__lang,
.ipa-a11y-panel__scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.ipa-a11y-panel__lang-label,
.ipa-a11y-panel__scale-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #012e5d;
}

.ipa-a11y-panel__lang-btns,
.ipa-a11y-panel__scale-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.ipa-a11y-panel__lang-btns {
    gap: 0;
    padding: 3px;
    border: 1px solid #c5d0dc;
    border-radius: 999px;
    background: #eef2f6;
}

.ipa-a11y-panel__lang-btn {
    min-width: 42px;
    height: 30px;
    padding: 0 0.75rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #012e5d;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.ipa-a11y-panel__lang-btn.is-active {
    background: #012e5d;
    border-color: #012e5d;
    color: #fff;
    box-shadow: 0 1px 3px rgba(1, 46, 93, 0.25);
}

.ipa-a11y-panel__shell[dir="rtl"] .ipa-a11y-panel__title,
.ipa-a11y-panel__shell[dir="rtl"] .ipa-a11y-panel__lang-label,
.ipa-a11y-panel__shell[dir="rtl"] .ipa-a11y-panel__scale-label,
.ipa-a11y-panel__shell[dir="rtl"] .ipa-a11y-card__label {
    font-family: inherit;
}

.ipa-a11y-panel__scale-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #c5d0dc;
    border-radius: 8px;
    background: #fff;
    color: #012e5d;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.ipa-a11y-panel__scale-value {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: #012e5d;
}

.ipa-a11y-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1rem;
}

/* Level 2 = original panel CSS size, always full viewport height */
.ipa-a11y-panel__shell[data-ipa-a11y-scale-level="2"] {
    transform: none !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* Only when enlarged/shrunk via resize steps */
.ipa-a11y-panel__shell.is-scaled {
    overflow: hidden;
}

.ipa-a11y-panel__shell.is-scaled .ipa-a11y-panel__body {
    min-height: 0;
}

.ipa-a11y-panel__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.ipa-a11y-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    min-height: 108px;
    padding: 0.85rem 0.5rem 0.7rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(1, 46, 93, 0.06);
    color: #111;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ipa-a11y-card:hover,
.ipa-a11y-card:focus-visible {
    border-color: rgba(1, 46, 93, 0.35);
    outline: none;
}

.ipa-a11y-card.is-active {
    border-color: #012e5d;
    box-shadow: 0 0 0 1px #012e5d;
}

.ipa-a11y-card__check {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #012e5d;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.ipa-a11y-card.is-active .ipa-a11y-card__check {
    display: inline-flex;
}

.ipa-a11y-card__icon {
    font-size: 1.65rem;
    line-height: 1;
    color: #111;
}

.ipa-a11y-card__label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #111;
}

.ipa-a11y-panel__footer {
    flex-shrink: 0;
    padding: 0.85rem 1rem 1.1rem;
    background: #fff;
    border-top: 1px solid #d7dee7;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ipa-a11y-panel__move-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    background: #f7f9fb;
    color: #012e5d;
    font-weight: 600;
    cursor: pointer;
}

.ipa-a11y-panel__move-toggle span {
    flex: 1;
    text-align: start;
}

.ipa-a11y-panel__move-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.ipa-a11y-panel__move-options[hidden] {
    display: none;
}

.ipa-a11y-panel__move-options button {
    padding: 0.55rem 0.75rem;
    border: 1px solid #c5d0dc;
    border-radius: 8px;
    background: #fff;
    color: #012e5d;
    font-weight: 600;
    cursor: pointer;
}

.ipa-a11y-panel__move-options button.is-active {
    background: #012e5d;
    border-color: #012e5d;
    color: #fff;
}

.ipa-a11y-panel__reset {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-radius: 10px;
    background: #012e5d;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.ipa-a11y-panel__reset:hover,
.ipa-a11y-panel__reset:focus-visible {
    background: #02407f;
}

@media (max-width: 480px) {
    .ipa-a11y-panel__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ipa-a11y-panel__shell {
        width: 100vw;
    }
}

/* ── Floating dock position ──────────────────────────────────────────────── */
/* Below a11y panel so the open menu covers the widget (not the reverse). */
.govbh-floatinglist-vertical {
    z-index: 10040 !important;
}

/* When panel is open, keep dock clearly behind the menu + backdrop */
html.ipa-a11y-open .govbh-floatinglist-vertical {
    z-index: 10040 !important;
}

/* Physical left (Arabic default + Move Widget → Left) */
html.ipa-a11y-widget-left .govbh-floatinglist-vertical {
    right: auto !important;
    left: 27px !important;
}

/* Physical right (English default + Move Widget → Right on Arabic) */
html.ipa-a11y-widget-right .govbh-floatinglist-vertical {
    left: auto !important;
    right: 27px !important;
}

/* Zebra tooltips above the floating dock; still below open a11y panel */
.Zebra_Tooltip {
    z-index: 10045 !important;
}

html.ipa-a11y-open .Zebra_Tooltip {
    z-index: 10045 !important;
}

/* ── Feature effects ─────────────────────────────────────────────────────── */
/* Dark mode: use existing html.govbh-darkmode only (no custom contrast overrides). */

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

html.ipa-a11y-contrast-light body,
html.ipa-a11y-contrast-light #govbh-main,
html.ipa-a11y-contrast-light .govbh-section,
html.ipa-a11y-contrast-light .govbh-card {
    background: #fff !important;
    color: #000 !important;
}

html.ipa-a11y-contrast-light a:not(.ipa-a11y-panel a):not(.ipa-a11y-structure a) {
    color: #0000ee !important;
}

/*
 * Text / letter spacing — main + header.
 * Default (off) → 1 → 2 → 3: each step increases spacing.
 * One-row nav using full header width; no mid-word breaks; no horizontal scroll.
 */
html.ipa-a11y-letter-spacing-1,
html.ipa-a11y-letter-spacing-2,
html.ipa-a11y-letter-spacing-3 {
    overflow-x: clip !important;
    max-width: 100%;
}

html.ipa-a11y-letter-spacing-1 body,
html.ipa-a11y-letter-spacing-2 body,
html.ipa-a11y-letter-spacing-3 body {
    overflow-x: clip !important;
    max-width: 100%;
}

html.ipa-a11y-letter-spacing-1 #govbh-main,
html.ipa-a11y-letter-spacing-1 #govbh-header,
html.ipa-a11y-letter-spacing-2 #govbh-main,
html.ipa-a11y-letter-spacing-2 #govbh-header,
html.ipa-a11y-letter-spacing-3 #govbh-main,
html.ipa-a11y-letter-spacing-3 #govbh-header {
    max-width: 100%;
}

html.ipa-a11y-letter-spacing-1 #govbh-main,
html.ipa-a11y-letter-spacing-2 #govbh-main,
html.ipa-a11y-letter-spacing-3 #govbh-main {
    overflow-x: clip;
}

/* Step 1: first increase from default */
html.ipa-a11y-letter-spacing-1 #govbh-main,
html.ipa-a11y-letter-spacing-1 #govbh-header {
    letter-spacing: 0.04em;
    word-spacing: 0.08em;
}

/* Step 2 */
html.ipa-a11y-letter-spacing-2 #govbh-main,
html.ipa-a11y-letter-spacing-2 #govbh-header {
    letter-spacing: 0.07em;
    word-spacing: 0.12em;
}

/* Step 3 */
html.ipa-a11y-letter-spacing-3 #govbh-main,
html.ipa-a11y-letter-spacing-3 #govbh-header {
    letter-spacing: 0.1em;
    word-spacing: 0.16em;
}

/* Wrap page text between words only — never split "Home" into Hom / e */
html.ipa-a11y-letter-spacing-1 #govbh-main p,
html.ipa-a11y-letter-spacing-1 #govbh-main li,
html.ipa-a11y-letter-spacing-1 #govbh-main h1,
html.ipa-a11y-letter-spacing-1 #govbh-main h2,
html.ipa-a11y-letter-spacing-1 #govbh-main h3,
html.ipa-a11y-letter-spacing-1 #govbh-main h4,
html.ipa-a11y-letter-spacing-1 #govbh-main td,
html.ipa-a11y-letter-spacing-1 #govbh-main th,
html.ipa-a11y-letter-spacing-2 #govbh-main p,
html.ipa-a11y-letter-spacing-2 #govbh-main li,
html.ipa-a11y-letter-spacing-2 #govbh-main h1,
html.ipa-a11y-letter-spacing-2 #govbh-main h2,
html.ipa-a11y-letter-spacing-2 #govbh-main h3,
html.ipa-a11y-letter-spacing-2 #govbh-main h4,
html.ipa-a11y-letter-spacing-2 #govbh-main td,
html.ipa-a11y-letter-spacing-2 #govbh-main th,
html.ipa-a11y-letter-spacing-3 #govbh-main p,
html.ipa-a11y-letter-spacing-3 #govbh-main li,
html.ipa-a11y-letter-spacing-3 #govbh-main h1,
html.ipa-a11y-letter-spacing-3 #govbh-main h2,
html.ipa-a11y-letter-spacing-3 #govbh-main h3,
html.ipa-a11y-letter-spacing-3 #govbh-main h4,
html.ipa-a11y-letter-spacing-3 #govbh-main td,
html.ipa-a11y-letter-spacing-3 #govbh-main th {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

/*
 * Header nav at spacing 1–3:
 * - ONE row (no next-line wrap)
 * - full header width
 * - letter-spacing increases each step
 */
html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu,
html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu {
    width: 100%;
    max-width: 100%;
}

html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu > ul,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu > ul,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    /* Pack items evenly — avoid space-between isolating Contact Us on the right */
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 0.25rem 0.65rem;
}

html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu > ul > li,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu > ul > li,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu > ul > li {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    text-align: start;
}

html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-head__secondary-menu a,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-head__secondary-menu a,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-head__secondary-menu a {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu > ul > li > a {
    display: inline-block;
    max-width: 100%;
    padding-inline: 0.35rem !important;
    box-sizing: border-box;
}

html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-1 #govbh-header .govbh-menu__navmenu-home > a {
    letter-spacing: 0.04em !important;
    word-spacing: 0.08em !important;
}

html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-2 #govbh-header .govbh-menu__navmenu-home > a {
    letter-spacing: 0.07em !important;
    word-spacing: 0.12em !important;
}

html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-letter-spacing-3 #govbh-header .govbh-menu__navmenu-home > a {
    letter-spacing: 0.1em !important;
    word-spacing: 0.16em !important;
}

/* A11y chrome must never inherit spacing (panel / dock stay compact) */
.ipa-a11y-panel,
.ipa-a11y-panel *,
.ipa-a11y-structure,
.ipa-a11y-structure *,
#ipa-a11y-exit-reading-guide,
.govbh-floatinglist-vertical,
.govbh-floatinglist-vertical * {
    letter-spacing: normal !important;
    word-spacing: normal !important;
}

html.ipa-a11y-font-size-1 {
    font-size: 106% !important;
}

html.ipa-a11y-font-size-2 {
    font-size: 115% !important;
}

html.ipa-a11y-font-size-3 {
    font-size: 125% !important;
}

/*
 * Font size — same pattern as letter-spacing:
 * Default (off) → 1 → 2 → 3 (each step larger).
 * Header nav scales too (overrides fixed px), full width, one row.
 */
html.ipa-a11y-font-size-1,
html.ipa-a11y-font-size-2,
html.ipa-a11y-font-size-3 {
    overflow-x: clip !important;
    max-width: 100%;
}

html.ipa-a11y-font-size-1 body,
html.ipa-a11y-font-size-2 body,
html.ipa-a11y-font-size-3 body {
    overflow-x: clip !important;
    max-width: 100%;
}

/* Keep a11y panel chrome at a stable size */
html.ipa-a11y-font-size-1 .ipa-a11y-panel,
html.ipa-a11y-font-size-2 .ipa-a11y-panel,
html.ipa-a11y-font-size-3 .ipa-a11y-panel,
html.ipa-a11y-font-size-1 .ipa-a11y-structure,
html.ipa-a11y-font-size-2 .ipa-a11y-structure,
html.ipa-a11y-font-size-3 .ipa-a11y-structure,
html.ipa-a11y-font-size-1 .govbh-floatinglist-vertical,
html.ipa-a11y-font-size-2 .govbh-floatinglist-vertical,
html.ipa-a11y-font-size-3 .govbh-floatinglist-vertical {
    font-size: 16px !important;
}

html.ipa-a11y-font-size-1 #govbh-header .govbh-menu,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu,
html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu {
    width: 100%;
    max-width: 100%;
}

html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu > ul,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu > ul,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu > ul {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    /* Pack items evenly — avoid space-between isolating Contact Us on the right */
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    gap: 0.25rem 0.65rem;
}

html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu > ul > li,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu > ul > li,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu > ul > li {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
    text-align: start;
}

html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-1 #govbh-header .govbh-head__secondary-menu a,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-2 #govbh-header .govbh-head__secondary-menu a,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-3 #govbh-header .govbh-head__secondary-menu a {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    display: inline-block;
    max-width: 100%;
    padding-inline: 0.35rem !important;
    box-sizing: border-box;
}

/* Override fixed px nav sizes so steps are visible */
html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-1 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-1 #govbh-header .govbh-head__secondary-menu a {
    font-size: 15px !important;
}

html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-2 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-2 #govbh-header .govbh-head__secondary-menu a {
    font-size: 16px !important;
}

html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu > ul > li > a,
html.ipa-a11y-font-size-3 #govbh-header .govbh-menu__navmenu-home > a,
html.ipa-a11y-font-size-3 #govbh-header .govbh-head__secondary-menu a {
    font-size: 17px !important;
}

html.ipa-a11y-font-size-1 #govbh-header .govbh-masthead-head,
html.ipa-a11y-font-size-1 #govbh-header .govbh-head,
html.ipa-a11y-font-size-2 #govbh-header .govbh-masthead-head,
html.ipa-a11y-font-size-2 #govbh-header .govbh-head,
html.ipa-a11y-font-size-3 #govbh-header .govbh-masthead-head,
html.ipa-a11y-font-size-3 #govbh-header .govbh-head {
    font-size: inherit;
}

html.ipa-a11y-underline-links a[href]:not(.ipa-a11y-panel a):not(.ipa-a11y-structure a) {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

html.ipa-a11y-dyslexia-font body,
html.ipa-a11y-dyslexia-font body *:not(i):not(.ph):not([class*="ph-"]) {
    font-family: "OpenDyslexic", "Noto Kufi Arabic", sans-serif !important;
}

html[dir="rtl"].ipa-a11y-dyslexia-font body,
html[dir="rtl"].ipa-a11y-dyslexia-font body *:not(i):not(.ph):not([class*="ph-"]),
html[lang^="ar"].ipa-a11y-dyslexia-font body,
html[lang^="ar"].ipa-a11y-dyslexia-font body *:not(i):not(.ph):not([class*="ph-"]) {
    font-family: "Noto Sans Arabic", "Noto Kufi Arabic", sans-serif !important;
}

html.ipa-a11y-hide-images img,
html.ipa-a11y-hide-images picture,
html.ipa-a11y-hide-images video,
html.ipa-a11y-hide-images svg,
html.ipa-a11y-hide-images object,
html.ipa-a11y-hide-images embed,
html.ipa-a11y-hide-images [role="img"],
html.ipa-a11y-hide-images .govbh-image-block,
html.ipa-a11y-hide-images .govbh-card__head-image,
html.ipa-a11y-hide-images .govbh-newscard__image,
html.ipa-a11y-hide-images .govbh-heroslider,
html.ipa-a11y-hide-images .govbh-carousel__slider img,
html.ipa-a11y-hide-images .ipa-page-share__list img,
html.ipa-a11y-hide-images .govbh-footer__solcial-widget img,
html.ipa-a11y-hide-images .govbh-footer__logos img,
html.ipa-a11y-hide-images .govbh-head__logo img,
html.ipa-a11y-hide-images .govbh-menu__logo img,
html.ipa-a11y-hide-images .govbh-masthead img {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Keep accessibility panel + floating dock usable while images are hidden */
html.ipa-a11y-hide-images .ipa-a11y-panel img,
html.ipa-a11y-hide-images .ipa-a11y-panel svg,
html.ipa-a11y-hide-images .ipa-a11y-panel [role="img"],
html.ipa-a11y-hide-images .govbh-floatinglist-vertical img,
html.ipa-a11y-hide-images .govbh-floatinglist-vertical svg,
html.ipa-a11y-hide-images .govbh-floatinglist-vertical [role="img"],
html.ipa-a11y-hide-images .govbh-scrollToTopBtn,
html.ipa-a11y-hide-images .govbh-scrollToTopBtn * {
    visibility: visible !important;
    opacity: 1 !important;
}

html.ipa-a11y-hide-images .govbh-card__head-image,
html.ipa-a11y-hide-images .govbh-newscard__image,
html.ipa-a11y-hide-images .govbh-image-block,
html.ipa-a11y-hide-images picture,
html.ipa-a11y-hide-images .govbh-head__logo,
html.ipa-a11y-hide-images .govbh-menu__logo {
    background: #dbe4ee !important;
    background-image: none !important;
    min-height: 2.5rem;
}

html.ipa-a11y-hide-images [style*="background-image"],
html.ipa-a11y-hide-images [style*="background:url"],
html.ipa-a11y-hide-images [style*="background: url"] {
    background-image: none !important;
}

html.ipa-a11y-pause-animations *,
html.ipa-a11y-pause-animations *::before,
html.ipa-a11y-pause-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

html.ipa-a11y-text-align-1 #govbh-main,
html.ipa-a11y-text-align-1 #govbh-main * {
    text-align: center !important;
}

html.ipa-a11y-text-align-2 #govbh-main,
html.ipa-a11y-text-align-2 #govbh-main * {
    text-align: justify !important;
}

html.ipa-a11y-line-height-1 body,
html.ipa-a11y-line-height-1 #govbh-main,
html.ipa-a11y-line-height-1 #govbh-main p,
html.ipa-a11y-line-height-1 #govbh-main li,
html.ipa-a11y-line-height-1 #govbh-main dt,
html.ipa-a11y-line-height-1 #govbh-main dd,
html.ipa-a11y-line-height-1 #govbh-main blockquote,
html.ipa-a11y-line-height-1 #govbh-main figcaption,
html.ipa-a11y-line-height-1 #govbh-main td,
html.ipa-a11y-line-height-1 #govbh-main th,
html.ipa-a11y-line-height-1 #govbh-main h1,
html.ipa-a11y-line-height-1 #govbh-main h2,
html.ipa-a11y-line-height-1 #govbh-main h3,
html.ipa-a11y-line-height-1 #govbh-main h4,
html.ipa-a11y-line-height-1 #govbh-main h5,
html.ipa-a11y-line-height-1 #govbh-main h6,
html.ipa-a11y-line-height-1 #govbh-main .h1,
html.ipa-a11y-line-height-1 #govbh-main .h2,
html.ipa-a11y-line-height-1 #govbh-main .h3,
html.ipa-a11y-line-height-1 #govbh-main .h4,
html.ipa-a11y-line-height-1 #govbh-main .h5,
html.ipa-a11y-line-height-1 #govbh-main .h6,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h1,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h2,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h3,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h4,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h5,
html.ipa-a11y-line-height-1 #govbh-main .govbh-fs-h6,
html.ipa-a11y-line-height-1 #govbh-main .govbh-abstract,
html.ipa-a11y-line-height-1 #govbh-main .govbh-abstract p {
    line-height: 1.7 !important;
}

html.ipa-a11y-line-height-2 body,
html.ipa-a11y-line-height-2 #govbh-main,
html.ipa-a11y-line-height-2 #govbh-main p,
html.ipa-a11y-line-height-2 #govbh-main li,
html.ipa-a11y-line-height-2 #govbh-main dt,
html.ipa-a11y-line-height-2 #govbh-main dd,
html.ipa-a11y-line-height-2 #govbh-main blockquote,
html.ipa-a11y-line-height-2 #govbh-main figcaption,
html.ipa-a11y-line-height-2 #govbh-main td,
html.ipa-a11y-line-height-2 #govbh-main th,
html.ipa-a11y-line-height-2 #govbh-main h1,
html.ipa-a11y-line-height-2 #govbh-main h2,
html.ipa-a11y-line-height-2 #govbh-main h3,
html.ipa-a11y-line-height-2 #govbh-main h4,
html.ipa-a11y-line-height-2 #govbh-main h5,
html.ipa-a11y-line-height-2 #govbh-main h6,
html.ipa-a11y-line-height-2 #govbh-main .h1,
html.ipa-a11y-line-height-2 #govbh-main .h2,
html.ipa-a11y-line-height-2 #govbh-main .h3,
html.ipa-a11y-line-height-2 #govbh-main .h4,
html.ipa-a11y-line-height-2 #govbh-main .h5,
html.ipa-a11y-line-height-2 #govbh-main .h6,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h1,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h2,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h3,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h4,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h5,
html.ipa-a11y-line-height-2 #govbh-main .govbh-fs-h6,
html.ipa-a11y-line-height-2 #govbh-main .govbh-abstract,
html.ipa-a11y-line-height-2 #govbh-main .govbh-abstract p {
    line-height: 1.95 !important;
}

html.ipa-a11y-line-height-3 body,
html.ipa-a11y-line-height-3 #govbh-main,
html.ipa-a11y-line-height-3 #govbh-main p,
html.ipa-a11y-line-height-3 #govbh-main li,
html.ipa-a11y-line-height-3 #govbh-main dt,
html.ipa-a11y-line-height-3 #govbh-main dd,
html.ipa-a11y-line-height-3 #govbh-main blockquote,
html.ipa-a11y-line-height-3 #govbh-main figcaption,
html.ipa-a11y-line-height-3 #govbh-main td,
html.ipa-a11y-line-height-3 #govbh-main th,
html.ipa-a11y-line-height-3 #govbh-main h1,
html.ipa-a11y-line-height-3 #govbh-main h2,
html.ipa-a11y-line-height-3 #govbh-main h3,
html.ipa-a11y-line-height-3 #govbh-main h4,
html.ipa-a11y-line-height-3 #govbh-main h5,
html.ipa-a11y-line-height-3 #govbh-main h6,
html.ipa-a11y-line-height-3 #govbh-main .h1,
html.ipa-a11y-line-height-3 #govbh-main .h2,
html.ipa-a11y-line-height-3 #govbh-main .h3,
html.ipa-a11y-line-height-3 #govbh-main .h4,
html.ipa-a11y-line-height-3 #govbh-main .h5,
html.ipa-a11y-line-height-3 #govbh-main .h6,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h1,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h2,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h3,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h4,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h5,
html.ipa-a11y-line-height-3 #govbh-main .govbh-fs-h6,
html.ipa-a11y-line-height-3 #govbh-main .govbh-abstract,
html.ipa-a11y-line-height-3 #govbh-main .govbh-abstract p {
    line-height: 2.2 !important;
}

html.ipa-a11y-strong-focus *:focus-visible {
    outline: 3px solid #012e5d !important;
    outline-offset: 3px !important;
}

html.ipa-a11y-highlight-headings #govbh-main h1,
html.ipa-a11y-highlight-headings #govbh-main h2,
html.ipa-a11y-highlight-headings #govbh-main h3,
html.ipa-a11y-highlight-headings #govbh-main h4,
html.ipa-a11y-highlight-headings #govbh-main h5,
html.ipa-a11y-highlight-headings #govbh-main h6 {
    background: #fff3a0 !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding-inline: 0.15em;
}

/* Page filters — apply on body children except panel/floating/structure */
html.ipa-a11y-grayscale body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide) {
    filter: grayscale(1);
}

html.ipa-a11y-saturation-1 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide) {
    filter: saturate(0.55);
}

html.ipa-a11y-saturation-2 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide) {
    filter: saturate(0.25);
}

html.ipa-a11y-saturation-3 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide) {
    filter: saturate(0);
}

html.ipa-a11y-grayscale.ipa-a11y-saturation-1 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide),
html.ipa-a11y-grayscale.ipa-a11y-saturation-2 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide),
html.ipa-a11y-grayscale.ipa-a11y-saturation-3 body > *:not(.ipa-a11y-panel):not(.ipa-a11y-structure):not(.govbh-floatinglist-vertical):not(#ipa-a11y-reading-guide) {
    filter: grayscale(1);
}

/* Large cursor */
html.ipa-a11y-large-cursor,
html.ipa-a11y-large-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' stroke='%23fff' stroke-width='1.5' d='M4 3l8 18 2-7 7-2z'/%3E%3C/svg%3E") 4 4, auto !important;
}

#ipa-a11y-reading-guide.ipa-a11y-reading-guide,
#ipa-a11y-reading-guide {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    height: 48px;
    max-height: 48px;
    margin-top: -24px;
    background: rgba(255, 255, 255, 0);
    overflow: visible;
    border-top: 2px solid rgba(17, 17, 17, 0.9);
    border-bottom: 2px solid rgba(17, 17, 17, 0.9);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.22),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    outline: none;
    pointer-events: none !important;
    touch-action: none;
    z-index: 10040;
}

#ipa-a11y-reading-guide.ipa-a11y-reading-guide::before,
#ipa-a11y-reading-guide.ipa-a11y-reading-guide::after,
#ipa-a11y-reading-guide::before,
#ipa-a11y-reading-guide::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 100vh;
    background: rgba(7, 16, 31, 0.58);
    pointer-events: none;
}

#ipa-a11y-reading-guide.ipa-a11y-reading-guide::before,
#ipa-a11y-reading-guide::before {
    bottom: 100%;
}

#ipa-a11y-reading-guide.ipa-a11y-reading-guide::after,
#ipa-a11y-reading-guide::after {
    top: 100%;
}

html.govbh-darkmode #ipa-a11y-reading-guide.ipa-a11y-reading-guide,
html.govbh-darkmode #ipa-a11y-reading-guide {
    background: rgba(255, 255, 255, 0);
    border-top-color: rgba(0, 0, 0, 0.92);
    border-bottom-color: rgba(0, 0, 0, 0.92);
}

#ipa-a11y-reading-guide[hidden] {
    display: none !important;
    pointer-events: none !important;
}

/* While TTS follows reading guide: hide the ruler bar — section selection only */
html.ipa-a11y-tts-follow #ipa-a11y-reading-guide {
    display: none !important;
}

/* Always-clickable exit control while reading guide is on — dual contrast */
.ipa-a11y-exit-reading-guide {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483646;
    pointer-events: auto !important;
    margin: 0;
    padding: 10px 18px;
    border: 2px solid #111111;
    border-radius: 12px;
    background: #ffffff;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    box-shadow:
        0 0 0 2px #ffffff,
        0 4px 16px rgba(0, 0, 0, 0.28);
}

.ipa-a11y-exit-reading-guide[hidden] {
    display: none !important;
}

html.govbh-darkmode .ipa-a11y-exit-reading-guide {
    background: #ffe600;
    color: #111111;
    border-color: #111111;
    box-shadow:
        0 0 0 2px #ffffff,
        0 4px 16px rgba(0, 0, 0, 0.45);
}

/* Spoken / click-reader highlight — yellow block like gov sample */
.ipa-a11y-sr-active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: none !important;
    border-inline-start: 4px solid #c63b2b !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0;
    scroll-margin-top: 96px;
    scroll-margin-bottom: 96px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ipa-a11y-sr-active,
.ipa-a11y-sr-active * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

html.govbh-darkmode .ipa-a11y-sr-active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border: none !important;
    border-inline-start: 4px solid #c63b2b !important;
    outline: none !important;
    box-shadow: none !important;
}

html.govbh-darkmode .ipa-a11y-sr-active,
html.govbh-darkmode .ipa-a11y-sr-active * {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Click-to-read mode cursor */
html.ipa-a11y-click-reader,
html.ipa-a11y-click-reader body {
    cursor: pointer;
}

html.ipa-a11y-click-reader #govbh-main,
html.ipa-a11y-click-reader .govbh-footer {
    cursor: pointer;
}

html.ipa-a11y-click-reader .ipa-a11y-panel,
html.ipa-a11y-click-reader .ipa-a11y-panel *,
html.ipa-a11y-click-reader .govbh-floatinglist-vertical,
html.ipa-a11y-click-reader .govbh-floatinglist-vertical *,
html.ipa-a11y-click-reader #govbh-header,
html.ipa-a11y-click-reader #govbh-header * {
    cursor: auto;
}

/* Page structure modal — centered dialog matching design */
.ipa-a11y-structure {
    position: fixed;
    inset: 0;
    z-index: 10080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    isolation: isolate;
}

.ipa-a11y-structure[hidden] {
    display: none !important;
}

.ipa-a11y-structure__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 46, 93, 0.5);
    cursor: pointer;
}

.ipa-a11y-structure__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(540px, calc(100vw - 2rem));
    max-height: min(72vh, 580px);
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.ipa-a11y-structure__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #012e5d;
    color: #fff;
    flex-shrink: 0;
}

.ipa-a11y-structure__head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.ipa-a11y-structure__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.ipa-a11y-structure__close:hover,
.ipa-a11y-structure__close:focus-visible {
    background: rgba(255, 255, 255, 0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.ipa-a11y-structure__tabs {
    display: flex;
    flex-shrink: 0;
    border-bottom: 1px solid #d7dee7;
    background: #e8eef5;
}

.ipa-a11y-structure__tabs button {
    flex: 1;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #012e5d;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
}

.ipa-a11y-structure__tabs button.is-active {
    background: #fff;
    color: #111;
    font-weight: 700;
}

.ipa-a11y-structure__list {
    list-style: none;
    margin: 0;
    padding: 0.35rem 0;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
    background: #fff;
}

.ipa-a11y-structure__item {
    margin: 0;
}

.ipa-a11y-structure__item-btn {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    text-align: start;
    border: 0;
    background: transparent;
    color: #1a5fad;
    padding: 0.55rem 1rem;
    font-size: 0.95rem;
    line-height: 1.35;
    cursor: pointer;
}

.ipa-a11y-structure__item-btn:hover,
.ipa-a11y-structure__item-btn:focus-visible {
    background: #f0f5fa;
    outline: none;
    text-decoration: underline;
}

.ipa-a11y-structure__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background: #3b82c4;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    text-transform: uppercase;
}

.ipa-a11y-structure__text {
    flex: 1 1 auto;
    min-width: 0;
    color: #1a5fad;
    word-break: break-word;
}

/* Heading hierarchy indentation */
.ipa-a11y-structure__item[data-level="1"] .ipa-a11y-structure__item-btn { padding-inline-start: 1rem; }
.ipa-a11y-structure__item[data-level="2"] .ipa-a11y-structure__item-btn { padding-inline-start: 1.35rem; }
.ipa-a11y-structure__item[data-level="3"] .ipa-a11y-structure__item-btn { padding-inline-start: 2rem; }
.ipa-a11y-structure__item[data-level="4"] .ipa-a11y-structure__item-btn { padding-inline-start: 2.65rem; }
.ipa-a11y-structure__item[data-level="5"] .ipa-a11y-structure__item-btn { padding-inline-start: 3.3rem; }
.ipa-a11y-structure__item[data-level="6"] .ipa-a11y-structure__item-btn { padding-inline-start: 3.95rem; }

.ipa-a11y-structure__empty {
    padding: 1.25rem 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Brief flash when jumping from structure list */
.ipa-a11y-structure-target {
    background-color: rgba(1, 46, 93, 0.12) !important;
    outline: 2px solid #012e5d !important;
    outline-offset: 2px;
}
