/* === Skip Link === */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: #1e40af;
    color: #fff;
    padding: 0.5rem 1rem;
    z-index: 100;
    font-size: 0.875rem;
}
.skip-link:focus {
    top: 0;
}

/* === Focus Indicators (WCAG 2.1 AA: 3:1 contrast) === */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* === Buttons === */
.btn-primary {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    background-color: #1e40af;
    color: #fff;
    font-weight: 600;
    border-radius: 0.375rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color 0.15s;
}
.btn-primary:hover {
    background-color: #1e3a8a;
}
.btn-primary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.btn-secondary {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #1e40af;
    font-weight: 600;
    border-radius: 0.375rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid #1e40af;
    font-size: 1rem;
    line-height: 1.5;
    transition: background-color 0.15s;
}
.btn-secondary:hover {
    background-color: #eff6ff;
}

/* === Flash Messages === */
.flash {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    border-left: 4px solid;
}

.flash-success {
    background-color: #f0fdf4;
    border-left-color: #16a34a;
    color: #166534;
}
.flash-error {
    background-color: #fef2f2;
    border-left-color: #dc2626;
    color: #991b1b;
}
.flash-warning {
    background-color: #fffbeb;
    border-left-color: #d97706;
    color: #92400e;
}
.flash-info {
    background-color: #eff6ff;
    border-left-color: #2563eb;
    color: #1e40af;
}

.flash-dismiss {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0 0.25rem;
    color: inherit;
    opacity: 0.7;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.flash-dismiss:hover {
    opacity: 1;
}

/* === Assessment: Question Cards === */
.question-card {
    transition: border-color 0.15s;
}
.question-card:focus-within {
    border-color: #2563eb;
}

/* === Assessment: Dimension Description === */
.dimension-description {
    line-height: 1.7;
}

/* === Assessment: Intro Tip === */
.intro-tip {
    line-height: 1.6;
}

/* === Assessment: Progress Bar === */
[role="progressbar"] {
    overflow: hidden;
}

/* === Screen Reader Only (visible in print via print.css) === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
