
/* ==========================================
   DRTARUN.COM - SHARED SITE STYLES
   ========================================== */

/* General */
html {
    scroll-behavior: smooth;
}

body {
    overflow-wrap: break-word;
}

img {
    max-width: 100%;
}

/* Navigation */
.nav {
    height: auto !important;
    min-height: 82px;
    gap: 22px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.navlinks {
    flex-wrap: wrap;
    gap: 10px 18px !important;
    font-size: 12px !important;
}

.navlinks a {
    display: inline-block;
    padding: 8px 0;
}

.navlinks a[aria-current="page"] {
    color: #e3c58d;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.brand {
    flex-shrink: 0;
}

/* Keyboard accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid #aa7d36;
    outline-offset: 4px;
}

/* Hide skip link until keyboard focus */
.skip,
.skip-link {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip:focus,
.skip-link:focus {
    position: fixed !important;
    top: 12px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    z-index: 99999;
    background: #111820;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
}

/* Interactive elements */
.filter,
button,
input,
select {
    min-height: 44px;
}

/* Footer */
.footer a {
    padding: 6px 0;
}

/* Illustration captions */
.illustration-note {
    font: 12px/1.5 Arial, sans-serif;
    color: #666;
    padding: 12px 8vw;
    margin: 0;
    background: #eee9df;
}

/* Hidden elements */
[hidden] {
    display: none !important;
}

/* Tablet and smaller screens */
@media (max-width: 900px) {
    .nav {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .navlinks {
        justify-content: flex-start !important;
    }

    .brand {
        max-width: 100%;
    }
}

/* Mobile screens */
@media (max-width: 420px) {
    .guide-grid,
    .paper-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    .guide-card,
    .paper {
        min-width: 0;
        padding: 22px !important;
    }

    .controls label {
        min-width: 0 !important;
        width: 100%;
        flex-basis: 100%;
    }

    .footer {
        flex-direction: column;
    }

    .hero h1,
    .judiciary-hero h1 {
        overflow-wrap: normal;
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}





/* Fix visible Skip to content link */

a[href="#main"] {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

a[href="#main"]:focus,
a[href="#main"]:focus-visible {
    position: fixed !important;
    left: 16px !important;
    top: 12px !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    padding: 12px 20px !important;
    background: #111820 !important;
    color: #ffffff !important;
    z-index: 99999 !important;
}
