/* Additional styles beyond inline CSS in base template */

/* Focus states for accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to content link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Improved form styling */
input::placeholder,
textarea::placeholder {
    color: var(--color-text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-accent);
}

/* Selection styling */
::selection {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: white;
        color: black;
    }

    header,
    footer,
    .btn {
        display: none;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .card,
    .proof-box {
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
