/* Visually hidden but present in DOM — for SEO link text and screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Focus indicators (SC 2.4.7 / 1.4.11)
   Overrides outline:none / outline:0 present in base stylesheets.
   Placed in a separate file so it always loads after home-style and page-style.
   Two rings (T-018): blue outline (5.98:1 on white) plus a white halo, so the indicator keeps at least 3:1 on the
   dark header and menus as well as on light backgrounds. */
:focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #ffffff !important;
}

/* T-017: the base stylesheets set outline:0!important on selects with a more specific selector. */
select:focus-visible,
select:not(.wc-blocks-components-select__select):focus-visible {
    outline: 3px solid #005fcc !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px #ffffff !important;
}

/* Skip link (SC 2.4.1 — Bypass Blocks) */
.skip-link {
    position: fixed;
    top: -100%;
    left: 0;
    padding: 8px 16px;
    background: #005fcc;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    z-index: 99999;
    border-radius: 0 0 4px 0;
    transition: none;
}
.skip-link:focus {
    top: 0;
}

/* Comment metadata contrast (SC 1.4.3 — #999 on white = 2.85:1; #767676 = 4.54:1) */
.comment-meta,
.comment-meta a,
.comment-metadata,
.comment-metadata a {
    color: #767676;
}

/* Touch targets (44×44 CSS px minimum) */
.tbl-search-btn {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tbl-search-input {
    min-height: 44px;
}

/* T-066: quotations stand out from the surrounding text (the Tailwind reset removes the browser style). */
blockquote,
.wp-block-quote {
    margin: 1.5em 0;
    padding: 0.5em 0 0.5em 1.25em;
    border-left: 4px solid currentColor;
    font-style: italic;
}
blockquote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.875em;
    font-style: normal;
}
