/* Quiet mobile treatment for the shared homepage service shortcuts. */
@media (max-width: 767px) {
    /* Restore the compact warning mark above the centered emergency heading. */
    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-heading {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0 0 14px !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-heading > span {
        display: grid !important;
        width: 34px !important;
        height: 34px !important;
        margin: 0 auto !important;
        place-items: center !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #d91f2b !important;
        color: #fff !important;
        font-size: 18px !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-heading > div {
        width: 100% !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-heading small {
        display: block !important;
        margin: 0 !important;
        color: #cfdeea !important;
        font: 500 9px/1.4 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: .1em !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-heading h2 {
        margin: 3px 0 0 !important;
        color: #fff !important;
        font: 700 17px/1.3 "Manrope", "DM Sans", sans-serif !important;
        letter-spacing: -.01em !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card > a.emergency-action,
    html:root:root body.municipal-homepage main#main-content .hero .emergency-card > a.emergency-action:visited {
        display: block !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 34px !important;
        margin: 12px auto 0 !important;
        padding: 8px 13px !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #d7192d !important;
        background-image: none !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        font: 600 10px/1.45 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: .01em !important;
        text-align: center !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card > a.emergency-action:is(:hover, :focus-visible) {
        background: #b91526 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        opacity: 1 !important;
        box-shadow: none !important;
    }

    /* Separate the calendar action from its compact synchronization status. */
    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > a.calendar-full-link,
    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > a.calendar-full-link:is(:hover, :focus, :active) {
        position: static !important;
        display: flex !important;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 30px !important;
        height: auto !important;
        margin: 12px auto 10px !important;
        padding: 6px 11px !important;
        align-items: center !important;
        justify-content: center !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #f1f3f5 !important;
        color: #31526b !important;
        -webkit-text-fill-color: #31526b !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        white-space: nowrap !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > a.calendar-full-link::after {
        content: none !important;
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > .sync-note {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr) !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 0 !important;
        margin: 0 auto !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        align-items: center !important;
        border: 0 !important;
        border-radius: 6px !important;
        background: #f1f4f6 !important;
        text-align: left !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > .sync-note > svg {
        width: 20px !important;
        height: 20px !important;
        flex: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > .sync-note > span {
        display: flex !important;
        min-width: 0 !important;
        flex-direction: column !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > .sync-note b {
        color: #31526b !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html:root:root body.municipal-homepage main#main-content #calendar.calendar-panel > .sync-note small {
        margin-top: 2px !important;
        color: #6b7882 !important;
        font: 400 10px/1.4 "DM Sans", "Segoe UI", sans-serif !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    /* Flatten the desktop columns so transaction tracking follows account linking. */
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready {
        display: flex !important;
        flex-direction: column !important;
        gap: 18px !important;
    }

    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready > :is(.home-main-column, .home-side-column) {
        display: contents !important;
    }

    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .track-transaction-card { order: 1 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .civic-accomplishments { order: 2 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .updates-panel--portal { order: 3 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .transparency-panel { order: 4 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .programs-panel { order: 5 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .calendar-panel { order: 6 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .civic-weather { order: 7 !important; }
    html:root:root body.municipal-homepage main#main-content .home-content-columns.is-ready .citizen-care { order: 8 !important; }

    html:root:root body.municipal-homepage main#main-content #services.service-dock {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: auto !important;
        column-gap: 4px !important;
        row-gap: 4px !important;
        padding: 14px 10px 12px !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: #fff !important;
        box-shadow: 0 3px 12px rgba(0, 30, 65, .04) !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item,
    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item:nth-child(n) {
        min-height: 108px !important;
        margin: 0 !important;
        padding: 10px 6px !important;
        border: 0 !important;
        border-radius: 7px !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item:is(:hover, :focus-visible) {
        background: #f5f7f8 !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item::after {
        content: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-icon {
        width: 42px !important;
        height: 42px !important;
        margin: 0 0 7px !important;
        border: 0 !important;
        border-radius: 7px !important;
        box-shadow: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-icon svg {
        width: 23px !important;
        height: 23px !important;
        stroke-width: 1.7 !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item strong {
        color: #15334b !important;
        font: 600 14px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: -.01em !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item small {
        margin-top: 4px !important;
        color: #6b7882 !important;
        font: 400 12px/1.4 "DM Sans", "Segoe UI", sans-serif !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .services-all,
    html:root:root body.municipal-homepage main#main-content #services.service-dock .services-all:is(:hover, :focus-visible) {
        position: static !important;
        inset: auto !important;
        grid-column: 1 / -1 !important;
        justify-self: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        min-height: 30px !important;
        margin: 7px auto 0 !important;
        padding: 5px 11px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #f1f3f5 !important;
        color: #31526b !important;
        -webkit-text-fill-color: #31526b !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .services-all:focus-visible {
        outline: 2px solid #7991a3 !important;
        outline-offset: 2px !important;
    }

    /* Compact the shared transaction card and remove its unused vertical space. */
    html:root:root body.municipal-homepage main#main-content .home-side-column > .track-transaction-card {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 24px 18px 22px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: #f6f7f8 !important;
        background-image: none !important;
        color: #18364e !important;
        text-align: center !important;
        box-shadow: 0 3px 12px rgba(0, 30, 65, .04) !important;
    }

    html:root:root body.municipal-homepage main#main-content .track-transaction-card > .section-label {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        color: #667985 !important;
        font: 600 11px/1.4 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: .1em !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html:root:root body.municipal-homepage main#main-content .track-transaction-card > h2 {
        display: block !important;
        width: 100% !important;
        margin: 7px 0 0 !important;
        color: #16344d !important;
        font: 600 22px/1.35 "Manrope", "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: -.025em !important;
        white-space: normal !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html:root:root body.municipal-homepage main#main-content .track-transaction-card > p {
        display: block !important;
        width: 100% !important;
        max-width: 320px !important;
        margin: 10px auto 16px !important;
        color: #64737d !important;
        font: 400 14px/1.55 "DM Sans", "Segoe UI", sans-serif !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
    }

    html:root:root body.municipal-homepage main#main-content .track-transaction-card > .home-standard-button,
    html:root:root body.municipal-homepage main#main-content .track-transaction-card > .home-standard-button:is(:hover, :focus, :active) {
        align-self: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        min-height: 32px !important;
        height: auto !important;
        margin: 0 auto !important;
        padding: 6px 11px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #eceff1 !important;
        color: #31526b !important;
        -webkit-text-fill-color: #31526b !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        box-shadow: none !important;
        transform: none !important;
    }

    html:root:root body.municipal-homepage main#main-content .track-transaction-card > .home-standard-button:focus-visible {
        outline: 2px solid #7991a3 !important;
        outline-offset: 2px !important;
    }
}

@media (max-width: 380px) {
    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item,
    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item:nth-child(n) {
        min-height: 104px !important;
        padding-inline: 4px !important;
    }

    html:root:root body.municipal-homepage main#main-content #services.service-dock .service-item strong {
        font-size: 13px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:root:root body.municipal-homepage main#main-content #services.service-dock :is(.service-item, .services-all) {
        transition: none !important;
    }
}
