@charset "UTF-8";
:root { color-scheme: light; --paper: #f5f7f5; --ink: #1d3632; --muted: #61736d; --line: #d9e1dc; --accent: #126c57; --soft: #e5eee8; --white: #fff; font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #17896e; outline-offset: 4px; }
button { border: 0; background: transparent; }
.workspace { max-width: 1680px; min-height: 100svh; margin: auto; padding: 0 5vw; display: flex; flex-direction: column; }
.topbar { height: 80px; display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--line); flex: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong { font-size: 24px; letter-spacing: -.04em; font-weight: 650; }
.brand-school { font-size: 12px; letter-spacing: .12em; color: var(--muted); padding-top: 5px; }
.brand-mark { width: 24px; height: 26px; position: relative; display: flex; align-items: center; justify-content: space-between; transform: rotate(-28deg); }
.brand-mark:before { position: absolute; content: ""; left: 0; right: 0; height: 2px; background: var(--accent); }
.brand-mark i { border: 2px solid var(--accent); border-radius: 50%; width: 9px; height: 9px; background: var(--paper); z-index: 1; }
.clock { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.clock time { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); }
.clock-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.quiet-button { min-height: 44px; padding: 10px 8px; font-size: 13px; color: var(--muted); border-radius: 8px; }
.quiet-button:hover { background: var(--soft); color: var(--ink); }
.quiet-button span { margin-left: 5px; }
main { flex: 1; display: flex; flex-direction: column; }
.controls { display: flex; justify-content: space-between; gap: 18px; padding: 18px 0 14px; align-items: center; }
.directions { display: flex; gap: 6px; background: #e9eeea; border-radius: 40px; padding: 5px; }
.directions button { min-height: 44px; padding: 10px 24px; border-radius: 30px; font-size: 14px; font-weight: 550; color: var(--muted); transition: background .35s, color .35s, box-shadow .35s; }
.directions button span { padding: 0 10px; }
.directions button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 7px #22372b0a; }
.date-control { display: flex; align-items: center; gap: 14px; }
.date-control #today { text-decoration: underline; text-underline-offset: 4px; }
.date-label input { color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; font-size: 14px; max-width: 180px; }
.board-space { display: grid; grid-template-columns: 1fr 1fr; flex: 1; position: relative; }
.departure { padding: 16px 6vw 24px 0; align-self: center; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.service-tag { border: 1px solid var(--line); border-radius: 30px; padding: 5px 10px; font-size: 11px; letter-spacing: 0; }
h1 { display: flex; align-items: center; gap: 25px; font-size: clamp(35px, 3.8vw, 60px); letter-spacing: -.055em; margin: 20px 0 10px; font-weight: 550; }
.route-arrow { font-size: 29px; color: #91a99e; font-weight: 300; }
.pickup { color: var(--muted); margin: 0; font-size: 14px; }
.departure-face { margin-top: 32px; }
.small-label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.hero-time { font-size: clamp(85px, 9.2vw, 154px); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif; font-weight: 450; letter-spacing: -.065em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-time span { color: #9caf9f; display: inline-block; transform: translateY(-.055em); padding: 0 .025em; }
.hero-time.is-text { font-family: inherit; font-size: clamp(44px, 4.6vw, 72px); letter-spacing: -.035em; padding: 16px 0; line-height: 1.2; }
.wait-line { min-height: 40px; display: flex; gap: 8px; align-items: baseline; font-size: 15px; color: var(--muted); margin: 14px 0 24px; }
.wait-line strong { font-size: 33px; line-height: 1; color: var(--accent); font-weight: 500; font-variant-numeric: tabular-nums; }
.gps-link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 15px 20px; background: var(--ink); color: #fff; border-radius: 30px; text-decoration: none; min-height: 50px; font-size: 14px; transition: transform .3s, background .3s; }
.gps-link:hover { background: var(--accent); transform: translateY(-2px); }
.location-icon { font-size: 19px; line-height: 1; }
.service-message { margin-top: 18px; min-height: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-message:empty { min-height: 0; margin-top: 0; }
.timetable { border-left: 1px solid var(--line); padding: 27px 0 32px 4.2vw; align-self: center; }
.section-heading, .route-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h2 { font-size: 17px; font-weight: 550; letter-spacing: -.02em; margin: 0; }
.section-heading > span { font-size: 12px; color: var(--muted); }
.mode-control { display: flex; gap: 16px; margin: 14px 0 19px; border-bottom: 1px solid var(--line); }
.mode-control button { min-height: 44px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; padding: 10px 2px; }
.mode-control button[aria-pressed="true"] { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.trip-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.trip { background: #edf1ed; border: 1px solid transparent; border-radius: 10px; min-height: 72px; padding: 10px 15px; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.trip time { font-size: clamp(21px, 2.1vw, 31px); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.trip .trip-note { font-size: 10px; color: var(--muted); }
.trip.past { color: #687970; background: transparent; border-color: #e0e6e0; }
.trip.past .trip-note { color: #687970; }
.trip.next { background: var(--accent); color: var(--white); box-shadow: 0 4px 20px #126c571c; }
.trip.next .trip-note { color: #e1f1e7; }
.trip-grid.is-closed .trip { opacity: .6; }
.schedule-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 17px; gap: 12px; font-size: 11px; color: var(--muted); }
.table-key { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.table-key i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.route-strip { border-top: 1px solid var(--line); padding: 14px 0 26px; }
.route-heading h2 { font-size: 13px; color: var(--muted); }
.route-stops { list-style: none; margin: 20px 0 0; padding: 0; display: flex; }
.route-stops li { position: relative; flex: 1; padding: 18px 0 0; font-size: 13px; }
.route-stops li:before { content: ""; position: absolute; width: 8px; height: 8px; border: 2px solid #92aaa0; background: var(--paper); border-radius: 50%; top: -6px; z-index: 1; }
.route-stops li:after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: #b7c8bf; }
.route-stops li:last-child { flex: .55; }
.route-stops li:last-child:after { display: none; }
.route-stops li:first-child:before, .route-stops li:last-child:before { background: var(--accent); border-color: var(--accent); }
.route-stops span { display: block; color: var(--muted); font-size: 11px; margin-top: 6px; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding: 12px 0 14px; font-size: 10px; color: var(--muted); letter-spacing: .035em; }
dialog { width: min(550px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 22px; padding: 28px 30px 32px; background: var(--paper); color: var(--ink); max-height: calc(100svh - 48px); box-shadow: 0 20px 100px #132e3229; }
dialog::backdrop { background: #173c344d; backdrop-filter: blur(6px); }
dialog[open] { animation: dialog-in .35s ease both; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; margin: -8px 0 12px; }
.dialog-head .eyebrow { font-size: 10px; letter-spacing: .12em; }
.close-button { font-size: 26px; border-radius: 50%; width: 44px; height: 44px; background: var(--soft); }
dialog h2 { font-size: 27px; margin: 8px 0 22px; }
.source-list, .stop-detail { list-style: none; padding: 0; margin: 0; }
.source-list li { border-bottom: 1px solid var(--line); }
.source-list a { display: flex; justify-content: space-between; padding: 16px 0; text-decoration: none; font-size: 14px; min-height: 48px; }
.source-list a:hover { color: var(--accent); }
.dialog-note { color: var(--muted); font-size: 13px; line-height: 1.9; margin: 20px 0 0; }
.stop-detail li { border-bottom: 1px solid var(--line); padding: 13px 0; display: flex; align-items: center; gap: 14px; }
.stop-number { display: grid; place-items: center; height: 26px; width: 26px; border-radius: 50%; background: var(--soft); color: var(--accent); font-size: 11px; }
.stop-detail small { color: var(--muted); margin-left: auto; font-size: 12px; }
.dialog-link { display: inline-flex; text-decoration: none; padding: 13px 16px; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; margin-top: 18px; font-size: 13px; }
.noscript { position: fixed; inset: auto 15px 15px; background: white; padding: 20px; border: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1700px) { .workspace { padding: 0 85px; } }
@media (max-width: 1050px) { .workspace { padding: 0 4vw; } .departure { padding-right: 4vw; } .timetable { padding-left: 3vw; } .trip { padding: 12px; } }
@media (max-width: 700px) {
  .workspace { padding: 0 22px; }
  .topbar { height: 76px; gap: 8px; }
  .brand { gap: 9px; } .brand strong { font-size: 22px; } .brand-school { font-size: 10px; }
  .clock { gap: 5px; } .clock span:last-child { display: none; } .clock time { font-size: 13px; }
  #sources-open { font-size: 11px; padding: 8px 5px; }
  .controls { flex-wrap: wrap; gap: 12px; padding: 20px 0 10px; }
  .directions { width: 100%; padding: 4px; gap: 4px; }
  .directions button { flex: 1; padding: 10px; }
  .date-control { width: 100%; justify-content: space-between; gap: 8px; }
  .date-label input { max-width: 180px; border-color: transparent; padding-right: 0; }
  .date-control #today { font-size: 12px; padding-left: 2px; }
  .board-space { display: block; }
  .departure { padding: 20px 0 30px; }
  h1 { font-size: 40px; gap: 22px; margin-top: 16px; }
  .pickup { font-size: 13px; }
  .departure-face { margin-top: 30px; }
  .hero-time { font-size: clamp(92px, 25vw, 126px); }
  .hero-time.is-text { font-size: 48px; }
  .wait-line { margin: 12px 0 22px; font-size: 14px; min-height: 28px; }
  .wait-line strong { font-size: 29px; }
  .gps-link { width: 100%; justify-content: space-between; gap: 10px; padding: 15px 20px; }
  .gps-link span:nth-child(2) { margin-right: auto; }
  .timetable { border-left: 0; border-top: 1px solid var(--line); padding: 26px 0; }
  .trip { min-height: 76px; padding: 13px 10px; } .trip time { font-size: 25px; }
  .mode-control { margin-bottom: 16px; }
  .route-strip { padding-top: 10px; }
  .route-stops { display: block; margin-top: 12px; padding-left: 8px; }
  .route-stops li { display: flex; gap: 10px; align-items: center; padding: 13px 0 13px 24px; min-height: 45px; }
  .route-stops li:before { left: -5px; top: calc(50% - 5px); }
  .route-stops li:after { left: 0; top: 50%; bottom: -50%; height: auto; width: 1px; }
  .route-stops span { margin: 0 0 0 auto; }
  footer { gap: 20px; font-size: 9px; line-height: 1.7; }
  dialog { padding: 25px 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
