/* =========================================================
   WESTERN ILLINOIS UNIVERSITY
   UNIVERSITY OFFICES & SERVICES DIRECTORY 
   ========================================================= */


/* =========================================================
   1. GLOBAL SETTINGS
   ========================================================= */

#container_one,
#container_one * {
    box-sizing: border-box;
}

#container_one {
    --wiu-purple: #663399;
    --wiu-purple-dark: #4c2475;
    --wiu-gold: #d4a72c;
    --ink: #000000;
    --muted: #686270;
    --line: #e0dbe6;
    --soft: #f5f5f5;
    --white: #ffffff;

    width: 100%;
    color: var(--ink);
    background: var(--white);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   2. LINKS AND ACCESSIBILITY
   ========================================================= */

#container_one a {
    color: var(--wiu-purple);
    font-weight: 400;
    text-underline-offset: 3px;
}

#container_one a:hover,
#container_one a:focus {
    color: #800080;
}

#container_one :focus-visible {
    outline: 3px solid var(--wiu-gold);
    outline-offset: 3px;
}

#container_one .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   3. REMOVE TRANSITIONS AND ANIMATIONS
   ========================================================= */

#container_one button,
#container_one input,
#container_one select,
#container_one textarea,
#container_one .alphabet-links a,
#container_one a.button,
#container_one .btn {
    transition: none !important;
    animation: none !important;
}


/* =========================================================
   4. HERO / PAGE HEADER
   ========================================================= */

#container_one .directory-hero {
    padding: 18px 22px 32px;
    text-align: center;
    background: #ffffff;
    border-bottom: 3px solid var(--wiu-gold);
}

#container_one .hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

#container_one .directory-hero .eyebrow {
    margin: 0 0 6px;
    padding: 0;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
}

#container_one .directory-hero .page-title {
    margin: 0;
    padding: 0;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

#container_one .directory-hero .hero-intro {
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0;
    color: #514b58;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    white-space: nowrap;
    text-align: center;
}

@media screen and (max-width: 900px) {

    #container_one .directory-hero .hero-intro {
        white-space: normal;
    }
}

@media screen and (max-width: 680px) {

    #container_one .directory-hero {
        padding: 14px 12px 24px;
    }

    #container_one .directory-hero .eyebrow {
        font-size: 1.45rem;
        line-height: 1.2;
        margin-bottom: 5px;
    }

    #container_one .directory-hero .page-title {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    #container_one .directory-hero .hero-intro {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-top: 8px;
    }
}

@media screen and (max-width: 420px) {

    #container_one .directory-hero .eyebrow {
        font-size: 1.3rem;
    }

    #container_one .directory-hero .page-title {
        font-size: 1.05rem;
    }

    #container_one .directory-hero .hero-intro {
        font-size: 0.8rem;
    }
}


/* =========================================================
   5. MAIN CONTENT
   ========================================================= */

#container_one .directory-main {
    width: 98%;
    max-width: 1460px;
    margin: 10px auto;
    padding: 28px 24px 48px;
    background: #ffffff;
}


/* =========================================================
   6. GENERAL EYEBROW TEXT
   ========================================================= */

#container_one .eyebrow {
    margin: 0 0 6px;
    color: var(--wiu-purple);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}


/* =========================================================
   7. TRANSITION NOTICE
   ========================================================= */

#container_one .transition-notice {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 0 0 24px;
    padding: 16px 19px;
    background: #ffffff;
    border: 1px solid #d9d0e1;
    border-radius: 3px;
}

#container_one .transition-notice p {
    margin: 0;
    color: #514b43;
    font-size: 1.1rem;
    font-weight: 400;
}

#container_one .notice-mark {
    display: inline-grid;
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #f0e3bd;
    color: #604700;
    font-weight: 800;
    font-family: Georgia, serif;
}


/* =========================================================
   8. DIRECTORY SEARCH PANEL
   Reduced horizontal padding
   ========================================================= */

#container_one .search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin: 0 0 25px;
    padding: 22px 18px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 3px;
}

#container_one .search-copy {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

#container_one .search-copy .eyebrow {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 12px;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    border-bottom: 2px solid var(--wiu-gold);
}

#container_one .search-copy p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    white-space: normal;
    overflow-wrap: break-word;
}

#container_one #directory-search-form {
    width: 100%;
    min-width: 0;
    margin: 0;
}


/* =========================================================
   9. SEARCH CONTROLS
   Reduced left-side white space
   ========================================================= */

#container_one .search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 110px;
    gap: 8px;
    align-items: stretch;
    width: 100%;
    min-height: 54px;
    padding: 5px 6px 5px 5px;
    background: #ffffff;
    border: 1px solid #d9d0e1;
    border-radius: 3px;
}

#container_one .search-icon {
    display: none !important;
}

#container_one #directory-query {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 12px;
    color: #000000;
    background: #ffffff;
    border: 1px solid #bdb5c8;
    border-radius: 3px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
}

#container_one #directory-query:focus-visible {
    outline: 0;
}


/* =========================================================
   10. SEARCH BUTTONS
   ========================================================= */

#container_one .search-button,
#container_one .clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    min-width: 110px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--wiu-purple);
    border-radius: 3px;
    box-sizing: border-box;
    white-space: nowrap;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--wiu-purple);
    color: #ffffff;
}

#container_one .search-button:hover,
#container_one .search-button:focus,
#container_one .clear-button:hover,
#container_one .clear-button:focus {
    background: var(--wiu-purple-dark);
    border-color: var(--wiu-purple-dark);
    color: #ffcc00;
}

#container_one .search-hint {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 400;
}


/* =========================================================
   11. BROWSE A-Z NAVIGATION
   Larger purple alphabet letters
   ========================================================= */

#container_one .alphabet-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin: 25px 0 34px;
    padding: 25px 28px;
    background: var(--soft);
    border: 1px solid #d9d0e1;
    border-radius: 3px;
    box-shadow: none;
    text-align: left;
}

#container_one .alphabet-nav .alphabet-label {
    display: block;
    width: 100%;
    margin: 0 0 5px;
    padding: 0 0 12px;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    text-align: left;
    text-transform: none;
    border-bottom: 2px solid var(--wiu-gold);
}

#container_one .alphabet-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    gap: 12px 16px;
}

#container_one .alphabet-links a {
    display: inline-grid;
    flex: 0 0 38px;
    min-width: 38px;
    height: 38px;
    padding: 0 5px;
    place-items: center;

    color: #663399;
    background: #ffffff;
    border: 1px solid #e0dbe6;
    border-radius: 3px;

    font-family: "Lato", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;

    text-decoration: none;
}

#container_one .alphabet-links a:hover,
#container_one .alphabet-links a:focus {
    color: #663399;
    background: #f3edf8;
    border-color: #663399;
}


/* =========================================================
   12. RESULTS AREA
   ========================================================= */

#container_one .results-area {
    margin: 30px 0 36px;
    padding: 25px 26px 28px;
    background: #ffffff;
    border: 1px solid #d9d0e1;
    border-radius: 2px;
    box-shadow: none;
}

#container_one .results-area > .results-heading {
    margin: 0 0 22px;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--wiu-gold);
}

#container_one .results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
}

#container_one .results-heading h3,
#container_one .building-index h3 {
    margin: 0;
    color: var(--wiu-purple);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.35;
}

#container_one .results-count {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 400;
}


/* =========================================================
   13. FLAT ALPHABETICAL DIRECTORY RESULTS
   ========================================================= */

#container_one .directory-results {
    display: block;
    width: 100%;
    min-width: 0;
}

#container_one .letter-section {
    width: 100%;
    min-width: 0;
    margin: 0 0 28px;
    padding: 14px 16px 16px;
    background: #ffffff;
    border: 1px solid #e0dbe6;
    border-radius: 3px;
    scroll-margin-top: 20px;
}

#container_one .letter-section:last-child {
    margin-bottom: 0;
}

/* Individual A, B, C, D headings in results */

#container_one .letter-heading {
    display: block;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 14px;

    color: #663399;
    background: #f5f5f5;

    border: 1px solid #e0dbe6;
    /*border-left: 4px solid #663399;*/
    border-radius: 3px;

    font-family: "Lato", "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

#container_one .directory-entry-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 0;
}


/* =========================================================
   14. DIRECTORY ENTRY ROWS
   ========================================================= */

#container_one .directory-entry-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(120px, 170px)
        minmax(110px, 145px);
    gap: 12px;
    align-items: start;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 12px;
    border-bottom: 1px solid #e0dbe6;
    background: #ffffff;
}


/* =========================================================
   15. MAIN DEPARTMENTS AND SUBDIVISIONS
   ========================================================= */

/* Main department row */

#container_one .directory-entry-row.main-department {
    border-top: 1px solid #e0dbe6;
    border-bottom: 1px solid #d9d0e1;
    border-left: 0;
}

#container_one .directory-entry-row.main-department .directory-entry-name {
    color: #000000;
    font-weight: 700;
}

/* Subdivision row */

#container_one .directory-entry-row.subdivision {
    border-left: 0;
    border-bottom: 1px solid #eeeaf2;
}

#container_one .directory-entry-row.subdivision .directory-entry-name {
    padding-left: 22px;
    color: #29242f;
    font-weight: 400;
}

/* No dash before subdivision names */

#container_one .directory-entry-row.subdivision .directory-entry-name::before {
    content: none;
}

/* Keep subdivision location and phone aligned */

#container_one .directory-entry-row.subdivision .directory-entry-location,
#container_one .directory-entry-row.subdivision .directory-entry-phone {
    font-weight: 400;
}

#container_one .directory-entry-row.main-department + .directory-entry-row.subdivision {
    border-top: 0;
}


/* =========================================================
   16. ZEBRA STRIPES - DIRECTORY ROWS
   ========================================================= */

#container_one .directory-entry-list > .directory-entry-row:nth-child(odd) {
    background-color: #ffffff;
}

#container_one .directory-entry-list > .directory-entry-row:nth-child(even) {
    background-color: #f2f2f2;
}


/* =========================================================
   17. DIRECTORY ENTRY TEXT
   ========================================================= */

#container_one .directory-entry-name {
    min-width: 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#container_one .directory-entry-name a {
    font-weight: 400;
}

#container_one .directory-entry-location {
    min-width: 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#container_one .directory-entry-phone {
    min-width: 0;
    color: #000000;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

#container_one .directory-entry-row a {
    color: var(--wiu-purple);
    font-weight: 400;
    overflow-wrap: anywhere;
}


/* =========================================================
   18. SEARCH HIGHLIGHTS AND EMPTY STATE
   ========================================================= */

#container_one mark {
    padding: 1px 3px;
    color: #29242f;
    background: #fff0b8;
    border-radius: 2px;
}

#container_one .empty-state {
    margin: 20px 0;
    padding: 25px;
    text-align: center;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-size: 1.1rem;
    font-weight: 400;
}

#container_one .empty-state[hidden] {
    display: none !important;
}


/* =========================================================
   19. CAMPUS REFERENCE / BUILDING ADDRESS INDEX
   White background; no gold top border
   ========================================================= */

#container_one .building-index {
    width: 100%;
    margin: 34px 0 36px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #d9d0e1;
    border-radius: 3px;
    box-shadow: none;
}

#container_one .building-index .results-heading {
    display: block;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

#container_one .building-index .results-heading .eyebrow {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 12px;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
    border-bottom: 2px solid var(--wiu-gold);
}

#container_one .building-index #building-heading {
    margin: 0;
    color: var(--wiu-purple);
    font-family: "Lato", "Open Sans", Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
}


/* =========================================================
   20. CAMPUS REFERENCE TABLE
   ========================================================= */

#container_one .building-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#container_one .building-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
    text-align: left;
    background: #ffffff;
}

#container_one .building-table th,
#container_one .building-table td {
    padding: 10px 12px;
    border: 1px solid #dedede;
    text-align: left;
    vertical-align: top;
    font-size: 1.1rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}

#container_one .building-table th {
    color: var(--wiu-purple);
    background: #eeeeee;
    font-weight: 700;
}

#container_one .building-table td {
    color: #000000;
    background: #ffffff;
    font-weight: 400;
}

#container_one .building-table td a {
    color: var(--wiu-purple);
    font-weight: 400;
}

/* Campus Reference table zebra stripes */

#container_one .building-table tbody tr:nth-child(odd) td {
    background-color: #ffffff;
}

#container_one .building-table tbody tr:nth-child(even) td {
    background-color: #f2f2f2;
}


/* =========================================================
   21. DIRECTORY FOOTER
   ========================================================= */

#container_one .directory-footer {
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 400;
}

#container_one .directory-footer p,
#container_one .directory-footer a {
    font-size: 1.1rem;
}

#container_one .directory-footer p {
    margin: 4px 0;
}


/* =========================================================
   22. TABLET
   ========================================================= */

@media screen and (max-width: 900px) {

    #container_one .directory-main {
        width: 98%;
        padding-left: 20px;
        padding-right: 20px;
    }

    #container_one .directory-entry-row {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(110px, 150px)
            minmax(100px, 125px);
        gap: 9px;
    }
}


/* =========================================================
   23. MOBILE - 680px AND BELOW
   ========================================================= */

@media screen and (max-width: 680px) {

    #container_one {
        font-size: 0.9rem;
    }

    #container_one .directory-main {
        width: 98%;
        padding: 20px 14px 32px;
    }

    #container_one .transition-notice p {
        font-size: 0.9rem;
    }

    #container_one .results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    /* Search panel */

    #container_one .search-panel {
        padding: 20px 13px;
    }

    #container_one .search-copy .eyebrow,
    #container_one .alphabet-nav .alphabet-label,
    #container_one .building-index .results-heading .eyebrow {
        font-size: 1.15rem;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: break-word;
    }

    #container_one .search-copy p:last-child {
        width: 100%;
        font-size: 0.9rem;
        line-height: 1.6;
        white-space: normal;
        overflow-wrap: break-word;
    }

    /* Matching A-Z and Campus Reference containers */

    #container_one .alphabet-nav,
    #container_one .building-index {
        width: 100%;
        margin: 22px 0 26px;
        padding: 18px 14px;
        border: 1px solid #d9d0e1;
        border-radius: 3px;
        box-shadow: none;
    }

    /* A-Z remains light gray */

    #container_one .alphabet-nav {
        background: #f5f5f5;
    }

    /* Campus Reference remains white */

    #container_one .building-index {
        background: #ffffff;
        border-top: 0;
    }

    #container_one .building-index #building-heading {
        font-size: 1.15rem;
        line-height: 1.4;
    }


    /* Search controls */

    #container_one .search-controls {
        grid-template-columns: minmax(0, 1fr) 88px 88px;
        gap: 6px;
        padding: 5px;
    }

    #container_one #directory-query {
        min-height: 42px;
        font-size: 1rem;
    }

    #container_one .search-button,
    #container_one .clear-button {
        grid-column: auto;
        grid-row: auto;
        width: 88px;
        min-width: 88px;
        min-height: 42px;
        padding: 8px 5px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    #container_one .search-hint {
        font-size: 0.9rem;
    }


    /* A-Z letter links - mobile */

    #container_one .alphabet-nav {
        align-items: stretch;
        gap: 10px;
    }

    #container_one .alphabet-links {
        width: 100%;
        padding-left: 0;
        justify-content: flex-start;
        gap: 9px 11px;
    }

    #container_one .alphabet-links a {
        flex: 0 0 36px;
        min-width: 36px;
        height: 36px;
        font-size: 1.1rem;
        font-weight: 800;
    }


    /* Letter sections */

    #container_one .letter-section {
        margin-bottom: 18px;
        padding: 10px;
    }

    /* A, B, C headings - mobile */

    #container_one .letter-heading {
        margin-bottom: 10px;
        padding: 9px 11px;
        font-size: 1.3rem;
        font-weight: 800;
    }


    /* Mobile directory cards */

    #container_one .directory-entry-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 3px;
        padding: 11px 10px;
    }

    #container_one .directory-entry-name,
    #container_one .directory-entry-name a,
    #container_one .directory-entry-location,
    #container_one .directory-entry-phone {
        min-width: 0;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.6;
        overflow-wrap: anywhere;
    }


    /* Main department cards */

    #container_one .directory-entry-row.main-department {
        padding: 12px 10px;
        border-left: 0;
    }

    #container_one .directory-entry-row.main-department .directory-entry-name {
        font-weight: 700;
    }


    /* Subdivision cards */

    #container_one .directory-entry-row.subdivision {
        padding: 10px 10px 10px 20px;
    }

    #container_one .directory-entry-row.subdivision .directory-entry-name {
        padding-left: 10px;
        font-size: 0.95rem;
    }

    #container_one .directory-entry-row.subdivision .directory-entry-name::before {
        content: none;
    }


    /* Reapply zebra backgrounds to mobile cards */

    #container_one .directory-entry-list > .directory-entry-row:nth-child(odd) {
        background-color: #ffffff;
    }

    #container_one .directory-entry-list > .directory-entry-row:nth-child(even) {
        background-color: #f2f2f2;
    }


    /* Office and Phone labels */

    #container_one .directory-entry-location:not(:empty)::before {
        content: "Office: ";
        color: var(--wiu-purple-dark);
        font-weight: 600;
    }

    #container_one .directory-entry-phone:not(:empty)::before {
        content: "Phone: ";
        color: var(--wiu-purple-dark);
        font-weight: 600;
    }


    /* Results area */

    #container_one .results-area {
        margin: 24px 0 30px;
        padding: 18px 14px 20px;
    }

    #container_one .results-area > .results-heading {
        margin-bottom: 16px;
    }

    #container_one .results-heading h3 {
        font-size: 1.3rem;
    }

    #container_one .results-count {
        font-size: 0.9rem;
    }


    /* Campus Reference table */

    #container_one .building-table-wrap {
        width: 100%;
        max-width: 100%;
        overflow-x: visible;
    }

    #container_one .building-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    #container_one .building-table th,
    #container_one .building-table td {
        padding: 8px 6px;
        font-size: 0.82rem;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: normal;
    }


    /* Footer */

    #container_one .directory-footer,
    #container_one .directory-footer p,
    #container_one .directory-footer a {
        font-size: 0.9rem;
    }


    /* Floating Back to A-Z button */

    #container_one .back-to-az {
        right: 13px;
        bottom: 15px;
        min-height: 42px;
        padding: 8px 13px;
        font-size: 0.9rem;
    }


    /* Mobile PDF button */

    #container_one a[href*="20260928_2026_Directory.pdf"] {
        width: 100%;
        min-height: 46px;
        padding: 11px 14px;
        font-size: 0.9rem;
    }
}


/* =========================================================
   24. SMALL MOBILE - 420px AND BELOW
   ========================================================= */

@media screen and (max-width: 420px) {

    #container_one .directory-main {
        padding: 18px 12px 28px;
    }

    #container_one .search-panel {
        padding: 18px 11px;
    }

    #container_one .alphabet-nav,
    #container_one .building-index {
        padding: 16px 11px;
    }

    #container_one .search-copy .eyebrow,
    #container_one .alphabet-nav .alphabet-label,
    #container_one .building-index .results-heading .eyebrow,
    #container_one .building-index #building-heading {
        font-size: 1.05rem;
    }


    /* Search and Clear buttons remain side by side */

    #container_one .search-controls {
        grid-template-columns: minmax(0, 1fr) 88px 88px;
        gap: 6px;
        padding: 5px;
    }

    #container_one .search-button,
    #container_one .clear-button {
        grid-column: auto;
        grid-row: auto;
        width: 88px;
        min-width: 88px;
        min-height: 42px;
        padding: 8px 5px;
        font-size: 0.9rem;
        white-space: nowrap;
    }


    /* A-Z links - small mobile */

    #container_one .alphabet-links {
        width: 100%;
        padding-left: 0;
        gap: 8px 9px;
    }

    #container_one .alphabet-links a {
        flex: 0 0 34px;
        min-width: 34px;
        height: 34px;
        padding: 0 3px;
        font-size: 1rem;
        font-weight: 800;
    }


    /* Directory headings */

    #container_one .results-heading h3 {
        font-size: 1.15rem;
    }

    /* A, B, C headings - small mobile */

    #container_one .letter-heading {
        font-size: 1.2rem;
        padding: 8px 10px;
    }


    /* Directory cards */

    #container_one .directory-entry-row {
        padding: 10px 9px;
    }

    #container_one .directory-entry-name,
    #container_one .directory-entry-name a,
    #container_one .directory-entry-location,
    #container_one .directory-entry-phone {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    #container_one .directory-entry-row.main-department {
        padding: 11px 9px;
    }

    #container_one .directory-entry-row.subdivision {
        padding: 9px 9px 9px 18px;
    }

    #container_one .directory-entry-row.subdivision .directory-entry-name {
        font-size: 0.9rem;
    }

    #container_one .directory-entry-location:not(:empty)::before,
    #container_one .directory-entry-phone:not(:empty)::before {
        font-weight: 600;
    }


    /* Campus Reference table */

    #container_one .building-table th,
    #container_one .building-table td {
        padding: 7px 5px;
        font-size: 0.75rem;
        line-height: 1.4;
    }


    /* PDF button */

    #container_one a[href*="20260928_2026_Directory.pdf"] {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}


/* =========================================================
   25. FLOATING BACK TO A-Z BUTTON
   ========================================================= */

#container_one .back-to-az {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 17px;
    color: #ffffff !important;
    background: #663399;
    border: 2px solid #b8860b;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

#container_one .back-to-az.is-visible {
    display: inline-flex;
}

#container_one .back-to-az:hover,
#container_one .back-to-az:focus {
    color: #ffcc00 !important;
    background: #4c2475;
    border-color: #d4a72c;
}

#container_one .back-to-az:focus-visible {
    outline: 3px solid #d4a72c;
    outline-offset: 3px;
}


/* =========================================================
   26. PRINT
   ========================================================= */

@media print {

    #container_one .search-panel,
    #container_one .alphabet-nav,
    #container_one .back-to-az {
        display: none !important;
    }

    #container_one .directory-results {
        display: block;
    }

    #container_one .letter-section,
    #container_one .directory-entry-row {
        break-inside: avoid;
    }

    #container_one .directory-main {
        width: 100%;
        max-width: none;
        border: none;
        padding: 0;
    }

    #container_one .results-area {
        border: 1px solid #999999;
        padding: 15px;
    }

    #container_one .letter-heading {
        color: #4c2475 !important;
        background-color: #eee8f5 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    #container_one .directory-entry-row {
        grid-template-columns:
            minmax(0, 1fr)
            150px
            130px;
    }

    #container_one .directory-entry-location:not(:empty)::before,
    #container_one .directory-entry-phone:not(:empty)::before {
        content: none;
    }
}


/* =========================================================
   27. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    #container_one *,
    #container_one *::before,
    #container_one *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}


/* =========================================================
   28. ORIGINAL DIRECTORY PDF BUTTON
   ========================================================= */

#container_one a[href*="20260928_2026_Directory.pdf"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 240px;
    max-width: 300px;
    min-height: 46px;
    margin: 12px auto 8px;
    padding: 10px 22px;
    color: #ffffff !important;
    background: #663399;
    border: 2px solid #b8860b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

#container_one a[href*="20260928_2026_Directory.pdf"]:hover,
#container_one a[href*="20260928_2026_Directory.pdf"]:focus {
    color: #ffcc00 !important;
    background: #4c2475;
    border-color: #d4a72c;
}

#container_one a[href*="20260928_2026_Directory.pdf"]:focus-visible {
    outline: 3px solid #d4a72c;
    outline-offset: 3px;
}

@media screen and (max-width: 680px) {
    #container_one a[href*="20260928_2026_Directory.pdf"] {
        width: auto;
        min-width: 220px;
        max-width: 100%;
        min-height: 46px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* ORIGINAL DIRECTORY PDF BUTTON */

#container_one .directory-pdf-button-wrap {
    display: flex;
    justify-content: flex-start;
    margin: 12px 0 8px;
}

 


#container_one .original-directory-pdf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 240px;
    max-width: 300px;
    min-height: 46px;
    padding: 10px 22px;
    color: #ffffff !important;
    background: #663399;
    border: 2px solid #b8860b;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

#container_one .original-directory-pdf-button:hover,
#container_one .original-directory-pdf-button:focus {
    color: #ffcc00 !important;
    background: #4c2475;
    border-color: #d4a72c;
}

@media screen and (max-width: 680px) {
    #container_one .original-directory-pdf-button {
        min-width: 220px;
        max-width: 100%;
        font-size: 0.9rem;
    }
}