/* The info pages (P5.17): /about, /help, /privacy, /feedback. Server-rendered, no script but the
   theme choice (sun.js, as the app). Same Harbour tokens as the app (tokens.css loads first), same
   type, light and dark by the body.dark class the page sets before first paint. Phone first: a 16 px
   gutter, one column, nothing wider than the screen. */
@font-face {
  font-family: 'Public Sans Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/static/fonts/public-sans-latin-wght-normal.woff2') format('woff2-variations');
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: 'Public Sans Variable', 'Public Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.55;
  background: var(--page); color: var(--ink);
  --link: var(--navy);
}
body.dark { --link: var(--due); }

.info-head { background: var(--navy); color: #fff; padding: 8px 16px; padding-top: max(8px, env(safe-area-inset-top)); }
.info-head-in { max-width: 680px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.info-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; font-size: 15px; font-weight: 800; }
.info-brand img { width: 28px; height: 28px; border-radius: 6px; }
.info-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--nav-tab-ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.info-back:hover, .info-brand:hover { text-decoration: underline; }
.info-head a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

main { flex: 1; width: 100%; max-width: 680px; margin: 0 auto; padding: 24px 16px 16px; }
h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 800; }
h2 { margin: 28px 0 8px; font-size: 17px; line-height: 1.3; font-weight: 700; }
p, ul, ol { margin: 0 0 12px; color: var(--ink-secondary); }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 700; }
a { color: var(--link); overflow-wrap: anywhere; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.info-note { padding: 12px 16px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }

/* The footer row: About · Help · Accuracy · Privacy · Feedback, small and muted, 44 px to tap. */
.info-foot { max-width: 680px; width: 100%; margin: 0 auto; padding: 0 16px 16px; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.info-links { display: flex; flex-wrap: wrap; justify-content: center; border-top: 1px solid var(--line); padding-top: 8px; }
.info-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 12.5px; color: var(--ink-muted); text-decoration: none; border-radius: var(--radius-button); }
.info-links a:hover { color: var(--ink); text-decoration: underline; }
.info-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.info-links a:focus-visible { outline: 2px solid var(--link); outline-offset: -2px; }

@media (min-width: 600px) {
  main { padding-top: 40px; }
  h1 { font-size: 28px; }
}

/* P5.21: the live stop page (web/routes/stop_pages.py): departures as rows, chips for the routes,
   the ad unit below the board. Same tokens as the app. */
.stop-sub { margin: -8px 0 16px; color: var(--ink-muted); font-size: 14px; }
.dep-list { list-style: none; padding: 0; margin: 0 0 12px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.dep-list li { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink); }
.dep-list li:first-child { border-top: 0; }
.dep-rs { flex: none; min-width: 3.2em; font-weight: 800; }
.dep-hs { flex: 1; min-width: 0; color: var(--ink-secondary); }
.dep-due { flex: none; font-weight: 700; text-align: right; }
.dep-live { color: var(--ink); }
.dep-late { color: var(--ink-muted); font-weight: 600; font-size: 13px; }
.dep-clock { color: var(--ink-muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; list-style: none; margin: 0 0 12px; }
.chips li { margin: 0; }
.chips span { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink); font-weight: 700; font-size: 14px; }
.stop-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.stop-actions a, .stop-actions button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius-button); border: 1px solid var(--line); background: var(--surface); color: var(--link); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.ad-slot { margin: 24px 0 8px; min-height: 100px; text-align: center; }
