/* GCDD-A11Y-20261205-R2: accessibility fixes for gcdd.org.
 * Version-Timestamp: 2026-12-05 18:20:00 EST
 * Loaded from the theme's Custom Code slot (template style 22), after theme.css.
 * Remove the <link> there to switch every rule in this file off. */

/* P1-1 One visible keyboard focus style, site-wide. Navy on light, white on navy. */
:focus-visible {
    outline: 3px solid #14305A !important;
    outline-offset: 2px !important;
}
.uk-section-primary :focus-visible,
.uk-section-secondary :focus-visible,
.uk-light :focus-visible {
    outline-color: #FFFFFF !important;
}
/* Skip link: navy text on its white panel (was lime, 2.06:1). */
a[href="#tm-main"] {
    color: #14305A !important;
    text-decoration: underline;
}

/* P1-2 Language selector: navy text, in the toolbar and in the mobile menu. */
.uk-panel.translateform select {
    color: #14305A !important;
    padding: 6px 10px;
    max-width: 100%;
}
#tm-dialog-mobile .translateform select {
    background: #FFFFFF;
    border: 1px solid #6B7280;
    border-radius: 4px;
    font-size: 16px;
    min-height: 44px;
}

/* P1-3 Sign-up form: readable placeholders, real button keeps the old look. */
.com-baforms-wrapper .ba-field-container input::placeholder,
.com-baforms-wrapper .ba-field-container textarea::placeholder {
    color: #595959 !important;
    opacity: 1;
}
.com-baforms-wrapper button.ba-form-submit-btn {
    font: inherit;
    font-family: var(--submit-typography-font-family);
    font-size: var(--submit-typography-font-size);
    font-weight: var(--submit-typography-font-weight);
    line-height: var(--submit-typography-line-height);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* P2-5 Slider dots: 24 by 24 px hit area, 24 px between centres. */
.n2-ss-slider .n2-bullet {
    position: relative;
    margin-left: 5px !important;
    margin-right: 5px !important;
}
.n2-ss-slider .n2-bullet::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
}

/* P2-1 Calendar: readable out-of-month days, a pause between time and title,
 * list view fits a 320 px screen. */
.dp-calendar .fc-day-other .fc-daygrid-day-top {
    opacity: 1 !important;
}
.dp-calendar .fc-day-other .fc-daygrid-day-number {
    color: #5A6B7B !important;
}
.dp-calendar .fc-daygrid-event .dp-event__time::after {
    content: ", ";
}
@media (max-width: 480px) {
    .dp-calendar .fc-list-table {
        table-layout: auto;
        width: 100% !important;
    }
    .dp-calendar .fc-list-day-cushion {
        display: flex;
        flex-wrap: wrap;
        gap: 0 12px;
    }
    .dp-calendar .fc-list-day-side-text {
        float: none !important;
    }
    .dp-calendar .fc-list-event-time {
        white-space: normal !important;
    }
    .dp-calendar .fc-list-event td {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* P2-3 Labels that are now real headings keep the look they had as bold text. */
.gcdd-plain-heading {
    font: inherit !important;
    font-weight: 700 !important;
    color: inherit !important;
    letter-spacing: inherit !important;
    text-transform: none !important;
}

/* P3-1 Recite Me launcher: a white and navy ring so it shows on any background,
 * smaller and closer to the corner on phones. */
#enableRecite.launch-button {
    border-radius: 50%;
    box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px #14305A;
}
@media (max-width: 640px) {
    #enableRecite.launch-button {
        left: 12px;
        bottom: 12px;
        padding: 22px;
    }
}
