/* The CTA Holiday Train and Bus doors on ridestratus.com/holiday: wall, strip and day popups.
   Colors are the site's (DESIGN.md) and the app's (the popup rows copy the phone app's cards).
   Every custom property starts with --hd- so it cannot meet the page's own. */
:root{
  --hd-wall:url("assets/holiday-doors/wall.webp");
  --hd-ground:#0A1220;
  --hd-bar:#080D17;
  --hd-surface:#11151D;
  --hd-text:#EEF1F6;
  --hd-body:#DCE2EB;
  --hd-muted:#98A2B3;
  --hd-cyan:#34C6E4;
  --hd-ink:#070A0F;
  --hd-rule:rgba(238,241,246,.12);
  --hd-rule-strong:#586173;
  --hd-bus:#58585C;
}
html:has(dialog[open]){overflow:hidden}
.doors-sec,dialog{font-size:17px;line-height:1.4;font-weight:350}

dialog h2,dialog h3,dialog p,dialog ul{margin:0}

.wall{position:relative;margin-top:24px;width:min(100%,640px);aspect-ratio:2160/1980;background-color:var(--hd-bar);border-radius:14px;overflow:hidden}
.wall-img{position:absolute;inset:0;display:block;width:100%;height:100%}
.d{position:absolute;display:block;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:var(--hd-text);font:inherit;cursor:pointer;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.d:focus-visible{outline:2px solid var(--hd-cyan);outline-offset:-3px;background:rgba(52,198,228,.10)}
.door{position:absolute;display:block;overflow:hidden;pointer-events:none;background:#150C07;visibility:hidden;transition:visibility 0s linear .6s}
.d[data-open] .door{visibility:visible;transition-delay:0s}
.door::before{content:"";position:absolute;inset:0;background:
  radial-gradient(ellipse 80% 24% at 50% 3%,rgba(255,236,190,1),rgba(255,200,120,0) 100%),
  radial-gradient(ellipse 110% 70% at 50% 24%,rgba(240,150,64,.7),rgba(240,150,64,0) 100%),
  linear-gradient(180deg,#7A4620 0%,#46250F 42%,#1C0E06 100%);
  box-shadow:inset 0 0 0 1px rgba(10,5,2,.7),inset 0 -3px 4px rgba(0,0,0,.45)}
.hl,.hr{position:absolute;top:0;bottom:0;width:50%;display:block;background-image:var(--hd-wall);background-repeat:no-repeat;background-size:var(--bs) auto;transition:transform .55s cubic-bezier(.3,.7,.2,1)}
.hl{left:0;background-position:var(--bx0) var(--by)}
.hr{right:0;background-position:var(--bx1) var(--by)}
.d[data-open] .hl{transform:translateX(-90%)}
.d[data-open] .hr{transform:translateX(90%)}

/* The motion button: the same round 44px button as on the Holiday Train page, in the page flow directly under the wall. */
.motion{display:grid;place-items:center;width:44px;height:44px;margin:12px 0 0;padding:0;border:1px solid var(--hd-rule);border-radius:50%;background:rgba(8,13,23,.78);color:var(--hd-body);cursor:pointer;transition:border-color .2s,color .2s;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.motion svg{display:block;width:14px;height:14px;fill:currentColor}
.motion .play,.still .motion .pause{display:none}
.still .motion .play{display:block}
.motion:hover{border-color:var(--hd-text);color:var(--hd-text)}
.motion:focus-visible{outline:2px solid var(--hd-cyan);outline-offset:4px;border-radius:50%}

.btn:focus-visible,.x:focus-visible,.pop-get a:focus-visible,.d:focus-visible{outline:2px solid var(--hd-cyan);outline-offset:4px}

dialog{position:fixed;left:0;right:0;bottom:0;top:auto;margin:0;width:100%;max-width:none;max-height:none;padding:0;border:0;border-top:1px solid #232A35;border-radius:14px 14px 0 0;background:#070A0F;color:var(--hd-body);overflow:hidden}
dialog::backdrop{background:rgba(7,10,15,.8)}
.sheet{max-height:92vh;max-height:92svh;overflow-y:auto;overscroll-behavior:contain;padding:18px max(16px,env(safe-area-inset-right,0px)) max(24px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.sh-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.strip{width:min(100%,640px);margin-top:12px;padding:16px;background:#070A0F;border:1px solid #232A35;border-radius:14px}
.sh-head .btn[hidden]{display:none}
.sh-head .btn{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:10px 16px;border:0;border-radius:4px;background:var(--hd-cyan);color:var(--hd-ink);font-family:"Hanken Grotesk",system-ui,sans-serif;font-size:16px;font-weight:600;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.app{font-family:"Hanken Grotesk",system-ui,sans-serif;font-weight:400;color:#F4F1EC}
.a-headwrap{flex:1;min-width:0}
.a-sec{margin:0;padding:10px 2px 6px;font-size:18px;line-height:1.25;font-weight:600;color:#F4F1EC}
h3.a-sec{padding-left:14px}
.a-run{padding-top:0;padding-bottom:6px;font-size:14px;font-weight:600;color:#98A2B3}
.a-day{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:11px 14px;background:#1A1F29;border:1px solid #232A35;border-radius:12px;box-shadow:0 4px 12px rgba(0,0,0,.08)}
.sh-title{margin:0;text-wrap:balance;font-size:16px;line-height:1.3;font-weight:600;letter-spacing:-.01em;color:#F4F1EC}
.chips{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px}
.sw{display:inline-block;width:12px;height:12px;border-radius:4px}
.rc{display:inline-block;flex:none;min-width:38px;padding:0 8px;border:1px solid;border-radius:4px;font-size:14px;font-weight:600;line-height:22px;font-variant-numeric:tabular-nums;text-align:center}
.rc-x{border-color:rgba(152,162,179,.5);color:#F4F1EC}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.a-note{margin:4px 0 6px 28px;padding:0 2px;font-size:14px;line-height:1.4;color:#F4F1EC}
.a-card{margin:0 0 4px 28px;padding:9px 8px;background:rgba(18,22,30,.7);border-radius:8px}
.a-row{display:grid;grid-template-columns:46px minmax(0,1fr) auto;column-gap:4px;align-items:center;min-height:42px;box-sizing:border-box}
.a-chipcol{display:flex;align-items:center}
.a-chipcol .chips{margin-top:0}
.a-chipcol .rc{margin-top:0}
.a-title{font-size:15px;line-height:20px;font-weight:600;color:#F4F1EC;min-width:0}
.a-time{justify-self:end;text-align:right;font-size:15px;line-height:20px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;color:#F4F1EC}
.x{flex:none;width:44px;height:44px;margin:0;padding:0;border:1px solid var(--hd-rule-strong);border-radius:22px;background:var(--hd-bar);color:var(--hd-text);cursor:pointer;display:grid;place-items:center;-webkit-tap-highlight-color:transparent}
.x svg{display:block;width:16px;height:16px;stroke:var(--hd-text)}
.none{margin-top:14px;font-size:16px;line-height:1.3;color:var(--hd-text)}
.none b{display:block;font-size:18px;line-height:1.25;font-weight:600;margin-bottom:6px}
.today{display:grid;gap:20px;margin-top:2px}
.mapbox{position:relative;width:100%;min-width:min(320px,100%);min-height:320px;aspect-ratio:1;border:1px solid #232A35;border-radius:14px;background:var(--hd-bar);overflow:hidden}
.mapbox.ph{display:grid;place-items:center;border:1px dashed var(--hd-rule-strong);color:var(--hd-muted);font-size:16px;font-weight:600;text-align:center}
.mapbox[data-off]{height:0;min-height:0;aspect-ratio:auto;border-width:0}
.map-msg{margin-top:10px;font-size:14px;color:var(--hd-text)}
.live-side{margin-top:14px}
.credit{font-size:14px;line-height:1.4;color:var(--hd-muted)}
.app-line{margin-top:12px;font-size:16px;line-height:1.4;color:var(--hd-body)}
.pop-foot{margin-top:18px;padding-top:16px;border-top:1px solid #232A35}
.pop-get{display:flex;flex-wrap:wrap;gap:12px;margin-top:14px;line-height:0}
.pop-get img{display:block;width:auto;height:48px}

@keyframes sheetUp{from{transform:translateY(100%)}to{transform:none}}
@keyframes sheetDown{from{transform:none}to{transform:translateY(100%)}}
@keyframes pop{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@keyframes popOut{from{opacity:1}to{opacity:0}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
dialog[open]{animation:sheetUp .3s cubic-bezier(.2,.8,.2,1)}
dialog[open]::backdrop{animation:fadeIn .3s ease-out}
dialog[open].closing{animation:sheetDown .22s ease-in forwards}
dialog[open].closing::backdrop{opacity:0;transition:opacity .22s}

@media (max-width:480px){
  .strip{padding:12px}
}
@media (min-width:1100px){
  #doors-body{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:32px;align-items:start;margin-top:24px}
  #doors-body .wall-col{min-width:0}
  #doors-body .wall{margin-top:0;width:100%}
  #doors-body .strip{margin-top:0;width:100%}
}
@media (min-width:720px){
  dialog{position:fixed;inset:0;margin:auto;width:min(560px,calc(100vw - 32px));height:fit-content;max-height:calc(100vh - 32px);border-radius:14px;border:1px solid #232A35}
  dialog.today-d{width:min(900px,calc(100vw - 32px))}
  .sheet{max-height:calc(100vh - 34px);padding:24px 28px 28px}
  .live-side{margin-top:16px}
  dialog[open]{animation:pop .24s ease-out}
  dialog[open].closing{animation:popOut .16s ease-in forwards}
}
@media (min-width:900px){
  .today{grid-template-columns:minmax(0,1fr) 372px;gap:28px;align-items:start}
  .pop-get img{height:56px}
}
/* Motion stopped: by the "Pause motion" button (html.still), or by the visitor's system asking for reduced motion until the
   visitor presses "Play motion" (html.motion-on). Both blocks stop the same things. */
.still .hl,.still .hr,.still .door{transition:none}
.still dialog[open],.still dialog[open]::backdrop,.still dialog[open].closing{animation:none}
.still dialog[open].closing::backdrop{transition:none}
@media (prefers-reduced-motion:reduce){
  html:not(.motion-on) .hl,html:not(.motion-on) .hr,html:not(.motion-on) .door{transition:none}
  html:not(.motion-on) dialog[open],html:not(.motion-on) dialog[open]::backdrop,html:not(.motion-on) dialog[open].closing{animation:none}
  html:not(.motion-on) dialog[open].closing::backdrop{transition:none}
  .motion{transition:none}
}
