/* =========================================================
   Design Tokens
   ========================================================= */
:root {
    --ph-blue: #005A9C;
    --ph-light-blue: #376ea6;
    --ph-dark-blue: #002b4d;
    --ph-teal: #0E8A8A;
    --ph-gold: #D9A441;
    --ph-light: #F3F8FC;
    --ph-white: #FFFFFF;
    --ph-text: #243746;
    --ph-muted: #5F6F7A;
    --ph-border: #D8E2EB;
}


/* =========================================================
   Base Page Styles
   ========================================================= */
#main-content {
    color: var(--ph-text);
    font-family: Arial, Helvetica, sans-serif;
}

p,
span {
    color: var(--ph-muted);
}

a {
    text-decoration: none;
}

.no-wrap {
    white-space: nowrap;
}

.center-item {
    margin: 0 auto;
    text-align: center;
}

.inline-link {
    display: inline;
    color: var(--ph-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;

    background-image: linear-gradient(var(--ph-gold), var(--ph-gold));
    background-position: 0 100%;
    /* Position at the bottom */
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: background-size .25s ease;
}

.inline-link::after {
    display: none;
}

/* Animate the background size on hover */
.inline-link:hover,
.inline-link:focus {
    color: var(--ph-dark-blue);
    text-decoration: none;
    background-size: 100% 2px;
}

.public-health-callout-content .inline-link {
    color: #ffffff !important;
}

.public-health-callout-content .inline-link:hover,
.public-health-callout-content .inline-link:focus {
    color: #ffffff !important;
    text-decoration: none;
}


/* =========================================================
   HEADER STYLES
   ========================================================= */
.section h2 {
    position: relative;
    color: var(--ph-dark-blue);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    padding-bottom: 10px;
    text-transform: capitalize;
}

.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: var(--ph-gold);
    border-radius: 2px;
}


/* =========================================================
   RESOURCE STYLES
   ========================================================= */
.resources-quick-links-section {
    margin: 0 0 2.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.resources-quick-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    align-items: stretch;
    max-width: 1163px;
    margin: 0 auto;
    padding: 1rem;

    background: linear-gradient(180deg, #f8fafc 0%, #f3f7fa 100%);
    border: 1px solid #dbe3ea;
    border-radius: 12px;
}

#healthpro .resources-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.override-resources-quick-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/*#healthpro .resources-link-card>span:last-child, #public .resources-link-card>span:last-child, #civilsurgeons .resources-link-card>span:last-child, #reports .resources-link-card>span:last-child, #coalitionendTB .resources-link-card>span:last-child, #providerToolKit .resources-link-card>span:last-child {
    font-size: 0.9rem;
}*/

/* ==========================================================
   Card
   ========================================================== */

.resources-link-card {
    position: relative;
    isolation: isolate;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 78px;
    box-sizing: border-box;

    margin: 0;
    padding: 0.9rem 1.2rem;

    background: #fff;
    border: 1px solid #d5dee6;
    border-radius: 14px;

    box-shadow: 0 4px 12px rgba(0, 43, 77, 0.05);
    cursor: pointer;
    color: var(--ph-blue-dark) !important;
    text-decoration: none !important;
    text-align: left;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.resources-link-card:hover,
.resources-link-card:focus-visible {
    background: #fff;
    border-color: var(--ph-blue);
    box-shadow: 0 12px 28px rgba(0, 43, 77, 0.14);
}

/* ==========================================================
   Icon Container
   ========================================================== */

.resources-link-card__icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(180deg, #eef6fc 0%, #e5f0f8 100%);

    border: 1px solid #d5e5f1;
    border-radius: 14px;

    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.resources-link-card__icon img {
    display: block;

    width: 34px;
    height: 34px;

    object-fit: contain;
    object-position: center;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.resources-link-card:hover .resources-link-card__icon,
.resources-link-card:focus-visible .resources-link-card__icon {
    background: #edf7ff;
    border-color: #bfd7eb;
    box-shadow: 0 6px 16px rgba(0, 91, 150, 0.1);
}

.resources-link-card:hover .resources-link-card__icon img,
.resources-link-card:focus-visible .resources-link-card__icon img {
    transform: scale(1.08);
}

/* ==========================================================
   Text
   ========================================================== */

.resources-link-card>span:last-child {
    flex: 1;
    min-width: 0;
    color: var(--ph-blue-dark);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.35;
}

/* ==========================================================
   Arrow
   ========================================================== */

.resources-link-card::after {
    content: "";

    position: absolute;
    right: 1rem;
    top: 50%;

    width: 8px;
    height: 8px;

    border-top: 2px solid var(--ph-blue);
    border-right: 2px solid var(--ph-blue);

    transform: translateY(-50%) rotate(45deg);

    opacity: 0;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.resources-link-card:hover::after,
.resources-link-card:focus-visible::after {
    opacity: 0.9;
    transform: translate(3px, -50%) rotate(45deg);
}

.resources-link-card--labeled {
    padding-top: 1.4rem;
}

.resources-link-card__badge {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    font-family: sans-serif;
    font-size: 0.52rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    background-color: #002b4d;
    padding: 3px 8px;
    border-radius: 20px;
    line-height: 1;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0, 43, 77, 0.1);
}

/* ─── CRITICAL OVERRIDE ─── */
.resources-link-card--labeled::after {
    display: none !important;
}

/* ─── FONT AWESOME ALIGNMENT FIX ─── */
.resources-link-card__icon i {
    font-size: 1.5rem;
    color: var(--ph-blue);
    display: inline-block;
    line-height: 1;
}

/* Ensure clear visual focus indicator for keyboard users */
.custom-dropdown-btn:focus-visible,
.custom-dropdown-list li a:focus-visible {
    outline: 3px solid #0056b3 !important;
    outline-offset: 2px;
    background-color: #f8fafc;
}

/* Fallback for older legacy browsers */
.custom-dropdown-btn:focus,
.custom-dropdown-list li a:focus {
    outline: 2px solid #0056b3;
}

@media (max-width: 900px) {
    .resources-link-card {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        text-align: center;
        padding: 1rem 0.9rem;
        min-height: 106px;
    }

    .resources-link-card--labeled {
        padding-top: 1.7rem;
    }

    .resources-link-card__badge {
        right: 10%;
        transform: translateX(10%);
        top: 6px;
    }
}

@media (max-width: 800px) {
    .resources-quick-links {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (min-width: 769px) {
    .resources-quick-links {
        display: grid;
        /* Or whatever your native grid setup is */
    }

    .resources-dropdown-container {
        display: none !important;
    }
}

@media screen and (max-width: 768px) {
    .resources-quick-links {
        display: none !important;
    }

    .resources-dropdown-container {
        position: relative;
        width: 100%;
        margin: 15px 0;
        box-sizing: border-box;
        font-family: sans-serif;
        display: block;
    }

    .custom-dropdown-btn {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 6px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        box-sizing: border-box;
        position: relative;
        z-index: 1001;
    }

    .custom-dropdown-btn:focus {
        outline: 2px solid #0056b3;
    }

    .custom-dropdown-btn .arrow-icon {
        transition: transform 0.2s ease-in-out;
    }

    .custom-dropdown-btn.open .arrow-icon {
        transform: rotate(180deg);
    }

    /* ACCELERATED ANIMATION COMPONENT FRAMEWORK (OPEN ON TOP FIX) */
    .custom-dropdown-list {
        position: absolute;
        bottom: 102%;
        /* FIXED: Swapped from top to bottom to force the list to open upwards */
        left: 0;
        width: 100%;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 6px;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
        /* Adjusted shadow blur to match top trajectory */
        padding: 0;
        margin: 0;
        list-style: none;
        z-index: 1000;
        max-height: 350px;
        overflow-y: auto;
        box-sizing: border-box;

        /* Smooth Transition configuration for BOTH entry and exit */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
        /* FIXED: Swapped to positive tracking for an upward slide effect */
        transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out, visibility 0.25s;
    }

    /* Target animation display triggered correctly via class toggle */
    .custom-dropdown-list.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .custom-dropdown-list li a {
        display: block;
        padding: 14px 16px;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        box-sizing: border-box;
        border-bottom: 1px solid #f0f0f0;
    }

    /* Arrow Key Focus State styling matched up with mouse hovers */
    .custom-dropdown-list li a:hover,
    .custom-dropdown-list li a:focus {
        background-color: #f5f5f5;
        color: #0056b3;
        outline: none;
    }

    .custom-dropdown-list li a i {
        margin-right: 12px;
        width: 20px;
        text-align: center;
        color: #555;
    }

    .custom-dropdown-list li:last-child a {
        border-bottom: none;
    }

    .public-health-callout-content p {
        font-size: 0.86rem !important;
    }

    .resources-dropdown-container {
        width: 100%;
        max-width: 100%;
        margin: 15px 0;
        box-sizing: border-box;
    }

    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .resources-dropdown {
        width: 100%;
        padding: 14px 12px;
        font-size: 16px;
        border: 1px solid #ccc;
        border-radius: 6px;
        background-color: #fff;
        cursor: pointer;
        box-sizing: border-box;
        -webkit-appearance: select;
    }

    .resources-dropdown:focus {
        outline: 2px solid #0056b3;
    }
}

@media (max-width: 660px) {
    .resources-link-card {
        padding: .5rem 0.45rem;
    }
}

@media (max-width: 600px) {
    .resources-quick-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .resources-link-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.8rem;
        min-height: 65px;
        padding: 1rem 0.85rem;
        text-align: center;
        border-radius: 14px;
    }

    .resources-link-card>span:last-child {
        font-size: 0.7rem;
    }

    .resources-link-card__icon {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    p {
        font-size: 0.85rem;
    }
}

@media (max-width: 380px) {
    .resources-quick-links {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
}


/* ==========================================
   Public Health Infoline Callout
   ========================================== */

.public-health-callout {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin: -1rem -1rem 0px;
    padding: 28px 32px;

    background: linear-gradient(135deg, var(--ph-dark-blue) 0%, var(--ph-blue) 100%);
    /*border-radius: 18px;*/
    box-shadow: 0 12px 28px rgba(0, 59, 111, .18);

    color: #ffffff;
}

.public-health-callout-content {
    flex: 1;
    min-width: 0;
}

.public-health-callout-content p {
    font-size: 0.9rem
}

.public-health-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
}

.public-health-header-content {
    min-width: 0;
}

.public-health-callout-icon {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;

    color: #fff;
    font-size: 1.5rem;
}

.public-health-label {
    display: inline-block;

    margin-bottom: 8px;
    padding: 6px 12px;

    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;

    color: rgba(255, 255, 255, .92);

    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-health-callout-content h2 {
    margin: 0;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
}

.public-health-callout-content p {
    margin: 0;
    color: rgba(255, 255, 255, .92);
    line-height: 1.6;
}

.public-health-callout-action {
    /*width: 380px;*/
    flex-shrink: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;

    padding: 20px;

    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
}

.public-health-action-label {
    color: rgba(255, 255, 255, .82);
    text-align: center;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-health-phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-width: 0;
    padding: 15px 18px;
    box-sizing: border-box;

    background: var(--ph-gold);
    color: #1d2d3a;

    border-radius: 12px;

    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;

    transition: all .2s ease;
}

.public-health-phone:hover,
.public-health-phone:focus {
    background: #c39132;
    color: #1d2d3a;
    text-decoration: none;
}

.public-health-hours {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 14px;

    background: rgba(255, 255, 255, .1);
    border-radius: 12px;

    color: rgba(255, 255, 255, .92);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.35;
}

.public-health-hours i {
    color: var(--ph-gold);
    flex-shrink: 0;
}

@media (max-width: 950px) {
    .public-health-callout {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 15px;
    }

    .public-health-callout-content {
        width: 100%;
    }

    .public-health-header {
        flex-direction: row;
        text-align: center;
        gap: 25px;
    }

    .public-health-callout-action {
        flex-direction: column;
        /*width: 100%;*/
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        padding: 18px 20px;
        background: rgba(255, 255, 255, .08);
        border: 1px solid rgba(255, 255, 255, .15);
        border-radius: 14px;
    }

    .public-health-phone {
        min-width: 0;
        width: auto;
        max-width: 100%;
        padding: 14px 18px;
        font-size: 1rem;
    }

    .public-health-action-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .public-health-callout-content h2 {
        font-size: 1.25rem !important;
        text-align: left;
    }

    .public-health-callout-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
}


/* ==========================================
   UPCOMING EVENTS ALERT
   ========================================== */

.upcoming-bar {
    width: min(1000px, 100%);
    /*1200px*/
    margin: 0 auto 1.5rem;

    background: linear-gradient(135deg, #3a5094 0%, #00599b 100%);

    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;

    box-shadow: 0 8px 18px rgb(0 124 138 / 18%);
}

#events {
    font-size: 0.98rem;
}

.upcoming-label {
    font-size: 1.1rem;
    margin-bottom: .35rem;
}

.upcoming-inner {
    display: block;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: .9rem 1.5rem;
    color: #fff;
    line-height: 1.6;
    text-align: center;
}

.upcoming-inner i {
    flex-shrink: 0;

    color: var(--ehd-orange);
    font-size: 1.15rem;
}

.upcoming-inner strong {
    color: #fff;
}

.upcoming-inner a {
    color: #fff !important;
    font-weight: 700;
    text-decoration: underline;
    white-space: nowrap;
}

.upcoming-inner a:hover,
.upcoming-inner a:focus {
    color: #ffc107 !important;
    text-decoration-thickness: 2px;
}

.events-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: sans-serif;
    justify-content: center;
}

.event-card {
    border-left: 2px solid #0066cc;
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 6px 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 4px;
    flex: 1 1 calc(33.333% - 8px);
    max-width: 380px;
    box-sizing: border-box;
}

.event-date {
    color: #0066cc;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.event-title {
    margin: 0 0 4px 0;
    font-size: 0.9rem;
    color: #111827;
    font-weight: 700;
    line-height: 1.2;
}

.event-time {
    color: #374151;
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .event-card {
        flex: 1 1 calc(50% - 8px);
    }

    .event-date {
        font-size: 0.65rem;
    }

    .event-title {
        font-size: 0.8rem;
    }

    .event-time {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .events-grid {
        gap: 4px;
    }

    .event-card {
        padding: 4px;
        border-left-width: 2px;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .event-date {
        font-size: 0.6rem;
        margin-bottom: 1px;
    }

    .event-title {
        font-size: 0.75rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 2px;
        overflow-wrap: break-word;
    }

    .event-time {
        font-size: 0.6rem;
        font-weight: 700;
        white-space: nowrap;
    }
}


@media (max-width: 400px) {
    .events-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* ==========================================================
   LAHAN Provider Advisory
   Modern Red Alert
   ========================================================== */

.alert-bar.modern-alert {
    max-width: 992px;
    /*1190px*/
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ead7d9;
    border-left: 5px solid #b4232c;
    border-right: 5px solid #b4232c;
    box-shadow: 0 4px 18px rgb(91 0 8 / 8%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.modern-alert__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 1.25rem;
}

.modern-alert__info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}

.modern-alert__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    background: #fbeaec;
    color: #a61924;
    border: 1px solid #f0cfd2;
    border-radius: 50%;
    font-size: 1.1rem;
}

.modern-alert__text {
    min-width: 0;
}

.alert-title {
    margin: 0;
    color: #7f1820;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: .01em;
}

.alert-description {
    margin: .3rem 0 0;
    color: #4b5563;
    font-size: .84rem;
    line-height: 1.5;
}

.alert-description strong {
    color: #7f1820;
    font-weight: 800;
}

.alert-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    flex-shrink: 0;
    min-height: 36px;
    padding: .4rem 1.15rem;
    background: #a61924;
    color: #fff;
    border: 1px solid #a61924;
    border-radius: 8px;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background .2s ease,
        border-color .2s ease,
        transform .15s ease,
        box-shadow .2s ease;
}

.alert-button:hover,
.alert-button:focus {
    background: #86141c;
    border-color: #86141c;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgb(166 25 36 / 22%);
}

.alert-button:focus-visible {
    outline: 3px solid #d6a439;
    outline-offset: 3px;
}

.alert-button i {
    font-size: 1rem;
}

@media (max-width: 768px) {
    .alert-bar.modern-alert {
        border-left-width: 4px;
        border-right-width: 4px;
    }

    .modern-alert__content {
        flex-direction: column;
        align-items: stretch;
        gap: .85rem;
        padding: .9rem 1rem;
    }

    .modern-alert__icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .alert-title {
        font-size: .95rem;
    }

    .alert-description {
        margin-top: .25rem;
        font-size: .86rem;
        line-height: 1.45;
    }

    .alert-button {
        justify-content: center;
        width: fit-content;
        min-height: 40px;
        margin: 0 auto;
        padding: .3rem .9rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .alert-bar.modern-alert {
        position: relative;
        border-left-width: 4px;
        border-right-width: 4px;
        border-radius: 8px;
    }

    .modern-alert__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: .75rem .85rem;
        gap: .7rem;
    }

    .modern-alert__info {
        width: 100%;
        display: flex;
        align-items: flex-start;
        gap: .6rem;
    }

    .modern-alert__icon {
        position: absolute;
        left: .5rem;
        top: .5rem;
        width: 32px;
        height: 32px;
        font-size: .8rem;
    }

    .modern-alert__text {
        flex: 1;
        min-width: 0;
    }

    .alert-title {
        margin-left: 1.5rem;
        font-size: .76rem;
        line-height: 1.25;
    }

    .alert-description {
        width: auto;
        max-width: 100%;
        margin: .45rem 0 0;
        padding-right: 0;
        font-size: .7rem;
        line-height: 1.35;
        text-align: left;
    }

    .alert-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .3rem;
        width: fit-content;
        min-height: 28px;
        padding: .16rem .55rem;
        margin: 0 auto .1rem;
        align-self: center;
        background: #a61924;
        border-color: #a61924;
        border-radius: 999px;
        box-shadow: none;
        font-size: .7rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .alert-button:hover,
    .alert-button:focus {
        background: #86141c;
        border-color: #86141c;
    }

    .alert-button i {
        font-size: .72rem;
    }
}


/*** ==========================================================
  RESOURCES CARDS V2.0
  ==========================================================
***/

.resource-grid {
    position: relative;
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));*/
    grid-template-columns: repeat(3, minmax(340px, 1fr));
    gap: 22px;
    margin-top: 28px;
    align-items: stretch;
    overflow: visible;
}

.resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;

    background: #fff;
    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 16px;
    padding: 22px;

    box-shadow: 0 4px 14px rgba(0, 59, 111, .05);
    transition: box-shadow .2s ease, border-top-color .2s ease;
}

.resource-card:hover {
    border-top-color: var(--ph-gold);
    box-shadow: 0 12px 24px rgba(0, 59, 111, .10);
}

.resource-card:has(.resource-dropdown[open]) {
    z-index: 1000;
}

.resource-card-top {
    display: block;
    /*grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;*/
    align-items: start;
    /*margin-bottom: 14px;*/
    min-width: 0;
}

.resource-image {
    width: 68px;
    height: 68px;
    object-fit: contain;
    background: #f8fbfe;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    padding: 10px;
}

.resource-card h3 {
    /*margin: 0 14px;*/
    margin-top: 0;
    color: var(--ph-dark-blue);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: break-word;
    text-transform: capitalize;
}

.resource-description {
    margin: 0 0 18px;
    color: var(--ph-muted);
    font-size: .85rem;
    line-height: 1.6;
}


/* =========================================================
   Floating Resource Dropdown
   ========================================================= */

.resource-dropdown {
    position: relative;
    margin-top: auto;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    background: #fff;
    overflow: visible;
}

.resource-dropdown summary {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    padding: 8px 14px;
    background: linear-gradient(180deg, #f8fbfe 0%, #eef6fc 100%);
    border-radius: 14px;
    color: var(--ph-dark-blue);
    font-size: .85rem;
    font-weight: 800;
}

.resource-dropdown summary:hover,
.resource-dropdown:hover {
    background: rgba(217, 164, 65, .12);
    border-color: rgba(217, 164, 65, .35) !important;
    color: #a37e3a;
}

.resource-dropdown summary::-webkit-details-marker {
    display: none;
}

.resource-dropdown summary::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid #d9e6f2;
    border-radius: 10px;
    color: var(--ph-blue);
    font-size: .95rem;
}

.resource-dropdown summary:hover::before {
    background: rgba(217, 164, 65, .12);
    border-color: rgba(217, 164, 65, .35) !important;
    color: var(--ph-gold);
}

.resource-dropdown summary::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-blue);
    font-size: .8rem;
    transition: transform .2s ease;
}

.resource-dropdown summary:hover::after {
    color: var(--ph-gold);
}

.resource-dropdown[open] summary::after {
    transform: rotate(180deg);
}

/* Hidden by default so it does not affect layout */
.resource-dropdown-content {
    display: none;
}

/* Show only when open, floated out of layout */
.resource-dropdown[open] .resource-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;

    display: grid;
    gap: 0;

    width: 100%;
    min-width: 280px;
    max-width: min(420px, 90vw);

    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;

    padding: 8px;

    background: #fff;
    border: 1px solid #d9e6f2;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(0, 59, 111, .22);

    z-index: 99999;
}

/* For cards on the right side, open inward */
.resource-card:nth-child(2n) .resource-dropdown[open] .resource-dropdown-content {
    left: auto;
    right: 0;
}

.resource-dropdown-content a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    color: var(--ph-dark-blue);
    background: #fff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 700;
    transition: background-color .2s ease, color .2s ease;
}

.resource-dropdown-content a::before {
    content: "\f15b";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-dark-blue);
    font-size: .82rem;
}

.resource-dropdown-content a::after {
    content: "\f019";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--ph-blue);
    font-size: .82rem;
}

.resource-dropdown-content a:hover,
.resource-dropdown-content a:focus {
    background: rgba(198, 146, 20, .08);
    color: var(--ph-gold);
    text-decoration: none;
}

.resource-dropdown-content a:hover::after,
.resource-dropdown-content a:focus::after,
.resource-dropdown-content a:hover::before,
.resource-dropdown-content a:focus::before {
    color: var(--ph-gold);
}

/* =========================================================
   Resource Footer (Footnote Style)
   ========================================================= */

.resource-footer {
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin-top: 24px;
    padding: 14px 16px;

    background: rgba(0, 90, 156, .04);
    border: 1px solid rgba(0, 90, 156, .08);
    border-radius: 10px;
}

.resource-footer i {
    margin-top: 2px;
    flex-shrink: 0;

    color: var(--ph-blue);
    font-size: .9rem;
    opacity: .75;
}

.resource-footer p {
    margin: 0;

    color: var(--ph-muted);
    font-size: .875rem;
    line-height: 1.6;
}

.resource-footer a {
    color: var(--ph-blue);
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

@media (max-width: 768px) {
    .resource-footer {
        padding: 12px 14px;
        gap: 8px;
    }

    .resource-footer p {
        font-size: .85rem;
    }
}


.resource-dropdown-content a {
    position: relative;
    overflow: visible;
}

.resource-language-name {
    min-width: 0;
}

.resource-dropdown-content a {
    position: relative;
}

.resource-tooltip {
    position: absolute;
    left: 50%;
    top: calc(100% + 8px);

    transform: translateX(-50%) translateY(-4px);

    padding: 7px 10px;
    background: var(--ph-dark-blue);
    color: #fff;
    border-radius: 8px;

    font-size: .72rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    box-shadow: 0 8px 18px rgba(0, 59, 111, .18);
    z-index: 9999;

    transition:
        opacity .18s ease,
        transform .18s ease,
        visibility .18s ease;
}

.resource-tooltip::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);

    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--ph-dark-blue);
}

.resource-dropdown-content a:hover .resource-tooltip,
.resource-dropdown-content a:focus .resource-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* JS-applied: tooltip below */
.resource-tooltip.tooltip-below {
    top: calc(100% + 8px);
    bottom: auto;
    transform: translateX(-50%) translateY(-4px);
}

.resource-tooltip.tooltip-below::after {
    top: auto;
    bottom: 100%;

    border-top: none;
    border-bottom: 6px solid var(--ph-dark-blue);
}

/* JS-applied: tooltip above */
.resource-tooltip.tooltip-above {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
}

.resource-tooltip.tooltip-above::after {
    top: 100%;
    bottom: auto;

    border-bottom: none;
    border-top: 6px solid var(--ph-dark-blue);
}

.resource-dropdown-content a:hover .resource-tooltip.tooltip-above,
.resource-dropdown-content a:focus .resource-tooltip.tooltip-above,
.resource-dropdown-content a:hover .resource-tooltip.tooltip-below,
.resource-dropdown-content a:focus .resource-tooltip.tooltip-below {
    transform: translateX(-50%) translateY(0);
}

.resource-card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.resource-icon {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: rgba(0, 90, 156, .08);
    border: 1px solid rgba(0, 90, 156, .12);
    border-radius: 12px;

    transition: all .25s ease;
}

.resource-icon i {
    color: var(--ph-blue);
    font-size: 1.35rem;

    transition: color .25s ease;
}

/* Hover */
.resource-card:hover .resource-icon {
    background: rgba(217, 164, 65, .12);
    border-color: rgba(217, 164, 65, .35);
}

.resource-card:hover .resource-icon i {
    color: var(--ph-gold);
}

@media (max-width: 520px) {
    .resource-card-top {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .resource-image {
        width: 52px;
        height: 52px;
    }

    .resource-dropdown-content a {
        grid-template-columns: auto 1fr;
    }

    .resource-dropdown-content a::after {
        display: none;
    }
}


/* ==========================================================
  Buttons CSS
  ==========================================================
*/

.a-btns {
    margin-top: auto;
    display: inline-block;
    width: fit-content;

    padding: 8px 25px;
    border: unset;
    border-radius: 8px;
    color: #ffffff;
    z-index: 1;
    background: var(--ph-blue);
    border: 1px solid var(--ph-blue);
    position: relative;
    font-weight: 1000;
    font-size: 0.85rem;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}

.a-btns::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--ph-gold);
    z-index: -1;
    -webkit-box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, 0.27);
    transition: all 250ms
}

.a-btns:hover {
    color: #ffffff;
    border: 1px solid var(--ph-gold);
    border-radius: 8px;
}

.a-btns:hover::before,
.a-btns:focus::before {
    width: 100%;
}


/* =========================================================
   Resource Footer (Footnote Style)
   ========================================================= */

.resource-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;

    margin-top: 24px;
    padding: 14px 16px;
    background: rgba(0, 90, 156, .04);
    border: 1px solid rgba(0, 90, 156, .08);
    border-radius: 10px;
}

.resource-footer i {
    margin-top: 2px;
    flex-shrink: 0;

    color: var(--ph-blue);
    font-size: .9rem;
    opacity: .75;
}

.resource-footer p {
    margin: 0;

    color: var(--ph-muted);
    font-size: .875rem;
    line-height: 1.6;
}

.resource-footer a {
    color: var(--ph-blue);
    font-weight: 600;
    text-decoration: none;

    transition: color .2s ease;
}

@media (max-width: 768px) {
    .resource-footer {
        padding: 12px 14px;
        gap: 8px;
        text-align: center;
    }

    .resource-footer p {
        font-size: .85rem;
    }

    .resource-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .resource-card {
        padding: 20px;
    }

    .resource-card-top {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .resource-image {
        width: 58px;
        height: 58px;
        padding: 8px;
    }

    .resource-card h3 {
        font-size: 1.02rem;
    }

    .resource-description {
        font-size: .88rem;
    }
}

/* Bullets */
.service-points {
    list-style: none;
    padding: 0;
    margin: 2px 15px 0;
}

.service-points li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 7px;

    color: var(--ph-muted);
    font-size: .85rem;
    line-height: 1.35;
}

.service-points li:last-child {
    margin-bottom: 0;
}

.service-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: var(--ph-gold);
}


/* ==========================================================
   Asynchronous Dashboard Layout Split Grid
   ========================================================== */
.coalition-dashboard-container {
    display: grid;
    /* 1. Default Mobile Configuration Layout: Top-to-bottom stack order */
    grid-template-areas:
        "text"
        "media"
        "vision-mission";
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 32px;
    max-width: 1000px;
    /*1200px*/
    margin: 2rem auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* Map specific elements directly to named grid positions */
.coalition-content-panel {
    grid-area: text;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.coalition-media-panel {
    grid-area: media;
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f1f5f9;
    /* Modern, soft slate-gray background tint */
    padding: 32px 16px;
    border-radius: 16px;
    box-sizing: border-box;
}

.vm-row-container {
    grid-area: vision-mission;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Side-by-side row split */
    gap: 16px;
    width: 100%;
}

/* Typography & Layout Scaffolding Left Panel Headers */
.dph-toolkit-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1rem;
}

.dph-toolkit-header i {
    background: #1e3a8a;
    /* Theme deep navy */
    color: #ffffff;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: 0 0 0 6px rgba(30, 58, 138, 0.08);
    flex-shrink: 0;
}

.dph-toolkit-header h2 {
    margin: 0;
}

.coalition-main-summary {
    color: #475569;
    /* Slate gray contrast reading copy */
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.coalition-main-summary strong {
    color: #1e3a8a;
}

/* Card Statement Elements */
.vm-compact-box {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.vision-accent {
    border-left: 4px solid #1e3a8a;
    border-right: 4px solid #1e3a8a;
}

.mission-accent {
    border-left: 4px solid #9a3412;
    /* Compliant AAA color contrast */
    border-right: 4px solid #9a3412;
}

.vm-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vm-box-header i {
    font-size: 1rem;
    flex-shrink: 0;
}

.vision-accent .vm-box-header i,
.vision-accent h3 {
    color: #1e3a8a;
}

.mission-accent .vm-box-header i,
.mission-accent h3 {
    color: #9a3412;
}

.vm-box-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.vm-compact-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.5;
}

/* Right Media Block Architecture Panel Components */
.sticky-media-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    width: 100%;
    max-width: 432px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.brochure-link-wrapper span {
    color: #ffffff !important;
}

.brochure-image-wrapper {
    width: 100%;
    aspect-ratio: 553 / 533;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
}

.brochure-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Premium Solid Interactive Action Download Button Shape */
.brochure-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1e3a8a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 14px 24px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15);
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.brochure-action-button i {
    color: #fbbf24;
    font-size: 1.1rem;
}

.brochure-action-button:hover,
.brochure-action-button:focus {
    background-color: #1d4ed8;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

/* ==========================================================
   Responsive Grid Overrides (DESKTOP VIEWPORTS > 991px)
   ========================================================== */
@media (min-width: 992px) {
    .coalition-dashboard-container {
        grid-template-columns: 1fr 432px;
        /* Set 2 uneven columns */
        /* 2. RE-ARRANGE CELLS: Places text on row 1 left, vision/mission on row 2 left, 
       and extends the media block full height down the right hand track slot */
        grid-template-areas:
            "text           media"
            "vision-mission media";
        gap: 40px;
    }

    .coalition-media-panel {
        position: sticky;
        top: 24px;
        /* Image block stays pinned alongside scrolling text layouts */
    }

    .vm-compact-box {
        background: #ffffff;
        /* Solid transparent white contrast for text layout continuity */
    }
}

/* tablet viewports override */
@media (max-width: 767px) {
    .vm-row-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        /* Collapses to single vertical stream on smartphones */
    }
}

@media (max-width: 500px) {
    .vm-row-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        /* Collapses to single vertical stream on smartphones */
    }

    .coalition-main-summary {
        font-size: 0.9rem;
    }
}

/* ==========================================================
   Desktop Grid Breakpoint (Tablet Screens and Wider)
   ========================================================== */
@media (min-width: 768px) {
    .resource-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/*
*
* Accordions TB Styling
*
*/

/* =========================================================
   1. DESIGN TOKENS / PAGE COLORS
========================================================= */

:root {
    --tt-navy: #061c60;
    --tt-blue: #0b5fff;
    --tt-text: #1f2937;
    --tt-muted: #475569;
    --tt-border: rgba(6, 28, 96, 0.14);
    --tt-shadow: 0 10px 24px rgba(6, 28, 96, 0.1);
}

/* =========================================================
   2. PAGE WIDTH / ACCESSIBILITY FOCUS STATES
========================================================= */

#tb-forms #main-content {
    width: min(100% - 2rem, 1160px);
    margin-inline: auto;
}

#tb-forms a:focus-visible,
#tb-forms summary:focus-visible,
#tb-forms input:focus-visible {
    outline: 3px solid var(--tt-blue);
    outline-offset: 4px;
    border-radius: 8px;
}

/* =========================================================
   3. TOP MPOX PAGE NAVIGATION
========================================================= */

#tb-forms .actions {
    margin: 0 auto 1rem;
    border-radius: 0 0 14px 14px;
    font-size: 1.1rem;
}

#tb-forms .actions a {
    font-size: 1.1rem;
}

/* =========================================================
   4. HERO SECTION
========================================================= */

.tt-hero--compact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.25rem;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%) !important;
    border: 1px solid var(--tt-border) !important;
    box-shadow: var(--tt-shadow) !important;
}

.tt-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #fff;
    color: var(--tt-navy);
    border: 1px solid var(--tt-border);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tt-hero h1 {
    color: var(--tt-navy);
}

/* Hero side reminder card */

.tt-hero-card {
    padding: 1.25rem;
    border-radius: 18px;
    background: #fff7e6;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-left: 6px solid var(--tt-orange);
}

.tt-hero-card h2 {
    margin: 0 0 0.5rem;
    color: #713f12;
    font-size: 1.2rem;
    font-weight: 600;
}

.tt-hero-card p {
    margin: 0;
    color: #4a3200;
    line-height: 1.55;
}

/* =========================================================
   5. QUICK GUIDANCE / DECISION STRIP
========================================================= */

.tt-decision-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.35rem 0;
}

.tt-decision-strip article {
    position: relative;
    overflow: hidden;
    min-height: 118px;
    padding: 1.15rem 1.15rem 1.15rem 4.4rem;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(6, 28, 96, 0.14);
    box-shadow: 0 8px 20px rgba(6, 28, 96, 0.09);
}

.tt-decision-strip article::before {
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.05rem;
}

.tt-decision-strip article:nth-child(1)::before {
    content: "\f492";
    background: var(--tt-blue);
}

.tt-decision-strip article:nth-child(2)::before {
    content: "\f017";
    background: var(--tt-teal);
}

.tt-decision-strip article:nth-child(3)::before {
    content: "\f0fa";
    background: var(--tt-orange);
}

.tt-decision-strip article::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -42px;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: rgba(11, 95, 255, 0.06);
}

.tt-decision-strip strong {
    display: block;
    color: var(--tt-navy);
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: capitalize;
}

.tt-decision-strip span {
    display: block;
    margin-top: 0.35rem;
    color: var(--tt-muted);
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.45;
}

/* =========================================================
   6. TOPIC HUB WRAPPER
========================================================= */

.tt-topic-hub {
    margin-top: 1.25rem;
    padding: 1rem;
    border-radius: 24px;
    background: #f6f8fc;
    border: 1px solid var(--tt-border);
}

.tt-topic-hub__header {
    padding: 0.5rem 0.5rem 1rem;
}

.tt-topic-hub__header h2 {
    margin: 0 0 0.35rem;
    color: var(--tt-navy);
    font-size: clamp(1.45rem, 3vw, 2rem);
    font-weight: 600;
    text-transform: capitalize;
}

.tt-topic-hub__header p {
    margin: 0;
    color: var(--tt-muted);
}

/* =========================================================
   7. ACCORDION WRAPPER
========================================================= */

.tt-accordion-group {
    display: grid;
    gap: 0.9rem;
}

.tt-topic-panel {
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid var(--tt-border);
    box-shadow: 0 6px 16px rgba(6, 28, 96, 0.07);
    overflow: hidden;
}

/* Accordion header */

.tt-topic-panel summary {
    display: grid;
    grid-template-columns: 52px minmax(220px, 380px) 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 1rem 1.15rem;
    cursor: pointer;
    list-style: none;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.tt-topic-panel summary::-webkit-details-marker {
    display: none;
}

/* Plus/minus icon drawn with CSS for perfect alignment */

.tt-topic-panel summary::after {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef4ff;
    justify-self: end;
    background-image:
        linear-gradient(#003588, #003588), linear-gradient(#003588, #003588);
    background-size:
        12px 2px,
        2px 12px;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 220ms ease;

    vertical-align: middle;
    justify-content: center;
    align-items: center;
    position: absolute;
}

.tt-topic-panel[open] summary::after {
    background-image: linear-gradient(#003588, #003588);
    background-size: 12px 2px;
    transform: rotate(180deg);
}

/* Accordion topic icons */

.tt-topic-panel__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--tt-blue);
    font-size: 1.15rem;
}

/* Accordion heading text */
.tt-topic-panel__title {
    color: var(--tt-navy);
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: capitalize;
}

.tt-topic-panel__summary {
    color: var(--tt-muted);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 1;
    max-height: 40px;
    transition:
        opacity 0.2s ease,
        max-height 0.2s ease;
}

.tt-topic-panel[open] .tt-topic-panel__summary {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

/* Accordion body with smooth open animation */

.tt-topic-panel__body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1.15rem;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        padding 0.35s ease;
}

.tt-topic-panel__body .resource-card h3 {
    font-size: 0.88rem;
}

.tt-topic-panel[open] .tt-topic-panel__body {
    max-height: 2200px;
    opacity: 1;
    padding: 0 1.15rem 1.15rem;
}

.tt-topic-panel__body>* {
    overflow: hidden;
}

/* =========================================================
   8. GENERIC CONTENT CARDS
   Used by Treatment, Isolation, Leaving Isolation
========================================================= */

.tt-content-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tt-content-grid--two {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tt-content-card,
.tt-inline-note,
.tt-return-grid article {
    min-width: 0;
    padding: 1.2rem;
    border-radius: 17px;
    background: #fff;
    border: 1px solid rgba(6, 28, 96, 0.12);
    box-shadow: 0 5px 14px rgba(6, 28, 96, 0.065);
}

.tt-content-card h3,
.tt-inline-note h3,
.tt-return-grid h3 {
    margin: 0 0 0.65rem;
    color: var(--tt-navy);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    text-transform: capitalize;
}

.tt-content-card>p,
.tt-inline-note>p,
.tt-return-grid article>p {
    margin: 0;
    color: #334155;
    font-size: 0.86rem;
    line-height: 1.65;
}

.tt-content-card>p+p,
.tt-inline-note>p+p,
.tt-return-grid article>p+p {
    margin-top: 0.75rem;
}

.tt-content-card li {
    color: #26364d;
    line-height: 1.58;
}

/* =========================================================
   9. TESTING PANEL IMPROVED STEP LAYOUT
   Purpose:
   - Shows the 3 testing steps in one row on desktop
   - Stacks them on tablet/mobile
   - Keeps the number and card content clean
========================================================= */

.tt-panel-intro {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fbff;
    font-size: 0.85rem;
    border: 1px solid rgba(6, 28, 96, 0.12);
    border-radius: 16px;
}

.tt-panel-intro__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eef4ff;
    color: var(--tt-blue);
    font-size: 1rem;
}

.tt-panel-intro p {
    margin: 0;
    color: #26364d;
    line-height: 1.6;
    font-weight: 600;
}

/* =========================================================
   INDIVIDUAL STEP
========================================================= */

.tt-testing-step {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    min-height: 100%;

    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Main card body */
.tt-testing-step>div {
    flex: 1;
    width: 100%;
    min-width: 0;

    padding: 3rem 1.25rem 1.35rem;

    background: #ffffff;

    border: 1px solid rgba(6, 28, 96, 0.16);
    border-top: 4px solid var(--dph-blue-2);
    border-radius: 16px;

    box-shadow:
        0 8px 20px rgba(6, 28, 96, 0.07),
        0 2px 5px rgba(6, 28, 96, 0.04);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        border-top-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* =========================================================
   AUTOMATIC JAVASCRIPT ACTIVE STATE
========================================================= */

.tt-testing-step.is-active>div {
    transform: translateY(-5px);

    background: linear-gradient(180deg,
            rgba(99, 48, 117, 0.12) 0%,
            rgba(99, 48, 117, 0.04) 30%,
            #ffffff 54%);

    border-color: rgba(99, 48, 117, 0.5);
    border-top-color: #633075;

    box-shadow:
        0 16px 32px rgba(99, 48, 117, 0.18),
        0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step.is-active .tt-testing-step__number {
    transform: translateY(-4px) scale(1.04);
    background: linear-gradient(135deg, #7a3e8f, #633075) !important;

    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(99, 48, 117, 0.24);
}

.tt-testing-step.is-active h3 {
    color: #542563 !important;
}

/* =========================================================
   USER HOVER / KEYBOARD FOCUS STATE
   Purple distinguishes direct interaction from auto rotation
========================================================= */

.tt-testing-step:hover>div,
.tt-testing-step:focus-within>div {
    transform: translateY(-5px);

    background: linear-gradient(180deg,
            rgba(99, 48, 117, 0.12) 0%,
            rgba(99, 48, 117, 0.04) 30%,
            #ffffff 54%);

    border-color: rgba(99, 48, 117, 0.5);
    border-top-color: #633075;

    box-shadow:
        0 16px 32px rgba(99, 48, 117, 0.18),
        0 4px 10px rgba(99, 48, 117, 0.09);
}

/* =========================================================
   STEP NUMBER
========================================================= */

.tt-testing-step__number {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 58px;
    height: 58px;

    margin: 0 0 -29px;

    background: linear-gradient(135deg, var(--dph-blue), var(--dph-blue-2));

    border: 5px solid #ffffff;
    border-radius: 50%;

    color: var(--dph-blue-contrast);

    box-shadow: 0 8px 20px rgba(6, 28, 96, 0.18);

    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Automatic active number */
.tt-testing-step.is-active .tt-testing-step__number {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--dph-orange), #bb7524);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(208, 139, 56, 0.26);
}

/* Hover and keyboard-focus number */
.tt-testing-step:hover .tt-testing-step__number,
.tt-testing-step:focus-within .tt-testing-step__number {
    transform: translateY(-4px) scale(1.04);

    background: linear-gradient(135deg, #7a3e8f, #633075);

    color: #ffffff;

    box-shadow: 0 10px 24px rgba(99, 48, 117, 0.34);
}

/* =========================================================
   TEXT CONTENT
========================================================= */

.tt-testing-step h3 {
    max-width: 24ch;
    margin: 0 auto 0.4rem;

    color: var(--dph-h3-color);

    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-transform: capitalize !important;

    transition: color 0.25s ease;
}

/* Automatic active heading */
.tt-testing-step.is-active h3 {
    color: #70450f;
}

/* Hover and keyboard-focus heading */
.tt-testing-step:hover h3,
.tt-testing-step:focus-within h3 {
    color: #542563;
}

.tt-testing-step p {
    margin: 0;
    color: #26364d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tt-testing-step p+p {
    margin-top: 0.85rem;
}

/* =========================================================
   LINKS
========================================================= */

.tt-testing-step a {
    color: var(--dph-blue);
    font-weight: 700;

    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(6, 28, 96, 0.42);
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease,
        text-decoration-thickness 0.2s ease;
}

.tt-testing-step a:hover {
    color: #542563;

    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
}

.tt-testing-step a:focus-visible {
    outline: 3px solid rgba(99, 48, 117, 0.42);
    outline-offset: 3px;

    border-radius: 3px;

    color: #542563;

    text-decoration-thickness: 2px;
    text-decoration-color: currentColor;
}

/* =========================================================
   IMPORTANT FINAL STEP
========================================================= */

.tt-testing-step--important>div {
    background: linear-gradient(180deg, rgba(208, 139, 56, 0.1) 0%, #ffffff 42%);

    border-color: rgba(208, 139, 56, 0.42);
    border-top-color: var(--dph-orange);
}

.tt-testing-step--important .tt-testing-step__number {
    background: linear-gradient(135deg, var(--dph-orange), #bb7524);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(99, 48, 117, 0.24);
}

.tt-testing-step--important h3 {
    color: #70450f;
}

/* Important step during automatic rotation */
.tt-testing-step--important.is-active>div {
    background: linear-gradient(180deg,
            rgba(99, 48, 117, 0.12) 0%,
            rgba(99, 48, 117, 0.04) 30%,
            #ffffff 54%);

    border-color: rgba(99, 48, 117, 0.5);
    border-top-color: #633075;

    box-shadow:
        0 16px 32px rgba(99, 48, 117, 0.18),
        0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step--important.is-active .tt-testing-step__number {
    background: linear-gradient(135deg, #7a3e8f, #633075);
    color: #fff;
}

.tt-testing-step--important.is-active h3 {
    color: #542563;
}

/* Hover takes priority over the important-step orange */
.tt-testing-step--important:hover>div,
.tt-testing-step--important:focus-within>div {
    background: linear-gradient(180deg,
            rgba(99, 48, 117, 0.14) 0%,
            rgba(99, 48, 117, 0.05) 32%,
            #ffffff 55%);

    border-color: rgba(99, 48, 117, 0.56);
    border-top-color: #633075;

    box-shadow:
        0 16px 32px rgba(99, 48, 117, 0.18),
        0 4px 10px rgba(99, 48, 117, 0.09);
}

.tt-testing-step--important:hover .tt-testing-step__number,
.tt-testing-step--important:focus-within .tt-testing-step__number {
    background: linear-gradient(135deg, #7a3e8f, #633075);

    color: #ffffff;

    box-shadow: 0 10px 24px rgba(99, 48, 117, 0.34);
}

.tt-testing-step--important:hover h3,
.tt-testing-step--important:focus-within h3 {
    color: #542563;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {
    .tt-testing-steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;

        padding-top: 0;
    }

    .tt-testing-step {
        align-items: center;
    }

    .tt-testing-step__number {
        width: 52px;
        height: 52px;

        margin-bottom: -26px;

        border-width: 4px;

        font-size: 1.1rem;
    }

    .tt-testing-step>div {
        padding: 2.7rem 1.35rem 1.35rem;
    }

    .tt-testing-step h3 {
        max-width: none;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 560px) {
    .tt-testing-steps {
        gap: 1.5rem;
        margin-top: 1rem;
    }

    .tt-testing-step__number {
        width: 44px;
        height: 44px;

        margin-bottom: -22px;

        border-width: 4px;

        font-size: 0.95rem;
    }

    .tt-testing-step>div {
        padding: 2.45rem 1rem 1.1rem;

        border-radius: 14px;
    }

    .tt-testing-step h3 {
        margin-bottom: 0.7rem;

        font-size: 1.06rem;
        line-height: 1.3;
    }

    .tt-testing-step p {
        font-size: 0.96rem;
        line-height: 1.58;
    }

    .tt-testing-step:hover>div,
    .tt-testing-step:focus-within>div {
        transform: translateY(-3px);
    }

    .tt-testing-step:hover .tt-testing-step__number,
    .tt-testing-step:focus-within .tt-testing-step__number {
        transform: translateY(-2px) scale(1.03);
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tt-testing-step>div,
    .tt-testing-step__number,
    .tt-testing-step h3,
    .tt-testing-step a {
        transition: none;
    }

    .tt-testing-step.is-active>div,
    .tt-testing-step:hover>div,
    .tt-testing-step:focus-within>div,
    .tt-testing-step.is-active .tt-testing-step__number,
    .tt-testing-step:hover .tt-testing-step__number,
    .tt-testing-step:focus-within .tt-testing-step__number {
        transform: none;
    }
}

/* =========================================================
   ANTIVIRAL MEDICATION NOTE
   - Professional public-health presentation
   - Clear header, supporting cards, and closing guidance
   - Responsive without changing the existing HTML
========================================================= */

.tt-medication-note {
    position: relative;
    overflow: hidden;

    margin-top: 1.25rem;
    padding: 1.4rem;

    background: linear-gradient(145deg,
            rgba(11, 95, 255, 0.07) 0%,
            rgba(255, 255, 255, 0.96) 42%,
            #ffffff 100%);

    border: 1px solid rgba(0, 43, 77, 0.16);
    border-left: 5px solid var(--tt-blue);
    border-radius: 18px;

    box-shadow: 0 8px 22px rgba(0, 43, 77, 0.08);
}

/* =========================================================
   Header
========================================================= */

.tt-medication-note__header {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;

    margin-bottom: 1.2rem;
}

.tt-medication-note__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    border: 1px solid rgba(11, 95, 255, 0.18);
    border-radius: 16px;

    background: rgba(11, 95, 255, 0.12);
    color: var(--tt-blue);

    font-size: 1.3rem;

    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.7),
        0 5px 12px rgba(0, 43, 77, 0.08);
}

.tt-medication-note h3 {
    margin: 0 0 0.4rem;

    color: var(--tt-navy);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    font-weight: 800;
    line-height: 1.25;
}

.tt-medication-note__header p {
    margin: 0;
    color: #35465d;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.65;
}

/* =========================================================
   Information Cards
========================================================= */

.tt-medication-note__grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tt-medication-note__grid article {
    position: relative;

    min-width: 0;
    padding: 1.05rem 1rem 1rem;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(0, 43, 77, 0.13);
    border-top: 4px solid rgba(11, 95, 255, 0.72);
    border-radius: 14px;

    box-shadow: 0 5px 14px rgba(0, 43, 77, 0.06);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tt-medication-note__grid article:hover {
    transform: translateY(-2px);

    border-color: rgba(11, 95, 255, 0.28);

    box-shadow: 0 9px 20px rgba(0, 43, 77, 0.1);
}

.tt-medication-note__grid strong {
    margin: 0 0 0.45rem;
    color: var(--tt-navy);
    text-transform: capitalize;
    font-weight: 800;
    line-height: 1.35;
}

.tt-medication-note__grid p {
    margin: 0.25rem 0 0 0;
    color: #3b4a5f;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Give the TPOXX card slightly stronger emphasis */
.tt-medication-note__grid article:nth-child(2) {
    border-top-color: var(--tt-orange);
    background: linear-gradient(180deg,
            rgba(255, 247, 230, 0.72) 0%,
            #ffffff 80%);
}

.tt-medication-note__grid article:nth-child(2) strong {
    color: #713f12;
}

/* =========================================================
   Footer Guidance
========================================================= */

.tt-medication-note__footer {
    position: relative;
    z-index: 1;

    margin: 1.1rem 0 0;
    padding: 1rem 1rem 1rem 3rem;

    color: #26384e;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.65;

    background: rgba(0, 43, 77, 0.045);
    border: 1px solid rgba(0, 43, 77, 0.1);
    border-radius: 12px;
}

.tt-medication-note__footer::before {
    content: "\f05a";

    position: absolute;
    top: 1.05rem;
    left: 1rem;

    color: var(--tt-blue);
    font-family: "Font Awesome 5 Free";
    font-size: 1.05rem;
    font-weight: 900;
}

/* =========================================================
   Responsive Layout
========================================================= */

@media (max-width: 900px) {
    .tt-medication-note__grid {
        grid-template-columns: 1fr;
    }

    .tt-medication-note__grid article {
        border-top-width: 1px;
        border-left: 4px solid rgba(11, 95, 255, 0.72);
    }

    .tt-medication-note__grid article:nth-child(2) {
        border-left-color: var(--tt-orange);
    }
}

@media (max-width: 560px) {
    .tt-medication-note {
        padding: 1.1rem;
        border-left-width: 4px;
        border-radius: 15px;
    }

    .tt-medication-note__header {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0.8rem;
    }

    .tt-medication-note__icon {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        font-size: 1.1rem;
    }

    .tt-medication-note__header p {
        font-size: 0.96rem;
    }

    .tt-medication-note__grid article {
        padding: 0.95rem;
    }

    .tt-medication-note__footer {
        padding: 0.9rem 0.9rem 0.9rem 2.7rem;
    }

    .tt-medication-note__footer::before {
        top: 0.95rem;
        left: 0.9rem;
    }
}

@media (max-width: 400px) {
    .tt-medication-note__header {
        grid-template-columns: 1fr;
    }

    .tt-medication-note__icon {
        margin-bottom: 0.1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tt-medication-note__grid article {
        transition: none;
    }

    .tt-medication-note__grid article:hover {
        transform: none;
    }
}

/* =========================================================
   10. RESPONSIVE CONTENT LISTS
   - 4 columns on large screens
   - 2 columns at 980px and below
   - 1 column at 560px and below
========================================================= */

.tt-check-list,
.tt-list-clean {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    width: 100%;
    margin: 1rem 0 0;
    padding: 0;
    gap: 0.85rem;
    list-style: none;
}

.tt-check-list li,
.tt-list-clean li {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    padding: 0.9rem 0.9rem 0.9rem 2.65rem;
    background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid rgba(6, 28, 96, 0.11);
    border-radius: 14px;
    color: #26364d;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.55;
    box-shadow: 0 3px 9px rgba(6, 28, 96, 0.045);
    overflow-wrap: anywhere;
}

.tt-check-list li p,
.tt-list-clean li p {
    margin: 0;
}

.tt-check-list li strong,
.tt-list-clean li strong {
    color: var(--tt-navy);
    font-weight: 800;
}

.tt-check-list li::before,
.tt-list-clean li::before {
    position: absolute;
    top: 0.92rem;
    left: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
}

.tt-check-list li::before {
    content: "✓";
    background: #e5f6ec;
    border: 1px solid rgba(22, 101, 52, 0.14);
    color: #166534;
}

.tt-list-clean li::before {
    content: "•";
    background: #eaf1ff;
    border: 1px solid rgba(0, 53, 136, 0.12);
    color: #003588;
    font-size: 1rem;
}

@media (hover: hover) {

    .tt-check-list li,
    .tt-list-clean li {
        transition:
            border-color 0.2s ease,
            box-shadow 0.2s ease,
            transform 0.2s ease;
    }

    .tt-check-list li:hover,
    .tt-list-clean li:hover {
        transform: translateY(-2px);
        border-color: rgba(11, 95, 255, 0.22);
        box-shadow: 0 7px 16px rgba(6, 28, 96, 0.08);
    }
}

/* =========================================================
   11. INLINE NOTE AND RETURN GRID
========================================================= */

.tt-inline-note {
    margin-top: 0.85rem;
}

.tt-return-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

/* =========================================================
   12. TABLET RESPONSIVE
========================================================= */

@media (max-width: 980px) {

    .tt-check-list,
    .tt-list-clean {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .tt-check-list li,
    .tt-list-clean li {
        padding: 0.9rem 0.9rem 0.9rem 2.6rem;
        font-size: 0.94rem;
        line-height: 1.58;
    }
}

@media (max-width: 900px) {
    #tb-forms #main-content {
        width: min(100% - 1rem, 1160px);
    }

    .tt-hero--compact,
    .tt-decision-strip,
    .tt-content-grid,
    .tt-content-grid--two,
    .tt-return-grid {
        grid-template-columns: 1fr;
    }

    .tt-topic-panel summary {
        grid-template-columns: 52px 1fr auto;
        gap: 0.35rem;
    }

    .tt-topic-panel__summary {
        grid-column: 2 / 3;
    }
}

/* =========================================================
   13. MOBILE RESPONSIVE
========================================================= */

@media (max-width: 560px) {
    .tt-hero--compact {
        padding: 1rem !important;
    }

    .tt-topic-hub {
        padding: 0.75rem;
    }

    .tt-topic-panel summary {
        grid-template-columns: 1fr auto;
    }

    .tt-topic-panel__icon {
        width: 44px;
        height: 44px;
    }

    .tt-topic-panel__icon,
    .tt-topic-panel__title {
        grid-column: 1 / 2;
        font-size: 1rem;
    }

    .tt-topic-panel__summary {
        grid-column: 1 / 2;
        font-size: 0.85rem;
    }

    .tt-topic-panel summary::after {
        grid-column: 2;
        grid-row: 1;
    }

    .tt-panel-intro,
    .tt-testing-step {
        grid-template-columns: 1fr;
    }

    .tt-panel-intro__icon,
    .tt-testing-step__number {
        width: 40px;
        height: 40px;
    }

    .tt-content-card,
    .tt-inline-note,
    .tt-return-grid article {
        padding: 1rem;
        border-radius: 14px;
    }

    .tt-content-card h3,
    .tt-inline-note h3,
    .tt-return-grid h3 {
        margin-bottom: 0.55rem;
        font-size: 1.05rem;
    }

    .tt-content-card>p,
    .tt-inline-note>p,
    .tt-return-grid article>p {
        font-size: 0.94rem;
        line-height: 1.62;
    }

    .tt-check-list,
    .tt-list-clean {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        margin-top: 0.85rem;
    }

    .tt-check-list li,
    .tt-list-clean li {
        min-height: 0;
        padding: 0.85rem 0.85rem 0.85rem 2.55rem;
        border-radius: 12px;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .tt-check-list li::before,
    .tt-list-clean li::before {
        top: 0.88rem;
        left: 0.85rem;
    }
}

/* =========================================================
   14. REDUCED MOTION
   ADA / WCAG-friendly motion preference support
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ==========================================================
   RETURNING TO DAILY ACTIVITIES
========================================================== */

.tt-return-grid--featured {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.tt-return-grid--featured>article {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;

    padding: 1.4rem;
    min-height: 100%;

    background: linear-gradient(180deg,
            #ffffff 0%,
            #fbf9fd 100%);

    border: 1px solid rgba(99, 48, 117, .16);
    border-top: 5px solid #633075;
    border-radius: 18px;

    box-shadow:
        0 8px 22px rgba(99, 48, 117, .08);

    transition:
        transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.tt-return-grid--featured>article:hover {
    border-color: rgba(99, 48, 117, .28);
    box-shadow:
        0 14px 30px rgba(99, 48, 117, .14);
}

.tt-return-grid--featured h3 {
    margin-bottom: .75rem;
    color: var(--tt-navy);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
}

.tt-return-grid--featured p {
    color: #334155;
    font-size: .95rem;
    line-height: 1.7;
}

.tt-return-grid--featured strong {
    color: #542563;
}

.tt-return-grid--featured h3 i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 2.2rem;
    height: 2.2rem;
    color: var(--tt-purple);
    background: rgba(99, 48, 117, 0.1);
    border: 1px solid rgba(99, 48, 117, 0.16);
    border-radius: 10px;

    font-size: 1rem;
    text-align: center;
    margin-right: 10px;
}

@media (max-width:900px) {

    .tt-return-grid--featured {
        grid-template-columns: 1fr;
    }

}

.tt-note {
    margin-top: 1rem !important;
    padding: .75rem .9rem;
    font-size: .77rem !important;
    line-height: 1.25 !important;

    background: rgba(99, 48, 117, .05);
    border-left: 4px solid #633075;
    border-radius: 10px;
    color: #4b5563 !important;
}

.tt-note strong {
    color: #542563;
    font-weight: 700;
}

.dashboard-frame iframe {
    display: block;
    width: 100%;
    height: 700px;
    border: 0;
}


/* ==========================================================
   TB Guidelines Directory
   ========================================================== */

.guidelines-intro {
    max-width: 900px;
    margin: 0 0 2rem;
    color: var(--ph-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ==========================================================
   Jurisdiction Sections
   ========================================================== */

.guideline-section {
    margin-top: 2.5rem;
}

.guideline-section+.guideline-section {
    padding-top: 2.5rem;
    border-top: 1px solid var(--ph-border);
}

/* ==========================================================
   Section Header
   ========================================================== */

.guideline-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.guideline-section-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 52px;
    width: 52px;
    height: 52px;

    background: linear-gradient(180deg,
            #eef6fc 0%,
            #e5f0f8 100%);

    border: 1px solid #d5e5f1;
    border-radius: 14px;

    color: var(--ph-blue);
    font-size: 1.25rem;
}

.guideline-section-eyebrow {
    display: block;
    margin-bottom: 0.2rem;

    color: var(--ph-blue);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.guideline-section-header h3 {
    margin: 0;
    color: var(--ph-dark-blue);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 800;
    line-height: 1.25;
}

/* ==========================================================
   Card Grid
   ========================================================== */

.guideline-card-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    align-items: start;
}

/* ==========================================================
   Right-Side Stacked Column
   ========================================================== */

.guideline-card-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    min-width: 0;
    width: 100%;

    align-self: start;
}

.guideline-card-column .guideline-card {
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* ==========================================================
   Guideline Card
   ========================================================== */

.guideline-card {
    position: relative;

    min-width: 0;
    height: auto;

    padding: 1.25rem;

    background: #fff;

    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 14px;

    box-shadow: 0 4px 14px rgba(0, 43, 77, 0.05);

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.guideline-card:hover {
    border-top-color: var(--ph-gold);
    box-shadow: 0 10px 24px rgba(0, 43, 77, 0.09);
}

.guideline-card--featured {
    background:
        linear-gradient(180deg,
            rgba(0, 90, 156, 0.025) 0%,
            #fff 120px);
}

/* For sections where a card still needs to span full width */
.guideline-card--wide {
    grid-column: 1 / -1;
}

/* ==========================================================
   Card Header
   ========================================================== */

.guideline-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.guideline-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 46px;
    width: 46px;
    height: 46px;

    background: rgba(0, 90, 156, 0.08);
    border: 1px solid rgba(0, 90, 156, 0.12);
    border-radius: 12px;

    color: var(--ph-blue);
    font-size: 1.15rem;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.guideline-card:hover .guideline-card-icon {
    background: rgba(217, 164, 65, 0.12);
    border-color: rgba(217, 164, 65, 0.35);
    color: #8a641c;
}

.guideline-card-label {
    display: block;
    margin-bottom: 0.2rem;

    color: var(--ph-blue);
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.guideline-card h4 {
    margin: 0;

    color: var(--ph-dark-blue);

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

/* ==========================================================
   Card Description
   ========================================================== */

.guideline-card-description {
    margin: 0 0 1rem;

    color: var(--ph-muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

/* ==========================================================
   Guideline Link List
   ========================================================== */

.guideline-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.guideline-link-list li {
    margin: 0;
    padding: 0;
}

/* Entire row is clickable */
.guideline-link-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    width: 100%;
    min-height: 46px;

    padding: 0.7rem 0.8rem;

    box-sizing: border-box;

    background: #f8fafc;

    border: 1px solid #e4eaf0;
    border-radius: 9px;

    color: var(--ph-dark-blue);
    text-decoration: none;

    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease;
}

.guideline-link-list a:hover,
.guideline-link-list a:focus-visible {
    background: #eef6fc;
    border-color: #b8d3e7;
    color: var(--ph-blue);
    text-decoration: none;
}

.guideline-link-list a:hover {
    transform: translateX(2px);
}

/* ==========================================================
   Link Text
   ========================================================== */

.guideline-link-list a>span {
    flex: 1;
    min-width: 0;

    color: inherit;

    overflow-wrap: break-word;
}

.guideline-link-list small {
    display: block;
    margin-top: 0.15rem;

    color: var(--ph-muted);

    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ==========================================================
   Link Icons
   ========================================================== */

.guideline-link-list a>i {
    flex-shrink: 0;

    color: var(--ph-blue);
    font-size: 0.78rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.guideline-link-list a:hover>i,
.guideline-link-list a:focus-visible>i {
    color: #8a641c;
}

.guideline-link-list a:hover>.fa-chevron-right {
    transform: translateX(2px);
}

/* ==========================================================
   Two-Column Link Layout
   ========================================================== */

.guideline-link-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 1rem;
}

/* ==========================================================
   Keyboard Focus
   ========================================================== */

.guideline-link-list a:focus-visible {
    outline: 3px solid #0056b3;
    outline-offset: 2px;
}

/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {

    .guideline-card-grid {
        grid-template-columns: 1fr;
    }

    .guideline-card-column {
        width: 100%;
        gap: 1.25rem;
    }

    .guideline-card--wide {
        grid-column: auto;
    }

    .guideline-link-columns {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {

    .guideline-section {
        margin-top: 2rem;
    }

    .guideline-section+.guideline-section {
        padding-top: 2rem;
    }

    .guideline-section-header {
        gap: 0.75rem;
    }

    .guideline-section-icon {
        flex: 0 0 44px;

        width: 44px;
        height: 44px;

        border-radius: 11px;

        font-size: 1rem;
    }

    .guideline-section-header h3 {
        font-size: 1.15rem;
    }

    .guideline-card-grid {
        gap: 1rem;
    }

    .guideline-card-column {
        gap: 1rem;
    }

    .guideline-card {
        padding: 1rem;
        border-radius: 12px;
    }

    .guideline-card-header {
        align-items: flex-start;
        gap: 0.7rem;
    }

    .guideline-card-icon {
        flex: 0 0 40px;

        width: 40px;
        height: 40px;

        font-size: 1rem;
    }

    .guideline-card h4 {
        font-size: 0.9rem;
    }

    .guideline-link-list a {
        min-height: 44px;
        padding: 0.65rem 0.7rem;

        font-size: 0.77rem;
    }

    .guideline-link-list small {
        font-size: 0.65rem;
    }
}

/* ==========================================================
   Very Small Screens
   ========================================================== */

@media (max-width: 400px) {

    .guideline-section-eyebrow,
    .guideline-card-label {
        font-size: 0.6rem;
    }

    .guideline-link-list a {
        gap: 0.65rem;
    }
}

/* =========================================================
   TB TOPIC ACCORDION / RESOURCE CARD CONTAINMENT FIX
   ========================================================= */

.tt-accordion-group {
    container-name: tt-accordion;
    container-type: inline-size;
    display: grid;
    gap: 0.9rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.tt-accordion-group,
.tt-accordion-group *,
.tt-accordion-group *::before,
.tt-accordion-group *::after {
    box-sizing: border-box;
}

.tt-accordion-group .tt-topic-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    background: #fff;
    border: 1px solid var(--tt-border, var(--ph-border));
    border-radius: 16px;
    box-shadow: 0 5px 14px rgba(6, 28, 96, 0.07);
    overflow: hidden;
}

.tt-accordion-group .tt-topic-panel>summary {
    position: relative;
    display: grid;
    grid-template-columns: 48px minmax(0, 220px) minmax(0, 1fr) 34px;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 68px;
    padding: 0.85rem 1rem;
    color: var(--ph-text);
    background: linear-gradient(180deg, #fff 0%, #f7faff 100%);
    cursor: pointer;
    list-style: none;
}

.tt-accordion-group .tt-topic-panel>summary::-webkit-details-marker {
    display: none;
}

.tt-accordion-group .tt-topic-panel>summary::marker {
    content: "";
}

.tt-accordion-group .tt-topic-panel>summary:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: -3px;
}

.tt-accordion-group .tt-topic-panel>summary::after {
    content: "";
    position: static;
    display: block;
    grid-column: 4;
    width: 32px;
    height: 32px;
    justify-self: end;
    background-color: #eef4ff;
    background-image: linear-gradient(#003588, #003588), linear-gradient(#003588, #003588);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 2px, 2px 12px;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.tt-accordion-group .tt-topic-panel[open]>summary::after {
    background-image: linear-gradient(#003588, #003588);
    background-size: 12px 2px;
    transform: rotate(180deg);
}

.tt-accordion-group .tt-topic-panel__icon {
    grid-column: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--tt-blue, var(--ph-blue));
    border-radius: 13px;
    font-size: 1.05rem;
    line-height: 1;
}

.tt-accordion-group .tt-topic-panel__title {
    grid-column: 2;
    min-width: 0;
    color: var(--tt-navy, var(--ph-dark-blue));
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.3;
    text-transform: none;
    overflow-wrap: anywhere;
}

.tt-accordion-group .tt-topic-panel__summary {
    grid-column: 3;
    min-width: 0;
    max-width: 100%;
    max-height: none;
    color: var(--tt-muted, var(--ph-muted));
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
    overflow: visible;
    overflow-wrap: anywhere;
    transition: opacity 0.2s ease;
}

.tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__summary {
    max-height: none;
    opacity: 0;
    overflow: visible;
}

.tt-accordion-group .tt-topic-panel__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    max-height: 0;
    padding: 0 1rem;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.35s ease;
}

.tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
    max-height: 4000px;
    padding: 0 1rem 1rem;
    opacity: 1;
}

.tt-accordion-group .tt-topic-panel__body>*,
.tt-accordion-group .tb-clade-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0;
}

.tt-accordion-group .tt-topic-panel__body>* {
    overflow: visible;
}

.tt-accordion-group .tb-clade-grid {
    padding: 0;
}

.tt-accordion-group .resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    align-items: stretch;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
}

.tt-accordion-group .resource-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--ph-border);
    border-top: 4px solid var(--ph-blue);
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 59, 111, 0.06);
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.tt-accordion-group .resource-card:hover {
    border-top-color: var(--ph-gold);
    box-shadow: 0 7px 18px rgba(0, 59, 111, 0.1);
}

.tt-accordion-group .resource-card-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 0.7rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 0.65rem;
}

.tt-accordion-group .resource-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    color: var(--ph-blue);
    background: rgba(0, 90, 156, 0.08);
    border: 1px solid rgba(0, 90, 156, 0.14);
    border-radius: 10px;
}

.tt-accordion-group .resource-icon i {
    color: var(--ph-blue);
    font-size: 1.05rem;
    line-height: 1;
}

.tt-accordion-group .resource-card h3 {
    min-width: 0;
    margin: 0;
    color: var(--ph-dark-blue);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.35;
    text-transform: none;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.tt-accordion-group .resource-description {
    min-width: 0;
    max-width: 100%;
    margin: 0 0 0.65rem;
    color: var(--ph-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.tt-accordion-group .resource-description:last-of-type {
    margin-bottom: 0.85rem;
}

.tt-accordion-group .inline-link {
    white-space: normal;
    overflow-wrap: anywhere;
}

.tt-accordion-group .a-btns {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: auto auto 0;
    padding: 0.55rem 1rem;
    color: #fff;
    background: var(--ph-blue);
    border: 2px solid var(--ph-blue);
    border-radius: 8px;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow: hidden;
    overflow-wrap: anywhere;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tt-accordion-group .a-btns::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: -1;
    width: 0;
    height: auto;
    background: #9a6d17;
    transition: width 0.2s ease;
}

.tt-accordion-group .a-btns:hover,
.tt-accordion-group .a-btns:focus-visible {
    color: #fff;
    border-color: #9a6d17;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.tt-accordion-group .a-btns:hover::before,
.tt-accordion-group .a-btns:focus-visible::before {
    width: 100%;
}

.tt-accordion-group .a-btns:focus-visible {
    outline: 3px solid #005fcc;
    outline-offset: 3px;
}

@container tt-accordion (max-width: 820px) {
    .tt-topic-panel>summary {
        grid-template-columns: 46px minmax(0, 1fr) 32px;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.7rem;
        padding: 0.8rem 0.9rem;
    }

    .tt-topic-panel__icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 46px;
        height: 46px;
    }

    .tt-topic-panel__title {
        grid-column: 2;
        grid-row: 1;
    }

    .tt-topic-panel__summary {
        grid-column: 2;
        grid-row: 2;
        font-size: 0.84rem;
    }

    .tt-topic-panel>summary::after {
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .tt-topic-panel[open] .tt-topic-panel__summary {
        opacity: 1;
    }

    .tt-topic-panel__body,
    .tt-topic-panel[open] .tt-topic-panel__body {
        padding-inline: 0.85rem;
    }

    .tt-topic-panel .resource-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .tt-topic-panel .resource-card {
        padding: 0.9rem;
    }
}

@container tt-accordion (max-width: 520px) {
    .tt-topic-panel>summary {
        grid-template-columns: 42px minmax(0, 1fr) 30px;
        padding: 0.75rem;
    }

    .tt-topic-panel__icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
        font-size: 0.95rem;
    }

    .tt-topic-panel__title {
        font-size: 0.92rem;
    }

    .tt-topic-panel__summary {
        font-size: 0.8rem;
        line-height: 1.35;
    }

    .tt-topic-panel>summary::after {
        width: 30px;
        height: 30px;
    }

    .tt-topic-panel__body,
    .tt-topic-panel[open] .tt-topic-panel__body {
        padding-inline: 0.7rem;
        padding-bottom: 0.75rem;
    }

    .tt-topic-panel .resource-grid {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .tt-topic-panel .resource-card {
        padding: 0.85rem;
    }

    .tt-topic-panel .resource-card-top {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.6rem;
    }

    .tt-topic-panel .resource-icon {
        width: 38px;
        height: 38px;
    }

    .tt-topic-panel .resource-card h3 {
        font-size: 0.86rem;
    }

    .tt-topic-panel .resource-description {
        font-size: 0.8rem;
    }

    .tt-topic-panel .a-btns {
        width: auto;
        max-width: 100%;
        min-height: 44px;
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }
}

@supports not (container-type: inline-size) {
    @media (max-width: 1000px) {
        .tt-accordion-group .tt-topic-panel>summary {
            grid-template-columns: 46px minmax(0, 1fr) 32px;
            grid-template-rows: auto auto;
        }

        .tt-accordion-group .tt-topic-panel__icon {
            grid-column: 1;
            grid-row: 1 / span 2;
        }

        .tt-accordion-group .tt-topic-panel__title {
            grid-column: 2;
            grid-row: 1;
        }

        .tt-accordion-group .tt-topic-panel__summary {
            grid-column: 2;
            grid-row: 2;
        }

        .tt-accordion-group .tt-topic-panel>summary::after {
            grid-column: 3;
            grid-row: 1 / span 2;
        }

        .tt-accordion-group .resource-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 600px) {
        .tt-accordion-group .resource-grid {
            grid-template-columns: 1fr;
        }
    }
}

html[dir="rtl"] .tt-accordion-group .tt-topic-panel>summary,
html[dir="rtl"] .tt-accordion-group .tt-topic-panel__body,
html[dir="rtl"] .tt-accordion-group .resource-card {
    direction: rtl;
}

html[dir="rtl"] .tt-accordion-group .tt-topic-panel__title,
html[dir="rtl"] .tt-accordion-group .tt-topic-panel__summary,
html[dir="rtl"] .tt-accordion-group .resource-card h3,
html[dir="rtl"] .tt-accordion-group .resource-description {
    text-align: right;
}

html[dir="rtl"] .tt-accordion-group .resource-card-top {
    direction: rtl;
}

@media (prefers-reduced-motion: reduce) {

    .tt-accordion-group .tt-topic-panel>summary::after,
    .tt-accordion-group .tt-topic-panel__body,
    .tt-accordion-group .resource-card,
    .tt-accordion-group .a-btns,
    .tt-accordion-group .a-btns::before {
        transition: none;
    }
}

@media (forced-colors: active) {

    .tt-accordion-group .tt-topic-panel,
    .tt-accordion-group .resource-card {
        border-color: CanvasText;
        box-shadow: none;
    }

    .tt-accordion-group .tt-topic-panel__icon,
    .tt-accordion-group .resource-icon {
        color: CanvasText;
        background: Canvas;
        border: 1px solid CanvasText;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        border: 1px solid CanvasText;
        background-color: Canvas;
    }

    .tt-accordion-group .a-btns {
        color: LinkText;
        background: Canvas;
        border-color: LinkText;
    }

    .tt-accordion-group .a-btns::before {
        display: none;
    }

    .tt-accordion-group .a-btns:focus-visible,
    .tt-accordion-group .tt-topic-panel>summary:focus-visible {
        outline-color: Highlight;
    }
}

/* =========================================================
   TB ACCORDION RESPONSIVE VIEWPORT FALLBACKS
   ---------------------------------------------------------
   These rules intentionally come last so they override legacy
   resource-card and accordion rules elsewhere in this file.
   ========================================================= */

/* ---------------------------------------------------------
   800px and below
   --------------------------------------------------------- */

@media (max-width: 800px) {

    .tt-accordion-group,
    .tt-accordion-group .tt-topic-panel,
    .tt-accordion-group .tt-topic-panel__body,
    .tt-accordion-group .tb-clade-grid,
    .tt-accordion-group .resource-grid,
    .tt-accordion-group .resource-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .tt-accordion-group {
        gap: 0.8rem;
    }

    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 46px minmax(0, 1fr) 32px;
        grid-template-rows: auto auto;
        gap: 0.25rem 0.7rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.8rem 0.9rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        grid-column: 1;
        grid-row: 1 / span 2;
        width: 46px;
        height: 46px;
    }

    .tt-accordion-group .tt-topic-panel__title {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        font-size: 0.95rem;
        overflow-wrap: anywhere;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        max-width: 100%;
        font-size: 0.84rem;
        line-height: 1.35;
        opacity: 1;
        overflow-wrap: anywhere;
    }

    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__summary {
        opacity: 1;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        position: static;
        grid-column: 3;
        grid-row: 1 / span 2;
        align-self: center;
        justify-self: end;
        width: 32px;
        height: 32px;
    }

    .tt-accordion-group .tt-topic-panel__body,
    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-inline: 0.85rem;
    }

    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
        padding-bottom: 0.85rem;
    }

    .tt-accordion-group .tb-clade-grid {
        margin: 0;
        padding: 0;
    }

    .tt-accordion-group .resource-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        padding: 0;
    }

    .tt-accordion-group .resource-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 0.9rem;
    }

    .tt-accordion-group .resource-card-top {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        align-items: start;
        gap: 0.65rem;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .tt-accordion-group .resource-icon {
        width: 40px;
        height: 40px;
    }

    .tt-accordion-group .resource-card h3 {
        min-width: 0;
        font-size: 0.88rem;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .tt-accordion-group .resource-description,
    .tt-accordion-group .inline-link {
        min-width: 0;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .tt-accordion-group .a-btns {
        width: auto;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 0.5rem 0.85rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

/* ---------------------------------------------------------
   600px and below
   --------------------------------------------------------- */

@media (max-width: 600px) {
    .tt-accordion-group .resource-grid {
        grid-template-columns: 1fr;
    }

    .tt-accordion-group .tt-topic-panel__body,
    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
        padding-inline: 0.75rem;
    }

    .tt-accordion-group .resource-card {
        padding: 0.85rem;
    }
}

/* ---------------------------------------------------------
   480px and below
   --------------------------------------------------------- */

@media (max-width: 480px) {
    .tt-accordion-group {
        gap: 0.65rem;
    }

    .tt-accordion-group .tt-topic-panel {
        border-radius: 12px;
    }

    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 40px minmax(0, 1fr) 30px;
        grid-template-rows: auto auto;
        gap: 0.2rem 0.6rem;
        min-height: 62px;
        padding: 0.7rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .tt-accordion-group .tt-topic-panel__title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        width: 30px;
        height: 30px;
    }

    .tt-accordion-group .tt-topic-panel__body,
    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
        padding-inline: 0.65rem;
    }

    .tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__body {
        padding-bottom: 0.7rem;
    }

    .tt-accordion-group .resource-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .tt-accordion-group .resource-card {
        min-height: 0;
        padding: 0.75rem;
        border-radius: 10px;
    }

    .tt-accordion-group .resource-card-top {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .tt-accordion-group .resource-icon {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .tt-accordion-group .resource-icon i {
        font-size: 0.95rem;
    }

    .tt-accordion-group .resource-card h3 {
        font-size: 0.84rem;
        line-height: 1.3;
    }

    .tt-accordion-group .resource-description {
        margin-bottom: 0.55rem;
        font-size: 0.78rem;
        line-height: 1.45;
    }

    .tt-accordion-group .resource-description:last-of-type {
        margin-bottom: 0.7rem;
    }

    .tt-accordion-group .a-btns {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
        margin: auto 0 0;
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }
}

/* ---------------------------------------------------------
   360px and below
   --------------------------------------------------------- */

@media (max-width: 360px) {
    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 36px minmax(0, 1fr) 28px;
        gap: 0.2rem 0.5rem;
        padding: 0.65rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        width: 28px;
        height: 28px;
    }

    .tt-accordion-group .tt-topic-panel__title {
        font-size: 0.86rem;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        font-size: 0.75rem;
    }

    .tt-accordion-group .resource-card-top {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .tt-accordion-group .resource-icon {
        width: 34px;
        height: 34px;
    }

    .tt-accordion-group .resource-card h3 {
        font-size: 0.8rem;
    }
}

/* =========================================================
   TB ACCORDION HEADER ALIGNMENT - FINAL OVERRIDE
   ---------------------------------------------------------
   Keeps the icon, title, description, and indicator aligned
   consistently at all widths.
   ========================================================= */

.tt-accordion-group .tt-topic-panel>summary {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 34px;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 0.8rem;
    row-gap: 0.2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.85rem 1rem;
}

.tt-accordion-group .tt-topic-panel__icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: start;
    width: 48px;
    height: 48px;
    margin: 0;
}

.tt-accordion-group .tt-topic-panel__title {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--tt-navy, var(--ph-dark-blue));
    font-size: 1rem;
    font-weight: 850;
    line-height: 1.25;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.tt-accordion-group .tt-topic-panel__summary {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    color: var(--tt-muted, var(--ph-muted));
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
    opacity: 1;
}

.tt-accordion-group .tt-topic-panel>summary::after {
    position: static;
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
    width: 32px;
    height: 32px;
    margin: 0;
}

.tt-accordion-group .tt-topic-panel[open] .tt-topic-panel__summary {
    opacity: 1;
}

/* ---------------------------------------------------------
   800px and below
   --------------------------------------------------------- */

@media (max-width: 800px) {
    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 44px minmax(0, 1fr) 32px;
        column-gap: 0.7rem;
        row-gap: 0.18rem;
        padding: 0.8rem 0.85rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .tt-accordion-group .tt-topic-panel__title {
        font-size: 0.94rem;
        line-height: 1.25;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        font-size: 0.82rem;
        line-height: 1.3;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        width: 30px;
        height: 30px;
    }
}

/* ---------------------------------------------------------
   480px and below
   --------------------------------------------------------- */

@media (max-width: 480px) {
    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 38px minmax(0, 1fr) 28px;
        column-gap: 0.55rem;
        row-gap: 0.15rem;
        min-height: 60px;
        padding: 0.7rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        width: 38px;
        height: 38px;
        border-radius: 9px;
        font-size: 0.9rem;
    }

    .tt-accordion-group .tt-topic-panel__title {
        font-size: 0.88rem;
        line-height: 1.22;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        font-size: 0.76rem;
        line-height: 1.28;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        width: 28px;
        height: 28px;
    }
}

/* ---------------------------------------------------------
   360px and below
   --------------------------------------------------------- */

@media (max-width: 360px) {
    .tt-accordion-group .tt-topic-panel>summary {
        grid-template-columns: 34px minmax(0, 1fr) 26px;
        column-gap: 0.5rem;
        padding: 0.65rem;
    }

    .tt-accordion-group .tt-topic-panel__icon {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .tt-accordion-group .tt-topic-panel__title {
        font-size: 0.84rem;
    }

    .tt-accordion-group .tt-topic-panel__summary {
        font-size: 0.73rem;
    }

    .tt-accordion-group .tt-topic-panel>summary::after {
        width: 26px;
        height: 26px;
    }
}

/* ---------------------------------------------------------
   RTL
   --------------------------------------------------------- */

html[dir="rtl"] .tt-accordion-group .tt-topic-panel__title,
html[dir="rtl"] .tt-accordion-group .tt-topic-panel__summary {
    text-align: right;
}

html[dir="rtl"] .tt-accordion-group .tt-topic-panel__icon {
    justify-self: end;
}

html[dir="rtl"] .tt-accordion-group .tt-topic-panel>summary::after {
    justify-self: start;
}