/* AskALibrarian public legacy-style layout */

body.single-aal_library {
    background: #c7d4e3;
}

body.single-aal_library #main-content,
body.single-aal_library .et-l--body {
    background: transparent;
}

.aal-library-page {
    background: #c7d4e3;
    padding: 30px 15px;
    min-height: 100vh;
}

.aal-library-container {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 34px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.aal-branding {
    text-align: center;
    margin-bottom: 20px;
}

.aal-brand-main {
    font-size: 64px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
    color: #000000;
    margin: 0;
}

.aal-brand-tagline {
    font-family: "Courier New", Courier, monospace;
    font-size: 28px;
    color: #d71920;
    margin-top: 8px;
}

.aal-notice {
    max-width: 680px;
    margin: 20px auto;
    padding: 14px 18px;
    background: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.aal-library-header {
    text-align: center;
    margin: 20px 0;
}

.aal-library-header h1 {
    font-size: 30px;
    margin-bottom: 6px;
}

.aal-library-meta {
    color: #666666;
    font-size: 14px;
}

.aal-service-panel {
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    margin-top: 20px;
    padding: 30px 24px;
}

.aal-service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: start;
    text-align: center;
}

.aal-service-card {
    padding: 8px 10px;
}

.aal-service-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 12px;
    color: #000000;
}

.aal-service-card h2 {
    font-size: 28px;
    margin: 0 0 12px;
}

.aal-button,
.aal-button:visited {
    display: inline-block;
    background: #0041c2;
    color: #ffffff;
    padding: 7px 13px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
}

.aal-button:hover,
.aal-button:focus {
    background: #0037a7;
    color: #ffffff;
    text-decoration: none;
}

.aal-lower-panel {
    margin-top: 28px;
    background: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    text-align: center;
}

.aal-lower-panel h3 {
    font-size: 20px;
    margin: 0 0 10px;
}

.aal-message {
    max-width: 760px;
    margin: 18px auto;
    padding: 14px 18px;
    border-radius: 4px;
    border: 1px solid #dddddd;
}

.aal-message-info {
    background: #eef6fb;
}

.aal-message-warning {
    background: #fff8e5;
}

.aal-message-success {
    background: #edf8ed;
}

.aal-message-danger {
    background: #fdecec;
}

.aal-springshare-frame {
    width: 100%;
    min-height: 180px;
    border: 0;
}

.aal-muted {
    color: #666666;
    font-size: 14px;
}

@media (max-width: 760px) {
    .aal-brand-main {
        font-size: 40px;
    }

    .aal-brand-tagline {
        font-size: 20px;
    }

    .aal-service-grid,
    .aal-lower-panel {
        grid-template-columns: 1fr;
    }
}

/* Original AskALibrarian homepage sprite icons */
.aal-statewide-home .sprite,
.aal-library-page .sprite {
    background-image: url('../images/sprite100.png');
    background-repeat: no-repeat;
    background-position: top left;
    width: 100px;
    height: 100px;
    margin: 0 auto 12px auto;
    display: block;
}

.aal-statewide-home .sprite.live-chat-icon-18,
.aal-library-page .sprite.live-chat-icon-18 {
    background-position: 0 0;
}

.aal-statewide-home .sprite.new-email-interface-symbol-of-black-closed-envelope_318-62705,
.aal-library-page .sprite.new-email-interface-symbol-of-black-closed-envelope_318-62705 {
    background-position: 0 -110px;
}

.aal-statewide-home .sprite.sms-icon-15,
.aal-library-page .sprite.sms-icon-15 {
    background-position: 0 -220px;
}

/* Variant-aware service grid centering */
.aal-service-grid.aal-service-count-1 {
    grid-template-columns: minmax(220px, 320px);
    justify-content: center;
}

.aal-service-grid.aal-service-count-2 {
    grid-template-columns: repeat(2, minmax(220px, 320px));
    justify-content: center;
}

.aal-service-grid.aal-service-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Original AskALibrarian header/logo image */
.aal-brand-logo-link {
    display: inline-block;
    max-width: 100%;
}

.aal-brand-logo {
    display: block;
    max-width: 760px;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Stronger legacy header sizing */
.aal-library-container {
    max-width: 1170px !important;
}

.aal-branding {
    margin-bottom: 26px !important;
}

.aal-brand-logo {
    max-width: 980px !important;
    width: 92% !important;
    height: auto !important;
}

/* Force the AskALibrarian logo/header to match the legacy site scale */
.aal-branding {
    text-align: center !important;
    width: 100% !important;
    margin: 0 auto 28px auto !important;
}

.aal-brand-logo-link {
    display: block !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

.aal-brand-logo {
    display: block !important;
    width: 1000px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
}

/* Library-specific FAQ / more information panel */
.aal-library-info-panel {
    max-width: 680px;
    margin: 28px auto 20px auto;
    background: #f5f5f5;
    border: 1px solid #dddddd;
    border-radius: 4px;
    padding: 18px;
    text-align: center;
}

.aal-library-info-panel h3 {
    font-size: 26px;
    margin: 0 0 14px 0;
}

/* Springshare FAQ widget styling */
.aal-faq-widget-panel {
    max-width: 760px;
    margin: 24px auto;
    border: 1px solid #999999;
    background: #ffffff;
    padding: 26px 34px;
}

.aal-faq-widget-panel a {
    display: block;
    max-width: 640px;
    margin: 12px auto;
    padding: 10px 14px;
    background: #0041c2;
    border: 1px solid #0038a8;
    border-radius: 4px;
    color: #ffffff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 15px;
    line-height: 1.3;
}

.aal-faq-widget-panel a:hover,
.aal-faq-widget-panel a:focus {
    background: #0038a8;
    border-color: #002f8d;
    color: #ffffff !important;
    text-decoration: none !important;
}

.aal-faq-widget-panel hr {
    margin: 22px 0;
}

.aal-faq-back-link {
    text-align: center;
    margin-top: 18px;
}

/* Provide minimal Bootstrap variable compatibility for Springshare widgets */
.aal-standalone-template {
    --bs-primary: #0041c2;
    --bs-white: #ffffff;
}

.aal-faq-widget-panel .s-la-faq-answer a {
    display: block !important;
    background: #0041c2 !important;
    color: #ffffff !important;
    padding: .5rem 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: .375rem !important;
    margin-bottom: .75rem !important;
    max-width: 640px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.aal-faq-widget-panel .s-la-faq-answer a:hover,
.aal-faq-widget-panel .s-la-faq-answer a:focus {
    background: #0038a8 !important;
    color: #ffffff !important;
}

/* AskALibrarian modal system */
.aal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.aal-modal.aal-modal-open {
    display: block;
}

.aal-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.aal-modal-dialog {
    position: relative;
    max-width: 560px;
    margin: 8vh auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.aal-modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: 0;
    background: transparent;
    color: #333333;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.aal-modal-header h2 {
    margin: 0 34px 18px 0;
    font-size: 28px;
}

.aal-modal-body {
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.aal-text-number {
    display: inline-block;
    margin: 14px auto;
    padding: 12px 18px;
    background: #0041c2;
    color: #ffffff !important;
    border-radius: 4px;
    font-size: 22px;
    font-weight: 700;
    text-decoration: none !important;
}

.aal-text-number:hover,
.aal-text-number:focus {
    background: #0038a8;
    color: #ffffff !important;
}

@media (max-width: 640px) {
    .aal-modal-dialog {
        margin: 5vh 16px;
        padding: 20px;
    }
}

/* Modal content variations */
.aal-modal-dialog-large {
    max-width: 760px;
}

.aal-modal-body-left {
    text-align: left;
}

.aal-modal-body-left p {
    margin-bottom: 1em;
}

/* About modal closer to legacy popup */
.aal-about-dialog {
    max-width: 560px;
}

.aal-about-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.aal-about-header h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
}

.aal-about-logo {
    max-width: 250px;
    width: 250px;
    height: auto;
}

.aal-modal-footer {
    border-top: 1px solid #dddddd;
    margin-top: 18px;
    padding-top: 14px;
    text-align: right;
}

.aal-modal-footer-close {
    background: #6c757d;
    color: #ffffff;
    border: 0;
    border-radius: 4px;
    padding: 8px 14px;
    cursor: pointer;
}

.aal-modal-footer-close:hover,
.aal-modal-footer-close:focus {
    background: #5c636a;
    color: #ffffff;
}

@media (max-width: 640px) {
    .aal-about-header {
        display: block;
    }

    .aal-about-logo {
        max-width: 220px;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Find your Florida library modal */
.aal-filter-wrap {
    margin-bottom: 14px;
}

.aal-filter-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.aal-filter-input {
    width: 100%;
    padding: 9px;
    font-size: 16px;
    color: #222222;
    border: 1px solid #777777;
    background: #ffffff;
}

.aal-library-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid #dddddd;
}

.aal-library-list-item {
    border-bottom: 1px solid #eeeeee;
    margin: 0;
}

.aal-library-list-item:last-child {
    border-bottom: 0;
}

.aal-library-list-item a {
    display: block;
    padding: 10px 12px;
    color: #0056b3;
    text-decoration: underline;
}

.aal-library-list-item a:hover,
.aal-library-list-item a:focus {
    background: #f5f5f5;
    color: #003d80;
}

/* Library banner images */
.aal-library-banner {
    text-align: center;
    margin: 0 auto 24px auto;
}

.aal-library-banner img {
    display: inline-block;
    max-width: 260px;
    width: auto;
    height: auto;
}

/* Library page default service blurb */
.aal-library-default-message {
    max-width: 720px;
    margin: 0 auto 24px auto;
    padding: 16px 20px;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    color: #444444;
    text-align: center;
    border-radius: 4px;
}

/* Mobile layout fixes for library service cards */
@media (max-width: 700px) {
    .aal-library-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .aal-library-container {
        width: auto;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .aal-brand-logo {
        max-width: 100%;
        height: auto;
    }

    .aal-library-banner img {
        max-width: 220px;
        height: auto;
    }

    .aal-library-header h1 {
        font-size: 28px;
        line-height: 1.15;
    }

    .aal-library-default-message {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        font-size: 16px;
        line-height: 1.45;
    }

    .aal-service-grid,
    .aal-service-count-1,
    .aal-service-count-2,
    .aal-service-count-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }

    .aal-service-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .aal-service-card h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .aal-service-card .aal-button {
        white-space: normal;
        max-width: 100%;
    }

    .aal-faq-widget-panel,
    .aal-lower-callouts,
    .aal-footer-actions {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}

/* Footer polish */
.aal-footer-note,
.aal-footer {
    max-width: 980px;
    margin: 18px auto 0 auto;
    padding: 0 20px 24px 20px;
    text-align: center;
    color: #555555;
    font-size: 13px;
    line-height: 1.45;
    box-sizing: border-box;
}

/* Homepage responsive/mobile polish */
@media (max-width: 700px) {
    .aal-home-page,
    .aal-library-page {
        padding-left: 10px;
        padding-right: 10px;
        box-sizing: border-box;
    }

    .aal-home-container,
    .aal-library-container {
        width: auto !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .aal-branding,
    .aal-brand-logo-link {
        max-width: 100%;
        overflow: hidden;
    }

    .aal-brand-logo {
        display: block;
        max-width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }

    .aal-notice,
    .aal-library-default-message {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        font-size: 16px;
        line-height: 1.45;
        box-sizing: border-box;
    }

    .aal-service-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .aal-service-grid,
    .aal-service-count-1,
    .aal-service-count-2,
    .aal-service-count-3 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .aal-service-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .aal-service-card h2 {
        font-size: 30px;
        line-height: 1.15;
    }

    .aal-service-card .aal-button,
    .aal-button {
        white-space: normal;
        max-width: 100%;
        box-sizing: border-box;
    }

    .aal-lower-callouts,
    .aal-home-callouts,
    .aal-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .aal-footer-note,
    .aal-footer {
        max-width: 100%;
        margin: 16px auto 0 auto;
        padding: 0 14px 22px 14px;
        text-align: center;
        font-size: 12px;
        line-height: 1.45;
    }
}

/* Homepage footer inside the white landing-page content area */
.aal-home-footer-note,
.aal-local-footer-note {
    display: block;
    max-width: 760px;
    margin: 26px auto 0 auto;
    padding: 16px 20px 4px 20px;
    text-align: center;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
    box-sizing: border-box;
    clear: both;
}

@media (max-width: 700px) {
    .aal-home-footer-note,
    .aal-local-footer-note {
        max-width: 100%;
        margin-top: 22px;
        padding: 14px 12px 4px 12px;
        font-size: 12px;
        line-height: 1.45;
    }
}

/* Site-wide message banner */
.aal-sitewide-banner {
    max-width: 900px;
    margin: 0 auto 22px auto;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    text-align: center;
    box-sizing: border-box;
}

.aal-sitewide-banner h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    line-height: 1.2;
}

.aal-sitewide-banner-body p {
    margin: 0 0 8px 0;
}

.aal-sitewide-banner-body p:last-child {
    margin-bottom: 0;
}

.aal-sitewide-banner-info {
    background: #eef6fc;
    border-color: #72aee6;
    color: #1d4f73;
}

.aal-sitewide-banner-warning {
    background: #fff8e5;
    border-color: #dba617;
    color: #5f4315;
}

.aal-sitewide-banner-emergency {
    background: #fcf0f1;
    border-color: #d63638;
    color: #691c1e;
}

.aal-sitewide-banner-success {
    background: #edfaef;
    border-color: #68de7c;
    color: #1f5c2e;
}

@media (max-width: 700px) {
    .aal-sitewide-banner {
        max-width: 100%;
        margin: 0 0 18px 0;
        padding: 14px 14px;
    }

    .aal-sitewide-banner h2 {
        font-size: 20px;
    }
}

/* Library-specific alert and hours/info boxes */
.aal-library-alert,
.aal-library-hours-box {
    max-width: 760px;
    margin: 0 auto 22px auto;
    padding: 16px 20px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    text-align: center;
    box-sizing: border-box;
}

.aal-library-alert h2,
.aal-library-hours-box h2 {
    margin: 0 0 8px 0;
    font-size: 22px;
    line-height: 1.2;
}

.aal-library-alert-body p,
.aal-library-hours-body p {
    margin: 0 0 8px 0;
}

.aal-library-alert-body p:last-child,
.aal-library-hours-body p:last-child {
    margin-bottom: 0;
}

.aal-library-alert-info {
    background: #eef6fc;
    border-color: #72aee6;
    color: #1d4f73;
}

.aal-library-alert-warning {
    background: #fff8e5;
    border-color: #dba617;
    color: #5f4315;
}

.aal-library-alert-emergency {
    background: #fcf0f1;
    border-color: #d63638;
    color: #691c1e;
}

.aal-library-alert-success {
    background: #edfaef;
    border-color: #68de7c;
    color: #1f5c2e;
}

.aal-library-hours-box {
    background: #f7f7f7;
    border-color: #dddddd;
    color: #444444;
}

@media (max-width: 700px) {
    .aal-library-alert,
    .aal-library-hours-box {
        max-width: 100%;
        margin: 0 0 18px 0;
        padding: 14px 14px;
    }

    .aal-library-alert h2,
    .aal-library-hours-box h2 {
        font-size: 20px;
    }
}

/* Optional hidden public library title.
   Keeps the h1 available for accessibility while removing visual duplication under logos. */
.aal-library-header-hidden {
    margin: 0;
    height: 0;
    overflow: hidden;
}

.aal-library-header-hidden h1 {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Desktop scale refresh - added 2026-07-09
   Purpose: make the hybrid homepage feel closer in size/width to the original AskALibrarian site.
   This intentionally affects visual scale only and is not part of the admin manual.
*/

@media (min-width: 900px) {

    body {
        background-color: #ffffff;
    }

    .aal-statewide-home,
    .aal-library-page,
    .aal-page,
    .aal-public-page {
        max-width: 1180px !important;
        width: calc(100% - 64px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .aal-home-card,
    .aal-page-card,
    .aal-main-card,
    .aal-content-card,
    .aal-statewide-card {
        max-width: 1180px !important;
        padding: 36px 38px 44px !important;
    }

    .aal-branding,
    .aal-logo-wrap,
    .aal-header-logo {
        text-align: center !important;
    }

    .aal-branding img,
    .aal-logo,
    .aal-site-logo,
    .aal-header-logo img {
        width: min(92%, 960px) !important;
        max-width: 960px !important;
        height: auto !important;
    }

    .aal-site-message,
    .aal-service-message,
    .aal-intro-message,
    .aal-library-message {
        max-width: 820px !important;
        font-size: 1rem !important;
        line-height: 1.45 !important;
        margin: 22px auto !important;
    }

    .aal-service-grid {
        max-width: 1080px !important;
        gap: 32px !important;
        margin: 28px auto 0 !important;
    }

    .aal-service-card {
        min-height: 220px !important;
        padding: 32px 28px !important;
    }

    .aal-service-icon,
    .aal-service-card img,
    .aal-service-image {
        width: 120px !important;
        max-width: 120px !important;
        height: auto !important;
        margin-bottom: 12px !important;
    }

    .aal-service-title,
    .aal-service-card h2,
    .aal-service-card h3 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin: 10px 0 12px !important;
    }

    .aal-button,
    .aal-modal-trigger,
    .aal-service-card a.aal-button {
        font-size: 1rem !important;
        padding: 8px 14px !important;
    }

    .aal-lower-panels,
    .aal-info-row,
    .aal-home-lower {
        max-width: 1010px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 899px) {
    .aal-service-card {
        padding: 22px 18px !important;
    }

    .aal-service-title,
    .aal-service-card h2,
    .aal-service-card h3 {
        font-size: 1.6rem !important;
    }
}


/* Homepage targeted scale refresh - added 2026-07-09
   Targets the AskALibrarian statewide homepage only.
   Goal: make the hybrid homepage closer to the original site's width and visual scale.
*/

@media (min-width: 1000px) {

    body.aal-statewide-body {
        background-color: #ffffff !important;
    }

    body.aal-statewide-body .aal-library-page.aal-statewide-home {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    body.aal-statewide-body .aal-library-container {
        width: min(1230px, calc(100vw - 110px)) !important;
        max-width: 1230px !important;
        margin: 0 auto !important;
        padding: 44px 34px 48px !important;
        background: #ffffff !important;
        border-radius: 4px !important;
    }

    body.aal-statewide-body .aal-branding {
        margin: 0 auto 20px !important;
        text-align: center !important;
    }

    body.aal-statewide-body .aal-brand-logo {
        width: min(965px, 92%) !important;
        max-width: 965px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    body.aal-statewide-body .aal-message {
        width: min(820px, 74%) !important;
        max-width: 820px !important;
        margin: 24px auto 22px !important;
        padding: 13px 18px !important;
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }

    body.aal-statewide-body .aal-service-panel {
        width: 100% !important;
        max-width: 1160px !important;
        margin: 24px auto 28px !important;
        padding: 34px 30px 30px !important;
        border-radius: 4px !important;
    }

    body.aal-statewide-body .aal-service-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 42px !important;
        align-items: start !important;
        max-width: 1060px !important;
        margin: 0 auto 28px !important;
    }

    body.aal-statewide-body .aal-service-card {
        min-height: 200px !important;
        padding: 0 16px !important;
        text-align: center !important;
    }

    body.aal-statewide-body .aal-service-card img {
        width: 118px !important;
        max-width: 118px !important;
        height: auto !important;
        margin: 0 auto 12px !important;
    }

    body.aal-statewide-body .aal-service-card h2,
    body.aal-statewide-body .aal-service-card h3 {
        font-size: 2rem !important;
        line-height: 1.1 !important;
        margin: 8px 0 14px !important;
    }

    body.aal-statewide-body .aal-button {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        padding: 8px 14px !important;
        border-radius: 4px !important;
    }

    body.aal-statewide-body .aal-notice {
        max-width: 1080px !important;
        margin: 26px auto 0 !important;
        padding: 14px 18px !important;
    }

    body.aal-statewide-body .aal-lower-panel {
        font-size: 1.15rem !important;
        line-height: 1.25 !important;
    }

    body.aal-statewide-body .aal-footer-note {
        max-width: 760px !important;
        margin: 28px auto 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }
}

@media (min-width: 1000px) and (max-width: 1350px) {
    body.aal-statewide-body .aal-library-container {
        width: calc(100vw - 80px) !important;
    }

    body.aal-statewide-body .aal-brand-logo {
        width: min(900px, 90%) !important;
    }
}

@media (max-width: 999px) {
    body.aal-statewide-body .aal-library-container {
        width: calc(100vw - 28px) !important;
        padding: 26px 18px 34px !important;
    }

    body.aal-statewide-body .aal-brand-logo {
        width: 96% !important;
        max-width: 720px !important;
    }

    body.aal-statewide-body .aal-service-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}


/* Statewide homepage Divi wrapper fix - added 2026-07-09
   Divi's default .container and right-sidebar page structure were keeping the
   AskALibrarian homepage narrower than the original site.
   This targets only the statewide homepage body class.
*/

@media (min-width: 1000px) {

    body.aal-statewide-body #page-container,
    body.aal-statewide-body #main-content {
        width: 100% !important;
        max-width: none !important;
        background: #ffffff !important;
    }

    body.aal-statewide-body #main-content .container {
        width: 100% !important;
        max-width: none !important;
        padding-top: 0 !important;
        margin: 0 auto !important;
    }

    body.aal-statewide-body #main-content .container:before {
        display: none !important;
        content: none !important;
    }

    body.aal-statewide-body #left-area {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        padding: 0 !important;
    }

    body.aal-statewide-body #sidebar {
        display: none !important;
    }

    body.aal-statewide-body .entry-content {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.aal-statewide-body .aal-library-container {
        width: min(1380px, calc(100vw - 90px)) !important;
        max-width: 1380px !important;
        padding: 48px 42px 52px !important;
    }

    body.aal-statewide-body .aal-brand-logo {
        width: min(1040px, 94%) !important;
        max-width: 1040px !important;
    }

    body.aal-statewide-body .aal-service-panel {
        max-width: 1260px !important;
        padding: 38px 34px 34px !important;
    }

    body.aal-statewide-body .aal-service-grid {
        max-width: 1140px !important;
        gap: 52px !important;
    }

    body.aal-statewide-body .aal-service-card img {
        width: 132px !important;
        max-width: 132px !important;
    }

    body.aal-statewide-body .aal-service-card h2,
    body.aal-statewide-body .aal-service-card h3 {
        font-size: 2.15rem !important;
    }
}


/* Final statewide homepage scale override - added 2026-07-09
   Uses the exact WordPress body classes for the homepage:
   body.home.page-id-12.aal-statewide-body
*/

@media (min-width: 1000px) {

    body.home.page-id-12.aal-statewide-body,
    body.home.page-id-12.aal-statewide-body #page-container,
    body.home.page-id-12.aal-statewide-body #main-content {
        background: #ffffff !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.home.page-id-12.aal-statewide-body #main-content > .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.home.page-id-12.aal-statewide-body #main-content > .container:before {
        display: none !important;
        content: none !important;
    }

    body.home.page-id-12.aal-statewide-body #left-area {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.home.page-id-12.aal-statewide-body #sidebar {
        display: none !important;
    }

    body.home.page-id-12.aal-statewide-body .entry-content {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.home.page-id-12.aal-statewide-body main.aal-library-page.aal-statewide-home {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    body.home.page-id-12.aal-statewide-body main.aal-library-page.aal-statewide-home > .aal-library-container {
        width: min(1225px, calc(100vw - 260px)) !important;
        max-width: 1225px !important;
        min-width: 1120px !important;
        margin: 0 auto !important;
        padding: 54px 36px 52px !important;
        background: #ffffff !important;
        box-shadow: none !important;
        border: 1px solid #eeeeee !important;
        border-radius: 4px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-branding {
        margin: 0 auto 22px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-brand-logo {
        width: 980px !important;
        max-width: 94% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-message {
        width: 760px !important;
        max-width: 760px !important;
        margin: 24px auto 24px !important;
        padding: 13px 18px !important;
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-service-panel {
        width: 100% !important;
        max-width: 1140px !important;
        margin: 26px auto 28px !important;
        padding: 36px 28px 32px !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-service-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1060px !important;
        margin: 0 auto 28px !important;
        gap: 54px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-service-card {
        padding: 0 18px !important;
        min-height: 190px !important;
        text-align: center !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-service-card img {
        width: 124px !important;
        max-width: 124px !important;
        height: auto !important;
        margin: 0 auto 12px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-service-card h2,
    body.home.page-id-12.aal-statewide-body .aal-service-card h3 {
        font-size: 2.1rem !important;
        line-height: 1.1 !important;
        margin: 8px 0 14px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-button {
        font-size: 1rem !important;
        padding: 8px 14px !important;
        line-height: 1.2 !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-notice {
        width: 100% !important;
        max-width: 1055px !important;
        margin: 24px auto 0 !important;
        padding: 14px 18px !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-footer-note {
        width: 700px !important;
        max-width: 700px !important;
        margin: 30px auto 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }
}

@media (min-width: 1000px) and (max-width: 1450px) {
    body.home.page-id-12.aal-statewide-body main.aal-library-page.aal-statewide-home > .aal-library-container {
        width: calc(100vw - 180px) !important;
        min-width: 0 !important;
    }

    body.home.page-id-12.aal-statewide-body .aal-brand-logo {
        width: 920px !important;
    }
}


/* AskALibrarian public page normalization - added 2026-07-09
   Applies to plugin-controlled public pages:
   - statewide homepage
   - individual library pages

   Goal:
   - consistent white background
   - wider public content area
   - less "small card floating in the middle" feel
   - preserve mobile responsiveness
*/

@media (min-width: 1000px) {

    body.aal-standalone-template,
    body.aal-standalone-template #page-container,
    body.aal-standalone-template #main-content {
        background: #ffffff !important;
        width: 100% !important;
        max-width: none !important;
    }

    body.aal-standalone-template #main-content > .container {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.aal-standalone-template #main-content > .container:before {
        display: none !important;
        content: none !important;
    }

    body.aal-standalone-template #left-area {
        width: 100% !important;
        max-width: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.aal-standalone-template #sidebar {
        display: none !important;
    }

    body.aal-standalone-template .entry-content {
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.aal-standalone-template .aal-library-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body.aal-standalone-template .aal-library-container {
        width: min(1180px, calc(100vw - 180px)) !important;
        max-width: 1180px !important;
        margin: 0 auto !important;
        padding: 50px 38px 50px !important;
        background: #ffffff !important;
        border: 1px solid #eeeeee !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    body.aal-standalone-template .aal-branding {
        text-align: center !important;
        margin: 0 auto 22px !important;
        padding: 0 !important;
    }

    body.aal-standalone-template .aal-brand-logo {
        width: min(980px, 94%) !important;
        max-width: 980px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    body.aal-standalone-template .aal-message {
        width: min(760px, 78%) !important;
        max-width: 760px !important;
        margin: 24px auto 24px !important;
        padding: 13px 18px !important;
        font-size: 1rem !important;
        line-height: 1.45 !important;
    }

    body.aal-standalone-template .aal-service-panel {
        width: 100% !important;
        max-width: 1080px !important;
        margin: 26px auto 28px !important;
        padding: 36px 30px 32px !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
    }

    body.aal-standalone-template .aal-service-grid {
        max-width: 980px !important;
        margin: 0 auto 28px !important;
        gap: 48px !important;
        align-items: start !important;
    }

    body.aal-standalone-template .aal-service-card {
        text-align: center !important;
        padding: 0 18px !important;
        min-height: 185px !important;
    }

    body.aal-standalone-template .aal-service-card img {
        width: 124px !important;
        max-width: 124px !important;
        height: auto !important;
        margin: 0 auto 12px !important;
    }

    body.aal-standalone-template .aal-service-card h2,
    body.aal-standalone-template .aal-service-card h3 {
        font-size: 2.1rem !important;
        line-height: 1.1 !important;
        margin: 8px 0 14px !important;
    }

    body.aal-standalone-template .aal-button {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        padding: 8px 14px !important;
        border-radius: 4px !important;
    }

    body.aal-standalone-template .aal-notice {
        width: 100% !important;
        max-width: 1020px !important;
        margin: 24px auto 0 !important;
        padding: 14px 18px !important;
    }

    body.aal-standalone-template .aal-footer-note {
        width: min(760px, 80%) !important;
        max-width: 760px !important;
        margin: 30px auto 0 !important;
        font-size: 0.85rem !important;
        line-height: 1.35 !important;
    }

    /* Homepage can be slightly wider than individual library pages. */
    body.aal-statewide-body .aal-library-container {
        width: min(1230px, calc(100vw - 150px)) !important;
        max-width: 1230px !important;
    }

    body.aal-statewide-body .aal-service-panel {
        max-width: 1120px !important;
    }

    body.aal-statewide-body .aal-service-grid {
        max-width: 1040px !important;
    }

    /* Individual library pages should remain slightly tighter than homepage. */
    body.aal-library-body .aal-library-container {
        width: min(1160px, calc(100vw - 170px)) !important;
        max-width: 1160px !important;
    }

    body.aal-library-body .aal-service-panel {
        max-width: 1060px !important;
    }

    body.aal-library-body .aal-service-grid {
        max-width: 900px !important;
    }
}

@media (min-width: 1000px) and (max-width: 1350px) {
    body.aal-standalone-template .aal-library-container,
    body.aal-statewide-body .aal-library-container,
    body.aal-library-body .aal-library-container {
        width: calc(100vw - 90px) !important;
        min-width: 0 !important;
    }
}

@media (max-width: 999px) {
    body.aal-standalone-template,
    body.aal-standalone-template #page-container,
    body.aal-standalone-template #main-content,
    body.aal-standalone-template .aal-library-page {
        background: #ffffff !important;
    }

    body.aal-standalone-template .aal-library-container {
        width: calc(100vw - 28px) !important;
        max-width: none !important;
        padding: 28px 18px 36px !important;
        margin: 0 auto !important;
    }

    body.aal-standalone-template .aal-brand-logo {
        width: 96% !important;
        max-width: 720px !important;
    }

    body.aal-standalone-template .aal-message {
        width: 100% !important;
        max-width: none !important;
    }

    body.aal-standalone-template .aal-service-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }
}


/* Final public page scale-up - added 2026-07-09
   Applies to AskALibrarian plugin-controlled public pages.
   Purpose: make the homepage and library pages feel closer to the original site's scale.
*/

@media (min-width: 1200px) {

    html body.aal-standalone-template,
    html body.aal-standalone-template #page-container,
    html body.aal-standalone-template #main-content {
        background: #ffffff !important;
    }

    html body.aal-standalone-template #main-content > .container,
    html body.aal-standalone-template #left-area,
    html body.aal-standalone-template .entry-content,
    html body.aal-standalone-template main.aal-library-page {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    html body.aal-standalone-template #sidebar,
    html body.aal-standalone-template #main-content > .container:before {
        display: none !important;
        content: none !important;
    }

    /* Default public library-page width. */
    html body.aal-standalone-template main.aal-library-page > .aal-library-container {
        width: clamp(1120px, 72vw, 1360px) !important;
        max-width: 1360px !important;
        margin: 0 auto !important;
        padding: 56px 46px 56px !important;
        background: #ffffff !important;
        border: 1px solid #eeeeee !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    /* Homepage can be a little wider than individual library pages. */
    html body.aal-statewide-body main.aal-library-page > .aal-library-container {
        width: clamp(1180px, 76vw, 1440px) !important;
        max-width: 1440px !important;
    }

    /* Logo sizing. */
    html body.aal-standalone-template .aal-brand-logo {
        width: clamp(900px, 62vw, 1120px) !important;
        max-width: 1120px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    /* Local library logo underneath main AAL logo should not become enormous. */
    html body.aal-library-body .aal-local-logo,
    html body.aal-library-body .aal-library-logo,
    html body.aal-library-body .aal-library-banner,
    html body.aal-library-body .aal-library-branding img:not(.aal-brand-logo) {
        max-width: 260px !important;
        height: auto !important;
    }

    /* Message box. */
    html body.aal-standalone-template .aal-message {
        width: min(840px, 74%) !important;
        max-width: 840px !important;
        margin: 26px auto 26px !important;
        padding: 14px 20px !important;
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
    }

    /* Main service panel. */
    html body.aal-standalone-template .aal-service-panel {
        width: 100% !important;
        max-width: 1220px !important;
        margin: 28px auto 30px !important;
        padding: 42px 38px 36px !important;
        border: 1px solid #cccccc !important;
        border-radius: 4px !important;
    }

    html body.aal-statewide-body .aal-service-panel {
        max-width: 1280px !important;
    }

    /* Service card grid. */
    html body.aal-standalone-template .aal-service-grid {
        max-width: 1120px !important;
        margin: 0 auto 30px !important;
        gap: 58px !important;
        align-items: start !important;
    }

    html body.aal-statewide-body .aal-service-grid {
        max-width: 1180px !important;
    }

    html body.aal-standalone-template .aal-service-card {
        text-align: center !important;
        padding: 0 20px !important;
        min-height: 205px !important;
    }

    html body.aal-standalone-template .aal-service-card img {
        width: 138px !important;
        max-width: 138px !important;
        height: auto !important;
        margin: 0 auto 14px !important;
    }

    html body.aal-standalone-template .aal-service-card h2,
    html body.aal-standalone-template .aal-service-card h3 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        margin: 10px 0 16px !important;
    }

    html body.aal-standalone-template .aal-button {
        font-size: 1.05rem !important;
        line-height: 1.2 !important;
        padding: 8px 15px !important;
        border-radius: 4px !important;
    }

    /* Lower About / Find Library / FAQ / Hours boxes. */
    html body.aal-standalone-template .aal-notice,
    html body.aal-standalone-template .aal-lower-panel {
        font-size: 1.12rem !important;
        line-height: 1.3 !important;
    }

    html body.aal-standalone-template .aal-footer-note {
        width: min(780px, 72%) !important;
        max-width: 780px !important;
        margin: 32px auto 0 !important;
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
    }
}

@media (min-width: 1000px) and (max-width: 1199px) {
    html body.aal-standalone-template main.aal-library-page > .aal-library-container {
        width: calc(100vw - 48px) !important;
        max-width: none !important;
        padding: 42px 28px 44px !important;
    }

    html body.aal-standalone-template .aal-brand-logo {
        width: min(900px, 94%) !important;
    }

    html body.aal-standalone-template .aal-service-panel {
        max-width: none !important;
        padding: 34px 28px 32px !important;
    }
}


/* Direct AskALibrarian public width override - added 2026-07-09
   This intentionally uses broad-but-safe selectors scoped to plugin public pages.
   It fixes remaining narrow layout caused by Divi/theme wrappers.
*/

@media (min-width: 981px) {

    html body.aal-standalone-template,
    html body.aal-standalone-template #page-container,
    html body.aal-standalone-template #main-content,
    html body.aal-standalone-template #main-content .container,
    html body.aal-standalone-template #content-area,
    html body.aal-standalone-template #left-area,
    html body.aal-standalone-template .entry-content {
        width: 100% !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        background: #ffffff !important;
    }

    html body.aal-standalone-template #main-content .container:before,
    html body.aal-standalone-template #sidebar {
        display: none !important;
        content: none !important;
    }

    html body.aal-standalone-template .aal-library-page {
        width: 100% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    html body.aal-standalone-template .aal-library-container {
        width: min(1260px, 92vw) !important;
        max-width: 1260px !important;
        margin: 0 auto !important;
        padding: 54px 42px 54px !important;
        background: #ffffff !important;
        border: 1px solid #eeeeee !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    html body.aal-statewide-body .aal-library-container {
        width: min(1320px, 94vw) !important;
        max-width: 1320px !important;
    }

    html body.aal-standalone-template .aal-brand-logo {
        width: min(1060px, 92%) !important;
        max-width: 1060px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    html body.aal-standalone-template .aal-message {
        width: min(820px, 76%) !important;
        max-width: 820px !important;
        margin: 26px auto !important;
        padding: 14px 20px !important;
        font-size: 1.05rem !important;
        line-height: 1.45 !important;
    }

    html body.aal-standalone-template .aal-service-panel {
        width: 100% !important;
        max-width: 1180px !important;
        margin: 28px auto 30px !important;
        padding: 42px 38px 36px !important;
        border: 1px solid #cccccc !important;
    }

    html body.aal-statewide-body .aal-service-panel {
        max-width: 1240px !important;
    }

    html body.aal-standalone-template .aal-service-grid {
        max-width: 1080px !important;
        margin: 0 auto 30px !important;
        gap: 56px !important;
    }

    html body.aal-statewide-body .aal-service-grid {
        max-width: 1160px !important;
    }

    html body.aal-standalone-template .aal-service-card img {
        width: 138px !important;
        max-width: 138px !important;
        height: auto !important;
        margin: 0 auto 14px !important;
    }

    html body.aal-standalone-template .aal-service-card h2,
    html body.aal-standalone-template .aal-service-card h3 {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
        margin: 10px 0 16px !important;
    }

    html body.aal-standalone-template .aal-button {
        font-size: 1.05rem !important;
        padding: 8px 15px !important;
        line-height: 1.2 !important;
    }

    html body.aal-standalone-template .aal-footer-note {
        width: min(780px, 76%) !important;
        max-width: 780px !important;
        font-size: 0.88rem !important;
        line-height: 1.35 !important;
    }
}
