/* This stylesheet is loaded exclusively by the Success Stories settlement. */
.sg-success-stories.sg-blog,.sg-success-story.sg-blog-post{width:min(calc(100% - 40px),1280px);padding-top:calc(var(--sg-header-height) + 24px);padding-bottom:64px}
.sg-success-stories .sg-blog__heading{margin-bottom:36px}
.sg-success-stories .sg-blog__heading h1,.sg-success-story .sg-blog-post__header h1{font-size:clamp(28px,3.1vw,42px);line-height:1.15;letter-spacing:-.03em}
.sg-success-story .sg-blog-post__header{max-width:900px;margin:0 auto 28px}
.sg-success-story .sg-blog-post__lead{font-size:17px;line-height:1.7}
.sg-success-story .sg-blog-post__cover{max-width:960px;margin:0 auto 32px;background:var(--sg-surface);aspect-ratio:auto}
.sg-success-story .sg-blog-post__cover img{width:100%;height:auto;max-height:540px;object-fit:contain;display:block}
.sg-success-story .sg-blog-post__content{max-width:900px;margin:auto;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.sg-success-story .sg-story-copy p,.sg-success-story .sg-story-copy li{font-size:16px;line-height:1.8;font-weight:400}
.sg-success-story .sg-story-copy p{margin:0 0 20px}
.sg-success-story .sg-story-copy h2{font-size:26px;line-height:1.3;margin:36px 0 16px}
.sg-success-story .sg-story-copy h3{font-size:21px;line-height:1.4;margin:28px 0 14px}
.sg-success-story .sg-story-copy ul,.sg-success-story .sg-story-copy ol{padding-left:24px;margin:16px 0 28px}
.sg-success-story .sg-story-copy li{margin-bottom:10px}
/* Uniform previews keep mixed portrait/landscape photos on the same row baseline.
   The existing links retain full-resolution, uncropped originals. */
.sg-success-story .sg-story-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px;margin-top:32px}
.sg-success-story .sg-story-gallery:has(>a:last-child:nth-child(2)),.sg-success-story .sg-story-gallery:has(>a:last-child:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
.sg-success-story .sg-story-gallery:has(>a:only-child){grid-template-columns:1fr;max-width:480px;margin-inline:auto}
.sg-success-story .sg-story-gallery>a{display:block;min-width:0;aspect-ratio:1;overflow:hidden;border-radius:16px;background:var(--sg-surface);line-height:0}
.sg-success-story .sg-story-gallery>a:focus-visible{outline:2px solid var(--sg-accent-a,currentColor);outline-offset:4px}
.sg-success-story .sg-story-gallery img{display:block;width:100%;height:100%;max-height:none;margin:0;object-fit:cover;object-position:center 25%;border-radius:0}
/* DEBUG (disabled): .sg-success-story .sg-story-gallery>a{outline:1px dashed magenta} */
.sg-success-stories .sg-blog-card__body h2{font-size:24px;line-height:1.25}
.sg-success-stories .sg-blog-card__media img{object-fit:contain}
.sg-success-stories .sg-blog-card__more{white-space:nowrap}
.sg-story-languages{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:20px;font-size:14px}
.sg-success-stories .sg-story-languages{justify-content:center}
.sg-story-languages a[aria-current]{color:var(--sg-text);text-decoration:underline;text-underline-offset:5px}
.sg-story-related{margin-top:36px;padding:20px;border:1px solid var(--sg-border);border-radius:16px}
.sg-story-related summary{cursor:pointer;font-weight:600;color:var(--sg-text)}
.sg-story-related[open] summary{margin-bottom:20px}
@media(max-width:800px){.sg-success-story .sg-story-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:640px){.sg-success-stories.sg-blog,.sg-success-story.sg-blog-post{width:calc(100% - 32px)}.sg-success-story .sg-story-copy h2{font-size:23px}}
