:root {
    --guide-navy: #123f66;
    --guide-teal: #168c9c;
    --guide-ink: #17364b;
    --guide-muted: #5b707e;
    --guide-line: #d8e3e8;
    --guide-soft: #f1f7f8;
}

.process-detail-hero {
    padding: 34px 0 54px;
    background: #eef5f7;
}

.process-detail-hero .wrap {
    max-width: 1040px;
}

.process-detail-hero > .wrap > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--guide-teal);
    font-size: .84rem;
    font-weight: 600;
}

.process-detail-grid {
    display: block;
    margin-top: 34px;
}

.process-detail-grid > div {
    max-width: 830px;
}

.process-detail-hero .process-detail-grid p {
    display: inline-block;
    margin-bottom: 14px;
    padding: 5px 10px;
    background: #dcecee;
    color: #176c79;
    font-size: .76rem;
    font-weight: 700;
}

.process-detail-hero .process-detail-grid h1 {
    max-width: 18ch;
    color: var(--guide-ink);
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: clamp(2.45rem, 5vw, 4.6rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.process-detail-hero .process-detail-grid > div > span {
    max-width: 64ch;
    margin-top: 18px;
    color: var(--guide-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.patient-jump {
    position: sticky;
    z-index: 7;
    top: 78px;
    border-bottom: 1px solid var(--guide-line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px);
}

.patient-jump .wrap {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 1040px;
    min-height: 58px;
    overflow-x: auto;
}

.patient-jump span {
    margin-right: 8px;
    color: var(--guide-muted);
    font-size: .72rem;
    white-space: nowrap;
}

.patient-jump a {
    padding: 7px 11px;
    border: 1px solid var(--guide-line);
    color: var(--guide-ink);
    font-size: .76rem;
    font-weight: 600;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease;
}

.patient-jump a:hover,
.patient-jump a:focus-visible {
    border-color: var(--guide-teal);
    background: var(--guide-soft);
}

.process-content {
    padding: clamp(42px, 7vw, 88px) 0 100px;
    background: #fff;
}

.process-content .wrap {
    max-width: 920px;
}

.process-content .prose {
    color: var(--guide-ink);
    font-size: 1rem;
    line-height: 1.8;
}

.patient-guide-intro {
    max-width: 720px;
    margin: 0 0 52px;
    padding: 0 0 0 24px;
    border-left: 4px solid var(--guide-teal);
    background: transparent;
}

.patient-guide-intro h2 {
    margin: 6px 0 10px;
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.35;
    letter-spacing: -.02em;
}

.patient-guide-intro > p:last-child {
    max-width: 62ch;
    margin-bottom: 0;
    color: var(--guide-muted);
}

.patient-guide-eyebrow,
.patient-section-heading small {
    color: var(--guide-teal);
    font-size: .78rem;
    font-weight: 700;
}

.patient-section-heading {
    display: block;
    margin: 0 0 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--guide-ink);
}

.patient-section-heading > span {
    display: none;
}

.patient-section-heading h2 {
    margin: 5px 0 0 !important;
    color: var(--guide-ink);
    font-family: "IBM Plex Sans Thai", sans-serif;
    font-size: clamp(1.65rem, 3vw, 2.25rem) !important;
    line-height: 1.35;
    letter-spacing: -.02em;
}

.patient-documents,
.patient-steps {
    scroll-margin-top: 160px;
}

.patient-documents {
    margin-bottom: 68px;
}

.patient-documents > ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    counter-reset: document;
}

.patient-documents li {
    position: relative;
    min-height: 84px;
    padding: 18px 18px 18px 72px;
    border: 0;
    border-bottom: 1px solid var(--guide-line);
    background: transparent;
    counter-increment: document;
}

.patient-documents li:first-child {
    border-top: 1px solid var(--guide-line);
}

.patient-documents li::before {
    content: counter(document, decimal-leading-zero);
    position: absolute;
    left: 16px;
    top: 18px;
    color: var(--guide-teal);
    font-size: .78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.patient-documents li strong {
    font-size: 1.02rem;
    line-height: 1.55;
}

.patient-documents li span {
    max-width: 62ch;
    margin-top: 3px;
    color: var(--guide-muted);
    font-size: .88rem;
    line-height: 1.65;
}

.patient-steps {
    margin-bottom: 62px;
}

.patient-steps > ol {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    border: 0;
}

.patient-steps > ol::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: #c9dfe1;
}

.patient-steps li,
.patient-steps li:nth-child(even) {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    min-height: 72px;
    padding: 12px 0;
    border: 0;
}

.patient-steps li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid #c9dfe1;
    background: #fff;
    color: var(--guide-teal);
    font-size: .78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.patient-steps li p {
    align-self: center;
    max-width: 64ch;
    margin: 0;
    padding: 9px 0;
    font-size: 1rem;
    line-height: 1.65;
}

.patient-original-media {
    scroll-margin-top: 160px;
    margin-top: 12px;
    border: 1px solid var(--guide-line);
    background: #fff;
}

.patient-original-media summary {
    position: relative;
    padding: 16px 52px 16px 18px;
    color: var(--guide-ink);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.patient-original-media summary::-webkit-details-marker {
    display: none;
}

.patient-original-media summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    color: var(--guide-teal);
    font-size: 1.35rem;
    font-weight: 400;
    transform: translateY(-50%);
}

.patient-original-media[open] summary::after {
    content: "−";
}

.patient-original-media[open] summary {
    border-bottom: 1px solid var(--guide-line);
}

.patient-guide-figure {
    margin: 0;
    padding: 20px;
}

.patient-guide-figure img {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.patient-guide-figure figcaption {
    padding-top: 12px;
}

.patient-guide-source {
    margin-top: 28px;
}

@media (max-width: 760px) {
    .process-detail-hero {
        padding: 22px 0 38px;
    }

    .process-detail-grid {
        margin-top: 22px;
    }

    .process-detail-hero .process-detail-grid h1 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.22;
    }

    .patient-jump {
        top: 68px;
    }

    .patient-jump .wrap {
        width: 100%;
        padding: 0 14px;
    }

    .patient-jump span {
        display: none;
    }

    .process-content {
        padding: 36px 0 72px;
    }

    .patient-guide-intro {
        margin-bottom: 42px;
        padding: 0 0 0 17px;
    }

    .patient-documents {
        margin-bottom: 52px;
    }

    .patient-documents li {
        padding: 16px 8px 16px 54px;
    }

    .patient-documents li::before {
        left: 8px;
        top: 17px;
    }

    .patient-steps > ol::before {
        left: 21px;
    }

    .patient-steps li,
    .patient-steps li:nth-child(even) {
        grid-template-columns: 44px 1fr;
        gap: 13px;
    }

    .patient-steps li > span {
        width: 44px;
        height: 44px;
    }

    .patient-steps li p {
        font-size: .94rem;
    }

    .patient-guide-figure {
        padding: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .patient-jump a {
        transition: none;
    }
}
