
/*
==================================================
DR. TARUN AND ASSOCIATES
Website: https://www.drtarun.com
File: /public_html/assets/site.css
Responsive Layout and Accessibility
==================================================
*/

/* 1. GLOBAL SETTINGS */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    overflow-wrap: break-word;
}

img,
video,
svg {
    max-width: 100%;
}

img {
    height: auto;
}

[hidden] {
    display: none !important;
}

/* 2. SKIP TO CONTENT FIX */

/*
Hide accessibility links visually until focused.
Keep keyboard accessibility functional.
*/

.skip,
.skip-link,
a[href="#main"],
a[href="#main-content"],
a[href="#content"] {
    position: fixed !important;
    top: -10000px !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    z-index: -1 !important;
}

.skip:focus,
.skip-link:focus,
a[href="#main"]:focus,
a[href="#main-content"]:focus,
a[href="#content"]:focus {
    position: fixed !important;
    top: 12px !important;
    left: 16px !important;
    width: auto !important;
    height: auto !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
    opacity: 1 !important;
    z-index: 999999 !important;
    background: #111820 !important;
    color: #ffffff !important;
    border: 2px solid #c5a46b !important;
    border-radius: 4px !important;
    text-decoration: none !important;
}

/* 3. NAVIGATION */

.nav {
    height: auto !important;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.brand {
    flex-shrink: 0;
    max-width: 100%;
}

.navlinks {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 18px !important;
    font-size: 12px !important;
}

.navlinks a {
    display: inline-block;
    padding: 8px 0;
    text-decoration: none;
}

.navlinks a[aria-current="page"] {
    color: #e3c58d;
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* 4. KEYBOARD ACCESSIBILITY */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #aa7d36;
    outline-offset: 4px;
}

/* 5. BUTTONS AND FORMS */

button,
input,
select,
textarea {
    font: inherit;
}

button,
input,
select,
.filter {
    min-height: 44px;
}

button {
    cursor: pointer;
}

textarea {
    max-width: 100%;
}

input,
select,
textarea {
    max-width: 100%;
}

/* 6. CONTENT AND LAYOUT */

main {
    min-width: 0;
}

section,
article {
    min-width: 0;
}

.hero h1,
.judiciary-hero h1 {
    overflow-wrap: normal;
    word-break: normal;
}

.guide-card,
.paper {
    min-width: 0;
}

.guide-grid,
.paper-grid {
    min-width: 0;
}

.controls label {
    max-width: 100%;
}

/* 7. FOOTER */

.footer a {
    padding: 6px 0;
}

/* 8. ILLUSTRATION NOTES */

.illustration-note {
    font: 12px/1.5 Arial, sans-serif;
    color: #666666;
    padding: 12px 8vw;
    margin: 0;
    background: #eee9df;
}

/* 9. TABLE RESPONSIVENESS */

table {
    max-width: 100%;
}

.table-wrapper,
.table-responsive {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 10. TABLET AND MOBILE */

@media (max-width: 900px) {

    .nav {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 14px;
    }

    .navlinks {
        justify-content: flex-start !important;
        width: 100%;
    }

    .brand {
        max-width: 100%;
    }

    .footer {
        flex-wrap: wrap;
    }
}

/* 11. SMALL MOBILE SCREENS */

@media (max-width: 420px) {

    .nav {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }

    .navlinks {
        gap: 8px 12px !important;
    }

    .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;
    }
}

/* 12. REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}

/* END OF SITE.CSS */
