/* Privacy-safe public layout for the individual patient-story page. */
.patient-story-single {
    --story-ink: #1d3651;
    --story-muted: #607b95;
    --story-blue: #3f8eee;
    --story-orange: #f59e0b;
    box-sizing: border-box;
    position: relative;
    padding: clamp(32px, 6vw, 82px) 20px clamp(46px, 7vw, 96px);
    color: var(--story-ink);
    font-family: Vazirmatn, sans-serif;
}
.patient-story-single *, .patient-story-single *::before, .patient-story-single *::after { box-sizing: border-box; }
.patient-story-single__layout { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 28px; width: min(100%, 1220px); margin: 0 auto; }
.patient-story-single__article { position: relative; z-index: 1; box-sizing: border-box; flex: 1 1 0; min-width: 0; margin: 0; }
.patient-story-single__hero { position: relative; padding: clamp(28px, 5vw, 55px) clamp(23px, 6vw, 74px) clamp(35px, 5vw, 54px); border: 1px solid rgba(127,181,239,.33); border-bottom: 0; border-radius: 32px 32px 0 0; background: linear-gradient(120deg, rgba(255,255,255,.60), rgba(241,248,255,.52)), url('../images/patient-story-hope-hero.webp') center / cover no-repeat; text-align: center; box-shadow: 0 20px 55px rgba(29,80,129,.11); }
.patient-story-single__back { position: absolute; top: 21px; right: clamp(20px, 4vw, 38px); display: inline-flex; align-items: center; gap: 7px; color: #4f7da8; font-size: .79rem; font-weight: 800; text-decoration: none; transition: color .2s, transform .2s; }
.patient-story-single__back:hover, .patient-story-single__back:focus-visible { color: #2375cc; transform: translateX(-2px); }
.patient-story-single__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 12px 0 14px; color: #ed9210; font-size: .82rem; font-weight: 900; letter-spacing: .02em; }
.patient-story-single__heart { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff4df; color: var(--story-orange); font-size: .83rem; }
.patient-story-single__title { max-width: 650px; margin: 0 auto 19px; color: var(--story-ink); font-size: clamp(2rem, 5vw, 3.75rem); font-weight: 900; line-height: 1.32; letter-spacing: -.035em; }
.patient-story-single__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 17px; color: var(--story-muted); font-size: .78rem; font-weight: 700; }
.patient-story-single__meta time { display: inline-flex; align-items: center; gap: 5px; }
.patient-story-single__approved { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border: 1px solid #bde9d5; border-radius: 999px; background: #f0fbf6; color: #18724e; font-size: .72rem; }
.patient-story-single__approved > span { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #25a46f; color: #fff; font-size: .6rem; }
.patient-story-single__content-shell { position: relative; box-sizing: border-box; padding: clamp(48px, 8vw, 86px) clamp(27px, 8vw, 105px) clamp(42px, 7vw, 70px); border: 1px solid rgba(127,181,239,.33); border-top: 1px solid #d8eafa; border-radius: 0 0 32px 32px; background: #fff; box-shadow: 0 22px 54px rgba(29,80,129,.1); }
.patient-story-single__content { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; color: #38546f; font-size: clamp(1rem, 1.75vw, 1.14rem); font-weight: 500; line-height: 2.35; overflow-wrap: anywhere; text-align: right; }
.patient-story-single__content > :first-child { margin-top: 0; }
.patient-story-single__content > :last-child { margin-bottom: 0; }
.patient-story-single__content p { margin: 0 0 1.5em; }
.patient-story-single__content a { color: #2378cf; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.patient-story-single__quote { position: absolute; color: #e9f4ff; font-family: Vazirmatn, sans-serif; font-size: clamp(7rem, 20vw, 12rem); font-weight: 700; line-height: .7; pointer-events: none; }
.patient-story-single__quote--start { top: 38px; right: clamp(18px, 5vw, 55px); }
.patient-story-single__quote--end { bottom: 29px; left: clamp(18px, 5vw, 55px); }
.patient-story-single__footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 23px clamp(0px, 3vw, 25px) 0; padding: 21px clamp(19px, 4vw, 31px); border-radius: 20px; background: #eef7ff; color: var(--story-muted); }
.patient-story-single__footer div { display: flex; flex-direction: column; gap: 3px; }
.patient-story-single__footer strong { color: var(--story-ink); font-size: .85rem; }
.patient-story-single__footer span { font-size: .72rem; line-height: 1.7; }
.patient-story-single__footer > a { display: inline-flex; flex: none; align-items: center; gap: 7px; color: #2378cf; font-size: .8rem; font-weight: 900; text-decoration: none; }
.patient-story-single__footer > a:hover, .patient-story-single__footer > a:focus-visible { color: #d68108; }
.patient-story-single__glow { position: absolute; width: 350px; height: 350px; border-radius: 50%; filter: blur(14px); opacity: .44; pointer-events: none; }
.patient-story-single__glow--one { top: -155px; right: -130px; background: radial-gradient(circle, #cfeaff 0%, rgba(207,234,255,0) 70%); }
.patient-story-single__glow--two { bottom: -180px; left: -130px; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 70%); }
.patient-story-single__glow--three { top: 24%; left: -185px; width: 310px; height: 310px; background: radial-gradient(circle, #d9efff 0%, rgba(217,239,255,0) 70%); }
.patient-story-single__glow--four { right: -185px; bottom: 12%; width: 330px; height: 330px; background: radial-gradient(circle, #bfe3ff 0%, rgba(191,227,255,0) 70%); }
.patient-story-single__glow--five { top: 43%; right: 18%; width: 220px; height: 220px; opacity: .58; background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0) 72%); }
.patient-story-sidebar { position: sticky; top: 28px; flex: 0 0 292px; overflow: hidden; border: 1px solid #d6e5f3; border-radius: 22px; background: #fff; box-shadow: 0 14px 34px rgba(16,47,78,.12); }
.patient-story-sidebar__header { position: relative; padding: 20px 20px 18px; overflow: hidden; background: linear-gradient(135deg, #173f64, #102f4e); color: #fff; }
.patient-story-sidebar__header span { position: relative; z-index: 1; display: block; margin-bottom: 4px; color: #ffbe68; font-size: .7rem; font-weight: 800; }
.patient-story-sidebar__header h2 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 1.08rem; font-weight: 900; }
.patient-story-sidebar__list { max-height: min(620px, calc(100vh - 230px)); padding: 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #9db9d3 #eff6fc; scrollbar-width: thin; }
.patient-story-sidebar__list::-webkit-scrollbar { width: 7px; }
.patient-story-sidebar__list::-webkit-scrollbar-track { background: #eff6fc; }
.patient-story-sidebar__list::-webkit-scrollbar-thumb { border-radius: 99px; background: #9db9d3; }
.patient-story-sidebar__card { display: flex; align-items: flex-start; gap: 9px; padding: 13px 9px; border-bottom: 1px solid #e6eff7; color: inherit; text-decoration: none; transition: background .2s, transform .2s; }
.patient-story-sidebar__card:last-child { border-bottom: 0; }
.patient-story-sidebar__card:hover, .patient-story-sidebar__card:focus-visible { border-radius: 12px; background: #f0f7ff; outline: none; transform: translateX(-2px); }
.patient-story-sidebar__card:focus-visible { box-shadow: inset 0 0 0 2px #f28c18; }
.patient-story-sidebar__number { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 9px; background: #fff1df; color: #bd6600; font-size: .66rem; font-weight: 900; }
.patient-story-sidebar__copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.patient-story-sidebar__copy strong { overflow: hidden; color: #173f64; font-size: .79rem; font-weight: 900; line-height: 1.55; text-overflow: ellipsis; white-space: nowrap; }
.patient-story-sidebar__copy small { display: -webkit-box; overflow: hidden; color: #6b8299; font-size: .68rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.patient-story-sidebar__copy time { color: #cf760c; font-size: .61rem; font-weight: 800; }
.patient-story-sidebar__arrow { align-self: center; color: #84a6c4; font-size: .96rem; }
.patient-story-sidebar__all { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 13px; border-top: 1px solid #dfeaf4; background: #f5faff; color: #176fbd; font-size: .76rem; font-weight: 900; text-decoration: none; }
.patient-story-sidebar__all:hover, .patient-story-sidebar__all:focus-visible { background: #fff4e4; color: #bd6600; outline: none; }
.patient-story-sidebar__empty { margin: 0; padding: 20px 10px; color: #6b8299; font-size: .78rem; line-height: 1.8; text-align: center; }
@media (max-width: 1040px) { .patient-story-sidebar { flex-basis: 265px; } .patient-story-single__layout { gap: 20px; } }
@media (max-width: 820px) { .patient-story-single__layout { flex-direction: column; } .patient-story-single__article, .patient-story-sidebar { width: 100%; } .patient-story-sidebar { position: static; flex-basis: auto; } .patient-story-sidebar__list { max-height: 480px; } }
@media (max-width: 600px) {
    .patient-story-single { padding-right: 14px; padding-left: 14px; }
    .patient-story-single__hero { padding-top: 58px; border-radius: 24px 24px 0 0; }
    .patient-story-single__back { top: 19px; right: 22px; }
    .patient-story-single__title { font-size: clamp(1.8rem, 9vw, 2.45rem); }
    .patient-story-single__content-shell { padding: 46px 26px 45px; border-radius: 0 0 24px 24px; }
    .patient-story-single__content { font-size: 1rem; line-height: 2.2; }
    .patient-story-single__quote { font-size: 6rem; }
    .patient-story-single__quote--start { top: 31px; right: 14px; }
    .patient-story-single__quote--end { bottom: 27px; left: 14px; }
    .patient-story-single__footer { align-items: flex-start; flex-direction: column; margin: 16px 0 0; padding: 19px; }
    .patient-story-single__footer > a { padding-top: 6px; }
    .patient-story-single__content :is(a, code, pre) { overflow-wrap: anywhere; word-break: break-word; }
}
@media (prefers-reduced-motion: reduce) { .patient-story-single__back { transition: none; } }

/* Keep singular stories inside the viewport when Astra/page-builder wrappers
   retain desktop positioning on a mobile device. */
@media (max-width: 700px) {
    html:has(body.single-patient_story),
    body.single-patient_story {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
    body.single-patient_story #page,
    body.single-patient_story .site,
    body.single-patient_story .site-content,
    body.single-patient_story #content,
    body.single-patient_story .ast-container {
        position: relative;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        transform: none !important;
        box-sizing: border-box;
    }
    body.single-patient_story #primary.patient-story-single {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 32px 14px 46px !important;
        overflow: visible !important;
    }
    body.single-patient_story .patient-story-single__layout,
    body.single-patient_story .patient-story-single__article,
    body.single-patient_story .patient-story-sidebar,
    body.single-patient_story .patient-story-single__hero,
    body.single-patient_story .patient-story-single__content-shell,
    body.single-patient_story .patient-story-single__footer {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    body.single-patient_story .patient-story-single__layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    body.single-patient_story .patient-story-single *,
    body.single-patient_story .patient-story-single *::before,
    body.single-patient_story .patient-story-single *::after {
        max-width: 100%;
        box-sizing: border-box;
    }
}
