/* Rules shared by the pages: the primary actions and the touch targets. The colour tokens are in
   tokens.css, the header in header.css. */
:root { accent-color: var(--accent); }

/* Primary actions: a class, so the bare button rule and the demo buttons stay as they are. */
button.primary, input.primary::file-selector-button {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 4px;
  color: var(--on-accent); background: var(--accent); border: 1px solid var(--accent);
}
button.primary { padding: 6px 12px; }
input.primary::file-selector-button { padding: 6px 12px; margin-right: 12px; }

/* Visually hidden, still read by assistive technology. */
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* The one-line footer, built by api/header.py `build_footer`: small and muted, in the header's
   80rem column. It is in normal flow, so on the planner it ends above the fixed "Adjust plan"
   bar, whose height the body's padding reserves. */
.site-footer { font-size: 0.85rem; }
.site-footer .inner {
  box-sizing: border-box; max-width: calc(80rem + 32px); margin: 0 auto; padding: 0 16px;
}
.site-footer a {
  display: inline-flex; align-items: center; min-height: 32px; color: var(--muted);
  text-decoration: underline;
}
.site-footer a[aria-current="page"] { color: var(--fg); text-decoration: none; }
/* The pages with a 36rem text column (mapbook, feedback, privacy): the footer link stands under
   the text. All three columns are 36rem plus 32px of padding. */
.site-footer--column .inner { max-width: calc(36rem + 32px); }

/* The privacy page: a text column like the feedback page's, 36rem. */
.privacy-body { margin: 0; font: 16px/1.5 "Albert Sans", system-ui, sans-serif; color: var(--fg); background: var(--bg); }
.privacy-page { box-sizing: border-box; max-width: calc(36rem + 32px); margin: 0 auto; padding: 16px; overflow-wrap: anywhere; }
.privacy-page h1 { font-size: 1.5rem; margin: 0 0 0.75rem; }
.privacy-page p { margin: 0 0 1rem; }
/* This page loads no app.css, whose `a` rule makes the site's links green; without this the
   address would be the browser's default blue. */
.privacy-page a { color: var(--accent); }

/* Touch targets on a phone; range inputs and checkboxes keep their native size. */
@media (max-width: 479.98px) {
  button, select, input[type="text"], input[type="number"], input[type="file"]::file-selector-button { min-height: 44px; }
  .site-footer a { min-height: 44px; }
}
