:root { color-scheme: dark; font: 16px/1.5 'DM Sans','Segoe UI',sans-serif; background:#071b15; color:#f8f6ec; }
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(ellipse at top right,#5c2230,transparent 47%),linear-gradient(130deg,#071b15,#123c2c); }
a { color:inherit; text-underline-offset:3px; }
main { width:min(1380px,94vw); margin:24px auto 0; padding-bottom:30px; }
h1 { font:500 clamp(2.4rem,5.5vw,4rem)/1.1 Georgia,serif; margin:0; }
.tracker-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(270px,1fr); border-radius:19px; overflow:hidden; border:1px solid #819d894d; background:#142b24c9; backdrop-filter:blur(18px); }
#live-map { min-height:520px; height:min(69vh,810px); color-scheme:light; color:#172d23; background:#e6ece6; }
.tracker-runs { padding:20px; }
.tracker-runs article { border-bottom:1px solid #78948466; padding:12px 0; }
.tracker-runs h2 { font-size:1.15rem; margin:0; }
.tracker-runs p { margin:.4em 0; }
.tracker-runs button { font:inherit; min-height:44px; padding:8px 14px; background:#973048; color:white; border:1px solid #d48594; border-radius:10px; cursor:pointer; }
.tracker-runs button[aria-pressed=true] { background:#226141; border-color:#9bceaf; }
.sleigh { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:white; border:4px solid #237b45; box-shadow:0 2px 7px #0006; position:relative; }
.sleigh.delayed { border-color:#aa293b; }
.sleigh-icon { font-size:23px; line-height:1; }
.sleigh-heading { position:absolute; inset:-12px; transform:rotate(var(--bearing)); pointer-events:none; }
.sleigh-heading::before { content:''; position:absolute; top:0; left:50%; transform:translateX(-50%); border-left:5px solid transparent; border-right:5px solid transparent; border-bottom:9px solid #202a24; filter:drop-shadow(0 0 1px white); }
.tracker-label { display:inline-flex; gap:6px; align-items:center; }
.tracker-label::before { content:''; width:10px; height:10px; border-radius:50%; background:#acb0a7; }
.tracker-label.fresh::before { background:#81d99a; }
.tracker-label.delayed::before,.tracker-label.lost::before { background:#ff8b99; }
#eta:not(:empty) { padding:12px 0; font-weight:600; }
@media(max-width:760px) { .tracker-layout { grid-template-columns:1fr; } #live-map { min-height:285px; height:48svh; } }
.department-view { min-height: 100svh; display: flex; flex-direction: column; }
.department-view main { width: 100%; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; }
.department-view #tracker-status { margin: 0; padding: 7px 12px; font-size: .94rem; }
.department-view #live-map,.department-view #legacy-view iframe { min-height: 235px; height: auto; flex: 1; }
.department-view #legacy-view:not([hidden]) { display: flex; flex-direction: column; flex: 1; }
.department-view #legacy-view iframe { width: 100%; display: block; border: 0; }
.department-view #legacy-view > a { display: inline-block; padding: 6px 12px; }
.department-view .tracker-runs { padding: 0 12px; }
.department-view #eta:empty { margin: 0; }
.department-view [hidden] { display: none !important; }
.tracker-layout:has(#legacy-view:not([hidden])) { display:block; }
.tracker-layout #legacy-view iframe { width:100%; height:clamp(320px,65svh,810px); display:block; border:0; }
.tracker-layout #legacy-view a { display:inline-block; padding:8px 16px; }
.tracker-layout:has(#legacy-view:not([hidden])) .tracker-runs { display:none; }
#other-departments { margin-top:16px; padding:12px 16px; background:#142b24; border:1px solid #506b5a; border-radius:12px; }
#other-departments summary { cursor:pointer; font-weight:650; }
#other-departments select { max-width:100%; min-height:44px; }
#other-department-map iframe { display:block; width:100%; height:clamp(290px,56svh,640px); border:0; margin-top:10px; }
