/* Accessibility fixes for the public site, loaded through the layout.head
   hook after the features' stylesheets. See src/innosoft_app/a11y.py. */

/* Skip link: hidden until it gets keyboard focus. */
.skip-link {
    position: absolute;
    top: .5rem;
    left: .5rem;
    z-index: 10000;
    padding: .6rem 1rem;
    background: #fff;
    color: #0b1320;
    font-weight: 700;
    border-radius: .25rem;
    transform: translateY(-200%);
}
.skip-link:focus {
    transform: none;
    outline: 3px solid #1e63bd;
    outline-offset: 2px;
}
.skip-target:focus { outline: none; }

/* "Made with SPLENT": the brand blue on the dark footer is 3.16:1. Use the
   colour of the footer's other links (--brand-bg on the skin's dark footer,
   not --brand-heading, which is the footer's own background) and an
   underline to tell it apart. */
.site-footer__madewith a,
.site-footer__madewith a:hover,
.site-footer__madewith a:focus {
    color: var(--brand-bg, #fafce6);
    text-decoration: underline;
}

/* Main menu on hover: the skin's yellow on the cream header is 1.98:1. Keep
   the text dark and show the yellow as a thick underline. */
.cms-public .site-nav a:hover {
    color: var(--brand-heading, #0b1320);
    text-decoration: underline;
    text-decoration-color: var(--brand-accent, #eaa903);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

/* Team member links ("Website", "LinkedIn"...): at least 24x24 px. */
.member-card__links a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    min-width: 24px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Survey questions answered with options name their group with a <p>
   instead of a <label> (see templates/survey/_field.html): same look. */
p.survey-q__label { margin-top: 0; }
.survey__error:focus,
.contact-form__flashes .alert:focus { outline: 3px solid #1e63bd; outline-offset: 2px; }
