:root{--ink:#102b3b;--navy:#0b2639;--teal:#197f79;--muted:#667886;--line:#d9e3e6;--orange:#d18a44}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#fbfcfd}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.2rem,5.5vw,4.2rem);line-height:1.05;letter-spacing:-.05em;margin-bottom:18px}
h2{font-size:clamp(1.6rem,3.5vw,2.2rem);letter-spacing:-.03em}
h3{font-size:1.12rem;margin-bottom:8px}
.wide{max-width:1120px;margin:0 auto;padding:0 24px}
header{background:var(--navy);color:#fff;position:sticky;top:0;z-index:10;border-bottom:1px solid #ffffff22}
header .head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;flex-wrap:wrap}
.brandwrap{display:flex;align-items:baseline;gap:4px}
header a{color:#d9ecf0;text-decoration:none}
.home{font-size:13px;font-weight:650;color:#9fddd0}
.brand{font-weight:850;letter-spacing:-.03em;font-size:18px;margin-left:12px}
.brand span{color:#9fddd0}
.nav{display:flex;gap:16px;flex-wrap:wrap;align-items:center}
.nav a{font-size:12px;font-weight:650}
.nav a:hover{color:#fff}
.day-toggle{display:flex;background:#ffffff18;border-radius:999px;padding:3px;gap:2px}
.day-toggle button{border:0;background:transparent;color:#d9ecf0;font:inherit;font-size:12px;font-weight:650;padding:6px 12px;border-radius:999px;cursor:pointer}
.day-toggle button:hover{color:#fff}
.day-toggle button[aria-pressed="true"]{background:#fff;color:var(--navy)}
.hero{background:linear-gradient(130deg,#0b2639,#0f3b48);color:#fff;padding:64px 0 48px}
.eyebrow{color:#a8ddca;letter-spacing:.12em;font-size:11px;font-weight:800;text-transform:uppercase}
.hero h1{max-width:28ch;margin-bottom:0}
#map,#chart,#agencies,#overnight,#table,#method{scroll-margin-top:88px}
section{padding:64px 0;border-bottom:1px solid var(--line)}
section:nth-of-type(even){background:#f5f8f8}
.pretag{font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.07em;color:var(--teal)}
.sub{color:var(--muted);max-width:780px}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;color:#4d6470;margin:8px 0 18px}
.legend i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px;vertical-align:middle}
.legend i.teal{background:#3e8a84}
.legend i.orange{background:var(--orange)}
.legend i.ggt{background:#197f79}
.legend i.smart{background:#1f4e79}
.legend i.ferry{background:#4a9bb8}
.legend i.bart{background:#0099d8}
.legend i.caltrain{background:#c23b22}
.legend i.cc{background:#6b7c99}
.legend i.gr{background:#d18a44}
.legend i.sc{background:#6b4c9a}
.legend i.vine{background:#de386e}
.legend i.mt{background:#3d5c4a}
.legend i.bay{background:#008c99}
.legend i.yarts{background:#c45c26}
.legend i.zephyr{background:#3d4f7c}
.legend i.starlight{background:#8b3d5a}
.legend i.xfer{width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid #102b3b;box-shadow:inset 0 0 0 2.5px #102b3b;box-sizing:border-box}
.map-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;margin-bottom:4px}
.map-head h2{margin-bottom:8px}
.map-toggle{display:flex;background:#e8f0f1;border-radius:999px;padding:3px;gap:2px;flex-shrink:0}
.map-toggle button{border:0;background:transparent;color:#3a5560;font:inherit;font-size:12px;font-weight:650;padding:6px 14px;border-radius:999px;cursor:pointer}
.map-toggle button:hover{color:var(--navy)}
.map-toggle button[aria-pressed="true"]{background:var(--navy);color:#fff}
.legend[hidden]{display:none}
.mapwrap{margin:0;background:#fff;border:1px solid var(--line);border-radius:14px;padding:8px 4px 4px;overflow:auto}
.mapwrap img{width:100%;height:auto;display:block;min-width:720px}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.overnight-grid{grid-template-columns:repeat(2,1fr)}
.journey{display:flex;list-style:none;margin:12px 0 14px;padding:0;overflow-x:auto;gap:0}
.journey li{flex:1 0 76px;min-width:76px;display:flex;flex-direction:column;align-items:center;position:relative}
.j-name{font-size:11px;font-weight:700;text-align:center;line-height:1.2;min-height:28px}
.j-time{font-size:10px;color:var(--muted);min-height:14px}
.j-rail{position:relative;width:100%;height:18px;margin:6px 0 4px}
.j-rail::before{content:"";position:absolute;left:50%;right:-50%;top:6px;height:6px;background:var(--c,#d9e3e6);border-radius:3px}
.journey li:last-child .j-rail::before{display:none}
.j-dot{position:absolute;left:50%;top:3px;width:12px;height:12px;margin-left:-6px;border-radius:50%;background:#fff;border:2px solid #102b3b;z-index:1;box-sizing:border-box}
.journey li.xfer .j-dot{box-shadow:inset 0 0 0 2.5px #102b3b}
.journey li.sf .j-dot{background:var(--navy);border-color:var(--navy);width:14px;height:14px;margin-left:-7px;top:2px}
.j-svc{font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--c,#667886);text-align:center}
.journey li:last-child .j-svc{visibility:hidden}
.agency-tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.agency-table{min-width:760px}
.agency-table td.who{white-space:nowrap}
.agency-table td.split{white-space:normal;color:#526b77;font-size:13px;max-width:360px}
.mark{display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;letter-spacing:.01em}
.mark.yes{background:#def1eb;color:#0c665f}
.mark.no{background:#fff0df;color:#946024}
.mark.mixed{background:#e9eef0;color:#536571}
.mark.off{background:#f4f4f4;color:#7a8d97}
.card{border:1px solid var(--line);border-radius:14px;padding:20px;background:#fff}
.card p{color:#526b77;margin:0}
.pill{display:inline-flex;padding:4px 10px;border-radius:999px;background:#def1eb;color:#0c665f;font-size:11px;font-weight:800;margin-bottom:8px}
.pill.orange{background:#fff0df;color:#946024}
.pill.gray{background:#e9eef0;color:#536571}
.note{background:#edf5f5;border-left:4px solid #4c9b98;padding:16px 18px;border-radius:3px 9px 9px 3px;color:#3a5a67;font-size:13px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.tablewrap{overflow:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
table{border-collapse:collapse;width:100%;font-size:13px;min-width:860px}
th,td{padding:9px 12px;text-align:left;border-bottom:1px solid #e9eeee;white-space:nowrap}
thead th{background:#e9f0f2;color:#244453}
.zero{color:#b4532a;font-weight:700}
.muted{color:var(--muted)}
.note-cell{font-size:11px;font-weight:500;white-space:normal;max-width:280px;margin-top:4px;line-height:1.35}
.sources{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.source{padding:16px;border:1px solid var(--line);background:#fff;border-radius:10px}
.source a{color:#116e72;font-weight:700;text-decoration:none}
.footnote{font-size:12px;color:var(--muted)}
.foot{background:var(--navy);color:#b4cbd5;padding:36px 0}
.foot a{color:#c5e8df}
.sys{margin-top:28px}
.sys h3{margin-bottom:10px}
.row{display:grid;grid-template-columns:150px 1fr;gap:12px;align-items:start;margin:8px 0 20px}
.row .place{font-weight:700;font-size:13px;line-height:1.25;padding-top:24px}
.row .hrs{display:block;font-size:11px;color:var(--muted);font-weight:500;margin-top:2px}
.track{position:relative;height:36px;margin-top:24px;margin-bottom:22px;background:#e8f0f1;border-radius:8px}
.track-msg{position:absolute;font-size:11px;font-weight:650;letter-spacing:-.01em;pointer-events:none;white-space:nowrap}
.track-msg.empty{inset:0;display:flex;align-items:center;padding:0 12px;color:#5a7380}
.track-msg.city,.track-msg.sub{right:8px;width:max-content;padding:0 5px;background:#e8f0f1}
.track-msg.city{top:19px;height:14px;line-height:14px;color:#8a3d0c}
.track-msg.sub{top:3px;height:14px;line-height:14px;color:#1d4f4b}
.bar{position:absolute;top:3px;height:14px;border-radius:4px;min-width:3px}
.bar.sub{background:#3e8a84;top:3px}
.bar.city{background:var(--orange);top:19px}
.tick{position:absolute;width:2px;margin-left:-1px;border-radius:1px;pointer-events:none}
.tick.sub{background:#163835;top:1px;height:18px}
.tick.city{background:#8a3d0c;top:17px;height:18px}
.tick-time{position:absolute;left:50%;transform:translateX(-50%);font-size:9px;font-weight:700;letter-spacing:-0.02em;line-height:1.15;white-space:nowrap;display:flex;flex-direction:column;align-items:center;gap:1px}
.tick.sub .tick-time{top:-24px;color:#1d4f4b}
.tick.city .tick-time{top:20px;color:#8a3d0c}
.tick-start .tick-time{left:0;transform:none;align-items:flex-start}
.tick-end .tick-time{left:0;transform:translateX(-100%);align-items:flex-end}
.tick-kind{font-size:8px;font-weight:600;opacity:.75}
.axis{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:4px 0 10px 162px}
@media(max-width:800px){
  .grid,.overnight-grid,.two,.sources{grid-template-columns:1fr}
  header{flex-wrap:wrap;padding:8px 16px}
  .row{grid-template-columns:1fr;gap:4px}
  .row .place{padding-top:0}
  .axis{margin-left:0}
  .wide{padding:0 16px}
  section{padding:44px 0}
}
