/* Rich navy-and-orange cards for the public story archive and shortcode. */
.patient-stories {
    --story-navy: #102f4e;
    --story-navy-soft: #1f4d75;
    --story-orange: #f28c18;
    --story-orange-pale: #fff3e3;
    --story-blue-pale: #eef7ff;
    --story-copy: #48647e;
}
.patient-stories__grid { gap: 24px; }
.patient-story-card {
    min-height: 260px;
    border: 1px solid #dbe9f6;
    border-radius: 22px;
    background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
    box-shadow: 0 12px 26px rgba(16,47,78,.09);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.patient-story-card::before {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    left: 0;
    height: 6px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--story-orange), #ffb14a 42%, var(--story-navy) 42%);
    content: '';
}
.patient-story-card::after {
    position: absolute;
    z-index: 0;
    top: 20px;
    left: 21px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--story-orange-pale);
    content: '';
}
.patient-story-card:hover { transform: translateY(-7px); border-color: #a7c8e4; box-shadow: 0 20px 35px rgba(16,47,78,.16); }
.patient-story-card a { display: flex; flex-direction: column; min-height: 260px; padding: 30px 26px 23px; }
.patient-story-card a:focus-visible { outline: 3px solid var(--story-orange); outline-offset: -5px; }
.patient-story-card__mark { z-index: 1; top: -10px; left: 25px; color: var(--story-orange); font-size: 6.4rem; opacity: .9; }
.patient-story-card h3 { margin: 0 0 16px; padding-left: 38px; color: var(--story-navy); font-size: 1.08rem; font-weight: 900; line-height: 1.65; }
.patient-story-card p { color: var(--story-copy); font-size: .88rem; line-height: 2; -webkit-line-clamp: 4; }
.patient-story-card time { position: static; align-self: flex-start; margin-top: auto; padding: 6px 10px; border-radius: 999px; background: var(--story-orange-pale); color: #b35f00; font-size: .7rem; font-weight: 800; }
.patient-story-card:nth-child(3n + 2) { border-color: var(--story-navy); background: linear-gradient(145deg, #173f64, var(--story-navy)); box-shadow: 0 14px 28px rgba(16,47,78,.21); }
.patient-story-card:nth-child(3n + 2)::before { background: linear-gradient(90deg, var(--story-orange), #ffc16b 42%, #70a8dd 42%); }
.patient-story-card:nth-child(3n + 2)::after { background: rgba(255,255,255,.09); }
.patient-story-card:nth-child(3n + 2) .patient-story-card__mark { color: #ffc36d; }
.patient-story-card:nth-child(3n + 2) h3 { color: #fff; }
.patient-story-card:nth-child(3n + 2) p { color: #dceafa; }
.patient-story-card:nth-child(3n + 2) time { background: rgba(242,140,24,.18); color: #ffd59b; }
.patient-story-card:nth-child(3n + 3) { border-color: #d9e6f1; background: linear-gradient(145deg, #f0f8ff, #fff); }
.patient-story-card:nth-child(3n + 3)::before { background: linear-gradient(90deg, var(--story-navy), #376991 64%, var(--story-orange) 64%); }
.patient-story-card:nth-child(3n + 3)::after { background: #dceefd; }
.patient-story-card:nth-child(3n + 3) h3 { color: var(--story-navy-soft); }
@media (max-width: 460px) {
    .patient-stories__grid { gap: 16px; }
    .patient-story-card, .patient-story-card a { min-height: 236px; }
    .patient-story-card a { padding: 28px 21px 19px; }
    .patient-story-card h3 { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .patient-story-card { transition: none; } }

/* Full-width marketplace-inspired skin for the public [patient_stories] shortcode. */
.ast-container:has(.patient-stories--showcase),.entry-content:has(.patient-stories--showcase),.elementor-widget-container:has(.patient-stories--showcase){max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
.patient-stories.patient-stories--showcase{--story-navy:#143d67;--story-blue:#4b9bed;--story-sky:#eaf6ff;--story-orange:#f59a23;--story-ink:#193d61;--story-muted:#65809c;--story-line:#d8eafa;position:relative;left:50%;right:auto;width:100vw;max-width:none;margin:0;padding:0 0 clamp(42px,6vw,82px);overflow:hidden;border:0;border-radius:0;background:linear-gradient(180deg,#f8fcff 0,#eef8ff 42%,#fff 42%);box-shadow:none;color:var(--story-ink);transform:translateX(-50%)}
.patient-stories--showcase::before{position:absolute;z-index:0;inset:0 0 auto;height:670px;background-image:radial-gradient(rgba(75,155,237,.16) 1.25px,transparent 1.25px);background-size:18px 18px;content:"";pointer-events:none}
.patient-stories__hero,.patient-stories__body{position:relative;z-index:1;width:min(1200px,calc(100% - 40px));margin:0 auto;box-sizing:border-box}.patient-stories__hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);min-height:355px;overflow:hidden;border:1px solid rgba(173,211,244,.9);border-radius:0 0 34px 34px;background:linear-gradient(114deg,rgba(10,65,115,.96),rgba(55,139,220,.89));box-shadow:0 20px 45px rgba(24,79,127,.16);color:#fff}.patient-stories__hero::after{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,52,96,.95) 0%,rgba(20,90,154,.57) 52%,rgba(17,91,156,.08) 100%);content:"";pointer-events:none}.patient-stories__hero-content{position:relative;z-index:2;align-self:center;padding:clamp(36px,5vw,70px)}
.patient-stories__eyebrow,.patient-stories__badges span{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.4);border-radius:999px;background:rgba(255,255,255,.11);color:#fff;font-size:.77rem;font-weight:800;line-height:1}.patient-stories__eyebrow{padding:9px 12px}.patient-stories__eyebrow span{color:#ffd180;font-size:1rem}.patient-stories__hero h2{max-width:620px;margin:18px 0 12px;color:#fff;font-size:clamp(1.9rem,4vw,3.35rem);font-weight:950;line-height:1.35}.patient-stories__hero p{max-width:590px;margin:0;color:#eaf5ff;font-size:clamp(.9rem,1.35vw,1.03rem);line-height:2.1}.patient-stories__badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:25px}.patient-stories__badges span{padding:9px 11px}.patient-stories__badges i{display:inline-grid;width:18px;height:18px;place-items:center;border-radius:50%;background:#f8ae42;color:#704000;font-size:.75rem;font-style:normal}.patient-stories__hero-art{position:relative;z-index:1;min-height:355px;background:linear-gradient(90deg,rgba(17,89,153,.08),rgba(17,89,153,.02)),url('../images/patient-story-hope-hero.webp') center/cover no-repeat}
.patient-stories__body{padding-top:clamp(34px,5vw,62px)}.patient-stories__section-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:24px}.patient-stories__section-heading span{display:block;margin-bottom:6px;color:#e18112;font-size:.78rem;font-weight:900}.patient-stories__section-heading h3{margin:0;color:var(--story-navy);font-size:clamp(1.35rem,2.5vw,2rem);font-weight:950}.patient-stories__section-heading p{margin:0 0 4px;color:var(--story-muted);font-size:.85rem}.patient-stories--showcase .patient-stories__grid{gap:20px}.patient-stories--showcase[data-columns="1"]{--patient-story-columns:1}.patient-stories--showcase[data-columns="2"]{--patient-story-columns:2}.patient-stories--showcase[data-columns="3"]{--patient-story-columns:3}.patient-stories--showcase[data-columns="4"]{--patient-story-columns:4}
.patient-stories--showcase .patient-story-card{min-height:275px;border:1px solid var(--story-line);border-radius:22px;background:linear-gradient(145deg,#fff,#f9fcff);box-shadow:0 11px 24px rgba(24,78,124,.08)}.patient-stories--showcase .patient-story-card::before{right:0;left:auto;width:100%;height:5px;border-radius:22px 22px 0 0;background:linear-gradient(90deg,var(--story-blue),#8bc7ff 55%,var(--story-orange) 55%)}.patient-stories--showcase .patient-story-card::after{display:none}.patient-stories--showcase .patient-story-card:hover{transform:translateY(-6px);border-color:#9cc8ee;box-shadow:0 22px 34px rgba(24,78,124,.15)}.patient-stories--showcase .patient-story-card a{min-height:275px;padding:21px}.patient-story-card__topline{display:inline-flex;align-items:center;align-self:flex-start;gap:7px;padding:6px 9px;border:1px solid #d8eafa;border-radius:999px;background:#f0f8ff;color:#467398;font-size:.68rem;font-weight:800}.patient-story-card__icon{display:grid;width:19px;height:19px;place-items:center;border-radius:7px;background:#fff0de;color:#dd7d11;font-size:.95rem;font-style:normal}.patient-stories--showcase .patient-story-card__mark{top:29px;left:17px;color:#dceeff;font-size:5.7rem;line-height:.7}.patient-stories--showcase .patient-story-card h3{min-height:3.25em;margin:16px 0 10px;padding-left:22px;color:var(--story-navy);font-size:1.03rem;line-height:1.65}.patient-stories--showcase .patient-story-card p{color:#5f7891;font-size:.84rem;line-height:2;-webkit-line-clamp:3}.patient-story-card__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:18px}.patient-stories--showcase .patient-story-card time{display:inline-flex;align-items:center;gap:5px;align-self:auto;margin:0;padding:0;background:none;color:#718ca5;font-size:.69rem;font-weight:700}.patient-story-card time i{color:#f08b16;font-style:normal}.patient-story-card__read{color:#3887d7;font-size:.72rem;font-weight:900;white-space:nowrap}.patient-story-card__read i{display:inline-block;margin-right:3px;color:#ed8c15;font-size:1.05rem;font-style:normal;transition:transform .2s ease}.patient-story-card:hover .patient-story-card__read i{transform:translateX(-4px)}.patient-stories--showcase .patient-stories__more{margin-top:34px}.patient-stories--showcase .patient-stories__more button{display:inline-flex;align-items:center;gap:11px;border:1px solid #8abcf0;background:#fff;color:#2877c7;box-shadow:0 9px 18px rgba(49,123,192,.1)}.patient-stories--showcase .patient-stories__more button:hover{background:#edf7ff}.patient-stories--showcase .patient-stories__more button i{color:#ed8c15;font-size:1.05rem;font-style:normal}.patient-stories--showcase .patient-stories__empty{margin:0;padding:42px 20px;border:1px dashed #b8d8f5;border-radius:20px;background:rgba(255,255,255,.78);color:var(--story-muted);text-align:center}.patient-stories--showcase .patient-stories__empty span{display:block;margin-bottom:10px;color:var(--story-orange);font-size:1.5rem}
@media(max-width:900px){.patient-stories__hero{grid-template-columns:1fr;border-radius:0 0 28px 28px}.patient-stories__hero-art{min-height:190px;order:-1;background-position:center 35%}.patient-stories__hero::after{background:linear-gradient(180deg,rgba(18,87,149,.15),rgba(10,60,108,.9) 100%)}.patient-stories__hero-content{margin-top:-75px;padding-top:100px}.patient-stories--showcase[data-columns="3"],.patient-stories--showcase[data-columns="4"]{--patient-story-columns:2}}
@media(max-width:600px){.patient-stories.patient-stories--showcase{background:linear-gradient(180deg,#f7fcff 0,#eef8ff 34%,#fff 34%)}.patient-stories--showcase::before{height:550px}.patient-stories__hero,.patient-stories__body{width:calc(100% - 28px)}.patient-stories__hero-content{padding:28px 22px 34px}.patient-stories__hero h2{font-size:1.8rem}.patient-stories__badges{gap:7px}.patient-stories__badges span{font-size:.68rem}.patient-stories__section-heading{align-items:flex-start;flex-direction:column;gap:8px}.patient-stories__section-heading p{font-size:.78rem}.patient-stories--showcase[data-columns]{--patient-story-columns:1}.patient-stories--showcase .patient-story-card,.patient-stories--showcase .patient-story-card a{min-height:248px}.patient-stories--showcase .patient-story-card a{padding:19px}.patient-stories--showcase .patient-story-card h3{margin-top:14px}.patient-stories--showcase .patient-stories__more{margin-top:25px}.patient-stories--showcase .patient-stories__more button{width:100%;justify-content:center}}
@media(prefers-reduced-motion:reduce){.patient-stories--showcase .patient-story-card,.patient-stories--showcase .patient-stories__more button,.patient-story-card__read i{transition:none}}

/* Full-bleed containers are made viewport-safe on narrow screens. */
@media(max-width:820px){.patient-stories.patient-stories--showcase{left:auto;right:auto;width:100%;max-width:100%;margin:0;transform:none}.patient-stories--showcase .patient-stories__hero,.patient-stories--showcase .patient-stories__body{max-width:calc(100% - 28px)}.patient-stories--showcase :is(h2,h3,p,a,span){overflow-wrap:anywhere}}

/* A single photo-led hero: text remains directly on the image, not in a separate panel. */
.patient-stories--showcase .patient-stories__hero{display:block;min-height:420px;background:url('../images/patient-story-hope-hero.webp') center/cover no-repeat}
.patient-stories--showcase .patient-stories__hero::after{background:linear-gradient(90deg,rgba(8,54,99,.82) 0%,rgba(17,87,147,.56) 44%,rgba(19,102,173,.14) 100%)}
.patient-stories--showcase .patient-stories__hero-content{max-width:650px;padding:clamp(48px,6vw,86px);padding-left:clamp(36px,7vw,130px)}
.patient-stories--showcase .patient-stories__hero-art{display:none}
.patient-stories--showcase .patient-stories__section-heading{display:block;margin-bottom:24px;text-align:right}
.patient-stories--showcase .patient-stories__section-heading p{margin:8px 0 0}
@media(max-width:900px){.patient-stories--showcase .patient-stories__hero{min-height:390px;background-position:center}.patient-stories--showcase .patient-stories__hero::after{background:linear-gradient(90deg,rgba(8,54,99,.84) 0%,rgba(17,87,147,.54) 64%,rgba(19,102,173,.22) 100%)}.patient-stories--showcase .patient-stories__hero-content{margin:0;padding:clamp(38px,7vw,60px);padding-left:clamp(28px,8vw,90px)}}
