/* mycommute.london — shared content-page styles */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100vw; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  background: #F7F7F7; color: #000;
  -webkit-font-smoothing: antialiased;
}
a { color: #000; }
a:hover { color: var(--accent, #E32017); }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(247,247,247,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.nav-inner { max-width: 1136px; margin: 0 auto; padding: 0 16px; height: 3.25rem; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 720px) { .nav-inner { padding: 0 24px; } }
.nav-brand { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: #000; }
.nav-brand .dot { color: #E32017; }
.nav-brand .tld { opacity: 0.6; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 1.25rem; }
.nav-links a { font-size: 0.875rem; color: #4b4b4b; text-decoration: none; transition: color 150ms; }
.nav-links a:hover { color: #000; }
.nav-links a.active { color: #000; font-weight: 500; }

.page { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem 3rem; }
.page h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 0.5rem; line-height: 1.1; }
.page .lede { font-size: 1.125rem; color: #4b4b4b; font-weight: 400; line-height: 1.55; margin: 0 0 2rem; }
.page .updated { font-size: 0.875rem; color: #6b6b6b; margin: 0 0 2.5rem; }
.page h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.015em; margin: 2.5rem 0 0.75rem; }
.page h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.page p, .page li { font-size: 1rem; line-height: 1.7; color: #1f1f1f; }
.page p { margin: 0 0 1rem; }
.page ul, .page ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.page li { margin-bottom: 0.4rem; }
.page strong { color: #000; font-weight: 600; }
.page em { color: #1f1f1f; }

/* Line ribbon at top of line pages */
.line-ribbon {
  background: var(--accent, #E32017);
  color: var(--accent-fg, #fff);
  padding: 1.75rem 1.5rem 1.5rem;
}
.line-ribbon-inner { max-width: 48rem; margin: 0 auto; }
.line-ribbon .eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; margin: 0 0 0.5rem; }
.line-ribbon h1 { margin: 0; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; color: var(--accent-fg, #fff); }
.line-ribbon p { margin: 0.6rem 0 0; font-size: 1rem; line-height: 1.5; opacity: 0.9; max-width: 38rem; color: var(--accent-fg, #fff); }

/* Quick-facts box */
.facts { background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem; margin: 1.5rem 0; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04); }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.25rem; margin: 0; }
.facts dt { font-size: 0.75rem; color: #6b6b6b; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.1rem; }
.facts dd { font-size: 0.95rem; color: #000; margin: 0; font-weight: 500; }
@media (max-width: 540px) { .facts dl { grid-template-columns: 1fr; } }

/* Callout */
.callout { border-left: 3px solid var(--accent, #E32017); background: #fff; padding: 1rem 1.25rem; border-radius: 0 0.75rem 0.75rem 0; margin: 1.5rem 0; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04); }
.callout p { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.callout p > strong:first-child { display: block; margin-bottom: 0.2rem; }

/* CTA back to live status */
.cta {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.75rem 1.25rem;
  background: #000; color: #fff !important; border-radius: 999px; font-weight: 600;
  font-size: 0.95rem; text-decoration: none; margin: 0.5rem 0 1.5rem;
}
.cta:hover { background: var(--accent, #E32017); }
.cta .dot { width: 8px; height: 8px; border-radius: 999px; background: #00E676; }

/* Lines grid (cross-link block at bottom of pages) */
.lines-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem; margin: 1rem 0 2rem;
}
.lines-grid a {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border-radius: 0.75rem; padding: 0.75rem 0.875rem;
  text-decoration: none; color: #000; font-size: 0.875rem; font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.lines-grid a:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 20px rgba(0,0,0,0.06); }
.lines-grid .swatch { width: 14px; height: 14px; border-radius: 4px; flex-shrink: 0; }

/* Guides grid */
.guides-grid {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 1rem 0 2rem;
}
@media (min-width: 640px) { .guides-grid { grid-template-columns: 1fr 1fr; } }
.guides-grid a {
  display: block; background: #fff; border-radius: 1rem; padding: 1.25rem 1.5rem;
  text-decoration: none; color: #000;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.guides-grid a:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06); }
.guides-grid h3 { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 600; color: #000; }
.guides-grid p { margin: 0; font-size: 0.875rem; color: #4b4b4b; line-height: 1.5; }

.section-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: #6b6b6b; margin: 2.5rem 0 0.75rem;
}

/* Site footer — matches homepage footer exactly */
.site-footer { background: #000; color: #fff; padding: 32px 0 24px; margin-top: 24px; }
.site-footer-inner { max-width: 1136px; margin: 0 auto; padding: 0 16px; }
.site-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.site-footer-brand .wordmark { font-weight: 700; font-size: 15px; letter-spacing: -0.2px; color: #fff; }
.site-footer-brand .wordmark .dot { color: #E32017; }
.site-footer-brand .wordmark .tld { opacity: 0.6; font-weight: 500; }
.site-footer-desc { font-size: 12px; color: #afafaf; max-width: 600px; line-height: 1.6; margin: 0 0 14px; }
.site-footer-attr { font-size: 12px; color: #6b6b6b; max-width: 600px; line-height: 1.6; margin: 0 0 14px; }
.site-footer-attr a { color: #afafaf; text-decoration: none; }
.site-footer-attr a:hover { color: #fff; }
.site-footer-links { display: flex; gap: 16px; font-size: 12px; color: #afafaf; flex-wrap: wrap; align-items: center; }
.site-footer-links a { color: #afafaf; text-decoration: none; }
.site-footer-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .site-footer-inner { padding: 0 1rem; }
}

@media (max-width: 640px) {
  .page { padding: 2rem 1rem 2rem; }
  .page h1 { font-size: 1.875rem; }
  .page .lede { font-size: 1rem; }
  .page h2 { font-size: 1.25rem; }
  .page p, .page li { font-size: 0.9375rem; }
  .line-ribbon { padding: 1.5rem 1rem 1.25rem; }
  .line-ribbon h1 { font-size: 2rem; }
  .footer-inner { padding: 0 1rem; font-size: 0.6875rem; }

  /* On small screens, only Status + Planner remain in the top nav.
     About/Privacy/Terms/Stations stay accessible elsewhere (footer or hero search). */
  .nav-links { gap: 0.9rem; }
  .nav-links a[href*="about"],
  .nav-links a[href*="privacy"],
  .nav-links a[href*="terms"],
  .nav-links a[href*="#stations"] { display: none; }
  /* Homepage TopBar: hide the Stations tab pill on mobile (station search remains
     accessible via the in-page hero search). Status pill stays visible. */
  .nav-links button[data-tab="stations"] { display: none; }
}
