:root {
  color-scheme: light;
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #171717;
  --muted: #737373;
  --soft: #f5f5f5;
  --line: #e5e5e5;
  --line-soft: #f0f0f0;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.055);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
}
a { color: inherit; text-underline-offset: 3px; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { letter-spacing: -0.025em; }
h2 { font-size: 1.35rem; line-height: 1.2; font-weight: 650; }
h3 { font-size: 1rem; line-height: 1.3; font-weight: 650; }
p + p { margin-top: 10px; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.wrap { width: min(28rem, calc(100% - 40px)); margin-inline: auto; }
.app-shell { padding-bottom: 12px; }
.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(229, 229, 229, 0.9);
  background: rgba(250, 250, 250, 0.93);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(28rem, 100%);
  min-height: 58px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(76px, 1fr) auto minmax(76px, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
}
.header-inner > strong {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  width: max-content;
  color: #404040;
  font-size: 0.875rem;
  text-decoration: none;
}
.header-back span { font-size: 1.7rem; line-height: 0; transform: translateY(-1px); }
.header-share {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #404040;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  text-decoration: none;
}
.header-share svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  outline: 1px solid rgba(229,229,229,.8);
}
.hero-copy { padding: 20px; }
.hero-photo {
  order: -1;
  position: relative;
  height: 245px;
  overflow: hidden;
  background: var(--soft);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, rgba(0,0,0,.62));
  pointer-events: none;
}
.hero-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
}
.hero-photo figcaption span { font-size: .625rem; font-weight: 600; letter-spacing: .08em; }
.hero-photo figcaption strong { font-size: .75rem; font-weight: 600; }
.eyebrow {
  color: var(--muted);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.route-mark {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  font-size: .75rem;
}
.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(1.9rem, 9vw, 2.45rem);
  font-weight: 650;
  line-height: 1.1;
}
.hero h1 br, .section-heading h2 br, .route-aside h2 br, .football-heading h3 br { display: none; }
.hero em { font-style: normal; }
.intro { color: #525252; font-size: .9375rem; line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .actions { margin-top: 16px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color .18s, transform .18s;
}
.button:active { transform: scale(.99); }
.dark, .lime { background: var(--ink); color: #fff; }
.dark:hover, .lime:hover { background: #303030; }
.outline { border-color: var(--line); background: #fff; color: #404040; }
.outline:hover { background: var(--soft); }
.hero-note { margin-top: 12px; color: var(--muted); font-size: .6875rem; line-height: 1.5; }

.ticket {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 4px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.035);
  outline: 1px solid var(--line-soft);
}
.ticket > div { min-width: 0; padding: 11px 12px; }
.ticket > div:nth-child(2n) { border-left: 1px solid var(--line-soft); }
.ticket > div:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
.ticket span { display: block; color: var(--muted); font-size: .625rem; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.ticket strong { display: block; margin-top: 2px; font-size: .75rem; font-weight: 600; line-height: 1.35; }

.section-nav {
  position: sticky;
  top: 58px;
  z-index: 30;
  margin-top: 12px;
  border-block: 1px solid rgba(229,229,229,.86);
  background: rgba(250,250,250,.94);
  backdrop-filter: blur(12px);
}
.section-nav > .wrap {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav > .wrap::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: none;
  padding: 11px 0;
  color: #525252;
  font-size: .6875rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}
.section { padding-block: 0; margin-top: 12px; }
.route-section, .depo-section > .wrap, .events-section > .wrap, .useful {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0,0,0,.035);
  outline: 1px solid var(--line-soft);
}
.route-aside > p:not(.eyebrow):not(.small) { margin-top: 8px; color: #525252; font-size: .875rem; }
.route-aside h2 { margin-top: 4px; }
.route-aside > .button { width: 100%; margin-top: 14px; }
.small { color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.route-aside > .small { margin-top: 9px; }
.route-key { display: none; }

.route-list { list-style: none; margin: 20px 0 0; padding: 0; }
.route-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 11px;
  padding-bottom: 18px;
}
.route-list > li:last-child { padding-bottom: 0; }
.route-list > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 29px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.stop-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--soft);
  color: #525252;
  font-size: .625rem;
  font-weight: 650;
}
.stop-finish .stop-num { background: var(--ink); color: #fff; }
.route-list article {
  min-width: 0;
  padding: 13px;
  border-radius: 13px;
  background: var(--bg);
  outline: 1px solid var(--line-soft);
}
.route-list h3 { margin-top: 3px; font-size: .9375rem; }
.route-list article > p:not(.stop-meta):not(.little-idea):not(.next-stop) { margin-top: 7px; color: #525252; font-size: .8125rem; line-height: 1.55; }
.stop-meta { color: var(--muted); font-size: .625rem; font-weight: 550; text-transform: uppercase; letter-spacing: .04em; }
.little-idea {
  margin-top: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fff;
  color: #404040;
  font-size: .75rem;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px var(--line);
}
.point-map, .text-link {
  display: inline-flex;
  margin-top: 9px;
  color: #262626;
  font-size: .75rem;
  font-weight: 600;
}
.next-stop { margin-top: 8px; color: var(--muted); font-size: .6875rem; line-height: 1.45; }

.section-heading { display: block; }
.section-heading h2 { margin-top: 4px; }
.section-heading > p, .section-heading > div:last-child > p { margin-top: 8px; color: #525252; font-size: .875rem; }
.section-heading .button { width: 100%; margin-top: 12px; }
.depo-story {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg);
  outline: 1px solid var(--line-soft);
}
.depo-story > img { width: 100%; height: 210px; object-fit: cover; }
.depo-story > div { padding: 15px; }
.depo-story h3 { margin-top: 4px; }
.depo-story p { margin-top: 7px; color: #525252; font-size: .8125rem; }
.spaces { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.space-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 13px;
  background: var(--bg);
  outline: 1px solid var(--line-soft);
}
.photo-space img { width: 100%; height: 112px; object-fit: cover; }
.photo-space > div, .text-space { padding: 12px; }
.space-card h3 { margin-top: 3px; font-size: .875rem; }
.space-card p:not(.eyebrow) { margin-top: 5px; color: #525252; font-size: .71875rem; line-height: 1.45; }
.text-space { min-height: 154px; }
.space-symbol { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 9px; border-radius: 9px; background: #fff; font-size: .875rem; box-shadow: inset 0 0 0 1px var(--line); }
.space-note { display: block; margin-top: 8px; color: var(--muted); font-size: .625rem; line-height: 1.4; }
.depo-section .wrap > .small { margin-top: 10px; }

.weekly-heading { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.weekly-heading h3 { font-size: 1rem; }
.weekly-heading p, .event-note { margin-top: 5px; color: var(--muted); font-size: .6875rem; line-height: 1.5; }
.weekly-events { margin-top: 10px; }
.agenda-day { overflow: hidden; border-radius: 12px; background: var(--bg); outline: 1px solid var(--line-soft); }
.agenda-day + .agenda-day { margin-top: 7px; }
.agenda-day summary { padding: 11px 12px; font-size: .75rem; font-weight: 600; cursor: pointer; }
.agenda-event {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--line-soft);
}
.agenda-event time { color: var(--muted); font-size: .6875rem; }
.agenda-event h4 { font-size: .75rem; line-height: 1.35; }
.agenda-event p { margin-top: 2px; color: var(--muted); font-size: .6875rem; }
.agenda-note { line-height: 1.4; }
.event-fallback {
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  color: #525252;
  font-size: .75rem;
  outline: 1px solid var(--line-soft);
}

.football-heading {
  display: grid;
  grid-template-columns: minmax(0,1fr) 105px;
  gap: 14px;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.football-heading h3 { margin-top: 4px; font-size: 1.05rem; }
.football-heading p:not(.eyebrow) { margin-top: 6px; color: #525252; font-size: .75rem; }
.poster-link { overflow: hidden; border-radius: 12px; background: var(--soft); outline: 1px solid var(--line); }
.poster-link img { aspect-ratio: 1; object-fit: cover; }
.match-list { margin-top: 10px; }
.match {
  display: grid;
  grid-template-columns: 84px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.match:first-child { border-top: 0; }
.match time strong { display: block; font-size: .75rem; }
.match time span, .match-meta { color: var(--muted); font-size: .625rem; }
.match h4 { font-size: .8125rem; }
.match-place { display: none; }
.timing-plan { margin-top: 12px; padding: 14px; border-radius: 13px; background: var(--bg); outline: 1px solid var(--line-soft); }
.timing-plan ol { list-style: none; margin: 10px 0; padding: 0; }
.timing-plan li { display: grid; grid-template-columns: 62px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line-soft); }
.timing-plan li:first-child { border-top: 0; }
.timing-plan strong { font-size: .8125rem; }
.timing-plan span { color: #525252; font-size: .75rem; }
.timing-plan > p:last-child { color: var(--muted); font-size: .6875rem; line-height: 1.5; }

.useful > .eyebrow + h2 { margin-top: 4px; }
.useful-grid { display: grid; gap: 8px; margin-top: 14px; }
.useful-grid article { padding: 13px; border-radius: 13px; background: var(--bg); outline: 1px solid var(--line-soft); }
.useful-grid article p { margin-top: 6px; color: #525252; font-size: .75rem; }
.hours { margin: 8px 0 0; font-size: .75rem; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line-soft); }
.hours div:first-child { border-top: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.hours-override { padding: 8px; border-radius: 9px; background: #fff; }
.sources { margin-top: 10px; border-radius: 13px; background: var(--bg); outline: 1px solid var(--line-soft); }
.sources summary { padding: 12px; font-size: .75rem; font-weight: 600; cursor: pointer; }
.sources p { padding: 0 12px; color: var(--muted); font-size: .6875rem; }
.sources p:last-child { padding-bottom: 12px; }
.last-call { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 14px; border-radius: 13px; background: var(--ink); color: #fff; }
.last-call .eyebrow { color: #a3a3a3; }
.last-call h3 { margin-top: 3px; font-size: 1rem; }
.last-call .button { width: 100%; background: #fff; color: var(--ink); }
.share-panel { margin-top: 8px; padding: 13px; border-radius: 13px; background: var(--bg); outline: 1px solid var(--line-soft); }
.share-panel label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .6875rem; }
.share-panel input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 0 11px; color: #404040; font-size: .75rem; }
.share-panel .actions { margin-top: 8px; }
.share-panel .actions > * { flex: 1; }
#share-status { margin-top: 7px; color: var(--muted); font-size: .6875rem; }

.footer { display: grid; gap: 3px; margin-top: 12px; margin-bottom: 96px; padding: 15px; border-radius: 16px; background: #fff; outline: 1px solid var(--line-soft); }
.brand { font-size: .875rem; font-weight: 700; text-decoration: none; }
.brand span { color: inherit; }
.footer > span, .footer > a:last-child { color: var(--muted); font-size: .6875rem; }
.footer > a:last-child { margin-top: 5px; font-weight: 600; }

.bottom-nav {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
}
.bottom-nav-inner {
  width: min(28rem, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 8px max(12px, env(safe-area-inset-bottom));
}
.bottom-nav a {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  border-radius: 16px;
  color: #a3a3a3;
  font-size: .625rem;
  line-height: 1.1;
  text-decoration: none;
}
.bottom-nav .nav-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; }
.bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bottom-nav a.active { color: var(--ink); font-weight: 500; }
.bottom-nav a.active .nav-icon { background: var(--ink); color: #fff; }

@media (max-width:380px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { padding-inline: 10px; }
  .hero-copy { padding: 16px; }
  .hero-photo { height: 218px; }
  .hero h1 { font-size: 1.85rem; }
  .hero .actions > * { width: 100%; }
  .ticket > div { padding: 10px; }
  .route-section, .depo-section > .wrap, .events-section > .wrap, .useful { padding: 15px; }
  .spaces { grid-template-columns: 1fr; }
  .photo-space img { height: 175px; }
  .text-space { min-height: 0; }
  .football-heading { grid-template-columns: minmax(0,1fr) 86px; }
  .agenda-event { grid-template-columns: 68px minmax(0,1fr); }
  .bottom-nav a { font-size: .6rem; }
}
@media (min-width: 700px) {
  .hero-photo { height: 285px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media print {
  .header, .section-nav, .bottom-nav, .button, .point-map, .text-link, .footer, .share-panel { display: none !important; }
  .wrap { width: 100%; }
  body { background: #fff; }
  .hero, .route-section, .depo-section > .wrap, .events-section > .wrap, .useful { box-shadow: none; outline: 1px solid #ddd; break-inside: avoid; }
}

