/**
 * Environmental Health — Page Styles
 * ----------------------------------------------------------
 * Purpose:
 *   Shared page-level styling for Environmental Health content, navigation
 *   actions, custom dropdowns, call-to-action buttons, and footer content.
 *
 * Organization:
 *   1. Design tokens
 *   2. Shared text links and button overrides
 *   3. Utility helpers
 *   4. Page header and welcome content
 *   5. Action button grid
 *   6. Header/button responsive adjustments
 *   7. Supporting paragraph styles
 *   8. Custom services dropdown
 *   9. Footer information and responsive layout
 *
 * Maintenance notes:
 *   - Existing selector order is intentionally preserved to avoid cascade
 *     changes on pages already using this stylesheet.
 *   - !important declarations are retained where they currently override
 *     site/framework styles.
 *   - Colors used repeatedly are exposed as custom properties below.
 */

/* ==========================================================
   1. Design Tokens
   Centralized Environmental Health colors used throughout this file.
   ========================================================== */
:root {
    --ehd-green: #007C8A;
    --ehd-green-hover: #0e7884;
    --ehd-orange: #ffc107;
    --ehd-orange-light: #F6B94A;
    --ehd-orange-light-hover: #E8A52A;
}

/* ==========================================================
   2. Shared Text Links
   Applies the EHD green link treatment and orange underline to content links
   while excluding button-style anchors.
   ========================================================== */

.welcome-bckgrnd a:not(.btn-ehd):not(.btn),
.fs-resources a:not(.btn-ehd):not(.btn),
#collapseFive .card-body a:not(.btn-ehd):not(.btn),
.ehd-card-back a:not(.btn-ehd):not(.btn),
.child-list li a:not(.btn-ehd):not(.btn),
.ehd-small-note a:not(.btn-ehd):not(.btn),
.p-style a:not(.btn-ehd):not(.btn) {
    color: var(--ehd-green) !important;
    font-weight: 700;
    text-decoration: none !important;

    background-image: linear-gradient(var(--ehd-orange), var(--ehd-orange));
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    padding-bottom: 2px;

    transition:
        color .2s ease,
        background-size .2s ease,
        background-position .2s ease;
}

.anchor-wrap {
    white-space: normal !important;
}

.welcome-bckgrnd a:not(.btn-ehd):not(.btn):hover,
.welcome-bckgrnd a:not(.btn-ehd):not(.btn):focus,
.fs-resources a:not(.btn-ehd):not(.btn):hover,
.fs-resources a:not(.btn-ehd):not(.btn):focus,
#collapseFive .card-body a:not(.btn-ehd):not(.btn):hover,
#collapseFive .card-body a:not(.btn-ehd):not(.btn):focus,
.ehd-card-back a:not(.btn-ehd):not(.btn):hover,
.ehd-card-back a:not(.btn-ehd):not(.btn):focus,
.child-list li a:not(.btn-ehd):not(.btn):hover,
.child-list li a:not(.btn-ehd):not(.btn):focus,
.ehd-small-note a:not(.btn-ehd):not(.btn):hover,
.ehd-small-note a:not(.btn-ehd):not(.btn):focus,
.p-style a:not(.btn-ehd):not(.btn):hover,
.p-style a:not(.btn-ehd):not(.btn):focus {
    color: var(--ehd-green-hover) !important;
    background-size: 100% 4px;
    outline: none;
}

/* Keep contact and external URLs on one line when space allows.
   Narrow-screen overrides below restore wrapping for long values. */
a[href^="tel:"],
a[href^="mailto:"],
a[href^="http"] {
    white-space: nowrap;
}

/* ==========================================================
   Primary Button Override — Info Card Footer
   Ensures footer CTA buttons retain EHD colors over inherited framework styles.
   ========================================================== */

/*.ehd-info-card__footer .ehd-btn-primary,
.ehd-info-card__footer a.ehd-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--ehd-green) !important;
  background-image: none !important;
  color: #fff !important;

  border: 2px solid var(--ehd-green) !important;
}

.ehd-info-card__footer .ehd-btn-primary:hover,
.ehd-info-card__footer .ehd-btn-primary:focus {
  background-color: var(--ehd-green-hover) !important;
  border-color: var(--ehd-green-hover) !important;
  color: #fff !important;
}*/

/* ==========================================================
   3. Utility Helpers
   Small presentation helpers already referenced by existing markup.
   ========================================================== */

.font-white {
    color: #fff !important;
}

.center {
    text-align: center;
}

.p-click {
    font-size: 1.05rem !important;
    font-weight: 600;
    color: #fff !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    background-color: unset !important;
}

.white-bckgrnd {
    font-size: 0.85rem !important;
}

/* ==========================================================
   4. Page Header & Welcome Content
   Controls the title/logo row, welcome panel, section headings, and carousel
   icon cleanup used near the top of the page.
   ========================================================== */

.h1-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    /* Horizontal spacing is intentionally controlled by the container width. */
    border-bottom: 8px solid #ffbd59;
    max-width: 1200px;
    margin: 0 auto;
}

.h1-container h1 {
    color: #007C8A !important;
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

.carousel-control-prev-icon::after {
    content: "" !important;
}

.carousel-control-next-icon::after {
    content: "" !important;
}

.right-image img {
    max-width: 250px;
    height: auto;
}

.welcome-bckgrnd {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
}

#main-content h2:not(#report-problem-title) {
    background-color: #007C8A;
    color: white;
    padding: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    margin-top: 0;
    padding-left: 10px;
    font-weight: 700;
}

/*
 * Legacy heading treatment intentionally removed from active CSS.
 * The page currently uses the solid navy #main-content h2 treatment above.
 * Keeping only this note avoids nested comment syntax that can break parsing.
 */

/*.welcome-bckgrnd p,
.fs-resources p {
  color: #5a5959;
}*/

.fs-resources a {
    color: #007C8A !important;
    font-weight: 600;
    text-decoration: none;
}

.fs-resources a:hover {
    color: #1c808d;
    text-decoration: underline;
}

/* ==========================================================
   5. Action Button Grid
   Responsive CTA grid with icon-and-label buttons.
   ========================================================== */

.button-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Action Card */
.btn-ehd {
    display: flex !important;
    align-items: center !important;
    gap: 15px;

    width: 100%;
    min-width: 0;
    min-height: 110px;
    padding: 20px !important;
    box-sizing: border-box;

    background: linear-gradient(180deg, #ffffff, #f0f6ff) !important;
    color: #24425c !important;

    border: 2px solid #c5d9ed !important;
    border-radius: 15px !important;
    box-shadow: 0 6px 16px rgb(42 120 149 / 14%);
    text-decoration: none !important;
    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease,
        border-color .3s ease;
}

/* Card Text */
.btn-ehd span {
    flex: 1;
    min-width: 0;

    color: #24425c !important;
    font-weight: 700;
    line-height: 1.35;
    text-align: left;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

/* Card Icon */
.btn-ehd img {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgb(42 120 149 / 30%));

    transition:
        filter .3s ease,
        transform .3s ease;

    background: #061c60;
    padding: 8px;
    border-radius: 16%;
}

/* Hover */
.btn-ehd:hover {
    background: linear-gradient(180deg, #ffffff, #eaf8f8) !important;
    border-color: #8fc8cc !important;
    box-shadow: 0 12px 24px rgb(0 124 138 / 18%);
    color: #24425c !important;
    transform: translateY(-6px);
}

.btn-ehd:hover img {
    filter: drop-shadow(0 4px 8px rgb(0 0 0 / 20%));
    transform: scale(1.05);
    background: #338389 !important;
    box-shadow: 0 8px 18px rgb(0 124 138 / 20%);
    padding: 8px;
    border-radius: 16%;
}

.btn-ehd:hover span {
    color: #007C8A !important;
}

/* Keyboard Focus */
.btn-ehd:focus-visible {
    outline: 3px solid #007C8A;
    outline-offset: 3px;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 992px) {
    .button-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .welcome-bckgrnd {
        padding: 15px;
    }

    .button-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-ehd {
        min-height: 95px;
        padding: 16px !important;
    }

    .btn-ehd img {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
    }
}

/* ==========================================================
   Header, Welcome Area & Button Grid — Responsive Adjustments
   These breakpoints preserve the desktop layout while progressively
   reducing heading/image sizes and button-grid columns.
   ========================================================== */

/* Tablets and small laptops */
@media (max-width: 992px) {
    .h1-container {
        padding: 10px 20px;
    }

    .h1-container h1 {
        font-size: 1.8rem;
    }

    .right-image img {
        max-width: 200px;
    }

    .button-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 15px;
        gap: 15px;
    }
}

@media (max-width: 750px) {
    .h1-container h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 668px) {
    .h1-container h1 {
        font-size: 1.3rem;
    }
}

/* Mobile: stack the header content and use a single-column button grid. */
@media (max-width: 600px) {
    .h1-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 15px;
    }

    .h1-container h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .right-image img {
        max-width: 160px;
        margin-top: 5px;
    }

    .welcome-bckgrnd {
        padding: 10px 15px;
    }

    .welcome-bckgrnd h2 {
        font-size: 1.25rem;
    }

    .button-grid {
        grid-template-columns: 1fr;
        padding: 10px 15px;
        gap: 10px;
    }

    .btn-ehd {
        width: 100%;
        justify-content: flex-start;
        /* Keep the icon at the left and allow the label to use remaining space. */
    }
}

/* ==========================================================
   7. Supporting Paragraph Styles
   Utility paragraph treatments used by the EHD content sections.
   ========================================================== */

.p-no-bckgrnd {
    background: none !important;
    border-left: none !important;
    padding: 0 !important;
    margin-top: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #ffffff;
    text-align: center;
    width: 100%;
}

.p-style {
    color: #5a5959;
    padding: 15px;
}

/* ==========================================================
   CUSTOM SERVICES DROPDOWN
   Matches the featured action cards with a light blue default
   state and light teal hover/focus treatment.
   ========================================================== */

.ehd-custom-dropdown {
    position: relative;
    width: min(100%, 1020px);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

.ehd-dropdown-toggle,
.ehd-dropdown-menu,
.ehd-dropdown-menu a {
    box-sizing: border-box;
}

/* Dropdown Trigger */
.ehd-dropdown-toggle {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .95rem 1rem;

    background: linear-gradient(180deg, #ffffff, #f0f6ff);
    color: #24425c;
    border: 2px solid #c5d9ed;
    border-radius: 15px;
    box-shadow: 0 6px 16px rgb(42 120 149 / 14%);

    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        color .2s ease;
}

.ehd-dropdown-toggle span:first-child {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1.4rem;
    color: #24425c;
}

/* Light teal hover/focus to match the action cards */
.ehd-dropdown-toggle:hover,
.ehd-dropdown-toggle:focus-visible {
    background: linear-gradient(180deg, #ffffff, #eaf8f8);
    border-color: #8fc8cc;
    box-shadow: 0 12px 24px rgb(0 124 138 / 18%);
    color: #24425c;
}

/* Keep label color identical on hover and keyboard focus */
.ehd-dropdown-toggle:hover span:first-child,
.ehd-dropdown-toggle:focus-visible span:first-child {
    color: #007C8A !important;
}

/* Visible keyboard focus indicator */
.ehd-dropdown-toggle:focus-visible {
    outline: 3px solid #007C8A;
    outline-offset: 3px;
}

/* Dropdown Arrow */
.ehd-dropdown-icon {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;

    border-right: 3px solid #24425c;
    border-bottom: 3px solid #24425c;

    transform: rotate(45deg);

    transition:
        transform .25s ease,
        border-color .2s ease;
}

/* Keep arrow color identical on hover and keyboard focus */
.ehd-dropdown-toggle:hover .ehd-dropdown-icon,
.ehd-dropdown-toggle:focus-visible .ehd-dropdown-icon {
    border-color: #005f68;
}

/* Rotate arrow when dropdown is open */
.ehd-dropdown-toggle[aria-expanded="true"] .ehd-dropdown-icon {
    transform: rotate(-135deg);
}

/* Keep hover/focus colors when dropdown remains open */
.ehd-dropdown-toggle[aria-expanded="true"] {
    background: linear-gradient(180deg, #ffffff, #eaf8f8);
    border-color: #8fc8cc;
    box-shadow: 0 12px 24px rgb(0 124 138 / 18%);
}

.ehd-dropdown-toggle[aria-expanded="true"] span:first-child {
    color: #007C8A !important;
}

.ehd-dropdown-toggle[aria-expanded="true"] .ehd-dropdown-icon {
    border-color: #005f68;
}

/* Dropdown Menu */
.ehd-dropdown-menu {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    right: auto;
    width: auto;
    max-height: min(420px, 70vh);
    overflow-y: auto;

    background: linear-gradient(180deg, #ffffff, #f5fbfb);
    border: 1px solid #b8dfe1;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgb(0 124 138 / 18%);
}

.ehd-dropdown-menu[hidden] {
    display: none !important;
}

/* Dropdown Links */
.ehd-dropdown-menu a {
    display: block;
    width: 100%;
    padding: .85rem 1rem;

    color: #246b75;
    font-weight: 700;
    text-decoration: none !important;

    border-left: 4px solid transparent;

    transition:
        background-color .2s ease,
        border-left-color .2s ease,
        color .2s ease,
        padding-left .2s ease;
}

.ehd-dropdown-menu a:hover,
.ehd-dropdown-menu a:focus {
    background: #eaf8f8;
    border-left-color: #8fc8cc;
    color: #005f68;
    padding-left: 1.15rem;
    outline: none;
}


/* ----------------------------------------------------------
   More Services CTA
   Orange secondary action button used within paragraph/resource sections.
   ---------------------------------------------------------- */

.p-style a.ehd-more-services,
.fs-resources a.ehd-more-services,
.ehd-more-services {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: .5rem;

    margin-top: 0.65rem;
    padding: .75rem 1.25rem;

    background: #f7f0e1 !important;
    background-image: none !important;

    color: #1f2933;
    font-weight: 700;
    text-decoration: none !important;

    border: 2px solid var(--ehd-orange-light);

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.p-style a.ehd-more-services:hover,
.p-style a.ehd-more-services:focus,
.fs-resources a.ehd-more-services:hover,
.fs-resources a.ehd-more-services:focus,
.ehd-more-services:hover,
.ehd-more-services:focus {
    background: #0F766E !important;
    background-image: none !important;
    border-color: #0F766E;
    color: #fff !important;

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgb(15 118 110 / 25%);
}

/* ==========================================================
   Custom Dropdown — Tablet Adjustments
   Allows long links to wrap and reduces dropdown spacing on narrower screens.
   ========================================================== */

@media (max-width: 768px) {

    a[href^="tel:"],
    a[href^="mailto:"],
    a[href^="http"] {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .ehd-custom-dropdown {
        padding: 0 .75rem;
    }

    .ehd-dropdown-toggle {
        padding: .85rem .9rem;
        font-size: .95rem;
    }

    .ehd-dropdown-menu {
        left: .75rem;
        right: .75rem;
    }

    .ehd-dropdown-menu a {
        padding: .8rem .9rem;
        font-size: .9rem;
    }
}

/* ==========================================================
   Custom Dropdown — Mobile Adjustments
   Further reduces spacing and keeps the menu within the mobile viewport.
   ========================================================== */

@media (max-width: 480px) {

    .ehd-custom-dropdown {
        padding: 0 .5rem;
    }

    .ehd-dropdown-toggle {
        gap: .75rem;
        padding: .8rem .85rem;
        font-size: .9rem;
    }

    .ehd-dropdown-icon {
        width: 12px;
        height: 12px;
        border-right-width: 2.5px;
        border-bottom-width: 2.5px;
    }

    .ehd-dropdown-menu {
        left: .5rem;
        right: .5rem;
        max-height: 60vh;
    }

    .ehd-dropdown-menu a {
        padding: .75rem .85rem;
        font-size: .88rem;
    }
}

/* ==========================================================
   EHD FOOTER INFORMATION
   Light blue footer treatment that matches the featured cards
   and dropdown while keeping EHD teal for accents and links.
   ========================================================== */

.ehd-footer-info {
    margin: 3.5rem -1rem -1rem;
    padding: 2rem 0;
    background: linear-gradient(180deg, #eef6ff 0%, #e4f0fb 100%);
    border-top: 5px solid #061c60;
    /*#3b88b6; #8fc8cc;*/
    border-bottom: 1px solid #c5d9ed;
    color: #36454f;
}

.ehd-footer-info__inner {
    width: min(calc(100% - 1rem), 1200px);
    margin: 0 auto;
    padding: 2rem;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #c5d9ed;
    border-radius: 18px;
    box-shadow: 0 12px 28px rgb(42 120 149 / 10%);
}

/* ==========================================================
   FOOTER CONTACT LAYOUT
   ========================================================== */

.ehd-footer-contact {
    display: grid;
    grid-template-columns:
        minmax(280px, 1.2fr) 2px minmax(0, 1fr) 2px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    min-width: 0;
}

.ehd-footer-contact>div:not(.ehd-footer-divider) {
    min-width: 0;
}

.ehd-footer-contact-card {
    display: flex;
    flex-direction: column;
    padding: .5rem;
    background: linear-gradient(180deg, #f7fbff 0%, #eaf4fb 100%);
    border: 1px solid #b7d7ea;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgb(42 120 149 / 8%);
}

.ehd-footer-brand-heading {
    margin: 0 0 5px;
    color: #24425c !important;
    font-size: 1.35rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
    background-color: unset !important;
}

.ehd-footer-brand-heading::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin-top: .6rem;
    background: #b7d7ea;
    border-radius: 999px;
}

.ehd-footer-contact-card img {
    display: block;
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: auto auto 0;
    object-fit: contain;
}

/* Main vertical divider */
.ehd-footer-divider {
    position: relative;
    width: 2px;
    min-width: 2px;
    height: 100%;
    align-self: stretch;
    background: #c5d9ed;
}

.ehd-footer-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 52px;
    transform: translate(-50%, -50%);
    background: #ffc107;
    /*#8fc8cc;*/
    border-radius: 999px;
}

/* Footer headings */
.ehd-footer-contact h3 {
    margin: 0 0 .25rem;
    color: #24425c;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.45;
}

/* Footer text */
.ehd-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: .25rem 0;
    color: #4d5966;
    font-size: .85rem;
    line-height: 1.6;
    text-align: left;
}

.ehd-footer-contact p i {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    margin-top: .25rem;
    color: #24425c;
    text-align: center;
}

.ehd-footer-contact p a,
.ehd-footer-contact p span,
.ehd-footer-contact p strong {
    min-width: 0;
}

.ehd-footer-contact p a {
    color: inherit;
    overflow-wrap: anywhere;
}

/* Footer links */
.ehd-footer-contact a:not(.btn-ehd):not(.btn) {
    color: #24425c !important;
    font-weight: 700;
    text-decoration: none !important;
    background-image: linear-gradient(#b7d7ea, #b7d7ea);
    background-repeat: no-repeat;
    background-size: 100% 2px;
    background-position: 0 100%;
    padding-bottom: 2px;
    transition:
        color .2s ease,
        background-size .2s ease,
        background-position .2s ease;
}

.ehd-footer-contact a:not(.btn-ehd):not(.btn):hover,
.ehd-footer-contact a:not(.btn-ehd):not(.btn):focus {
    color: #005f68 !important;
    background-size: 100% 4px;
    outline: none;
}

.ehd-email-wrap {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Mini divider */
.ehd-footer-mini-divider {
    position: relative;
    width: 100%;
    height: 1px;
    margin: .85rem 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgb(42 120 149 / 10%) 15%,
            rgb(42 120 149 / 28%) 50%,
            rgb(42 120 149 / 10%) 85%,
            transparent 100%);
}

.ehd-footer-mini-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    transform: translate(-50%, -50%);
    background: #fff;
    border: 2px solid #ffc107 !important;
    /*#8fc8cc;*/
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff;
}

/* ==========================================================
   REUSABLE SECTION DIVIDER
   ========================================================== */

.ehd-section-divider {
    position: relative;
    width: 100%;
    max-width: 720px;
    height: 1px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(90deg,
            transparent 0%,
            rgb(42 120 149 / 12%) 20%,
            rgb(42 120 149 / 25%) 50%,
            rgb(42 120 149 / 12%) 80%,
            transparent 100%);
}

.ehd-section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #fff;
    border: 2px solid var(--ehd-orange);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px #fff;
}

/* ==========================================================
   FOOTER — TABLET
   ========================================================== */

@media (max-width: 992px) {
    .ehd-footer-info {
        padding: 1.75rem 0;
    }

    .ehd-footer-info__inner {
        padding: 1.5rem;
    }

    .ehd-footer-contact {
        gap: 1rem;
    }

    .ehd-footer-contact h3 {
        font-size: .95rem;
    }

    .ehd-footer-contact p {
        font-size: .8rem;
        line-height: 1.45;
    }

    .ehd-footer-brand-heading {
        font-size: 1.25rem;
    }

    .ehd-footer-contact-card {
        padding: 1.25rem;
    }

    .ehd-footer-contact-card img {
        max-width: 160px;
    }
}

@media (max-width: 768px) {
    .ehd-footer-contact p {
        display: block;
        align-items: baseline;
    }
}

/* ==========================================================
   FOOTER — MOBILE
   ========================================================== */

@media (max-width: 640px) {
    .ehd-section-divider {
        max-width: 220px;
        margin: 2rem auto;
    }

    .ehd-footer-info {
        padding: 1.25rem 0;
    }

    .ehd-footer-info__inner {
        width: min(calc(100% - .75rem), 1200px);
        padding: 1rem;
    }

    .ehd-footer-contact {
        grid-template-columns: 1fr;
        gap: .75rem;
    }

    .ehd-footer-contact-card {
        align-items: stretch;
        text-align: left;
    }

    .ehd-footer-brand-heading {
        font-size: 1.2rem;
    }

    .ehd-footer-contact-card img {
        max-width: 150px;
        margin-top: 1.25rem;
    }

    .ehd-footer-divider {
        width: 100%;
        height: 2px;
        min-width: 0;
    }

    .ehd-footer-divider::after {
        width: 72px;
        height: 5px;
    }

    .ehd-footer-contact>div:not(.ehd-footer-divider):not(.ehd-footer-contact-card) {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
        text-align: left;
        background: #f7fbff;
        border: 1px solid #c5d9ed;
        border-left: 4px solid #8fc8cc;
        border-right: 4px solid #8fc8cc;
        border-radius: 10px;
    }

    .ehd-footer-contact h3 {
        font-size: .95rem;
    }

    .ehd-footer-contact p {
        justify-content: flex-start;
        font-size: .85rem;
        margin-bottom: .35rem;
        text-align: left;
    }

    .ehd-footer-contact a[href^="tel:"] {
        font-size: 1rem;
        font-weight: 700;
    }
}

/* ==========================================================
   Environmental Health Updates — Inactive Reference
   Retained for future use. This entire block remains commented out and
   does not affect the current page presentation.
   ========================================================== */

/*.ehd-footer-updates {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.ehd-footer-updates h3 {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.ehd-footer-updates h3::before {
    content: "\f0a1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: var(--ehd-orange);
    font-size: .95rem;
}

.ehd-footer-updates .ehd-footer-mini-divider {
    margin-top: auto;
}*/


/**
 * ============================================================
 * Environmental Health — Body Art Accessibility Refinements
 * ============================================================
 * @file body-art-wcag-additions.css
 * @description Targeted accessibility fixes for the EH Body Art page.
 * @author Roberto Flores
 * @organization Los Angeles County Department of Public Health
 * @date 2026-10-22
 * @version 1.0.0
 * @note Load AFTER the current EH shared component and accordion CSS.
 * @note Preserves the existing colors, fonts, card visuals and desktop grid.
 * @note Does not alter global header or footer.
 */

/* Screen-reader-only hints for documents opening in another tab. */
#main-content .ehd-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Reflow and prevent min-content expansion of nested cards. */
#main-content .ehd-definition-grid,
#main-content .ehd-card-grid,
#main-content .ehd-doc-grid,
#main-content .ehd-doc-accordion,
#main-content .ehd-doc-accordion__item,
#main-content .ehd-doc-accordion__content {
    min-width: 0;
    max-width: 100%;
}

#main-content .ehd-definition-card,
#main-content .ehd-feature-card,
#main-content .ehd-doc-card,
#main-content .ehd-doc-callout,
#main-content .ehd-info-row {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

#main-content .ehd-definition-card p,
#main-content .ehd-feature-card p,
#main-content .ehd-doc-card p,
#main-content .ehd-doc-accordion__content p,
#main-content .ehd-info-row address,
#main-content .ehd-doc-callout__content {
    overflow-wrap: anywhere;
}

#main-content :is(.ehd-definition-grid, .ehd-card-grid, .ehd-doc-grid)>* {
    min-width: 0;
}

/* Keyboard focus must not be removed by link hover/focus rules. */
#main-content :is(.ehd-info-panel--blue, .ehd-card-grid, .ehd-doc-accordion, .ehd-callout) a:focus-visible,
#main-content .ehd-doc-accordion__summary:focus-visible {
    outline: 3px solid #061c60 !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}

#main-content .ehd-doc-accordion__summary {
    cursor: pointer;
}

#main-content .ehd-doc-accordion__summary:focus-visible {
    outline-offset: -3px !important;
}

/* Do not clip expanded resources using fixed heights. */
#main-content .ehd-doc-accordion__content {
    max-height: none;
}

.ehd-doc-accordion__content div,
.ehd-doc-accordion__content p,
.ehd-doc-accordion__content ul li {
    font-size: 0.95rem;
}

/* Allow the card and document columns to reflow at zoom/narrow widths. */
@media (max-width: 900px) {

    #main-content .ehd-definition-grid,
    #main-content .ehd-doc-grid,
    #main-content .ehd-card-grid--two {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {

    #main-content .ehd-definition-grid,
    #main-content .ehd-doc-grid,
    #main-content .ehd-card-grid--two {
        grid-template-columns: minmax(0, 1fr);
    }

    #main-content .ehd-doc-accordion__summary {
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {

    #main-content .ehd-doc-accordion__item,
    #main-content .ehd-doc-accordion__content,
    #main-content .ehd-definition-card,
    #main-content .ehd-feature-card {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

@media (forced-colors: active) {

    #main-content .ehd-definition-card,
    #main-content .ehd-feature-card,
    #main-content .ehd-doc-card,
    #main-content .ehd-doc-accordion__item {
        border: 1px solid CanvasText;
    }

    #main-content .ehd-doc-accordion__summary:focus-visible,
    #main-content a:focus-visible {
        outline-color: Highlight !important;
    }
}


/* ==========================================================
   RETAIL GUIDELINES — SECTION HEADING
   Subtle light gray treatment without left border
   ========================================================== */

#main-content h3.ehd-retail-guidelines__heading {
    display: block;
    width: 100%;
    box-sizing: border-box;

    margin: 1.75rem 0 1rem;
    padding: .85rem 1rem;

    color: #061c60 !important;
    background-color: #f3f4f6;

    border: none;
    border-bottom: 1px solid #d1d5db;
    border-radius: 5px;

    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: left;
}

/* Mobile */
@media (max-width: 600px) {
    #main-content h3.ehd-retail-guidelines__heading {
        margin: 1.25rem 0 .85rem;
        padding: .7rem .85rem;
        font-size: 1.1rem;
    }
}

/* Windows High Contrast Mode */
@media (forced-colors: active) {
    #main-content h3.ehd-retail-guidelines__heading {
        border: 1px solid CanvasText;
        color: CanvasText !important;
    }
}