@font-face{font-family:Lato;src:url('/assets/fonts/lato-regular-latin.woff2')}@font-face{font-family:Lato;src:url('/assets/fonts/lato-bold-latin.woff2');font-weight:700}@font-face{font-family:Lato;src:url('/assets/fonts/lato-black-latin.woff2');font-weight:900}@font-face{font-family:Oswald;src:url('/assets/fonts/oswald-variable-latin.woff2');font-weight:500 700}
:root{--navy:#001d41;--blue:#00a1df;--warning:#ffd100;--ink:#102f47;--muted:#536e7f;--canvas:#f1f7fa;--line:#bfd8e4;--routes-shown:8;--departures-shown:4;font-family:Lato,Arial,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none}:root[data-departures-shown="1"]{--departures-shown:1}:root[data-departures-shown="2"]{--departures-shown:2}:root[data-departures-shown="3"]{--departures-shown:3}:root[data-departures-shown="4"]{--departures-shown:4}:root[data-departures-shown="5"]{--departures-shown:5}
*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;height:100%;margin:0;overflow:hidden}body{background:var(--canvas)}
.screen{width:100vw;height:100vh;height:100dvh;display:grid;grid-template-rows:minmax(0,1fr) auto}.content{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}.board{display:flex;flex-direction:column;min-width:0;min-height:0;padding:.8vh 1vw .6vh}
.board-heading{display:flex;align-items:center;justify-content:space-between;gap:1vw;padding:0 .5vw .5vh}.board-heading h1{margin:0;margin-right:auto;color:var(--navy);font:650 clamp(20px,3vh,36px)/1 Oswald,sans-serif;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.board-state{display:flex;align-items:center;gap:.6vw}.route-count,.status{padding:.5vh .6vw;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);font-size:clamp(10px,1.5vh,14px);font-weight:900;white-space:nowrap}.status{display:flex;align-items:center;gap:.4vw}.status i{width:8px;height:8px;border-radius:50%;background:#35aa65;box-shadow:0 0 0 3px rgba(53,170,101,.14)}.clock{display:flex;align-items:baseline;gap:.5vw}.clock time{color:var(--navy);font:700 clamp(20px,3.2vh,36px)/1 Oswald,sans-serif}.clock span{color:var(--muted);font-size:clamp(10px,1.5vh,14px);font-weight:700;white-space:nowrap}
.column-head,.departure{display:grid;grid-template-columns:15% 19% 1fr;align-items:center}.column-head{padding:0 .6vw .4vh;color:var(--muted);font-size:clamp(9px,1.2vh,12px);font-weight:900;letter-spacing:.1em;text-transform:uppercase}.departures{flex:1;min-height:0;display:grid;grid-template-rows:repeat(var(--routes-shown),minmax(0,1fr));gap:.5vh}
.departure{--route-color:#004e72;--route-text:#fff;min-height:0;padding:0 .6vw;background:#fff;border-left:.45vw solid var(--route-color);box-shadow:0 .2vh .6vh rgba(0,29,65,.08);border-radius:6px;overflow:hidden;animation:slide-in .28s ease both}.departure.route-AS{--route-color:#ff6b00;--route-text:#fff}.departure.route-ER,.departure.route-ER.variant-a,.departure.route-ER.variant-b,.departure.route-ER.variant-local{--route-color:#00839c;--route-text:#fff}.departure.route-GI{--route-color:#9795a0;--route-text:#fff}.departure.route-RES{--route-color:#00a1e1;--route-text:#001d41}.departure.route-RR{--route-color:#ff8672;--route-text:#001d41}.departure.route-RS{--route-color:#4e008e;--route-text:#fff}.departure.route-RWS{--route-color:#00a1e1;--route-text:#001d41}.departure.route-SB{--route-color:#ffd100;--route-text:#001d41}.departure.route-SG{--route-color:#d0006f;--route-text:#fff}
.route{min-width:0;display:flex;align-items:center;gap:.5vw}.route-badge{flex:0 0 auto;width:clamp(44px,3.4vw,66px);height:clamp(26px,4.4vh,46px);display:flex;align-items:center;justify-content:center;gap:.3vw;border:2px solid var(--route-color);border-radius:6px;background:var(--route-color);color:var(--route-text);box-shadow:inset 0 0 0 1px rgba(0,29,65,.08)}.route-badge b{font:700 clamp(14px,2.5vh,25px)/1 Oswald}.route-badge-image{padding:.15vw;background:#fff}.route-badge-logo{max-width:100%;max-height:100%;display:block;object-fit:contain}.route-variant{padding:.2em .35em;color:var(--route-color);background:var(--route-text);border-radius:4px;font-size:clamp(7px,1vh,10px);font-weight:950;letter-spacing:.04em;text-transform:uppercase}.route-name{min-width:0;color:var(--navy);font-size:clamp(9px,1.35vh,13px);font-weight:900;line-height:1.08;text-transform:uppercase;overflow-wrap:anywhere}.route-operator{display:block;margin-top:.2vh;color:var(--muted);font-size:clamp(7px,1vh,10px);font-weight:800;letter-spacing:.08em;text-transform:uppercase}.destination{min-width:0;padding-right:.6vw}.destination strong{display:block;color:var(--navy);font-size:clamp(14px,2.5vh,25px);line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.destination span{display:block;margin-top:.2vh;color:var(--muted);font-size:clamp(8px,1.2vh,12px);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.departure-slots{height:100%;display:grid;grid-template-columns:repeat(var(--departures-shown),minmax(0,1fr));align-items:stretch;border-left:1px solid var(--line)}.departure-slot{min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:.3vh;padding:0 .5vw;border-right:1px solid var(--line)}.departure-slot:last-child{border-right:0}.slot-time-row{display:flex;align-items:baseline;gap:.4vw;white-space:nowrap;min-width:0;overflow:hidden}.slot-time-row time{color:var(--navy);font:650 clamp(15px,2.7vh,27px)/1 Oswald}.slot-relative{color:#00749e;font:900 clamp(10px,1.6vh,15px)/1 Lato,Arial,sans-serif;white-space:nowrap}
.departure-last-slot{display:flex;align-items:center;gap:4px;min-height:clamp(14px,2vh,22px);overflow:hidden;white-space:nowrap}.departure-last-badge{display:inline-flex;align-items:center;padding:2px 5px;color:var(--navy);background:var(--warning);border:2px solid #d89a26;border-radius:8px;font-size:clamp(9px,1.4vh,13px);font-weight:950;letter-spacing:.06em;line-height:1;white-space:nowrap}.vessel-delay-badge,.on-time-badge,.scheduled-badge{display:inline-flex;align-items:center;padding:2px 5px;color:#fff;border-radius:6px;font-size:clamp(9px,1.4vh,13px);font-weight:950;line-height:1;white-space:nowrap;unicode-bidi:isolate}.vessel-delay-badge{background:#b83224}.on-time-badge{background:#218a4b}.scheduled-badge{color:var(--navy);background:#e6eef2;border:1px solid var(--line)}.boat-assignment{flex:0 0 auto;display:inline-flex;align-items:center;padding:1px 4px;color:var(--navy);background:#fff;border:1.5px solid var(--navy);border-radius:5px;font:900 clamp(9px,1.4vh,13px)/1 Oswald,Lato,Arial,sans-serif;letter-spacing:.03em;white-space:nowrap}.boat-name{min-width:0;color:#00749e;font-size:clamp(9px,1.3vh,13px);font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.departure-slot.unavailable{color:var(--muted);font-size:clamp(9px,1.3vh,12px);font-weight:700}.empty{display:grid;place-items:center;background:#fff;border:2px solid var(--line);border-radius:8px;text-align:center}.empty strong{display:block;color:var(--navy);font-size:2.5vw}.empty span{display:block;margin-top:1vh;color:var(--muted);font-size:1.15vw}
.screen.override-active{grid-template-rows:minmax(0,1fr)}.screen.override-active .content,.screen.override-active .service-alert-bar{display:none}.manual-override{min-height:0;display:grid;place-items:center;padding:clamp(28px,5vh,76px) clamp(36px,6vw,120px);background:linear-gradient(135deg,#001d41 0%,#003d63 100%)}.manual-override-box{position:relative;width:100%;height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;align-items:center;padding:clamp(28px,4vh,64px) clamp(40px,5vw,100px);overflow:hidden;background:#fff;border:clamp(7px,.75vw,14px) solid var(--warning);border-radius:clamp(12px,1.2vw,24px);box-shadow:0 2vh 5vh rgba(0,15,37,.35);text-align:center}.manual-override-label{justify-self:center;padding:.55em 1.1em;color:var(--navy);background:var(--warning);border-radius:999px;font-size:clamp(18px,1.6vw,30px);font-weight:950;letter-spacing:.12em;line-height:1;text-transform:uppercase}.manual-override-box p{align-self:center;margin:clamp(18px,3vh,44px) 0;color:var(--navy);font:900 clamp(38px,5.2vw,98px)/1.08 Lato,Arial,sans-serif;letter-spacing:-.025em;white-space:pre-wrap;overflow-wrap:anywhere}.manual-override-box[data-size="medium"] p{font-size:clamp(30px,4.1vw,76px)}.manual-override-box[data-size="long"] p{font-size:clamp(22px,2.8vw,52px);line-height:1.14}.manual-override-box small{color:var(--muted);font-size:clamp(14px,1.25vw,23px);font-weight:800;letter-spacing:.04em}
.service-alert-bar{z-index:48;min-height:0;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:clamp(8px,1vw,16px);padding:5px clamp(12px,1.5vw,24px);color:var(--navy);background:#f5f9f8;border-top:3px solid #ffd100;box-shadow:0 -6px 18px rgba(0,29,65,.08);text-align:left}.service-alert-bar.active{background:#fff3c7}.service-alert-bar.stale{background:#f7f1df}.service-alert-bar.unavailable{color:#536b78;background:#edf2f2}.service-alert-icon{width:clamp(24px,3.4vh,36px);height:clamp(24px,3.4vh,36px);overflow:visible;fill:#ffd100;stroke:var(--navy);stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.service-alert-copy{min-width:0}.service-alert-heading{display:flex;align-items:baseline;gap:clamp(6px,.7vw,12px);min-width:0}.service-alert-copy strong,.service-alert-copy small{display:block}.service-alert-copy strong{flex:0 0 auto;font-size:clamp(11px,1.6vh,15px);font-weight:950;letter-spacing:.04em;text-transform:uppercase}.service-alert-copy>span{display:-webkit-box;overflow:hidden;margin-top:1px;font-size:clamp(11px,1.6vh,15px);font-weight:800;line-height:1.12;-webkit-box-orient:vertical;-webkit-line-clamp:2}.service-alert-copy small{min-width:0;margin:0;color:var(--muted);font-size:clamp(8px,1.2vh,11px);font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.service-alert-count{min-width:34px;min-height:26px;display:grid;place-items:center;padding:3px 8px;color:#fff;background:var(--navy);border-radius:999px;font-size:clamp(11px,1.6vh,15px);font-weight:950}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.menu-button{flex:0 0 auto;display:grid;place-items:center;width:38px;height:38px;padding:0;background:#fff;border:1px solid var(--line);border-radius:8px;cursor:pointer;-webkit-tap-highlight-color:transparent}.menu-button:active{background:#e9f2f7}.menu-button:focus-visible,.landing-option:focus-visible,.landing-menu-close:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.menu-icon,.menu-icon::before,.menu-icon::after{display:block;width:18px;height:2.5px;background:var(--navy);border-radius:2px}.menu-icon{position:relative}.menu-icon::before,.menu-icon::after{content:"";position:absolute;left:0}.menu-icon::before{top:-6px}.menu-icon::after{top:6px}
.landing-menu{position:fixed;inset:0;z-index:60;display:flex}.landing-menu-scrim{position:absolute;inset:0;background:rgba(0,15,37,.5)}
.landing-menu-panel{position:relative;display:flex;flex-direction:column;width:min(360px,86vw);max-height:100%;margin-right:auto;background:var(--canvas);box-shadow:0 0 40px rgba(0,15,37,.4);animation:menu-in .18s ease both}
.landing-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:calc(14px + env(safe-area-inset-top)) 14px 12px;background:#fff;border-bottom:1px solid var(--line)}.landing-menu-head strong{color:var(--navy);font:650 20px/1 Oswald,sans-serif;text-transform:uppercase}
.landing-menu-close{padding:8px 14px;color:#fff;background:var(--navy);border:0;border-radius:8px;font:900 13px/1 Lato,Arial,sans-serif;letter-spacing:.04em;text-transform:uppercase;cursor:pointer}
.landing-list{flex:1;min-height:0;overflow-y:auto;margin:0;padding:8px 0 calc(8px + env(safe-area-inset-bottom));list-style:none;-webkit-overflow-scrolling:touch}
.landing-option{display:flex;align-items:center;gap:10px;width:100%;min-height:48px;padding:9px 14px;color:var(--ink);background:transparent;border:0;font:inherit;text-align:left;cursor:pointer}.landing-option:active{background:#e3eef4}
.landing-option-number{flex:0 0 auto;display:grid;place-items:center;min-width:30px;height:26px;padding:0 6px;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:6px;font:900 13px/1 Oswald,sans-serif}
.landing-option-name{min-width:0;font-size:15px;font-weight:800;line-height:1.15}
.landing-option.is-current{background:#fff}.landing-option.is-current .landing-option-number{color:#fff;background:var(--navy);border-color:var(--navy)}.landing-option.is-current .landing-option-name{color:var(--navy)}
body.menu-open{overflow:hidden}
@keyframes menu-in{from{transform:translateX(-12px);opacity:.4}to{transform:none;opacity:1}}
@keyframes slide-in{from{opacity:.25;transform:translateX(1.2vw)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.departure,.landing-menu-panel{animation:none}}

/* Phone layout. The kiosk board fits a fixed 16:9 screen by squishing rows; a phone can't do
   that, so below this width the board becomes a scrolling stack of route cards and each
   departure becomes a full-width row instead of a column. Sizes switch from vh/vw to px so
   they stay legible regardless of how tall the handset is. */
@media(max-width:820px){
  html,body{height:auto;overflow:visible}
  .screen{width:100%;height:auto;min-height:100dvh;display:flex;flex-direction:column}
  .content{display:block;min-height:0}
  /* env() keeps the board clear of a notch and the home indicator. */
  .board{display:block;padding:0 max(10px,env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-right))}
  /* Landing name, clock and freshness stay put while the list scrolls under them. */
  .board-heading{position:sticky;top:0;z-index:20;flex-wrap:wrap;gap:6px 10px;margin:0 -10px;padding:calc(10px + env(safe-area-inset-top)) 12px 8px;background:var(--canvas);border-bottom:1px solid var(--line)}
  /* Hamburger and landing name share the first line; the chips wrap onto the second. */
  .menu-button{order:-1;width:40px;height:40px}
  .board-heading h1{flex:1 1 auto;min-width:0;font-size:20px;line-height:1.1;white-space:normal}
  .board-state{flex:1 1 100%;flex-wrap:wrap;justify-content:flex-start;gap:6px}
  .route-count,.status{padding:4px 7px;font-size:11px}
  /* The clock must never break across lines, so it is the one item that refuses to shrink. */
  .clock{flex:0 0 auto;margin-left:auto;gap:6px;white-space:nowrap}
  .clock time{font-size:20px;white-space:nowrap}
  .clock span{font-size:11px}
  /* Padding slots exist to keep the kiosk grid square. A scrolling phone list doesn't need them. */
  .departure-slot.unavailable{display:none}
  .column-head{display:none}
  .departures{display:flex;flex-direction:column;gap:10px;padding-top:10px}
  /* Each route direction is a card: header on top, departures listed beneath. */
  .departure{display:block;padding:0;border-left-width:5px;border-radius:8px;overflow:hidden}
  .route{gap:8px;padding:9px 10px 0}
  .route-badge{width:52px;height:32px}.route-badge b{font-size:19px}
  .route-name{font-size:11px}.route-operator{font-size:9px;margin-top:2px}
  .destination{padding:2px 10px 9px}
  .destination strong{font-size:19px;white-space:normal}
  .destination span{margin-top:2px;font-size:10px}
  .departure-slots{display:flex;flex-direction:column;height:auto;border-left:0;border-top:1px solid var(--line)}
  /* One departure per row: time and countdown on the first line, status/assignment/vessel below. */
  .departure-slot{gap:3px;padding:8px 10px;border-right:0;border-bottom:1px solid var(--line)}
  .departure-slot:last-child{border-bottom:0}
  .slot-time-row{justify-content:flex-start;gap:8px}
  .slot-time-row time{font-size:21px}
  .slot-relative{font-size:13px}
  .departure-last-slot{gap:5px;min-height:0;flex-wrap:wrap;white-space:normal}
  .departure-last-badge,.vessel-delay-badge,.on-time-badge,.scheduled-badge,.boat-assignment{font-size:12px;padding:3px 7px}
  .boat-name{font-size:13px}
  .empty{padding:28px 16px}.empty strong{font-size:20px}.empty span{font-size:13px}
  /* The alert strip is a normal block at the end of the page rather than a fixed footer. */
  .service-alert-bar{gap:10px;padding:10px 12px}
  .service-alert-icon{width:26px;height:26px}
  .service-alert-copy strong,.service-alert-copy>span{font-size:13px}
  .service-alert-copy small{font-size:10px;white-space:normal}
  .service-alert-count{min-width:28px;min-height:24px;font-size:13px}
  /* A service notice still takes over the whole screen. */
  .manual-override{padding:24px 16px}
  .manual-override-box{padding:22px 16px;border-width:6px}
  .manual-override-label{font-size:13px}
  .manual-override-box p,.manual-override-box[data-size="medium"] p,.manual-override-box[data-size="long"] p{margin:18px 0;font-size:26px}
  .manual-override-box small{font-size:12px}
}
@media(max-width:820px) and (orientation:landscape){
  /* Two cards side by side when a phone is turned sideways. The kiosk's fixed row count is
     cleared so cards keep their natural height and the page scrolls instead. */
  .departures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;align-items:start}
}
