/* Text pages (About, 404) */
.page {
  display: flex;
  gap: 40px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 16px 40px;
  align-items: flex-start;
}
.content { flex: 1; min-width: 0; max-width: 680px; }
.content h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 12px; }
.content h2 { font-size: 20px; margin: 28px 0 8px; }
.content p, .content li { color: var(--text); }
.content ul { padding-left: 20px; }
.content li { margin-bottom: 6px; }
.lead { font-size: 18px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); margin-top: 24px; }
.side-ad { flex: none; width: 300px; position: sticky; top: 16px; }
.footer { border-top: 1px solid var(--line); padding: 16px; text-align: center; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) {
  .page { display: block; }
  .side-ad { display: none; }
}

/* City / freeway pages */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.crumbs a { color: var(--muted); }
.button { display: inline-block; background: var(--accent-strong); color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.button:hover { background: #267f30; }
.grid-wrap { overflow-x: auto; margin: 10px 0; }
.speed-grid, .fwy-table { border-collapse: collapse; font-size: 13px; }
.speed-grid caption, .fwy-table caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.speed-grid th, .speed-grid td { padding: 4px 5px; text-align: center; border: 1px solid #fff; }
.speed-grid thead th { font-weight: 600; color: var(--muted); font-size: 11px; }
.fwy-table th, .fwy-table td { padding: 5px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.s1 { background: #e02020; color: #fff; }
.s2 { background: #ff8a00; color: #111; }
.s3 { background: #f2c500; color: #111; }
.s4 { background: #1cc5d8; color: #111; }
.s5 { background: #22b14c; color: #fff; }
.link-list a { white-space: nowrap; }
.city-list li { margin-bottom: 6px; }
.chart { margin: 10px 0; }
.chart svg { width: 100%; height: auto; max-width: 720px; display: block; }
.chart figcaption { font-size: 13px; color: var(--muted); }

/* Drive Time Estimator */
.est { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.est label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.est select { padding: 7px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font-weight: 400; min-width: 0; }
.est-result { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; min-height: 120px; }
.est-result p { margin: 6px 0; }
.est-big { font-size: 20px; }
.est-big strong { font-size: 32px; }
.est-tip { color: var(--text); }
.est-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; margin: 14px 0 4px; }
.est-chart button { flex: 1; min-width: 0; border: 0; padding: 0; border-radius: 2px 2px 0 0; cursor: pointer; opacity: .55; }
.est-chart button:hover, .est-chart button:focus-visible { opacity: .85; }
.est-chart button.on { opacity: 1; outline: 2px solid #111; outline-offset: 1px; }
.est-axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent-strong); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 600; }
