/* The written pages on mapzzle.com: privacy, terms, support and the 404.
   Loads on top of theme.css, which holds the colours, type and page chrome
   shared with the home page. */

/* ── Page header: a short version of the home page's teal band ───────────── */

.page-hero {
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, 0.2), transparent 62%),
    linear-gradient(160deg, var(--teal) 0%, #178a8c 50%, var(--teal-deep) 100%);
  color: #fff;
  padding: 28px 0 clamp(36px, 5vw, 56px);
}
/* Line the band up with the text column below it. */
.page-hero .shell { max-width: 46rem; }
.page-hero .topbar { margin-bottom: clamp(28px, 5vw, 48px); }
.page-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.page-hero .updated {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
}

/* Short pages (the 404) should still push the footer to the bottom. */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }

/* ── Prose ───────────────────────────────────────────────────────────────── */

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 56px) 16px clamp(48px, 7vw, 76px);
}

main h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.6rem);
  color: var(--title);
  margin: 2.6rem 0 0.7rem;
  scroll-margin-top: 1.5rem;
}
main h2:first-of-type { margin-top: 0; }
main h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.9rem 0 0.45rem;
}
main p, main li { color: var(--text); }
main ul { margin: 0.6rem 0 1em; padding-left: 1.3rem; }
main li { margin-bottom: 0.35rem; }
main li::marker { color: var(--primary); }
main a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

/* The "short version" box each page opens with */
.lead {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  margin: 0 0 2.4rem;
}
/* Only the box's own heading, never a bold run inside a bullet. */
.lead > strong {
  display: block;
  color: var(--title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.lead ul { margin: 0; padding-left: 1.2rem; }
.lead li:last-child { margin-bottom: 0; }

/* Contact block at the foot of a page */
.contact {
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
  margin-top: 2.4rem;
}
.contact p { margin: 0; }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin: 1.2rem 0 1.6rem;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
thead th {
  color: var(--text-soft);
  font-weight: 600;
  background: var(--mint);
}
tbody tr:last-child td { border-bottom: none; }

/* The footer tracks the text column too (style.css only loads on these pages). */
footer .shell { max-width: 46rem; }

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.notfound main { text-align: center; }
.notfound main p { font-size: 1.08rem; }
.notfound .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 1.6rem;
}

@media (max-width: 560px) {
  .lead, .contact { padding: 16px 16px; border-radius: 18px; }
  main { padding-left: 14px; padding-right: 14px; }
}
