/* A story keeps its carousel and reading position when it moves into focus. */
.story-open-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;align-self:flex-start;max-width:100%;min-height:44px;padding:10px 17px;margin-top:20px;border:1px solid #ffffff38;border-radius:24px;background:#0009;color:var(--ivory);font-size:12px;font-weight:500;line-height:1.35;text-align:left;transition:background .15s,border-color .15s}
.story-open-button .icon{width:18px;height:18px;color:var(--teal)}
.story-open-button:hover{background:#151515;border-color:#ffffff70}
.story-open-button:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.story-open-label-mobile{display:none}
.carousel-track.is-swiping,.carousel-track.is-swiping *{cursor:grabbing!important}
.feed-card-placeholder{min-width:0;min-height:0;align-self:start;height:calc(100svh - var(--feed-header-height) - 88px);border-radius:22px;background:#080808;pointer-events:none;scroll-snap-align:start}
body.story-open .feed-navigation{visibility:hidden;pointer-events:none}
.story-dialog{--story-card-height:min(850px,calc(100svh - 150px));inset:0;margin:auto;padding:0;width:min(600px,calc(100vw - 48px),max(360px,calc((100svh - 150px)*.8)));max-width:none;max-height:calc(100svh - 24px);border:0;border-radius:0;background:transparent;color:var(--ivory);overflow:visible;overscroll-behavior:contain}
.story-dialog:not([open]){display:none}
.story-dialog::backdrop{background:#0009;backdrop-filter:blur(7px)}
.story-viewer-shell{display:grid;grid-template-rows:52px minmax(0,var(--story-card-height)) 52px;gap:8px;min-width:0;min-height:0}
.story-viewer-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 4px;min-width:0;min-height:0}
.story-viewer-label{min-width:0;max-width:calc(100% - 60px)}
.story-viewer-label>span{display:block;margin:0 0 4px;color:var(--teal);font-size:9px;font-weight:500;letter-spacing:.14em;line-height:1.2;text-transform:uppercase}
#story-viewer-title{margin:0;font-size:15px;font-weight:500;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#story-close{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid #ffffff30;border-radius:50%;background:#080808;color:var(--ivory);transition:background .15s,border-color .15s}
#story-close .icon{width:20px;height:20px}
#story-close:hover{background:#222;border-color:#ffffff65}
#story-close:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.story-stage{position:relative;min-width:0;min-height:0;height:var(--story-card-height);border-radius:22px;box-shadow:0 16px 70px #0008}
.story-stage>.feed-card{width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto;scroll-snap-align:none;border-radius:22px;border:1px solid #ffffff32}
.story-stage .cover-slide .slide-shade{background:linear-gradient(180deg,#0008 0%,#0000 28%,#0002 44%,#000a 72%,#000e 100%)}
.story-stage .card-author{top:22px;left:26px;right:80px}
.story-stage .slide-count{right:24px;top:26px}
.story-stage .cover-content{top:88px;bottom:114px;left:52px;right:52px}
.story-stage .cover-content>.slide-title{font-size:clamp(30px,4.6svh,46px);line-height:1.05}
.story-stage .cover-content>.cover-description{font-size:clamp(14px,1.9svh,17px);line-height:1.5}
.story-stage .reading-content{top:88px;bottom:114px;left:52px;right:52px;overscroll-behavior-y:contain}
.story-stage .reading-title{font-size:clamp(27px,4svh,37px);line-height:1.1;margin-bottom:20px}
.story-stage .reading-body{font-size:clamp(16px,2.1svh,19px);line-height:1.6}
.story-stage .reading-eyebrow{font-size:10px}
.story-stage .sources-slide .reading-body{font-size:15px}
.story-stage .card-footer{left:24px;right:24px;bottom:20px}
.story-stage .carousel-progress{left:28px;right:28px;bottom:78px}
.story-stage .carousel-arrow{width:46px;height:66px}
.story-stage .story-open-label-desktop{display:none}
.story-stage .story-open-label-mobile{display:inline}
.story-viewer-navigation{display:flex;align-items:center;justify-content:center;gap:3px;align-self:center;justify-self:center;height:52px;padding:3px;border:1px solid #343434;border-radius:28px;background:#000;min-width:0}
.story-viewer-navigation button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;padding:0 14px;border-radius:24px;background:transparent;color:var(--ivory);font-size:11px;font-weight:500;line-height:1;white-space:nowrap;transition:background .15s,color .15s}
.story-viewer-navigation button .icon{width:18px;height:18px}
#story-previous-find .icon{transform:rotate(180deg)}
.story-viewer-navigation button:hover{background:#1b1b1b;color:var(--teal)}
.story-viewer-navigation button:disabled{opacity:.3;pointer-events:none}
.story-viewer-navigation button:focus-visible{outline:2px solid var(--teal);outline-offset:-3px;background:#151515}
#story-viewer-position{min-width:62px;padding:0 8px;color:#c9c9c9;font-size:11px;font-variant-numeric:tabular-nums;text-align:center;white-space:nowrap}
@media(min-width:700px){.cover-slide{cursor:pointer}.story-stage .cover-slide{cursor:default}}
@media(min-width:700px) and (max-height:740px){.story-stage .card-author{top:17px}.story-stage .slide-count{top:21px}.story-stage .cover-content,.story-stage .reading-content{top:73px;left:48px;right:48px;bottom:106px}.story-stage .cover-content>.slide-title{font-size:clamp(27px,4.5svh,34px)}.story-stage .cover-content>.cover-description{font-size:14px}.story-stage .reading-title{font-size:clamp(24px,3.8svh,29px);margin-bottom:16px}.story-stage .reading-body{font-size:15px;line-height:1.55}.story-stage .carousel-arrow{width:40px;height:58px}.story-stage .story-open-button{margin-top:16px}}
@media(min-width:700px) and (max-height:520px){.story-dialog{--story-card-height:calc(100svh - 128px)}.story-viewer-shell{grid-template-rows:44px minmax(0,var(--story-card-height)) 44px;gap:6px}.story-viewer-navigation{height:44px;padding:0;border:0}.story-viewer-navigation button{height:44px}.story-viewer-label>span{display:none}.story-stage .card-author{top:12px}.story-stage .slide-count{top:16px}.story-stage .reading-content,.story-stage .cover-content{top:54px;bottom:86px}.story-stage .reading-title{font-size:23px}.story-stage .reading-body{font-size:14px}.story-stage .cover-content>.slide-title{font-size:25px}.story-stage .cover-content>.cover-description{font-size:12px}.story-stage .card-footer{bottom:10px}.story-stage .carousel-progress{bottom:58px}.story-stage .carousel-arrow{height:48px}.story-stage .story-open-button{font-size:11px;margin-top:12px}}
@media(max-width:699px){.story-open-label-desktop{display:none}.story-open-label-mobile{display:inline}.story-open-button{font-size:11px;margin-top:17px;padding:10px 15px}.feed-card-placeholder{height:calc(100svh - var(--feed-header-height) - 2 * var(--feed-card-inset))}}
@media(prefers-reduced-motion:reduce){.story-dialog,.story-open-button,.story-viewer-navigation button,#story-close{transition:none}}
@media(forced-colors:active){.story-dialog::backdrop{background:Canvas;opacity:.9}.story-stage>.feed-card,.story-open-button,#story-close,.story-viewer-navigation{border:1px solid ButtonText}.story-viewer-navigation button:focus-visible,#story-close:focus-visible{outline-color:Highlight}}
