/* Season 2 reader chrome: one control language across the masthead, smoother motion,
   the Live dock, and the accessibility basics. Loaded after viewer.css. */
:root{--ease:cubic-bezier(.22,.8,.24,1);--ctl-h:36px;--ctl-r:10px}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;left:12px;top:-60px;z-index:20000;padding:10px 16px;border-radius:var(--ctl-r);background:var(--gold);color:var(--ink);font-weight:600;font-size:14px;text-decoration:none;transition:top .2s var(--ease)}
.skip:focus{top:10px}
html,body{overscroll-behavior-x:none}

/* every masthead control: the same height, radius, focus ring and motion */
.masthead{min-height:58px}
.mast-back,.ghost-btn,.solid-btn{height:var(--ctl-h);display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--ctl-r)!important;
  transition:background .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease),box-shadow .18s var(--ease),transform .12s var(--ease)}
.ghost-btn{padding:0 14px;border:1px solid rgba(233,239,250,.16)!important;background:rgba(233,239,250,.04);font-weight:500}
.ghost-btn:hover{background:rgba(233,239,250,.1);border-color:rgba(233,239,250,.3)!important;color:var(--cream)!important;box-shadow:none!important}
.solid-btn{padding:0 16px}
.mast-back:active,.ghost-btn:active,.solid-btn:active,.tb-view button:active,.mt-titles button:active{transform:scale(.97)}
.masthead :focus-visible,.live-dock :focus-visible{outline:2px solid var(--gold);outline-offset:2px;border-radius:var(--ctl-r)}

/* title tabs: one indicator that slides between them */
.mt-titles{position:relative}
.mt-titles button::after{display:none!important}
.mt-titles button{transition:color .2s var(--ease)}
.mt-titles .mt-ind{position:absolute;left:0;bottom:0;height:2px;width:0;border-radius:2px;background:var(--a,var(--gold));pointer-events:none;
  transition:transform .38s var(--ease),width .38s var(--ease),background .3s,opacity .2s}
.mt-titles button:hover{background:rgba(233,239,250,.04)}

/* Magazine and Live: a pill switch with a sliding thumb */
.tb-view{position:relative;height:var(--ctl-h);padding:3px;gap:0;border:1px solid rgba(233,239,250,.16)!important;border-radius:calc(var(--ctl-r) + 2px)!important;background:rgba(233,239,250,.04)}
.tb-view button{position:relative;z-index:1;height:100%;padding:0 14px!important;border:0!important;border-radius:var(--ctl-r);background:none!important;color:var(--cream);font-weight:500;transition:color .25s var(--ease)}
.tb-view button.on{color:var(--ink)!important}
.tb-view button:not(.on):hover{color:#fff}
.tb-view .tbv-thumb{position:absolute;left:0;top:3px;bottom:3px;width:0;border-radius:var(--ctl-r);background:var(--tacc,#E4C98E);box-shadow:0 2px 10px rgba(0,0,0,.25);
  transition:transform .34s var(--ease),width .34s var(--ease),background .3s}
.tb-view button[data-view=live] span::before{content:"";display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#3FD08A;box-shadow:0 0 0 3px rgba(63,208,138,.18);vertical-align:1px}

/* Live editions: they rise in, slide between titles, and settle out */
.ew-app{will-change:transform,opacity}
.ew-app.in-up{animation:ewUp .36s var(--ease) both}
.ew-app.in-r{animation:ewInR .46s var(--ease) both}
.ew-app.in-l{animation:ewInL .46s var(--ease) both}
.ew-app.out-l{animation:ewOutL .46s var(--ease) both;pointer-events:none}
.ew-app.out-r{animation:ewOutR .46s var(--ease) both;pointer-events:none}
.ew-app.out-down{animation:ewDown .24s ease-in both;pointer-events:none}
@keyframes ewUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes ewDown{to{opacity:0;transform:translateY(10px)}}
@keyframes ewInR{from{transform:translateX(100%)}to{transform:none}}
@keyframes ewInL{from{transform:translateX(-100%)}to{transform:none}}
@keyframes ewOutL{to{transform:translateX(-30%);opacity:.2}}
@keyframes ewOutR{to{transform:translateX(30%);opacity:.2}}

/* the dock: three live editions, one tap or swipe apart */
.live-dock{position:fixed;left:50%;bottom:16px;z-index:10001;display:flex;align-items:center;gap:2px;padding:4px;border-radius:14px;
  background:rgba(8,14,28,.82);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(233,239,250,.14);box-shadow:0 12px 40px rgba(0,0,0,.35);
  transform:translate(-50%,calc(100% + 24px));opacity:0;transition:transform .35s var(--ease),opacity .25s}
.live-dock.on,.live-dock:focus-within{transform:translate(-50%,0);opacity:1}
.live-dock[hidden]{display:none}
.live-dock button{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px;border-radius:10px;font-size:13px;font-weight:500;color:rgba(233,239,250,.72);transition:background .18s,color .18s}
.live-dock button:hover{background:rgba(233,239,250,.08);color:#fff}
.live-dock button i{width:8px;height:8px;border-radius:50%;background:rgba(233,239,250,.35);transition:background .2s,transform .2s}
.live-dock button[aria-current=true]{background:rgba(233,239,250,.1);color:#fff}
.live-dock button[aria-current=true] i{background:var(--a);transform:scale(1.25)}
.live-dock .ld-s{width:34px;padding:0;justify-content:center}
.live-dock .ld-s svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}

/* pages fade between titles instead of snapping */
.ew-fade{animation:ewFade .28s var(--ease) both}
@keyframes ewFade{from{opacity:.001}to{opacity:1}}

@media (max-width:760px){
  .live-dock{bottom:10px;max-width:calc(100% - 20px)}
  .live-dock button span{display:none}
  .live-dock button[aria-current=true] span{display:inline}
  .ghost-btn,.solid-btn,.mast-back{--ctl-h:34px}
  .tb-view{--ctl-h:32px}
}
@media (prefers-reduced-motion:reduce){
  .ew-app,.live-dock,.mt-titles .mt-ind,.tb-view .tbv-thumb,.ew-fade{animation:none!important;transition:none!important}
}
@media (forced-colors:active){
  .tb-view .tbv-thumb,.mt-titles .mt-ind{background:Highlight}
  .tb-view button.on{color:HighlightText!important}
}
.live-dock button span{white-space:nowrap}
@media (max-width:760px){
  .masthead{row-gap:8px}
  body.has-app .masthead-actions{display:none}
  .tb-view [data-view=live] span{font-size:0}
  .tb-view [data-view=live] span::after{content:"Live";font-size:12px}
  .page-readout{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:42vw}
}
