/* Panel styles are scoped: they do not reset the site's styles. */
#ppd-a11y, #ppd-a11y * {
    box-sizing: border-box;
}
#ppd-a11y [hidden], #ppd-a11y[hidden] {
    display: none !important;
}
#ppd-a11y {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #17202a;
    text-align: left;
    direction: ltr;
}
#ppd-a11y button {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    float: none;
    margin: 0;
    min-height: 44px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: normal;
    text-transform: none;
    text-decoration: none;
    text-align: left;
    white-space: normal;
    cursor: pointer;
    touch-action: manipulation;
}
#ppd-a11y button::before, #ppd-a11y button::after {
    content: none;
}
#ppd-a11y button:focus-visible {
    outline: 3px solid #17202a !important;
    outline-offset: 3px;
    box-shadow: 0 0 0 3px #fff !important;
}
#ppd-a11y .ppd-launcher {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 2147483000;
    width: 56px;
    height: 56px;
    min-width: 56px;
    padding: 12px;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #075a80;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}
#ppd-a11y .ppd-launcher:hover {
    background: #064462;
}
#ppd-a11y .ppd-launcher .ppd-icon {
    width: 28px;
    height: 28px;
}
#ppd-a11y .ppd-panel {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: calc(max(16px, env(safe-area-inset-bottom)) + 68px);
    z-index: 2147483001;
    width: min(344px, calc(100vw - 32px));
    max-height: calc(100vh - 104px);
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px;
    border: 2px solid #075a80;
    border-radius: 12px;
    background: #fff;
    color: #17202a;
    box-shadow: 0 6px 28px rgba(0, 0, 0, .22);
    scrollbar-gutter: stable;
}
#ppd-a11y .ppd-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
}
#ppd-a11y h2 {
    margin: 0;
    padding: 8px 0 0;
    color: #17202a;
    background: transparent;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    border: 0;
}
#ppd-a11y .ppd-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #9caeb7;
    border-radius: 6px;
    color: #17202a;
    background: #fff;
}
#ppd-a11y .ppd-size-info, #ppd-a11y .ppd-note {
    margin: 8px 0 12px;
    padding: 0;
    color: #3b4851;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: normal;
}
#ppd-a11y .ppd-note {
    margin: 12px 0 0;
}
#ppd-a11y .ppd-actions {
    display: grid;
    gap: 6px;
}
#ppd-a11y .ppd-action {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #a5b4bc;
    border-radius: 6px;
    color: #17202a;
    background: #fff;
}
#ppd-a11y .ppd-action:hover, #ppd-a11y .ppd-close:hover {
    color: #17202a;
    background: #eef5f8;
}
#ppd-a11y .ppd-action[aria-pressed="true"] {
    color: #fff;
    background: #075a80;
    border-color: #075a80;
}
#ppd-a11y .ppd-action[aria-disabled="true"] {
    color: #53616b;
    background: #eef0f2;
    cursor: not-allowed;
}
#ppd-a11y .ppd-label {
    flex: 1 1 auto;
    min-width: 0;
}
#ppd-a11y .ppd-state {
    flex: 0 0 auto;
    visibility: hidden;
    font-weight: 700;
}
#ppd-a11y [aria-pressed="true"] .ppd-state {
    visibility: visible;
}
#ppd-a11y .ppd-icon {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    max-width: none;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
#ppd-a11y .ppd-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;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Filters on the document root avoid wrapping/reparenting theme content. */
html.ppd-a11y-grayscale { filter: grayscale(1) !important; }
html.ppd-a11y-negative { filter: invert(1) !important; }
html.ppd-a11y-grayscale.ppd-a11y-negative { filter: grayscale(1) invert(1) !important; }

/* High contrast and light background are mutually exclusive colour modes. */
html.ppd-a11y-high, html.ppd-a11y-high body {
    background: #000 !important;
    color: #fff !important;
}
html.ppd-a11y-high body *:not(#ppd-a11y):not(#ppd-a11y *):not(#wpadminbar):not(#wpadminbar *):not(:where(img, picture, video, canvas, svg, svg *)) {
    background-color: #000 !important;
    background-image: none !important;
    color: #fff !important;
    border-color: #fff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    caret-color: #fff !important;
}
html.ppd-a11y-high body a:not(#ppd-a11y):not(#ppd-a11y *):not(#wpadminbar):not(#wpadminbar *) {
    color: #ffed00 !important;
    text-decoration-line: underline !important;
}
html.ppd-a11y-light, html.ppd-a11y-light body {
    background: #fff !important;
    color: #111 !important;
}
html.ppd-a11y-light body *:not(#ppd-a11y):not(#ppd-a11y *):not(#wpadminbar):not(#wpadminbar *):not(:where(img, picture, video, canvas, svg, svg *)) {
    background-color: #fff !important;
    background-image: none !important;
    color: #111 !important;
    border-color: #444 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    caret-color: #111 !important;
}
html.ppd-a11y-light body a:not(#ppd-a11y):not(#ppd-a11y *):not(#wpadminbar):not(#wpadminbar *) {
    color: #064d85 !important;
}
html.ppd-a11y-high body *:focus-visible:not(#ppd-a11y *):not(#wpadminbar *),
html.ppd-a11y-light body *:focus-visible:not(#ppd-a11y *):not(#wpadminbar *) {
    outline: 3px solid currentColor !important;
    outline-offset: 3px !important;
}
html.ppd-a11y-links body a:not(#ppd-a11y):not(#ppd-a11y *):not(#wpadminbar):not(#wpadminbar *) {
    text-decoration-line: underline !important;
    text-decoration-style: solid !important;
    text-underline-offset: .18em;
}
@media print {
    #ppd-a11y { display: none !important; }
}
