/* Center the two panel introductions without affecting individual post cards. */
html body.municipal-homepage #main-content .updates-column--official .updates-column-heading {
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
}

html body.municipal-homepage #main-content .updates-column--official .updates-column-heading > div {
    width: 100%;
}

html body.municipal-homepage #main-content .updates-column--official .updates-column-heading :is(h3, p),
html body.municipal-homepage #main-content #home-facebook-updates .home-fb-heading :is(h3, p) {
    text-align: center !important;
}

/* Keep this homepage component independent of the legacy feed's fixed heights. */
#main-content #home-facebook-updates {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 24px !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: #fbfcfd !important;
    box-shadow: none !important;
    color: #65766f;
    container-type: inline-size;
}
#main-content #home-facebook-updates .home-fb-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    align-items: start;
    gap: 14px;
    margin-bottom: 20px;
    text-align: center;
}
#main-content #home-facebook-updates h3 {
    margin: 0 0 6px;
    color: #00365f;
    font: 700 20px/1.35 "Manrope", sans-serif;
    letter-spacing: -.025em;
}
#main-content #home-facebook-updates .home-fb-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}
#main-content #home-facebook-updates .home-fb-mark {
    display: grid;
    place-items: center;
    width: 102px;
    height: 102px;
    border-radius: 50%;
    background: #1877f2;
}
#main-content #home-facebook-updates .home-fb-mark svg { width: 68px; height: 68px; fill: #fff; stroke: none; }
#main-content #home-facebook-updates .home-fb-mark--heading { width: 44px; height: 44px; }
#main-content #home-facebook-updates .home-fb-mark--heading svg { width: 30px; height: 30px; }
#main-content #home-facebook-updates .home-fb-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 13px;
}
#main-content #home-facebook-updates .home-fb-status > span { width: 13px; height: 13px; border-radius: 50%; background: #07813d; }
#main-content #home-facebook-updates .home-fb-identity-row { display:flex;align-items:center;justify-content:flex-start;gap:14px;margin-bottom:16px;flex-shrink:0; }
#main-content #home-facebook-updates .home-fb-identity-row .home-fb-status { margin:0;text-align:left; }
#main-content #home-facebook-updates .home-fb-cards { display: grid; align-content: start; gap: 15px; max-height: 574px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #a6b8c9 #f2f7fb; padding: 18px; border-radius: 10px; background: #f2f7fb; }
#main-content #home-facebook-updates .home-fb-cards:focus-visible { outline: 2px solid #1877f2; outline-offset: 3px; }
#main-content #home-facebook-updates .home-fb-photo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 6px;
}
#main-content #home-facebook-updates time { display: block; margin: -4px 0 10px; font-size: 13px; }
#main-content #home-facebook-updates .home-fb-card p { white-space: pre-line; }
#main-content #home-facebook-updates h4 a, #main-content #home-facebook-updates .home-fb-read { color: #00365f; }
#main-content #home-facebook-updates .home-fb-read { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
#main-content #home-facebook-updates .home-fb-card a:hover { text-decoration: underline; }
#main-content #home-facebook-updates .home-fb-card a:focus-visible { outline: 2px solid #1877f2; outline-offset: 3px; }
#main-content #home-facebook-updates .home-fb-empty { padding: 18px; background: #fff; }
#main-content #home-facebook-updates .home-fb-empty p { margin: 0; font-size: 14px; line-height: 1.65; }
#main-content #home-facebook-updates .home-fb-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    min-width: 0;
    border: 1px solid #e7ecf0;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 30, 65, .035);
    background: #fff;
}
#main-content #home-facebook-updates .home-fb-card-header { display:flex;align-items:center;gap:10px;margin-bottom:12px; }
#main-content #home-facebook-updates .home-fb-card-header>img { width:32px;height:32px;flex-shrink:0;border-radius:50%;object-fit:contain; }
#main-content #home-facebook-updates .home-fb-card-header>div { min-width:0; }
#main-content #home-facebook-updates .home-fb-card-header h4 { margin:0!important;font:600 14px/1.45 "Manrope",sans-serif!important; }
#main-content #home-facebook-updates .home-fb-card-header time { margin:3px 0 0!important;font-size:11px!important;color:#6b7b88; }
#main-content #home-facebook-updates .home-fb-card-media { display:block;margin-bottom:12px;border-radius:6px;overflow:hidden;background:#f4f6f8; }
#main-content #home-facebook-updates .home-fb-card-media .home-fb-photo {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}
#main-content #home-facebook-updates .home-fb-card-copy p { display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;max-height:6.6em;font:400 13px/1.65 "DM Sans",sans-serif!important;color:#354957; }
#main-content #home-facebook-updates .home-fb-post-title,
#main-content #home-facebook-updates .home-fb-post-description { display: block; }
#main-content #home-facebook-updates .home-fb-post-title--external {
    color: #00365f;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
#main-content #home-facebook-updates .home-fb-post-description { margin-top: 1em; }
#main-content #home-facebook-updates .home-fb-card-copy small { font-size:11px!important;color:#778692; }
#main-content #home-facebook-updates .home-fb-card-copy .home-fb-read { display:flex;justify-content:center;margin-top:12px;min-height:38px;padding:8px 12px;border-radius:6px;background:#f3f5f7;font-size:12px!important;text-decoration:none; }
#main-content #home-facebook-updates .home-fb-card-copy .home-fb-read:hover { background:#e9edf1; }
#main-content #home-facebook-updates .home-fb-card > .home-fb-mark { justify-self: center; }
#main-content #home-facebook-updates .home-fb-card-copy { min-width: 0; overflow-wrap: anywhere; text-align: left; }
#main-content #home-facebook-updates .home-fb-card--text-only .home-fb-card-copy { margin-block: auto; }
#main-content #home-facebook-updates h4 { margin: 0 0 10px; color: #00365f; font: 600 16px/1.45 "DM Sans", sans-serif; }
#main-content #home-facebook-updates .home-fb-card p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
#main-content #home-facebook-updates small { display: block; font-size: 13px; line-height: 1.55; }
#main-content #home-facebook-updates .home-fb-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 14px; font-size: 13px; }
#main-content #home-facebook-updates .home-fb-footer a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    max-width: 100%;
    padding: 0 14px;
    border: 0;
    border-radius: 3px;
    background-color: #f3f5f7;
    color: #00365f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color 350ms cubic-bezier(.22, 1, .36, 1), color 350ms cubic-bezier(.22, 1, .36, 1);
}
#main-content #home-facebook-updates .home-fb-footer a:hover,
#main-content #home-facebook-updates .home-fb-footer a:focus-visible { background-color: #dcecf6; color: #00365f; text-decoration: none; }
#main-content #home-facebook-updates .home-fb-footer a:active { background-color: #cbdfea; color: #00365f; }
#main-content #home-facebook-updates .home-fb-footer a:focus-visible { outline: 2px solid #1877f2; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
    #main-content #home-facebook-updates .home-fb-footer a { transition: none; }
}
@media (max-width: 767px) {
    #main-content #home-facebook-updates .home-fb-footer {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    #main-content #home-facebook-updates .home-fb-footer a {
        align-self: center;
        margin-inline: auto;
    }
}

/* Uniform title-only cards shared by public, citizen, and employee homepage states. */
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card {
    display: flex !important;
    flex-direction: column !important;
    height: 480px !important;
    min-height: 480px !important;
    overflow: hidden !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-header {
    flex: 0 0 auto !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media {
    display: grid !important;
    flex: 0 0 300px !important;
    place-items: center !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    overflow: hidden !important;
    background: #f2f5f7 !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media .home-fb-photo {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 0 !important;
    padding-top: 12px !important;
    text-align: center !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-title {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    color: #00365f !important;
    font: 600 14px/1.5 "Manrope", sans-serif !important;
    overflow-wrap: anywhere !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-copy .home-fb-read {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 34px !important;
    margin: 12px auto 0 !important;
    padding: 7px 14px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #edf3f7 !important;
    color: #244b69 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card {
        height: 430px !important;
        min-height: 430px !important;
        overflow: hidden !important;
    }
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media {
        flex-basis: 240px !important;
        height: 240px !important;
        min-height: 240px !important;
    }
}

/* Intrinsic media guard: oversized portrait and landscape images shrink inside the fixed slot. */
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media {
    box-sizing: border-box !important;
    min-width: 0 !important;
}
html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media > img.home-fb-photo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Desktop Facebook posts use a vertical feed shared by every portal context. */
@media (min-width: 768px) {
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: none !important;
        grid-auto-flow: row !important;
        grid-auto-columns: auto !important;
        grid-auto-rows: max-content !important;
        align-content: start !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding: 14px 14px 12px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior-x: auto !important;
        overscroll-behavior-y: contain !important;
        scroll-snap-type: y proximity !important;
        scroll-padding-block: 14px !important;
        scrollbar-width: thin !important;
        scrollbar-color: #aebcc8 #edf2f5 !important;
        touch-action: pan-y !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards > :is(.home-fb-card, .home-fb-empty) {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
        scroll-snap-align: start !important;
        height: auto !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards::-webkit-scrollbar {
        width: 4px !important;
        height: 0 !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards::-webkit-scrollbar-track {
        border-radius: 999px !important;
        background: #edf2f5 !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards::-webkit-scrollbar-thumb {
        min-height: 42px !important;
        border-radius: 999px !important;
        background: #aebcc8 !important;
    }
}
@container (max-width: 440px) {
    #main-content #home-facebook-updates .home-fb-heading { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    #main-content #home-facebook-updates .home-fb-mark--heading { width: 44px; height: 44px; }
    #main-content #home-facebook-updates h3 { font-size: 20px; }
    #main-content #home-facebook-updates .home-fb-heading p { font-size: 14px; }
    #main-content #home-facebook-updates .home-fb-cards { padding: 12px; gap: 12px; }
    #main-content #home-facebook-updates .home-fb-card { padding: 14px 12px; }
    #main-content #home-facebook-updates .home-fb-card .home-fb-mark { width: 64px; height: 64px; }
    #main-content #home-facebook-updates .home-fb-card .home-fb-mark svg { width: 44px; height: 44px; }
    #main-content #home-facebook-updates h4 { font-size: 16px; }
    #main-content #home-facebook-updates .home-fb-card p { font-size: 14px; }
}

/* Coordinate the two update sources without changing the Facebook data feed. */
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) {
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    min-width: 0 !important;
    padding: 24px !important;
    font-family: "DM Sans", "Segoe UI", sans-serif !important;
}
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) > :is(.home-fb-heading, .updates-column-heading, .home-fb-status, .home-fb-footer) { flex-shrink: 0; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) .updates-column-heading h3 {
    font: 700 20px/1.35 "Manrope", sans-serif !important;
    letter-spacing: -.025em !important;
}
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) .updates-column-heading p { font-size: 14px !important; line-height: 1.65 !important; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) :is(.official-update-fallback, .official-update-content) strong { font-size: 15px !important; line-height: 1.5 !important; font-weight: 600 !important; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) :is(.official-update-fallback, .official-update-content) small { font-size: 13px !important; line-height: 1.6 !important; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) :is(.news-category, time) { font-size: 12px !important; line-height: 1.5 !important; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) :is(.official-update-item, .official-update-fallback) { height: auto !important; min-height: 92px !important; padding: 14px 10px !important; }
html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) > :is(.official-update-list, .home-fb-cards) {
    min-height: 0 !important;
    overflow-y: auto !important;
    align-content: start;
    scrollbar-width: thin;
}
@media (min-width: 1101px) {
    html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) { height: 560px !important; }
    html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) > :is(.official-update-list, .home-fb-cards) { flex: 1 1 0 !important; max-height: none !important; }
}
@media (max-width: 1100px) {
    html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) { height: auto !important; padding: 20px !important; }
    html body.municipal-homepage #main-content .updates-panel--portal :is(#home-facebook-updates, .updates-column--official) > :is(.official-update-list, .home-fb-cards) { max-height: 420px !important; }
}

/* Mobile update cards: horizontally swipeable with a quiet pale-gray surface. */
@media (max-width: 767px) {
    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.updates-column--official > .official-update-list, #home-facebook-updates > .home-fb-cards) {
        display: grid !important;
        grid-template-columns: none !important;
        grid-template-rows: minmax(0, 1fr) !important;
        grid-auto-flow: column !important;
        grid-auto-columns: clamp(250px, 82vw, 330px) !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;
        padding: 12px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 12px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
        scrollbar-color: #c7cdd2 transparent;
        -webkit-overflow-scrolling: touch;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards)::-webkit-scrollbar {
        height: 2px;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards)::-webkit-scrollbar-track {
        background: #c7cdd2;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards)::-webkit-scrollbar-thumb {
        min-width: 34px;
        border-radius: 999px;
        background: transparent;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards):is(:hover, :focus-visible, :focus-within) {
        scrollbar-color: #aeb5ba transparent;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards):is(:hover, :focus-visible, :focus-within)::-webkit-scrollbar-thumb {
        background: #aeb5ba;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-item, .official-update-fallback, .home-fb-card, .home-fb-empty) {
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 220px !important;
        margin: 0 !important;
        padding: 16px !important;
        overflow: hidden !important;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        border: 0 !important;
        border-radius: 9px !important;
        background: #f1f2f3 !important;
        box-shadow:
            0 2px 5px rgba(25, 42, 56, .035),
            0 9px 18px -15px rgba(25, 42, 56, .16) !important;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    .official-update-fallback {
        align-content: center !important;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-content, .official-update-fallback > span:last-child, .home-fb-card-copy) {
        min-width: 0 !important;
        overflow-wrap: anywhere;
    }

    html body.municipal-homepage #main-content .updates-panel--portal
    :is(.official-update-list, .home-fb-cards):focus-visible {
        outline: 3px solid #0877c9 !important;
        outline-offset: 3px !important;
    }

    html body.municipal-homepage #main-content #home-facebook-updates
    .home-fb-card-copy .home-fb-read {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        max-width: 100% !important;
        min-height: 36px !important;
        margin: 14px auto 0 !important;
        padding: 7px 14px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #fff !important;
        color: #184766 !important;
        -webkit-text-fill-color: #184766 !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        box-shadow: 0 2px 8px rgba(0, 54, 95, .07) !important;
    }

    html body.municipal-homepage #main-content #home-facebook-updates
    .home-fb-card-copy .home-fb-read:is(:hover, :focus-visible) {
        background: #f8fbfd !important;
        color: #00365f !important;
        -webkit-text-fill-color: #00365f !important;
        box-shadow: 0 3px 10px rgba(0, 54, 95, .10) !important;
    }

    html body.municipal-homepage #main-content #home-facebook-updates
    .home-fb-card-copy .home-fb-read > [aria-hidden="true"] {
        display: none !important;
    }
}

/* Mobile-only compact Facebook source action. Keep last in this stylesheet. */
@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    :is(.home-fb-footer, .facebook-feed-footer) > a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        min-height: 30px !important;
        height: auto !important;
        margin-inline: auto !important;
        padding: 5px 10px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #f1f2f3 !important;
        color: #244b69 !important;
        -webkit-text-fill-color: #244b69 !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-decoration: none !important;
        box-shadow: 0 1px 4px rgba(25, 42, 56, .035) !important;
        transform: none !important;
    }
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    :is(.home-fb-footer, .facebook-feed-footer) > a:is(:hover, :focus-visible) {
        background: #e7e9eb !important;
        color: #00365f !important;
        -webkit-text-fill-color: #00365f !important;
        box-shadow: 0 2px 5px rgba(25, 42, 56, .05) !important;
    }
}

/* Mobile Facebook heading, page scrolling, and restrained homepage actions. */
#main-content #home-facebook-updates .home-fb-mark--mobile-heading {
    display: none;
}

@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-heading {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-items: center !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-heading .home-fb-mark--mobile-heading {
        display: grid !important;
        width: 46px !important;
        height: 46px !important;
        margin: 0 auto !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-heading .home-fb-mark--mobile-heading svg {
        width: 30px !important;
        height: 30px !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-heading :is(h3, p) {
        margin-inline: auto !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-identity-row {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: center !important;
        min-height: 40px !important;
        padding-inline: 42px !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header > img {
        position: absolute !important;
        top: 50% !important;
        left: 0 !important;
        width: 32px !important;
        height: 32px !important;
        transform: translateY(-50%) !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header > div {
        width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header :is(h4, time, a) {
        margin-inline: auto !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-cards,
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card,
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card * {
        touch-action: pan-x pan-y pinch-zoom !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-cards {
        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
    }

    html:root:root body.municipal-homepage main#main-content :is(
        #home-facebook-updates .home-fb-read,
        .updates-header-actions .updates-view-all,
        .municipal-quiet-action--mobile,
        .track-transaction-card .home-standard-button,
        .calendar-panel .calendar-full-link,
        .citizen-care .citizen-care-action
    ) {
        position: static !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 30px !important;
        height: auto !important;
        margin: 10px auto 0 !important;
        padding: 5px 10px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #f1f2f3 !important;
        color: #244b69 !important;
        -webkit-text-fill-color: #244b69 !important;
        font: 600 11px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: normal !important;
        box-shadow: 0 1px 4px rgba(25, 42, 56, .04) !important;
        transform: none !important;
    }

    html:root:root body.municipal-homepage main#main-content :is(
        #home-facebook-updates .home-fb-read,
        .updates-header-actions .updates-view-all,
        .municipal-quiet-action--mobile,
        .track-transaction-card .home-standard-button,
        .calendar-panel .calendar-full-link,
        .citizen-care .citizen-care-action
    ):is(:hover, :focus-visible) {
        background: #e7e9eb !important;
        color: #00365f !important;
        -webkit-text-fill-color: #00365f !important;
        box-shadow: 0 2px 5px rgba(25, 42, 56, .06) !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-read > [aria-hidden="true"] {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header {
        min-height: 0 !important;
        margin-bottom: 10px !important;
        padding-inline: 0 !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header > img,
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-header h4,
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-copy > small {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-copy {
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-copy .home-fb-read {
        display: flex !important;
        width: fit-content !important;
        margin: 12px auto 0 !important;
        padding: 6px 12px !important;
        border: 1px solid #c8d9e5 !important;
        background: #eaf2f7 !important;
        color: #123f60 !important;
        -webkit-text-fill-color: #123f60 !important;
        box-shadow: 0 1px 3px rgba(0, 54, 95, .06) !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates
    .home-fb-card-copy .home-fb-read:is(:hover, :focus-visible) {
        border-color: #aebfcb !important;
        background: #dfeaf1 !important;
        color: #00365f !important;
        -webkit-text-fill-color: #00365f !important;
    }
}

/* Compact mobile emergency action; retains the emergency color and clear label. */
@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content .hero .emergency-card .emergency-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 30px !important;
        height: auto !important;
        margin: 12px auto 0 !important;
        padding: 6px 12px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #dc1825 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        font: 700 10px/1.35 "DM Sans", "Segoe UI", sans-serif !important;
        letter-spacing: .01em !important;
        text-align: center !important;
        text-decoration: none !important;
        white-space: normal !important;
        box-shadow: 0 2px 6px rgba(140, 8, 18, .08) !important;
        transform: none !important;
    }

    html:root:root body.municipal-homepage main#main-content .hero .emergency-card
    .emergency-action:is(:hover, :focus-visible) {
        background: #c91622 !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
        box-shadow: 0 3px 7px rgba(140, 8, 18, .12) !important;
    }
}

/* Desktop Facebook cards: centered content, complete media, and no redundant page chrome. */
@media (min-width: 768px) {
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > :is(.home-fb-identity-row, .home-fb-footer) {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates > .home-fb-cards {
        flex: 1 1 0 !important;
        min-height: 0 !important;
        max-height: 574px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card {
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-header > img,
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-header h4 {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-header > div,
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-header :is(h4, time, a) {
        margin-inline: auto !important;
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-media {
        display: block !important;
        flex: 0 0 auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-media .home-fb-photo {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-copy {
        text-align: center !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-post-description {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-copy > small,
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-read > [aria-hidden="true"] {
        display: none !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-copy .home-fb-read {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-width: 0 !important;
        max-width: 100% !important;
        min-height: 30px !important;
        margin: 10px auto 0 !important;
        padding: 5px 11px !important;
        border: 0 !important;
        border-radius: 5px !important;
        background: #f0f3f5 !important;
        box-shadow: none !important;
        color: #244b69 !important;
        font-size: 11px !important;
        font-weight: 600 !important;
        line-height: 1.35 !important;
        text-decoration: none !important;
    }

    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-copy .home-fb-read:is(:hover, :focus-visible) {
        background: #e6ebee !important;
        color: #00365f !important;
    }
}

/* Desktop Facebook cards use the linked image as the single post action. */
@media (min-width: 768px) {
    html:root:root body.municipal-homepage main#main-content
    #home-facebook-updates .home-fb-card-copy .home-fb-read {
        display: none !important;
    }
}

/* Keep both update sources visibly inside one Stay Informed / What's New surface. */
html:root:root body.municipal-homepage main#main-content
.updates-panel--portal.updates-panel--unified {
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 0 !important;
    border: 1px solid #e7ecef !important;
    border-radius: 14px !important;
    background: #fbfcfd !important;
    box-shadow: 0 10px 30px rgba(0, 30, 65, .055) !important;
}

html:root:root body.municipal-homepage main#main-content
.updates-panel--unified > .updates-portal-header.section-divider-heading {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 26px 28px 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html:root:root body.municipal-homepage main#main-content
.updates-panel--unified > .updates-portal-grid {
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 24px 24px !important;
    gap: 20px !important;
    background: transparent !important;
}

html:root:root body.municipal-homepage main#main-content
.updates-panel--unified > .updates-portal-grid > :is(.updates-column--official, #home-facebook-updates) {
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow:
        0 2px 6px rgba(0, 30, 65, .025),
        0 12px 28px -12px rgba(0, 30, 65, .11) !important;
}

@media (max-width: 700px) {
    html:root:root body.municipal-homepage main#main-content
    .updates-panel--unified > .updates-portal-header.section-divider-heading {
        padding: 22px 20px 16px !important;
    }

    html:root:root body.municipal-homepage main#main-content
    .updates-panel--unified > .updates-portal-grid {
        padding: 0 12px 12px !important;
        gap: 12px !important;
    }
}

/* Complete Facebook content: no caption clipping and an honest media fallback. */
html:root:root body.municipal-homepage main#main-content #home-facebook-updates
.home-fb-card-copy p {
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: pre-line !important;
    -webkit-box-orient: initial !important;
    -webkit-line-clamp: unset !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates
.home-fb-post-description {
    display: block !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates
.home-fb-card-media--placeholder {
    display: grid !important;
    place-items: center !important;
    gap: 10px !important;
    min-height: 180px !important;
    padding: 24px !important;
    background: #f2f7fb !important;
    color: #244b69 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: center !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates
.home-fb-card-media--placeholder img {
    width: 72px !important;
    height: 72px !important;
    object-fit: contain !important;
}

@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates > .home-fb-cards {
        grid-template-rows: auto !important;
        align-items: start !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card {
        overflow: visible !important;
    }
}

/* Final title-only card contract. Keep this last so legacy feed rules cannot override it. */
@media (min-width: 768px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates > .home-fb-cards {
        display: grid !important;
        grid-auto-flow: column !important;
        grid-auto-columns: 360px !important;
        grid-template-columns: none !important;
        grid-template-rows: 540px !important;
        align-content: stretch !important;
        align-items: stretch !important;
        gap: 15px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain !important;
        overscroll-behavior-y: auto !important;
        scroll-snap-type: x mandatory !important;
        scrollbar-width: thin !important;
        scrollbar-color: #a6b8c9 #f2f7fb !important;
    }
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card {
    display: flex !important;
    flex-direction: column !important;
    height: 540px !important;
    min-height: 540px !important;
    overflow: hidden !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-header {
    flex: 0 0 auto !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media {
    display: grid !important;
    flex: 0 0 300px !important;
    place-items: center !important;
    width: 100% !important;
    height: 300px !important;
    min-height: 300px !important;
    overflow: hidden !important;
    background: #f2f5f7 !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media > img.home-fb-photo {
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-copy {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 0 !important;
    padding-top: 12px !important;
    text-align: center !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-title {
    display: flex !important;
    flex: 1 1 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 !important;
    color: #00365f !important;
    font: 600 14px/1.5 "Manrope", sans-serif !important;
    overflow-wrap: anywhere !important;
}

html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-copy .home-fb-read {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: fit-content !important;
    min-height: 34px !important;
    margin: 12px auto 0 !important;
    padding: 7px 14px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: #edf3f7 !important;
    color: #244b69 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

@media (min-width: 768px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-copy .home-fb-read {
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 767px) {
    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card {
        height: 430px !important;
        min-height: 430px !important;
        overflow: hidden !important;
    }

    html:root:root body.municipal-homepage main#main-content #home-facebook-updates .home-fb-card-media {
        flex-basis: 240px !important;
        height: 240px !important;
        min-height: 240px !important;
    }
}
