/* Jungfrau Now — station board. One file. No decorative motion. */

:root {
  --bg: #f7f5ef;
  --paper: #ffffff;
  --text: #141414;
  --ink: #141414;
  --muted: #5a5a56;
  --line: #d9d6cf;
  --rule: #d9d6cf;
  --swiss: #e30613;
  --open: #1b7a4e;
  --open-soft: #e7f4ec;
  --warn: #a15c00;
  --warn-soft: #f7edd9;
  --danger: #c1121f;
  --danger-soft: #f8e4e4;
  --unknown: #8a8882;
  --unknown-soft: #f0efeb;
  --sky: #e8f1f6;
  --ice: #dfeaf1;
  --accent: var(--open);
  --cream: #ffffff;
  --link: #0b5f8a;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Hide scrollbars on page + overflow containers; scroll still works. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 640px;
  /* Flex child of body: without width:100%, auto horizontal margins shrink-wrap
     main to content (Go empty state ~300px). Force full track up to max-width. */
  width: 100%;
  box-sizing: border-box;
}
/* Longhand only — do not override .container horizontal padding */
main { padding-top: 8px; padding-bottom: 72px; flex: 1; }

h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 8px 0 14px;
}
h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 0;
  margin: 22px 0 10px;
  padding: 0 0 0 10px;
  border-left: 3px solid var(--swiss);
}
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
section { padding: 4px 0 0; }
section p { max-width: 38em; }

.now-block {
  margin-bottom: 8px;
}
.now-block--transport {
  margin-top: 28px;
  padding-top: 8px;
}
.now-block--transport h2 {
  margin-top: 0;
}
a { color: var(--link); }

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-top: 3px solid var(--swiss);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* Longhand only — keep .container horizontal padding (page margins) */
  padding-top: 10px;
  padding-bottom: 8px;
  flex-wrap: nowrap;
}
.brand-block { min-width: 0; }
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
  line-height: 1;
}
.tagline { display: none; }
.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
  max-width: 100%;
}
.header-meta time {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lang-toggle { display: flex; gap: 0; }
.lang-toggle a, .lang-toggle button {
  background: none;
  border: 0;
  border-bottom: 1.5px solid transparent;
  border-radius: 0;
  padding: 6px 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  color: var(--muted);
  min-height: 44px;
  min-width: 36px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.header-meta .lang-toggle a,
.header-meta .lang-toggle button {
  min-height: 32px;
  min-width: 32px;
}
/* Keep language labels flush with the content right edge */
.header-meta .lang-toggle a:last-child,
.header-meta .lang-toggle button:last-child {
  padding-right: 0;
  min-width: 0;
  justify-content: flex-end;
}
.lang-toggle a.active, .lang-toggle button.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.verdict {
  padding: 14px 0 6px;
}
.verdict h1 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 6px;
}
.verdict .range {
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  margin: 0;
}
.verdict .note {
  margin-top: 10px;
  font-size: 0.95rem;
  font-weight: 650;
}
.verdict .note-ok { color: var(--open); }
.verdict .note-alert { color: var(--danger); }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr));
  gap: 6px;
  padding: 2px 0 8px;
}
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 0;
  padding: 8px 10px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
  font-family: inherit;
}
.chip.active, .chip[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  font-weight: inherit;
}
.chip:not(.active):hover {
  background: var(--sky);
  border-color: var(--link);
}

.card {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  background: transparent;
}

.status-list { list-style: none; }
.status { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status:last-child { border-bottom: none; }
.status .dot { width: 8px; height: 8px; flex: 0 0 auto; }
.status .name { flex: 1; }
.status .state { font-size: 0.85rem; font-weight: 600; }
.status.open .dot { background: var(--open); } .status.open .state { color: var(--open); }
.status.delay .dot { background: var(--warn); } .status.delay .state { color: var(--warn); }
.status.closed .dot { background: var(--danger); } .status.closed .state { color: var(--danger); }
.status.unknown .dot { background: var(--unknown); } .status.unknown .state { color: var(--unknown); }

.board {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--paper);
  border: 1px solid var(--line);
}
.board th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
}
.board th:last-child { text-align: right; }
.board td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.board td:last-child { text-align: right; white-space: nowrap; }
.board tr:last-child td { border-bottom: 0; }
.board a {
  color: var(--ink);
  text-decoration: none;
}
.board a:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.board tr.open { background: var(--open-soft); }
.board tr.limited { background: var(--warn-soft); }
.board tr.closed { background: var(--danger-soft); }
.board tr.unknown { background: var(--unknown-soft); }
.st { font-weight: 700; font-size: 0.9rem; }
.st.open { color: var(--open); }
.st.limited { color: var(--warn); }
.st.closed { color: var(--danger); }
.st.unknown { color: var(--muted); }

.forecast { display: flex; gap: 8px; }
.forecast .day {
  flex: 1; border: 1px solid var(--line); padding: 12px 8px;
  text-align: center; font-size: 0.85rem; background: var(--paper);
}
.forecast .day .t { font-weight: 700; font-size: 1.05rem; display: block; font-variant-numeric: tabular-nums; }

.decision { border-left: 3px solid var(--ink); padding: 16px 0 16px 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px;
  min-height: 44px;
  font-family: inherit;
}
.btn-text {
  display: inline-block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding: 10px 0;
}

.alert {
  padding: 10px 12px;
  margin: 0 0 10px;
  font-size: 0.9rem;
  border: 0;
  border-left: 3px solid currentColor;
}
.alert.warn {
  color: var(--warn);
  background: var(--warn-soft);
}
.alert.danger {
  color: var(--danger);
  background: var(--danger-soft);
}

.news-item {
  display: block;
  padding: 14px 14px 14px 12px;
  margin: 0 0 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--link);
  background: var(--paper);
  text-decoration: none;
  color: var(--text);
}
a.news-item,
.news-item-link {
  cursor: pointer;
}
a.news-item:hover,
.news-item-link:hover {
  border-color: var(--ink);
}
.news-item.news-weather { border-left-color: var(--warn); background: #fffaf3; }
.news-item.news-transport { border-left-color: var(--open); background: #f6fbf8; }
.news-item.news-parking { border-left-color: var(--link); background: #f4f8fb; }
.news-item .who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}
.news-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  background: var(--ink);
  color: #fff;
}
.news-weather .news-cat { background: var(--warn); }
.news-transport .news-cat { background: var(--open); }
.news-parking .news-cat { background: var(--link); }
.news-where {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-item h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 700;
}
.news-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}
.news-sources {
  min-width: 0;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.35;
}
.news-item .news-published {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.news-item p, .news-item .sum { font-size: 0.95rem; line-height: 1.4; }
.news-item .src {
  font-size: 0.82rem;
  color: var(--link);
  display: inline;
  margin-right: 10px;
}

.updated { font-size: 0.82rem; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--ink);
  margin-top: 16px;
  padding: 20px 0 28px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
  text-align: center;
  letter-spacing: 0.01em;
}
.site-footer a { color: var(--muted); }
.site-footer .row { margin-bottom: 5px; }
.site-footer .row:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.nav-app {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-items: stretch;
  background: var(--bg);
  border-bottom: 1px solid var(--ink);
  padding: 0;
  z-index: 20;
}
.nav-app-link {
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 40px;
  padding: 10px 0 8px;
  margin-bottom: -1px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 2px solid transparent;
}
.nav-app-link.active, .nav-app-link[aria-current="page"] {
  color: var(--swiss);
  border-bottom-color: var(--swiss);
  font-weight: 700;
}

.status-strip { margin: 0; padding: 0; }

.chip-line {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
}
.chip-line .dot { display: none; }
.chip-line-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.chip-line-from { font-size: 0.78rem; color: var(--muted); }
.chip-line-to { font-size: 1rem; font-weight: 700; line-height: 1.2; }
.chip-line-state { font-size: 0.85rem; font-weight: 600; }
.chip-line.open .chip-line-state { color: var(--open); }
.chip-line.limited .chip-line-state { color: var(--warn); }
.chip-line.closed .chip-line-state { color: var(--danger); }
.chip-line.unknown .chip-line-state { color: var(--muted); }

.go-page {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
.go-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--ink);
  padding: 0;
}
.go-tabs--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.go-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  min-width: 0;
  min-height: 40px;
  padding: 10px 0 8px;
  text-align: center;
  color: var(--muted);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.go-tab:hover,
.go-tab:focus-visible {
  color: var(--text);
  outline: none;
}
.go-tab.active,
.go-tab[aria-selected="true"] {
  color: var(--swiss);
  border-bottom-color: var(--swiss);
  font-weight: 700;
}
.go-panel {
  width: 100%;
  min-width: 0;
}
.go-panel[hidden] {
  display: none;
}
.stack {
  border: 1px solid var(--line);
  background: #e4ebf2;
}
.stack--trek { background: #e4ebf2; }
.stack--bike { background: #e4f0e8; }
.stack--events { background: #efe8dc; }
.stack-row {
  display: block;
  padding: 14px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.stack-row:nth-child(even) {
  background: color-mix(in srgb, var(--ink) 3.5%, transparent);
}
.stack-row:last-child { border-bottom: 0; }
.stack-row:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.stack-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.stack-meta {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}
.stack-flag {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stack-row h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.stack-row p:not(.stack-meta) {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 4px;
  font-weight: 400;
}
.go-trek-board {
  width: 100%;
}
.go-trek-board td {
  vertical-align: top;
}
.go-trek-board td:last-child {
  white-space: nowrap;
}
.go-trek-meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.go-flow,
.go-stack {
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}
.go-flow { margin-top: 0; }
.go-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.go-field {
  min-width: 0;
  margin-bottom: 14px;
}
.go-flow .go-field:first-child .go-label { margin-top: 0; }
.go-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}
.go-select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 40px 12px 14px;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  background-color: var(--sky);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%),
    linear-gradient(to right, var(--swiss), var(--swiss));
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px),
    left top;
  background-size: 6px 6px, 6px 6px, 3px 100%;
  background-repeat: no-repeat;
  border: 1px solid var(--ink);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.go-select:hover {
  background-color: #dfe8ef;
}
.go-select:focus {
  outline: none;
  border-color: var(--link);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 80%, var(--link));
  background-color: #dfe8ef;
}
.go-results {
  margin-top: 6px;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}
.go-results-head { margin-top: 14px; }
.go-results-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 0 0 10px;
  border-left: 3px solid var(--swiss);
}
.go-status {
  margin: 12px 0 0;
  padding: 16px 14px;
  background: var(--sky);
  border: 1px solid var(--ice);
  min-height: 4.5rem;
  display: flex;
  align-items: center;
}
.go-status-text {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--muted);
  max-width: none;
}
.go-results[data-state="loading"] .go-status-text {
  color: var(--ink);
  animation: go-pulse 1.1s ease-in-out infinite;
}
.go-results[data-state="error"] .go-status {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 25%, var(--line));
  border-left: 3px solid var(--danger);
}
.go-results[data-state="error"] .go-status-text { color: var(--danger); }
.go-results[data-state="empty"] .go-status {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 22%, var(--line));
  border-left: 3px solid var(--warn);
}
.go-results[data-state="empty"] .go-status-text { color: var(--warn); }
.go-results[data-state="ready"] .go-status { display: none; }
.go-status,
.go-board-wrap,
.go-results [data-trip-list] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.go-board-wrap {
  margin-top: 12px;
  overflow-x: hidden;
}
.go-conn {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 0;
  margin-bottom: 8px;
  background: var(--sky);
  overflow: hidden;
  animation: go-row-in 280ms ease both;
  animation-delay: calc(var(--go-i, 0) * 45ms);
}
.go-conn-next {
  border-color: color-mix(in srgb, var(--open) 35%, var(--line));
  box-shadow: inset 3px 0 0 var(--open);
  background: var(--open-soft);
}
.go-conn-summary {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto 4.2rem;
  gap: 8px 10px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 12px 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}
.go-conn-summary:hover,
.go-conn-summary:focus-visible {
  background: color-mix(in srgb, var(--sky) 55%, transparent);
}
.go-conn-summary[aria-expanded="true"] {
  border-bottom: 1px solid var(--line);
}
.go-conn-legs {
  padding: 8px 10px 12px;
  min-width: 0;
  overflow-x: hidden;
}
.go-legs-board {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  background: color-mix(in srgb, var(--ink) 3%, var(--sky));
}
.go-legs-board th:nth-child(1),
.go-legs-board td:nth-child(1),
.go-legs-board th:nth-child(3),
.go-legs-board td:nth-child(3) {
  width: 3.6rem;
}
.go-legs-board th:nth-child(4),
.go-legs-board td.go-leg-plat {
  width: 2.4rem;
  text-align: right;
  white-space: nowrap;
}
.go-legs-board th:nth-child(2),
.go-legs-board td:nth-child(2) {
  width: auto;
  min-width: 0;
}
.go-means-cell {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.go-means-text {
  min-width: 0;
  flex: 1;
}
.go-leg-line {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.go-leg-mode {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}
.go-leg-route {
  display: block;
  font-size: 0.82rem;
  color: var(--ink);
  margin-top: 2px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.go-mode-walk {
  background: var(--warn-soft);
  border-color: color-mix(in srgb, var(--warn) 30%, var(--line));
}
.go-mode-cable {
  background: color-mix(in srgb, var(--sky) 70%, #fff);
}
.go-legs-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.go-trip-board {
  min-width: 100%;
}
.go-trip-board th:nth-child(3),
.go-trip-board td:nth-child(3),
.go-trip-board th:nth-child(4),
.go-trip-board td:nth-child(4) {
  text-align: right;
}
.go-trip-board td {
  font-variant-numeric: tabular-nums;
  vertical-align: top;
}
.go-trip-board tbody tr {
  animation: go-row-in 280ms ease both;
  animation-delay: calc(var(--go-i, 0) * 45ms);
}
.go-trip-board .go-trip-time,
.go-conn-summary .go-trip-time,
.go-legs-board .go-trip-time {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  white-space: nowrap;
  line-height: 1.2;
}
.go-legs-board .go-trip-time {
  font-size: 1rem;
}
.go-conn-next .go-mode {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.go-trip-arrive { color: var(--ink); }
.go-trip-dur {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.go-trip-mode { min-width: 0; }
.go-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}
.go-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--ink);
  background: var(--paper);
  line-height: 1.2;
  color: var(--ink);
}
.go-mode-ico {
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  flex: 0 0 auto;
}
.go-mode-ico .go-ico {
  display: block;
}
.go-means-cell .go-mode-ico {
  margin-top: 1px;
}
.go-trip-next .go-mode {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.go-trip-xfer {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.3;
}
.go-trip-via {
  display: block;
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.go-trip-board tr.go-trip-next {
  background: var(--open-soft);
}
.go-trip-board tr.go-trip-next td:first-child {
  box-shadow: inset 3px 0 0 var(--open);
}
.go-meta-line { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }
.go-results .go-sbb {
  margin-top: 4px;
}
.go-results .go-sbb::after {
  content: " →";
  text-decoration: none;
}
@keyframes go-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
@keyframes go-row-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .go-select,
  .go-results[data-state="loading"] .go-status-text,
  .go-trip-board tbody tr {
    transition: none;
    animation: none;
  }
}
.weather-line {
  padding: 4px 0 12px;
  font-variant-numeric: tabular-nums;
  font-size: 0.95rem;
}
.weather-line .wx-temp {
  font-size: 1.25rem;
  font-weight: 700;
  margin-right: 6px;
}

/* Dual °C / °F — C primary, F muted secondary */
.temp-dual {
  font-variant-numeric: tabular-nums;
}
.temp-dual .temp-c {
  font-weight: inherit;
  color: inherit;
}
.temp-dual .temp-f {
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.weather-split .wx-temp .temp-f,
.wx-card .wx-temp .temp-f,
.board-dialog-now .temp-f {
  font-size: 0.62em;
  font-weight: 600;
}
.board-dialog .board td.temp-dual .temp-f {
  font-size: 0.85em;
  font-weight: 500;
}

.survive-quick { display: flex; flex-wrap: wrap; gap: 0 20px; }
.survive-quick a {
  border-bottom: 1px solid var(--ink);
  padding: 10px 0;
  text-decoration: none;
  color: var(--text);
  min-height: 44px;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}
.survive-quick a::after {
  content: " →";
  font-weight: 400;
  color: var(--muted);
}

.town-list { list-style: none; }
.town-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  min-height: 44px;
}
.town-list a::after { content: "→"; color: var(--muted); font-weight: 400; }

.wx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--sky);
}
.wx-card {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  padding: 12px 12px 10px;
  min-height: 108px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  gap: 2px 8px;
}
.wx-card:nth-child(2n) { border-right: 0; }
.wx-card:nth-child(n + 3) { border-bottom: 0; }
.wx-card:hover { background: #dfe8ef; }
.wx-card:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.wx-card[data-band="warm"] { background: #eef1ea; }
.wx-card[data-band="cool"] { background: #e4ebf2; }
.wx-name {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--link);
}
.wx-icon-wrap { color: var(--ink); }
.wx-icon-wrap .wx-icon { width: 28px; height: 28px; display: block; }
.wx-card .wx-temp {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  align-self: end;
  white-space: nowrap;
}
.wx-card .wx-temp .temp-f {
  font-size: 0.55em;
  font-weight: 600;
}
.wx-cond {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.weather-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  border: 1px solid var(--ice);
  background: var(--sky);
}
.weather-split > .wx-spot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 10px 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 64px;
  appearance: none;
  -webkit-appearance: none;
}
.weather-split > .wx-spot:hover {
  background: rgba(255, 255, 255, 0.55);
}
.weather-split > .wx-spot:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--link);
  background: rgba(255, 255, 255, 0.55);
}
.weather-split > .wx-spot:nth-child(odd) {
  border-right: 1px solid var(--ice);
}
.weather-split > .wx-spot:nth-child(-n + 2) {
  border-bottom: 1px solid var(--ice);
}
.weather-split .wx-half {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-align: center;
}
.weather-split .wx-label {
  grid-column: 1 / -1;
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--link);
  line-height: 1.2;
  margin: 0 0 4px;
  text-align: center;
}
.weather-split .wx-temp {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 2px 0 0;
  color: var(--ink);
  white-space: nowrap;
}
.weather-split .wx-sky {
  gap: 1px;
}
.weather-split .wx-sky .wx-icon {
  width: 1.45rem;
  height: 1.45rem;
  color: var(--muted);
  display: block;
  flex: 0 0 auto;
  margin: 0;
}
.weather-split .wx-sky .wx-cond {
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.05;
  white-space: nowrap;
  text-align: center;
}

.parking-board-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: -4px 0 14px;
  max-width: 40em;
}
.parking-section { margin-bottom: 8px; }

.do-section { margin-top: 8px; margin-bottom: 8px; }
.do-partner-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.4;
}
.do-board td {
  vertical-align: top;
}
.do-board td:last-child {
  white-space: nowrap;
}
.do-title {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}
.do-body {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 400;
}
.do-when {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.do-place {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: normal;
}
.parking-board td:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.15rem;
  vertical-align: top;
  min-width: 4.5rem;
}
.parking-board .parking-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.parking-notes {
  font-size: 0.88rem;
  margin-bottom: 4px;
  max-width: 36em;
}
.parking-serves,
.parking-cap,
.parking-live-hint,
.parking-rate-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.parking-static { color: var(--warn); }
.parking-prices {
  margin-top: 8px;
  font-size: 0.88rem;
}
.parking-prices summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--link);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.parking-rate-list {
  list-style: none;
  margin: 8px 0 6px;
  max-width: 22em;
}
.parking-rate-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.parking-links { font-size: 0.82rem; margin-top: 6px; }
.parking-free-num { white-space: nowrap; }
.gotcha-line {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  max-width: 36em;
}
.take-this-meta { font-size: 0.9rem; color: var(--muted); margin: 8px 0; }
.take-this-verdict {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.take-this-verdict.yes { color: var(--open); }
.take-this-verdict.caution { color: var(--warn); }
.take-this-verdict.no { color: var(--danger); }
.go-results .btn-text { margin-top: 8px; }
.later-today { margin-top: 12px; font-size: 0.9rem; }
.later-today summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 600;
}
.gotcha-list { list-style: none; margin: 10px 0; }
.gotcha-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.webcam img { width: 100%; border: 1px solid var(--line); display: block; }
.webcam figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

@media (min-width: 768px) {
  .tagline {
    display: block;
    margin-top: 4px;
    font-size: 0.78rem;
    color: var(--muted);
  }
}

@media (min-width: 1024px) {
  main { padding-top: 12px; }
}

/* Board peeks — native <dialog>, Swiss station-board chrome */
.board td:has(> .board-link-btn),
.board td:has(> .board-link) {
  padding: 0;
}
.board-link-btn,
.board-link {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.board-link-btn:hover,
.board-link-btn:focus-visible,
.board-link:hover,
.board-link:focus-visible {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.board-dialog {
  margin: auto;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--text);
  box-shadow: none;
  max-width: min(420px, calc(100vw - 28px));
  width: 100%;
  max-height: min(90dvh, 720px);
  overflow: hidden;
}
.board-dialog:focus {
  outline: none;
}
.board-dialog::backdrop {
  background: rgba(20, 20, 20, 0.22);
}
.board-dialog-panel {
  background: var(--paper);
  padding: 0;
  overflow: auto;
  max-height: min(90dvh, 720px);
  border-top: 3px solid var(--swiss);
}
.board-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 14px 10px 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.spark {
  display: block;
  width: 100%;
  height: 56px;
  padding: 4px 12px 0;
}
.spark-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.spark-fill { fill: rgba(20, 20, 20, 0.06); }
.board-dialog-heading {
  min-width: 0;
  flex: 1;
  padding-top: 2px;
}
.board-dialog-head h3 {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  line-height: 1.2;
  color: var(--ink);
}
.board-dialog-head h3:focus {
  outline: none;
}
.board-dialog-tools {
  display: flex;
  align-items: flex-start;
  gap: 2px;
  flex: 0 0 auto;
}
.board-dialog-now {
  display: block;
  margin: 0;
  padding: 4px 4px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.board-dialog-close {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  margin: -4px -2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.board-dialog-close-x {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
}
.board-dialog-close-x::before,
.board-dialog-close-x::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
}
.board-dialog-close-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.board-dialog-close-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.board-dialog-close:hover {
  color: var(--ink);
  background: var(--bg);
}
.board-dialog-close:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
  color: var(--ink);
}
.board-dialog-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 4px 0 0;
  padding: 0;
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.board-dialog-meta .wx-icon {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  flex-shrink: 0;
}
.board-dialog-note,
.board-dialog-empty {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  padding: 6px 0 0;
  line-height: 1.4;
}
.board-dialog-section .board-dialog-empty,
.board-dialog-section .board-dialog-note {
  padding: 2px 0 0;
}
.board-dialog-note-inline {
  font-weight: 400;
  color: var(--muted);
}
.board-dialog-section {
  margin: 0;
  padding: 14px 16px 0;
}
.board-dialog-section--last,
.board-dialog-section:last-child {
  padding-bottom: 18px;
}
.board-dialog-section h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
  padding: 0 0 0 9px;
  border-left: 2px solid var(--swiss);
  line-height: 1.2;
}
.board-dialog-footer {
  margin: 14px 0 0;
  padding: 2px 16px 14px;
  border-top: 1px solid var(--line);
}
.board-dialog-footer .btn-text {
  margin-top: 0;
  padding: 10px 0;
  color: var(--ink);
}
.board-dialog-footer .btn-text:hover {
  color: var(--link);
}

/* Tables inside peeks: quieter frame, scannable rows */
.board-dialog .board {
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.board-dialog .board th {
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  padding: 7px 10px;
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  color: var(--muted);
}
.board-dialog .board td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.board-dialog .board tr:last-child td {
  border-bottom: 0;
}
.board-compact {
  font-size: 0.88rem;
}
.board-compact th,
.board-compact td {
  padding: 8px 10px;
}
.board-compact td.num,
.board-compact .dep-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.board-dialog .board td.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.dep-delay {
  margin-left: 4px;
  color: var(--warn);
  font-size: 0.8rem;
  font-weight: 700;
}
.dep-past {
  color: var(--muted);
}
.dep-past .dep-time {
  font-weight: 600;
}

/* Weather: hourly now / today accents */
.wx-hour-board td.wx-cond-cell {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wx-hour-board td.wx-hour {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.board-dialog .board tr.is-now {
  background: var(--sky);
  box-shadow: inset 2px 0 0 var(--swiss);
}
.board-dialog .board tr.is-now td {
  border-bottom-color: var(--ice);
}
.board-dialog .board tr.is-now td.wx-hour {
  font-weight: 700;
}
.board-dialog .board tr.is-today {
  background: color-mix(in srgb, var(--sky) 55%, transparent);
}
.board-dialog .board tr.is-today td:first-child {
  font-weight: 700;
}
.wx-week-board {
  margin-top: 0;
}
@supports not (background: color-mix(in srgb, white 50%, transparent)) {
  .board-dialog .board tr.is-today {
    background: var(--sky);
  }
}
