:root {
    --rose: #a94a4a;
    --rose-soft: #fbf5f5;
}

body {
    line-height: 1.58;
}


p, h1, h2, h3, h4 {
    margin-top: 0;
}


.hero .inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
}

h1 {
    font-size: 65px;
    font-size: clamp(43px, 5.8vw, 69px);
    max-width: 820px;
}

.lead {
    max-width: 790px;
}

.microcopy {
    max-width: 760px;
}


.hero-visual-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 22px;
    transform: translateY(10px);
}


.tissue-visual {
    position: relative;
    border: 1px solid #d5dde5;
    border-radius: 18px;
    overflow: hidden;
    background: #fbf3fb;
    min-height: 330px;
}

.tissue-visual svg {
    display: block;
    width: 100%;
    height: auto;
}


.tissue-visual.real-slide {
    aspect-ratio: 1.22;
    min-height: 0;
    background: #f7edf3;
}

.tissue-visual.real-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(23, 32, 42, 0.08), rgba(23, 32, 42, 0.02) 42%, rgba(23, 32, 42, 0.10));
    z-index: 1;
    pointer-events: none;
}

.tissue-visual.real-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}


@media (max-width: 560px) {


    .tissue-visual {
        min-height: auto;
    }
}


.section-heading {
    max-width: 940px;
}


h4 {
    font-size: 18px;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}


.term-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    height: calc(100% - 3px);
}


.timeline-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 23px 26px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.timeline-step h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.timeline-step p {
    margin: 0;
}


.process-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-top: 30px;
}

.process-card {
    padding: 26px;
}

.process-card h3 {
    margin-bottom: 10px;
}

.steps-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.steps-list li {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
}

.step-num {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.path-note {
    margin-top: 18px;
    background: #f3fbf7;
    border: 1px solid #cbe8d8;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: #315947;
    font-weight: 500;
}

.path-note strong {
    color: var(--accent-dark);
    font-weight: 850;
}

.result-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.result-card.low {
    background: #f3fbf7;
    border-color: #bfe3d0;
}

.result-card.notlow {
    background: var(--rose-soft);
    border-color: #e6c6c6;
}

.result-card .tag {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.result-card.low .tag {
    background: var(--accent);
    color: #fff;
}

.result-card.notlow .tag {
    background: var(--rose);
    color: #fff;
}


.people-row {
    padding: 22px;
}

.people-row h3 {
    margin-bottom: 6px;
}


.dot {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: #dfe5e9;
}

.people-row.low .dot.event {
    background: var(--accent);
}

.people-row.notlow .dot.event {
    background: var(--rose);
}

.report-section .section-heading {
    max-width: var(--max);
}


.question-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.question-list li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    color: var(--ink-2);
    line-height: 1.42;
}

.question-list .question-group {
    background: transparent;
    border: 0;
    padding: 0 2px 2px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: none;
}

.question-list .question-group + li {
    margin-top: -2px;
}

.access-privacy-note {
    margin: 18px 30px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
}

.access-privacy-note strong {
    color: var(--ink-2);
}

.mobile-definition-anchor,
.mobile-definition-panel {
    display: none;
}

.mobile-definition-panel[hidden] {
    display: none !important;
}

@media (max-width: 820px) {
    .guide-grid .term-list {
        display: none;
    }

    .term-link {
        cursor: pointer;
        text-decoration-thickness: 2px;
        text-underline-offset: 0.18em;
        border-radius: 4px;
    }

    .term-link[aria-expanded="true"] {
        color: var(--accent-dark);
        background: rgba(46, 144, 99, 0.08);
    }

    .mobile-definition-panel:not([hidden]) {
        position: relative;
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin: 10px 0 14px;
        padding: 11px 38px 12px 13px;
        border: 1px solid rgba(46, 144, 99, 0.24);
        border-radius: 14px;
        background: #f3fbf7;
        color: var(--ink-2);
        font-size: 15px;
        line-height: 1.45;
        box-shadow: 0 12px 28px rgba(15, 32, 46, 0.08);
    }

    .mobile-definition-body {
        display: block;
    }

    .mobile-definition-close {
        position: absolute;
        top: 8px;
        right: 8px;
        width: 28px;
        height: 28px;
        border: 0;
        border-radius: 999px;
        background: rgba(15, 32, 46, 0.08);
        color: var(--ink-2);
        font: inherit;
        font-size: 15px;
        font-weight: 850;
        line-height: 1;
        cursor: pointer;
    }

    .mobile-definition-close:focus-visible {
        outline: 3px solid rgba(46, 144, 99, 0.28);
        outline-offset: 2px;
    }
}


.footer {
    background: var(--ink);
    color: #fff;
    padding: 42px 0;
    font-size: 13px;
    line-height: 1.45;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.fineprint {
    display: grid;
    gap: 9px;
}


.eligibility-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    gap: 44px;
    align-items: start;
}

.use-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    max-width: 500px;
    justify-self: end;
}

#who .section-heading {
    max-width: none;
}

#who h2 {
    font-size: 45px;
    font-size: clamp(39px, 3.55vw, 47px);
    white-space: nowrap;
}

#who .use-card {
    margin-top: 88px;
}

.eligibility-footnote {
    margin-top: 18px;
    color: #526070;
    font-size: 14px;
    line-height: 1.45;
    max-width: 610px;
}

#who .section-heading p.eligibility-footnote {
    font-size: 14px;
    line-height: 1.45;
    max-width: 610px;
    margin-top: 18px;
    color: #526070;
}

.use-card h3 {
    margin-bottom: 10px;
}

.use-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.use-list li {
    position: relative;
    padding-left: 22px;
    color: var(--muted);
    font-size: 16.5px;
    line-height: 1.45;
}

.use-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

.layer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.layer-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 10px 26px rgba(23, 32, 42, .04);
}

.layer-card.highlight {
    background: #fff;
    border-color: rgba(47, 141, 100, 0.45);
    box-shadow: 0 14px 34px rgba(47, 141, 100, 0.08);
}

.layer-card .mini-label {
    display: inline-flex;
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 12px;
}


.slide-journey-note {
    margin-top: 22px;
    background: var(--warning-soft);
    border: 1px solid #edd9a9;
    border-radius: var(--radius);
    padding: 20px 22px;
}


.inline-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}


#adds .layer-card {
    padding: 22px 26px 20px;
}

#adds .layer-card h3 {
    margin-bottom: 8px;
}

#adds .layer-card p {
    margin-bottom: 0;
}


/* v33: journey section visual refinement */
#journey {
    background: #fff;
}

#journey .care-journey::before {
    display: none;
}

#journey .journey-content {
    text-align: center;
    min-height: 130px;
    padding: 17px 15px 16px;
}

#journey .journey-step h3 {
    text-align: center;
}

#journey .journey-step p {
    text-align: center;
}

#journey .journey-step:not(:last-child)::after {
    content: "→";
    display: block !important;
    position: absolute;
    top: 14px;
    right: -17px;
    color: #9bcbb5;
    font-size: 29px;
    line-height: 1;
    font-weight: 800;
    z-index: 3;
}

#journey .journey-step.highlight .journey-content {
    background: #f4fbf7;
    border-color: #b8e3cc;
}

@media (max-width: 920px) {
    #journey .journey-step:not(:last-child)::after {
        display: none !important;
    }

    #journey .journey-content, #journey .journey-step h3, #journey .journey-step p {
        text-align: left;
    }
}

@media (max-width: 1060px) {

    .decision-map, .layer-grid, .resource-strip {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 920px) {
    #who h2 {
        white-space: normal;
    }

    #who .use-card {
        margin-top: 0;
    }


    .timeline-step {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 620px) {


}

@media (prefers-reduced-motion: reduce) {
    .motion-card, .motion-card:hover, .reveal-on-scroll, .reveal-on-scroll.is-visible {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* Patient page v4 additions */
.info-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-weight: 850;
    margin-right: 8px;
}

.guide-grid {
    display: grid;
    grid-template-columns:0.92fr 1.08fr;
    gap: 28px;
    align-items: start;
}

.definition-card {
    padding: 26px;
}

.definition-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}


.ai-step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: 0 10px 26px rgba(23, 32, 42, .04);
}

.ai-step strong {
    display: block;
    font-size: 19px;
    margin-bottom: 7px;
}


.result-card.notlow {
    background: #fbf7ef;
    border-color: #ead6b8;
}

.result-card.notlow .tag {
    background: #9a6b2f;
    color: #fff;
}

.people-row.notlow .dot.event {
    background: #b9823a;
}

.report-explore-layout {
    grid-template-columns:minmax(520px, .64fr) minmax(320px, .36fr);
}

.pdf-toolbar {
    padding: 13px 16px;
}

.report-callout-list {
    gap: 14px;
    padding-top: 18px;
}

.report-callout-card {
    padding: 14px 16px 14px 46px;
}

.report-callout-card h3 {
    margin-bottom: 4px;
    font-size: 21px;
}

.report-callout-card .num {
    top: 14px;
    width: 24px;
    height: 24px;
}

.next-step-panel {
    display: grid;
    grid-template-columns:0.8fr 1.2fr;
    gap: 24px;
    align-items: start;
}

.next-step-panel > .section-heading {
    margin-top: -28px;
}

@media (max-width: 920px) {
    .next-step-panel > .section-heading {
        margin-top: 0;
    }
}





@media (max-width: 1060px) {
}

@media (max-width: 920px) {
    .guide-grid, .can-cannot, .report-explore-layout, .next-step-panel {
        grid-template-columns:1fr;
    }

    .report-callout-list {
        padding-top: 0;

    }

}

@media (max-width: 620px) {
}


/* Eligibility section fine-tuning v16 */
#who .use-card {
    transform: translateY(12px);
    padding-bottom: 22px;
}


#who .use-card p:last-child {
    margin-bottom: 0;
}


/* Recurrence consultation section v17 */
#recurrence .guide-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    align-items: start;
}

.consultation-card {
    color: var(--ink);
    padding: 30px 32px 28px;
}

.consultation-card h3 {
    font-size: 31px;
    line-height: 1.13;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

.consultation-card p {
    color: var(--ink-2);
    margin-bottom: 15px;
}

.consultation-card p:last-child {
    margin-bottom: 0;
}

.term-link {
    font-weight: 800;
    color: var(--ink);
    border-bottom: 1.5px dashed var(--accent-dark);
    text-decoration: none;
    cursor: help;
}

.term-link:focus {
    outline: 3px solid rgba(47, 141, 100, .16);
    outline-offset: 2px;
    border-radius: 3px;
}

#recurrence .definition-card {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
    padding: 16px 22px 17px;
}

#recurrence .definition-card.is-highlighted {
    background: #f3fbf7;
    border-color: #8dcfac;
    box-shadow: 0 18px 38px rgba(47, 141, 100, .12);
    transform: none;
}

#recurrence .definition-card h3 {
    font-size: 21px;
    margin-bottom: 0;
}

#recurrence .definition-card p {
    font-size: 16.5px;
    line-height: 1.38;
    margin: 10px 0 0;
}

@media (max-width: 920px) {
    #recurrence .guide-grid {
        grid-template-columns: 1fr;
    }
}


/* Slide biology explainer: merged test-uses + how-it-works section */
#slide-biology .guide-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, 0.97fr);
    align-items: start;
}

#slide-biology .consultation-card {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 32px 28px;
    box-shadow: 0 16px 38px rgba(23, 32, 42, .06);
}

#slide-biology .consultation-card h3 {
    font-size: 31px;
    line-height: 1.13;
    letter-spacing: -0.035em;
    margin-bottom: 18px;
}

#slide-biology .consultation-card p {
    color: var(--ink-2);
    margin-bottom: 15px;
}

#slide-biology .consultation-card p:last-child {
    margin-bottom: 0;
}

#slide-biology .definition-card {
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
    padding: 16px 22px 17px;
}

#slide-biology .definition-card.is-highlighted {
    background: #f3fbf7;
    border-color: #8dcfac;
    box-shadow: 0 18px 38px rgba(47, 141, 100, .12);
    transform: none;
}

#slide-biology .definition-card h3 {
    font-size: 21px;
    margin-bottom: 0;
}

#slide-biology .definition-card p {
    font-size: 16.5px;
    line-height: 1.38;
    margin: 10px 0 0;
}

@media (max-width: 920px) {
    #slide-biology .guide-grid {
        grid-template-columns: 1fr;
    }
}

/* Horizontal patient care journey: compact rail + milestone cards */
.care-journey {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
    margin-top: 34px;
    position: relative;
}

.care-journey::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 25px;
    height: 2px;
    background: #b8d8c8;
    z-index: 0;
}

.journey-step {
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-height: auto;
    text-align: center;
    z-index: 1;
}

.journey-step::before,
.journey-step::after {
    display: none !important;
}

.journey-icon {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--accent-dark);
    border: 7px solid var(--accent-soft);
    margin: 0 auto 14px;
    box-shadow: 0 8px 18px rgba(23, 32, 42, 0.06);
}

.journey-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

.journey-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px 17px 17px;
    box-shadow: 0 10px 26px rgba(23, 32, 42, 0.04);
    min-height: 138px;
    text-align: left;
}

.journey-step.highlight .journey-icon {
    background: var(--accent);
    color: #fff;
    border-color: #cbe8d8;
}

.journey-step.highlight .journey-content {
    background: #f3fbf7;
    border-color: #a9ddc0;
    box-shadow: 0 14px 34px rgba(47, 141, 100, 0.11);
}

.journey-step h3 {
    font-size: 19px;
    line-height: 1.14;
    margin: 0 0 8px;
    letter-spacing: -0.025em;
}

.journey-step p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.42;
}

@media (max-width: 1060px) {
    .care-journey {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .care-journey::before {
        display: none;
    }

    .journey-step {
        text-align: left;
        display: grid;
        grid-template-columns: 58px 1fr;
        gap: 14px;
        align-items: start;
    }

    .journey-icon {
        margin: 0;
    }

    .journey-content {
        min-height: auto;
    }
}

@media (max-width: 620px) {
    .care-journey {
        grid-template-columns: 1fr;
    }
}


/* v34: lighter journey layout; only myStage Dx remains boxed/highlighted */
#journey .care-journey {
    gap: 18px;
    align-items: start;
    margin-top: 34px;
}

#journey .journey-step:not(.highlight) .journey-content {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 8px 0;
    min-height: 0;
}

#journey .journey-step.highlight .journey-content {
    background: #fff;
    border: 1px solid rgba(47, 141, 100, 0.45);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(47, 141, 100, 0.08);
    padding: 17px 15px 16px;
    min-height: 172px;
}

#journey .journey-step h3 {
    text-align: center;
    margin-bottom: 8px;
}

#journey .journey-step p {
    text-align: center;
    font-size: 15px;
    line-height: 1.42;
}

#journey .journey-step:not(.highlight) p {
    max-width: 170px;
    margin-left: auto;
    margin-right: auto;
}

#journey .journey-step:not(.highlight) .journey-icon {
    box-shadow: 0 6px 16px rgba(23, 32, 42, 0.045);
}

@media (max-width: 920px) {
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        background: #fff;
        border: 1px solid var(--line);
        box-shadow: 0 10px 26px rgba(23, 32, 42, 0.04);
        padding: 18px 17px 17px;
        min-height: auto;
    }

    #journey .journey-step.highlight .journey-content {
        background: #fff;
        border-color: rgba(47, 141, 100, 0.45);
    }

    #journey .journey-step:not(.highlight) p {
        max-width: none;
    }
}


/* v36: long clean connectors with small solid arrowheads */
#journey .care-journey {
    overflow: visible;
}

#journey .care-journey::before {
    display: none !important;
}

#journey .journey-step:not(:last-child)::after {
    content: "";
    display: block !important;
    position: absolute;
    top: 25px;
    left: calc(50% + 31px);
    width: calc(100% + 18px - 67px);
    height: 2px;
    border-radius: 999px;
    background: #a9d6c2;
    z-index: 0;
}

#journey .journey-step:not(:last-child)::before {
    content: "";
    display: block !important;
    position: absolute;
    top: 21px;
    left: calc(150% - 25px);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid #a9d6c2;
    background: transparent;
    z-index: 1;
}

#journey .journey-icon {
    position: relative;
    z-index: 2;
}

@media (max-width: 1060px) {
    #journey .journey-step:not(:last-child)::before,
    #journey .journey-step:not(:last-child)::after {
        display: none !important;
    }
}


/* v37: prevent hover/reveal cards from distorting the journey rail */
#journey .journey-step.motion-card,
#journey .journey-step.motion-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

#journey .journey-step.reveal-on-scroll,
#journey .journey-step.reveal-on-scroll.is-visible {
    transform: none !important;
}


/* Result section v46: clearer patient interpretation, less defensive framing. */
#results .section-heading {
    max-width: 980px;
}


@media (max-width: 920px) {
}


/* Result section v48: patient-friendly result interpretation + study context */
.result-merged-intro {
    max-width: 980px;
}

.result-merged-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    align-items: stretch;
    margin-top: 28px;
}

.result-card.v47 {
    padding: 30px;
}

.result-card.v47 h3 {
    margin-bottom: 10px;
}

.result-card.v47 .plain-meaning {
    color: var(--ink-2);
    font-size: 17.5px;
    line-height: 1.48;
    margin-bottom: 16px;
}

.result-outof100 {
    display: block;
    margin: 16px 0 16px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}

.result-card.low .result-outof100 {
    background: #fff;
    border-color: #cfe9dc;
}

.result-card.notlow .result-outof100 {
    background: #fff;
    border-color: #ead6b8;
}

.result-outof100 strong {
    display: block;
    font-size: 44px;
    line-height: 1.0;
    letter-spacing: -0.055em;
    margin-bottom: 8px;
}

.result-card.low .result-outof100 strong {
    color: var(--accent-dark);
}

.result-card.notlow .result-outof100 strong {
    color: #8b642d;
}

.result-outof100 span {
    display: block;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.35;
    max-width: 420px;
}

.result-dot-grid {
    display: grid;
    grid-template-columns: repeat(25, 1fr);
    gap: 3px;
    margin-top: 12px;
}

.result-dot-grid .dot {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 999px;
    background: #dfe5e9;
}

.result-card.low .result-dot-grid .dot.event {
    background: var(--accent);
}

.result-card.notlow .result-dot-grid .dot.event {
    background: #b9823a;
}

.result-study-context {
    margin-top: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: 0 8px 20px rgba(23, 32, 42, 0.035);
}

.result-study-context h3 {
    margin-bottom: 8px;
}

.result-study-context p {
    margin-bottom: 0;
}

.result-study-context .small {
    margin-top: 10px;
    font-size: 13.5px;
    color: var(--muted);
}

.result-section-disclaimer {
    max-width: calc(100% - 60px);
    margin: 14px 30px 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.45;
}

@media (max-width: 920px) {
    .result-merged-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .result-dot-grid {
        grid-template-columns: repeat(10, 1fr);
    }

    .result-outof100 strong {
        font-size: 39px;
    }
}

@media (max-width: 720px) {
    .access-privacy-note {
        margin-left: 0;
        margin-right: 0;
    }
}


/* Hero v66: use the real H&E crop as a clean image-only visual. */
.hero-visual-card.hero-slide-only {
    padding: 0;
    overflow: hidden;
    background: #fff;
}

.hero-visual-card.hero-slide-only .tissue-visual.real-slide {
    border: 0;
    border-radius: 0;
    aspect-ratio: 1.08 / 1;
    background: #fff;
}

.hero-visual-card.hero-slide-only .tissue-visual.real-slide::after {
    display: none;
}

.hero-visual-card.hero-slide-only .tissue-visual.real-slide img {
    object-position: center center;
    filter: brightness(1.08) contrast(0.98) saturate(0.98);
}

/* Mobile readability fixes: stack desktop grids that otherwise squeeze copy. */
@media (max-width: 820px) {
  .eligibility-grid,
  .layer-grid,
  .process-box {
    grid-template-columns: 1fr !important;
  }

  .layer-card,
  .process-card {
    min-width: 0;
  }
}

/* Mobile care-journey connector: keep the desktop flow visible when stacked. */
@media (max-width: 820px) {
  .care-journey {
    position: relative;
  }

  .care-journey::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 42px;
    bottom: 42px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, #b8d8c8 8%, #b8d8c8 92%, transparent);
    z-index: 0;
  }

  .journey-step {
    position: relative;
    z-index: 1;
    gap: 14px;
  }

  .journey-icon {
    position: relative;
    z-index: 2;
    background: #fff;
  }

  .journey-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 18px;
    bottom: -27px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 850;
    line-height: 1;
    z-index: 3;
  }
}

/* Mobile care-journey connector refinement: explicit arrows between stacked steps. */
@media (max-width: 820px) {
  .care-journey::before {
    display: none;
  }

  .journey-step:not(:last-child) {
    margin-bottom: 32px;
  }

  .journey-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 26px;
    top: calc(100% - 2px);
    width: 2px;
    height: 34px;
    border-radius: 999px;
    background: #b8d8c8;
    z-index: 2;
  }

  .journey-step:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 14px;
    top: calc(100% + 10px);
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 0 0 6px #fff;
    z-index: 3;
  }
}

@media (max-width: 820px) {
  .journey-step:not(:last-child)::before {
    content: "" !important;
    display: block !important;
    position: absolute;
    left: 26px;
    top: calc(100% - 2px);
    width: 2px;
    height: 34px;
    border-width: 0 !important;
    border-radius: 999px;
    background: #b8d8c8;
    z-index: 2;
  }

  .journey-step:not(:last-child)::after {
    content: "↓" !important;
    display: inline-flex !important;
    position: absolute;
    left: 14px;
    top: calc(100% + 10px);
    width: 26px;
    height: 26px;
    border-width: 0 !important;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 15px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 0 0 6px #fff;
    z-index: 3;
  }
}

/* Mobile care-journey connectors: real elements avoid pseudo-element conflicts from desktop flow rules. */
.journey-mobile-connector {
  display: none;
}

@media (max-width: 820px) {
  .journey-mobile-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -10px 0 -10px 21px;
    border: 1px solid rgba(38, 122, 88, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 244, 237, 0.98));
    box-shadow: 0 10px 20px rgba(24, 49, 39, 0.09);
    color: var(--green);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    z-index: 2;
  }
}

/* Phone density polish: keep patient cards readable without squeezing text into narrow columns. */
@media (max-width: 520px) {
  .definition-card,
  .layer-card,
  .consultation-card,
  #slide-biology .consultation-card,
  .result-card,
  .result-card.v47,
  .result-study-context {
    padding-left: 20px;
    padding-right: 20px;
  }

  #recurrence .definition-card,
  #slide-biology .definition-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .definition-card p,
  .layer-card p,
  #recurrence .definition-card p,
  #slide-biology .definition-card p {
    font-size: 16px;
    line-height: 1.4;
  }

  .report-callout-card {
    padding-left: 42px;
    padding-right: 14px;
  }
}

/* Older Safari/Chromium fallback for slide visuals if aspect-ratio is unsupported. */
@supports not (aspect-ratio: 1 / 1) {
  .tissue-visual.real-slide,
  .hero-visual-card.hero-slide-only .tissue-visual.real-slide {
    min-height: 320px;
  }

  .tissue-visual.real-slide img,
  .hero-visual-card.hero-slide-only .tissue-visual.real-slide img {
    height: auto;
  }
}

/* Older browser fallback for dot grids if aspect-ratio is unsupported. */
@supports not (aspect-ratio: 1 / 1) {
  .dot,
  .result-dot-grid .dot {
    min-height: 10px;
  }
}


/* Patient hero without CTA/microcopy: keep the text and visual vertically balanced. */
@media (min-width: 921px) {
    .hero .inner {
        align-items: center;
    }
}

.hero h1 + .lead {
    margin-top: 24px;
}

.report-education-note {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Compact production footer. */
.footer {
    padding: 28px 0;
    font-size: 13px;
    line-height: 1.38;
}

.footer-grid {
    grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
    gap: 32px;
    align-items: start;
}

.footer h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.footer .fineprint {
    display: grid;
    gap: 6px;
}

.footer p {
    margin: 0;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0 8px;
    color: rgba(255, 255, 255, 0.78);
}

.footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 820px) {
    .footer {
        padding: 26px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* Resumed responsive QA: patient mobile/tablet journey, report, and result density. */
@media (max-width: 920px) {
    #who .use-card {
        justify-self: center;
        width: min(100%, 560px);
        margin-top: 18px;
    }
}

@media (max-width: 1060px) {
    #journey .care-journey {
        grid-template-columns: minmax(0, 720px) !important;
        justify-content: center;
        gap: 0;
        margin-top: 30px;
    }

    #journey .journey-step {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 15px;
        align-items: start;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 12px 28px rgba(23, 32, 42, 0.055);
        text-align: left;
    }

    #journey .journey-step.highlight {
        background: #f4fbf7;
        border-color: #b8e3cc;
        box-shadow: 0 14px 32px rgba(47, 141, 100, 0.10);
    }

    #journey .journey-step::before,
    #journey .journey-step::after {
        display: none !important;
    }

    #journey .journey-icon {
        width: 44px;
        height: 44px;
        margin: 0;
        border-width: 6px;
    }

    #journey .journey-content,
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
    }

    #journey .journey-step h3,
    #journey .journey-step p {
        text-align: left;
    }

    #journey .journey-step:not(.highlight) p {
        max-width: none;
    }

    #journey .journey-mobile-connector {
        display: block;
        width: 34px;
        height: 38px;
        margin: 6px auto;
        border: 0;
        background: none;
        box-shadow: none;
        color: transparent;
        overflow: hidden;
        position: relative;
    }

    #journey .journey-mobile-connector::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 2px;
        width: 2px;
        height: 26px;
        transform: translateX(-50%);
        border-radius: 999px;
        background: #74b99a;
    }

    #journey .journey-mobile-connector::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 26px;
        width: 0;
        height: 0;
        transform: translateX(-50%);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 8px solid #74b99a;
    }
}

@media (max-width: 820px) {
    .result-dot-grid {
        grid-template-columns: repeat(20, minmax(0, 1fr));
        gap: 4px;
    }

    .result-card.v47 {
        padding: 26px 24px;
    }
}

@media (max-width: 520px) {
    #journey .journey-step {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 16px;
    }

    #journey .journey-icon {
        width: 40px;
        height: 40px;
        border-width: 5px;
    }

    .result-dot-grid {
        gap: 3px;
    }
}


/* Resumed responsive QA: constrain result-dot grids on tablet so 100-dot visuals stay legible. */
@media (max-width: 820px) {
    .result-dot-grid {
        max-width: 285px;
    }
}


/* Cross-browser wrap/symmetry QA: keep patient desktop rails and tablet-landscape headings balanced. */
@media (min-width: 1061px) {
    #journey .journey-content,
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        min-height: 128px;
    }
}

@media (min-width: 921px) and (max-width: 1060px) {
    .eligibility-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
        gap: 28px;
    }

    .use-card {
        max-width: none;
    }

    .use-card h3 {
        font-size: 22px;
        letter-spacing: -0.03em;
    }

    #slide-biology .guide-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    #slide-biology .term-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1061px) {
    #journey .journey-step {
        min-height: 237px;
    }

    #journey .journey-content,
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        min-height: 172px;
    }
}

/* Final mobile visual polish: tighter cards, direct connectors, centered dot visuals. */
@media (max-width: 640px) {
    #who .eligibility-grid {
        gap: 18px;
    }

    #who .use-card {
        margin-top: 0;
    }

    #journey .care-journey {
        gap: 0;
    }

    #journey .journey-mobile-connector {
        width: 28px;
        height: 30px;
        margin: 0 auto;
    }

    #journey .journey-mobile-connector::before {
        top: 0;
        height: 21px;
    }

    #journey .journey-mobile-connector::after {
        top: 21px;
        border-left-width: 5px;
        border-right-width: 5px;
        border-top-width: 7px;
    }

    .result-card.v47 .result-dot-grid {
        width: min(100%, 246px);
        grid-template-columns: repeat(20, 9px);
        justify-content: center;
        gap: 3px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    #who .section-heading {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    #journey .journey-step:not(:last-child) {
        margin-bottom: 0;
    }
}

@media (max-width: 640px) {
    #who .eligibility-grid {
        gap: 12px;
    }

    #who .eligibility-footnote {
        margin-bottom: 0;
    }
}

/* Final responsive QA: patient page spacing, journey arrows, and result-dot alignment. */
@media (max-width: 920px) {
    #who .eligibility-grid {
        gap: 24px;
    }

    }

@media (min-width: 821px) and (max-width: 1100px) {
    #recurrence .guide-grid,
    #slide-biology .guide-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
        gap: 24px;
        align-items: start;
    }

    #recurrence .term-list,
    #slide-biology .term-list {
        align-self: start;
    }
}

@media (max-width: 820px) {
    #journey .care-journey {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }

    #journey .journey-step,
    #journey .journey-step.highlight {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
        align-items: center;
        margin: 0;
        padding: 18px 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: #fff;
        box-shadow: 0 10px 26px rgba(23, 32, 42, 0.04);
    }

    #journey .journey-step.highlight {
        border-color: #b7decf;
        background: #f2fbf7;
    }

    #journey .journey-icon {
        position: static;
        grid-column: 1;
        grid-row: 1;
        width: 42px;
        height: 42px;
        transform: none;
    }

    #journey .journey-content,
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        grid-column: 2;
        grid-row: 1;
        width: 100%;
        max-width: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        text-align: left;
    }

    #journey .journey-mobile-connector {
        display: block;
        width: 30px;
        height: 38px;
        margin: 0 auto;
        font-size: 0;
        line-height: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='38' viewBox='0 0 30 38'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V31' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") center / 30px 38px no-repeat;
    }

    #journey .journey-mobile-connector::before,
    #journey .journey-mobile-connector::after {
        content: none !important;
    }
}

@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
        gap: 0;
        max-width: 900px;
        align-items: stretch;
    }

    #journey .care-journey > .journey-step {
        width: 100%;
        max-width: none;
        min-height: 190px;
    }

    #journey .care-journey > .journey-step:nth-of-type(1) {
        grid-column: 1;
        grid-row: 1;
    }

    #journey .care-journey > .journey-step:nth-of-type(2) {
        grid-column: 3;
        grid-row: 1;
    }

    #journey .care-journey > .journey-step:nth-of-type(3) {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        width: min(430px, 54%);
    }

    #journey .care-journey > .journey-step:nth-of-type(4) {
        grid-column: 1;
        grid-row: 5;
    }

    #journey .care-journey > .journey-step:nth-of-type(5) {
        grid-column: 3;
        grid-row: 5;
    }

    #journey .journey-mobile-connector {
        display: block;
        margin: 0;
        font-size: 0;
        line-height: 0;
        align-self: center;
        justify-self: stretch;
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 34px;
    }

    #journey .journey-mobile-connector:nth-of-type(1),
    #journey .journey-mobile-connector:nth-of-type(4) {
        width: 64px;
        height: 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34' viewBox='0 0 64 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M0 17 H56' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E");
    }

    #journey .journey-mobile-connector:nth-of-type(1) {
        grid-column: 2;
        grid-row: 1;
    }

    #journey .journey-mobile-connector:nth-of-type(2) {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: 30px;
        height: 44px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='44' viewBox='0 0 30 44'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V37' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E");
    }

    #journey .journey-mobile-connector:nth-of-type(3) {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: center;
        width: 30px;
        height: 44px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='44' viewBox='0 0 30 44'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V37' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E");
    }

    #journey .journey-mobile-connector:nth-of-type(4) {
        grid-column: 2;
        grid-row: 5;
    }

    #journey .journey-mobile-connector::before,
    #journey .journey-mobile-connector::after {
        content: none !important;
    }
}

@media (max-width: 820px) {
    .result-card.v47 .result-dot-grid,
    .result-dot-grid {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        gap: 5px;
        align-self: stretch;
    }

    .result-dot-grid .dot {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }
}

/* Final tablet QA: reduce excess vertical gap before the eligibility card. */
@media (min-width: 641px) and (max-width: 920px) {
    #who .eligibility-grid {
        gap: 10px;
    }

    #who .use-card {
        margin-top: -38px !important;
    }
}

/* Final tablet-landscape QA: keep the centered myStage Dx care-journey card readable. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey > .journey-step.highlight:nth-of-type(3) {
        width: min(540px, 68%) !important;
    }

    #journey .care-journey > .journey-step.highlight:nth-of-type(3) .journey-content {
        width: 100% !important;
        max-width: none !important;
    }
}

/* Final tablet-landscape QA: explicit child placement for journey cards interleaved with connector spans. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey > .journey-step:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #journey .care-journey > .journey-mobile-connector:nth-child(2) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #journey .care-journey > .journey-step:nth-child(3) {
        grid-column: 3 !important;
        grid-row: 1 !important;
    }

    #journey .care-journey > .journey-mobile-connector:nth-child(4) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
        width: 30px !important;
        height: 44px !important;
    }

    #journey .care-journey > .journey-step.highlight:nth-child(5) {
        grid-column: 1 / -1 !important;
        grid-row: 3 !important;
        justify-self: center !important;
        width: min(540px, 68%) !important;
    }

    #journey .care-journey > .journey-mobile-connector:nth-child(6) {
        grid-column: 1 / -1 !important;
        grid-row: 4 !important;
        justify-self: center !important;
        width: 30px !important;
        height: 44px !important;
    }

    #journey .care-journey > .journey-step:nth-child(7) {
        grid-column: 1 !important;
        grid-row: 5 !important;
    }

    #journey .care-journey > .journey-mobile-connector:nth-child(8) {
        grid-column: 2 !important;
        grid-row: 5 !important;
    }

    #journey .care-journey > .journey-step:nth-child(9) {
        grid-column: 3 !important;
        grid-row: 5 !important;
    }
}

/* Final tablet-landscape QA: avoid percentage-width resolution against a single grid track. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey > .journey-step.highlight:nth-child(5) {
        width: 540px !important;
        max-width: calc(100vw - 80px) !important;
    }
}

/* Final tablet-landscape QA: center the middle journey card by spanning explicit columns. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) !important;
    }

    #journey .care-journey > .journey-step.highlight:nth-child(5) {
        grid-column: 1 / 4 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-self: center !important;
        width: 540px !important;
        max-width: calc(100% - 48px) !important;
    }
}

/* User review QA: tighter patient result-dot density and cleaner tablet-landscape layouts. */
@media (max-width: 640px) {
    .result-card.v47 .result-dot-grid,
    .result-dot-grid {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(20, minmax(0, 1fr)) !important;
        gap: 4px !important;
    }
}

@media (min-width: 641px) and (max-width: 820px) {
    .result-card.v47 .result-dot-grid,
    .result-dot-grid {
        width: 100% !important;
        max-width: none !important;
        grid-template-columns: repeat(25, minmax(0, 1fr)) !important;
        gap: 5px !important;
    }
}

@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        display: grid !important;
        grid-template-columns: minmax(0, 780px) !important;
        justify-content: center !important;
        max-width: 780px !important;
        gap: 0 !important;
    }

    #journey .care-journey > .journey-step,
    #journey .care-journey > .journey-step.highlight {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 22px 26px !important;
    }

    #journey .care-journey > .journey-mobile-connector {
        grid-column: 1 !important;
        grid-row: auto !important;
        justify-self: center !important;
        width: 30px !important;
        height: 34px !important;
        margin: -1px auto !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V29' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") center / 30px 34px no-repeat !important;
    }

    #adds .layer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch !important;
    }

    #adds .layer-card:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    #adds .layer-card:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    #adds .layer-card.highlight {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        justify-self: center !important;
        width: min(560px, 72%) !important;
    }

    #slide-biology .term-list {
        grid-template-columns: 1fr !important;
    }
}

/* Final connector unification: marker-style arrows touch adjacent journey cards. */
@media (max-width: 820px) {
    #journey .journey-mobile-connector {
        width: 30px !important;
        height: 34px !important;
        margin: -1px auto !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V29' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") center / 30px 34px no-repeat !important;
    }
}

@media (min-width: 821px) and (max-width: 1060px) {
    #journey .journey-mobile-connector:nth-of-type(1),
    #journey .journey-mobile-connector:nth-of-type(4) {
        width: 64px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='34' viewBox='0 0 64 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M0 17 H60' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") !important;
    }

    #journey .journey-mobile-connector:nth-of-type(2),
    #journey .journey-mobile-connector:nth-of-type(3),
    #journey .care-journey > .journey-mobile-connector:nth-child(4),
    #journey .care-journey > .journey-mobile-connector:nth-child(6) {
        width: 30px !important;
        height: 34px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V29' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") !important;
    }
}

/* User review QA final: tablet-landscape patient journey must be a clean vertical stack. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: min(100%, 780px) !important;
        max-width: 780px !important;
        margin: 34px auto 0 !important;
        gap: 0 !important;
    }

    #journey .care-journey > .journey-step,
    #journey .care-journey > .journey-step.highlight {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: 52px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 18px !important;
        padding: 24px 28px !important;
    }

    #journey .journey-icon {
        grid-column: 1 !important;
        width: 44px !important;
        height: 44px !important;
        margin: 0 !important;
        position: static !important;
        transform: none !important;
    }

    #journey .journey-content,
    #journey .journey-step:not(.highlight) .journey-content,
    #journey .journey-step.highlight .journey-content {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        text-align: left !important;
    }

    #journey .journey-step h3,
    #journey .journey-step p {
        text-align: left !important;
    }

    #journey .care-journey > .journey-mobile-connector {
        flex: 0 0 34px !important;
        display: block !important;
        width: 30px !important;
        height: 34px !important;
        margin: -1px auto !important;
        align-self: center !important;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='34' viewBox='0 0 30 34'%3E%3Cdefs%3E%3Cmarker id='a' markerWidth='4.8' markerHeight='4.8' orient='auto' refX='7' refY='4' viewBox='0 0 8 8'%3E%3Cpath fill='%2374b99a' d='M0 0 L8 4 L0 8 z'/%3E%3C/marker%3E%3C/defs%3E%3Cpath d='M15 0 V29' fill='none' stroke='%2374b99a' stroke-width='2.8' stroke-linecap='round' marker-end='url(%23a)'/%3E%3C/svg%3E") center / 30px 34px no-repeat !important;
    }
}

/* User review QA final: tablet-landscape journey cards use one consistent readable width. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        width: min(100%, 620px) !important;
        max-width: 620px !important;
    }

    #journey .care-journey > .journey-step,
    #journey .care-journey > .journey-step.highlight {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* User review QA final correction: every tablet-landscape journey card has the same width. */
@media (min-width: 821px) and (max-width: 1060px) {
    #journey .care-journey {
        width: min(100%, 560px) !important;
        max-width: 560px !important;
        align-items: center !important;
    }

    #journey .care-journey > .journey-step:nth-child(1),
    #journey .care-journey > .journey-step:nth-child(3),
    #journey .care-journey > .journey-step.highlight:nth-child(5),
    #journey .care-journey > .journey-step:nth-child(7),
    #journey .care-journey > .journey-step:nth-child(9) {
        width: 560px !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* After removing one recurrence definition card, keep this specific glossary compact instead of height-distributed. */
#recurrence .term-list {
    align-self: start !important;
    align-content: start !important;
    justify-content: start !important;
    height: auto !important;
    grid-auto-rows: auto !important;
    grid-template-rows: none !important;
    gap: 24px !important;
}

#recurrence .definition-card {
    min-height: 0 !important;
}

#slide-biology .eyebrow {
    padding-top: 6px;
    padding-bottom: 6px;
}

#slide-biology .eyebrow {
    margin-bottom: 8px !important;
}

#slide-biology .eyebrow + h3 {
    margin-top: 8px !important;
}

/* Final report-callout active state: make marker-linked cards visibly selected. */
#report .report-callout-card.report-sample-callout.is-highlighted {
    background: #f3fbf7 !important;
    border-color: #8dcfac !important;
    box-shadow: 0 18px 38px rgba(47, 141, 100, .12) !important;
    transform: none !important;
    transition-property: background-color, border-color, box-shadow !important;
    transition-duration: 120ms !important;
    transition-timing-function: ease !important;
}

/* Real report marker hover uses is-linked on callout cards. Match definition-card active colors. */
#report .report-callout-card.report-sample-callout.is-linked,
#report .report-callout-card.report-sample-callout.is-highlighted {
    background: #f3fbf7 !important;
    border-color: #8dcfac !important;
    box-shadow: 0 18px 38px rgba(47, 141, 100, .12) !important;
    transform: none !important;
    transition-property: background-color, border-color, box-shadow !important;
    transition-duration: 120ms !important;
    transition-timing-function: ease !important;
}


/* Definition cards are linked explanations; keep highlighted cards visually stable. */
#recurrence .definition-card:hover,
#recurrence .definition-card.is-highlighted,
#slide-biology .definition-card:hover,
#slide-biology .definition-card.is-highlighted {
    transform: none !important;
}

/* Eligibility checklist card is informational; do not move it on hover. */
#who .use-card.motion-card,
#who .use-card.motion-card:hover {
    transform: none !important;
}


/* Static myStage Dx emphasis: white cards with consistent stronger green border. */
.layer-card.highlight,
#journey .journey-step.highlight .journey-content {
    background: #fff !important;
    border: 2px solid rgba(47, 141, 100, 0.55) !important;
    box-shadow: 0 16px 34px rgba(47, 141, 100, 0.10) !important;
}
