/* BoEG's frame: the Park Day Index's rules for its masthead, product switch, legend card, map buttons, compass, sheet,
   headline bar, time bar and sections. Both pages link this file (index.html and venues.html; since 14 Nov 2026 the park
   holds no copy of its own): change the frame here, once. The last part, Park Aura's switch, is copied from aura_ui.js by
   scripts/frame_css.mjs; tests/venue_lab.mjs fails while it differs or while index.html's <style> holds a frame rule. */
:root{background:#0a3a7a;--navy:#0a3a7a;--navy2:#4a7cc0;--link:#1d4fa0;--rule:#b9c7da;--cell:#e8eef6;--text:#111;--muted:#555;--warn:#fbec8f;--panel:#fffffff2;--bg:#dfe7ee;--red:#c00;--green:#3a6a10;--bar:#7bb043;--barline:#5a8a2a}
html,body{margin:0;height:100%;background:var(--bg);color:var(--text);font:13px/1.45 'ABC Areal',Arial,Helvetica,sans-serif;font-variant-numeric:tabular-nums;overflow:hidden;-webkit-tap-highlight-color:transparent}
header{position:fixed;top:0;left:0;right:0;height:42px;background:var(--navy);border-bottom:4px solid var(--navy2);color:#fff;display:flex;align-items:center;gap:8px;padding:0 10px;z-index:5}
header .logo{flex:none}
header .brand{flex:1;display:flex;align-items:baseline;gap:7px;min-width:0}
header .brand b{font-size:17px;letter-spacing:.02em}
header .brand span{font-size:12px;color:#c9d8ee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header button{background:transparent;color:#fff;border:1px solid #ffffff66;font-size:12px;padding:4px 9px}
#timebar{left:50%;transform:translateX(-50%);bottom:12px;width:min(780px,calc(100% - 24px));padding:6px 10px}
#timebar .top{display:flex;align-items:center;gap:8px}
#play{font-size:13px;width:34px;height:28px}
#bigtime{font-size:20px;color:var(--red);min-width:62px}
#time{width:100%;margin:4px 0 0}
@media (max-width:700px){
  header{height:38px}
  #timebar{bottom:0;width:100%;border-left:0;border-right:0;padding:4px 8px calc(4px + env(safe-area-inset-bottom))}
  #timebar .muted{display:none}
}
.beta,header .brand .beta{display:inline-block;font-size:10px;font-weight:bold;letter-spacing:.08em;background:#f6c343;color:#0a3a7a !important;padding:1px 4px;vertical-align:3px;margin-left:4px}
@media (max-width:700px){
  header b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}
#compassBtn{position:fixed;right:12px;top:96px;z-index:4;width:40px;height:40px;padding:0;display:flex;align-items:center;justify-content:center}
@media (max-width:700px){
  #compassBtn{right:104px;top:48px;height:36px}
}
#timebar .tog{font-size:12px;min-height:28px;padding:0 8px;display:inline-flex;gap:3px;align-items:center}
#timebar .tog[aria-pressed=true]{background:var(--navy);color:#fff}
@media (max-width:700px){
  #timebar .tog span.l{display:none}
  header .brand .sub{display:none}
  header .brand b{overflow:visible;font-size:17px}
  #timebar .top{gap:5px}
}
@media (max-width:380px){
  header .brand b{font-size:15px}
}
header .hbtn{display:inline-flex;align-items:center;gap:5px;color:#fff;border:1px solid #ffffff66;padding:4px 9px;min-height:30px;text-decoration:none;font-size:13px;background:transparent;position:relative}
header .hbtn::after{content:'';position:absolute;top:-8px;bottom:-12px;left:-4px;right:-4px}
header .brand .beta{align-self:center}
header .brand .sub{font-size:12px;color:#c9d8ee;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:700px){
  header .hbtn .lbl,header .brand .sub{display:none}
  header .hbtn{padding:4px 8px}
}
@media (max-width:480px){
  header .brand b{font-size:16px}
}
html,body{touch-action:pan-x pan-y}
#mapctl{position:fixed;right:10px;top:52px;z-index:6;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
#mapctl>button{background:#fff;border:1px solid var(--rule);color:var(--navy);font-weight:bold;min-height:44px;min-width:44px;padding:4px 10px;box-shadow:0 1px 4px #0002;display:inline-flex;gap:5px;align-items:center}
#sheet{position:fixed;left:0;right:0;bottom:0;z-index:7;background:#fff;border-top:3px solid var(--navy);box-shadow:0 -4px 18px #0002;display:flex;flex-direction:column;max-height:calc(100% - 46px);padding-bottom:env(safe-area-inset-bottom)}
#sheet.settling{transition:top .24s cubic-bezier(.2,.8,.2,1)}
#sheet.drag .sbody,#sheet.settling .sbody{display:block!important;max-height:none!important;overflow:hidden}
#sheet.drag #scroll,#sheet.settling #scroll{max-height:none!important}
#sheet[data-state=card] .sbody{touch-action:pan-x;overflow-y:hidden}
#sheet #time{pointer-events:none}
#sheet #timebar{touch-action:none}
#sheet .sgrab{display:flex;justify-content:center;touch-action:none;cursor:grab}
#sheetGrab{position:relative;z-index:4;background:none;border:0;width:150px;min-height:24px;display:flex;align-items:center;justify-content:center;padding:0}
#sheetGrab::after{content:'';position:absolute;left:0;right:0;top:0;height:44px}
/* lowered (bar, or mini while a pin is placed) the Index shows the time bar right under the handle, so the handle's 44 px
   reach goes up over the map's edge instead of down over the time bar's buttons (the UI lab, 19 Nov 2026: 24 px there
   before). Park Aura keeps its one line there, whose own tap opens the same rest: the reach stays down over it. */
body:not(.auraOn) #sheet:is([data-state=bar],[data-state=mini]) #sheetGrab::after{top:-20px}
#sheetGrab span{width:46px;height:5px;border-radius:3px;background:#9fb3cc}
#sheet .shead{touch-action:none;padding:0 10px}
#sheet[data-state=full] .shead{touch-action:pan-y}
#sheet .sbody{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;min-height:0;flex:1}
#sheet[data-state=bar] .sbody{overflow:hidden}
#sheet[data-state=bar] .sbody>:not(.shead){display:none}
body:not(.auraOn) #sheet[data-state=bar] .sbody{display:none}
body:not(.auraOn) #sheet[data-state=card] #scroll{max-height:min(38vh,360px);overflow:hidden}
#sheet[data-state=full]{top:46px}
#sheet #timebar{position:static;transform:none;width:auto;border:0;padding:2px 0 4px;box-shadow:none;background:none;display:block}
.minibar{padding:2px 0 0;font-size:13px;font-variant-numeric:tabular-nums;container-type:inline-size}
.minibar .slot{display:inline-grid;vertical-align:baseline}
.minibar .slot>*{grid-area:1/1;white-space:nowrap}
.minibar .slot>.sz{visibility:hidden}
.minibar .r1{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:0 10px}
.minibar .r1 .tb{display:flex;flex-direction:column;min-width:0}
.minibar .t{font-size:28px;font-weight:bold;letter-spacing:-.02em;color:#1b2333;line-height:1.05}
.minibar .best{color:#444;font-size:13px}
.minibar .best b{color:#111}
.minibar .best .cond{display:block;font-size:11px;color:#6b7684;white-space:nowrap}
.minibar .idx{display:flex;align-items:center;gap:6px;line-height:1}
.minibar .bw{display:flex;flex-direction:column;align-items:flex-end;font-size:13px;font-weight:bold}
.minibar .bw small{font-weight:normal;color:#6b7684;margin-top:4px}
.minibar .n{font-size:30px;font-weight:bold}
.minibar .r2{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 10px;color:#444;font-size:12px;margin-top:4px}
.minibar .r2>span{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.minibar .r3{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:2px 10px;color:#444;font-size:12px;margin-top:2px}
.minibar .r3>span{white-space:nowrap}
.minibar .r4{color:#111;font-size:12px;margin-top:2px}
.minibar .best{white-space:nowrap}
.minibar .rlab{flex-wrap:wrap;row-gap:0}
.minibar .rlab>span{white-space:nowrap}
@container (max-width:330px){
  .minibar .t{font-size:24px}
  .minibar .n{font-size:26px}
  .minibar .r1{gap:0 8px}
  .minibar .r2,.minibar .r3{font-size:11px;column-gap:6px}
}
.rlab{display:flex;justify-content:space-between;font-size:11px;color:#444;margin-top:2px;gap:6px}
.rlab .burn{color:inherit}
@media (min-width:701px){
  #sheet{left:12px;right:auto;bottom:12px;width:410px;border:1px solid var(--rule);border-top:3px solid var(--navy);max-height:calc(100% - 70px)}
  #sheet[data-state=full]{top:56px}
  body:not(.auraOn) #sheet[data-state=card] #scroll{max-height:calc(100vh - 330px)}
}
@media (max-width:480px){
  header{gap:5px;padding:0 6px}
  header .logo{width:24px;height:24px}
  header .brand{gap:3px}
  header .brand b{font-size:15px}
}
@media (max-width:700px){
  #sheet #timebar .top{gap:6px}
}
/* sideways only: the sheet clips what would spill across the screen, not the handle's reach up over the map (overflow-x:
   clip keeps overflow-y visible, which hidden cannot; a browser without clip keeps hidden, as before 19 Nov 2026) */
#sheet{overflow:hidden;overflow-x:clip;overflow-y:visible}
#sheet .sbody{overflow-x:hidden}
#sheet *{max-width:100%}
#sheet[data-state=mini] .minibar .r2,#sheet[data-state=mini] .minibar .r3,#sheet[data-state=mini] .minibar .r4,#sheet[data-state=mini] .rlab,#sheet[data-state=mini] .sbody{display:none}
#sheet[data-state=mini] #miniBar{display:block}
#compassBtn{display:flex!important;position:fixed;right:10px;top:98px;z-index:6;width:44px;height:44px;background:#fff;border:1px solid var(--rule);box-shadow:0 1px 4px #0002}
#sheet #timebar{display:block;padding:2px 0 calc(2px + env(safe-area-inset-bottom))}
#sheet #timebar .top{display:flex;align-items:center;gap:10px;min-height:44px}
#sheet #timebar .top>*:not(#dateBtn):not(#play):not(#bigtime):not(#nowBtn){display:none!important}
#timebar #dateBtn{flex:none;display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 12px;border:1px solid #c9d3df;border-radius:999px;background:#fff;color:#1b2333;font-weight:bold;font-size:15px;white-space:nowrap}
#timebar #dateBtn svg.ico{width:16px;height:16px}
#sheet #play{flex:none;width:44px;height:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:var(--navy);color:#fff;font-size:15px}
#sheet #bigtime{display:block;flex:1;min-width:0;text-align:center;font-size:17px;font-weight:bold;color:#1b2333;font-variant-numeric:tabular-nums;white-space:nowrap}
#nowBtn{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:78px;padding:0 14px;border:1px solid transparent;border-radius:999px;background:#c8102e;color:#fff;font-weight:bold;font-size:15px}
#nowBtn::before{content:'';width:8px;height:8px;border-radius:50%;background:currentColor}
#nowBtn[aria-pressed=true]{background:none;color:#6b7684;border-color:#d5deea;font-weight:normal}
.trackrow{position:relative;height:58px}
.trackrow .trk{position:absolute;left:14px;right:14px;top:16px;height:12px;border-radius:6px;background:var(--track,#d5deea);box-shadow:inset 0 0 0 1px #0002}
#sheet #timebar #time{position:absolute;left:0;top:0;width:100%;height:44px;margin:0;background:none;-webkit-appearance:none;appearance:none}
#time::-webkit-slider-runnable-track{height:44px;background:none;border:0}
#time::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:28px;height:28px;margin-top:8px;border-radius:50%;background:#fff;border:3px solid var(--navy);box-shadow:0 1px 4px #0006}
#time::-moz-range-track{height:44px;background:none;border:0}
#time::-moz-range-thumb{box-sizing:border-box;width:28px;height:28px;border-radius:50%;background:#fff;border:3px solid var(--navy);box-shadow:0 1px 4px #0006}
#time:focus-visible::-webkit-slider-thumb{outline:3px solid #f2b705;outline-offset:2px}
.trackrow .hrs{position:absolute;left:14px;right:14px;top:41px;height:15px;font-size:11px;line-height:15px;color:#6b7684}
.trackrow .hrs span{position:absolute;top:0;transform:translateX(-50%);white-space:nowrap}
.trackrow .hrs span:first-child{transform:none}
.trackrow .hrs span:last-child{transform:translateX(-100%)}
#loupe{position:fixed;z-index:60;background:#fff;border:1px solid #d5deea;border-radius:12px;box-shadow:0 6px 18px #0003;padding:8px 0 6px;text-align:center;pointer-events:none}
#loupe .lt{font-size:22px;font-weight:bold;color:#1b2333;font-variant-numeric:tabular-nums}
#loupe .lc{font-size:12px;color:#6b7684;margin:1px 0 4px}
#loupe svg{display:block;width:100%;height:34px;font-size:11px;fill:#444}
#sheet .shead{position:relative;z-index:3;background:#fff;box-shadow:0 5px 6px -5px #0004;border-bottom:1px solid #e3e8ef;padding-bottom:6px}
#sheet[data-state=mini] .shead,#sheet[data-state=bar] .shead{box-shadow:none;border-bottom:0}
.minibar .tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 8px;margin-top:8px}
.minibar .tile{display:flex;align-items:center;gap:4px;font-size:11px;line-height:1.1;min-width:0;border:0!important;padding:0!important;background:none!important;box-shadow:none!important;min-height:0!important}
.minibar .tile svg{flex:none;width:18px;height:18px}
.minibar .tile span{min-width:0}
.minibar .tile b{display:block;font-size:12px;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minibar .tile small{display:block;color:#6b7684;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sheet[data-state=mini] .tiles,#sheet[data-state=bar] .tiles{display:none}
#mapScale{position:fixed;z-index:5;left:10px;top:54px;display:flex;align-items:stretch;background:#ffffffee;border:1px solid var(--rule);border-radius:10px;box-shadow:0 1px 4px #0002;font-size:11px;color:#333;width:min(320px,calc(100vw - 118px));overflow:hidden}
#mapScale .lb{display:flex;justify-content:space-between;font-size:10px;color:#555}
@media (min-width:701px){
  #mapScale{left:440px}
}
#scroll{padding:0 0 12px}
#scroll .q{padding:14px 12px 10px;border-top:6px solid #eef2f7;scroll-margin-top:52px}
#scroll .q[hidden]{display:none}
#scroll .q>h2{display:flex;align-items:baseline;gap:8px;margin:0 0 8px;font-size:19px;line-height:1.2;font-weight:bold;color:var(--navy)}
#scroll .q>h2 small{flex:1;font-size:12px;font-weight:normal;color:#6b7684}
#scroll .q>h2 .i{align-self:center;margin-left:auto}
#scroll .q .box{margin:0;border:0;padding:0;box-shadow:none;background:none}
#scroll .q>*+.box{margin-top:16px}
#scroll .q .box>.sec:first-child{font-size:15px;font-weight:bold;color:var(--navy)}
#jump{position:static;display:flex;gap:6px;overflow-x:auto;padding:8px 12px;background:#fff;border-bottom:1px solid #e3e8ef;scrollbar-width:none}
#jump::-webkit-scrollbar{display:none}
#jump a{position:relative;flex:none;display:flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid #9fb3cc;border-radius:18px;color:var(--navy);font-size:13px;font-weight:bold;text-decoration:none}
#jump a::after{content:'';position:absolute;left:0;right:0;top:-4px;bottom:-4px}
body.simple #jump,#sheet:not([data-state=full]) #jump{display:none}
#scroll .facts{margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #e3e8ef;font-size:15px;line-height:1.4}
#scroll .facts:empty{display:none}
.act1{display:flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;border:1px solid var(--navy);background:#eef3fa;color:var(--navy);font:inherit;font-size:15px;font-weight:bold;cursor:pointer}
#scroll .hint{margin:6px 0 0;font-size:12.5px}
#sheet>#timebar{padding:4px 10px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #e3e8ef;background:#fff}
.minibar .r0{font-size:13px;font-weight:bold;color:var(--navy);margin-bottom:1px;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
.minibar .r0>span{white-space:nowrap;flex:none}
.minibar .r0 small{min-width:0;font-weight:normal;color:#6b7684;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.minibar .r0 .iss{flex:none;position:relative;display:inline-flex;align-items:center;gap:4px;min-height:26px;margin:-6px -6px -6px 0;padding:0 6px;border:0;background:none;font:inherit;font-size:11.5px;font-weight:normal;color:#5b6676;cursor:pointer}
.minibar .r0 .iss svg{flex:none;color:var(--navy)}
.minibar .r0 .iss::after{content:'';position:absolute;inset:-18px -4px 0}
header .mode{display:none!important}
#mapScale .lg-main{flex:1;min-width:0;display:block;min-height:44px;margin:0;padding:4px 8px 4px;line-height:1.15;border:0;border-radius:0;background:none;color:#333;font:inherit;font-size:11px;text-align:left;cursor:pointer}
#mapScale .lg-h{display:flex;align-items:center;gap:4px;min-width:0;white-space:nowrap;font-weight:bold;font-size:12.5px;color:var(--navy)}
#mapScale .lg-h .nm{overflow:hidden;text-overflow:ellipsis;line-height:16px}
#mapScale .lg-h svg.ico{flex:none;width:12px;height:12px}
#mapScale .cm{margin-left:auto;overflow:hidden;text-overflow:ellipsis;font-weight:normal;font-size:11px;color:#8a5a00}
#mapScale .cm:empty{display:none}
#mapScale .sc{display:block;height:8px;margin:4px 0 2px;border-radius:2px}
.scw{position:relative;display:block}
.sc-at{position:absolute;top:-3px;width:0;height:0;border:6px solid transparent;border-top:7px solid #c00;transform:translateX(-6px)}
.lb{display:flex;justify-content:space-between;gap:4px;font-size:10px;color:#555}
.lb.cells{display:grid;gap:2px;text-align:center}
#mapScale .lb{display:flex;justify-content:space-between;gap:4px;white-space:nowrap;font-size:10px;color:#555}
#mapScale .lb span{overflow:hidden;text-overflow:ellipsis}
#mapScale .lg-key{flex:none;min-width:48px;min-height:44px;margin:0;padding:0 8px;border:0;border-left:1px solid #e3e8ef;border-radius:0;background:none;color:var(--navy);font-weight:bold;font-size:12px}
/* Park Aura's product switch: copied from viewer/aura_ui.js by scripts/frame_css.mjs (do not edit below) */
@media (max-width:340px){
  #paSwitch button{padding:0 6px!important;font-size:11px!important}
  #paSwitch{margin-left:0}
  body.hasAura header .logo{display:none}
}
#paSwitch{display:inline-flex;flex:none;border:1px solid rgba(255,255,255,.75);border-radius:999px;margin-left:4px}
#paSwitch button{position:relative;background:none;border:0;color:#fff;font:600 12px/1 'ABC Areal', Arial, Helvetica, sans-serif;padding:0 11px;min-height:32px;min-width:44px;cursor:pointer;white-space:nowrap}
#paSwitch button:first-child{border-radius:999px 0 0 999px}
#paSwitch button:last-child{border-radius:0 999px 999px 0}
#paSwitch button::after{content:'';position:absolute;left:0;right:0;top:-8px;bottom:-12px}
#paSwitch button[aria-pressed=true]{background:#fff;color:#0a3a7a}
@media (max-width:560px){
  #paSwitch .long{display:none}
}
#paSwitch .swbat{display:inline-block;vertical-align:1px;margin-right:4px;fill:currentColor}
@media (max-width:560px){
  body.hasAura header .brand .sub,body.hasAura header .beta,body.hasAura header .mode{display:none!important}
}
@media (max-width:400px){
  body.hasAura header .brand{display:none!important}
  #paSwitch button{padding:0 8px;font-size:11.5px}
}
