/* Legal and information pages (pages/*.html wrapped by scripts/lib/pages.mjs). Reuses the map's
   theme variables, fonts and bar from site.css; overrides only what a scrolling document needs.
   MOBILE FIRST: base rules are the 360 px phone, one reading column from 720 px. */
@import url("site.css");

html,
body.doc {
  height: auto;
  overflow: visible;
}
body.doc {
  padding-top: calc(var(--bar-h) + var(--safe-t));
  overflow-wrap: break-word;
}
.back {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 8px;
  color: var(--ink);
  font-size: 15px;
}
.doc main,
.doc .foot {
  max-width: 720px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}
.doc main {
  padding-top: 12px;
  padding-bottom: 24px;
}
.doc h1 {
  margin-top: 12px;
}
.doc h2 {
  margin-top: 28px;
  font-size: 23px;
}
.doc a {
  color: var(--navy);
  text-underline-offset: 3px;
}
.doc main p a,
.doc main li a,
.doc main dd a {
  /* inline links in running text: a taller hit area without moving the line */
  padding: 12px 0;
}
.updated {
  color: var(--dim);
  font-size: 14px;
}
.doc ul {
  padding-left: 20px;
}
.doc li + li {
  margin-top: 6px;
}
.doc dt {
  margin-top: 14px;
  font-weight: 600;
}
.doc dd {
  margin: 4px 0 0;
}
.doc code {
  font:
    400 15px var(--num),
    monospace;
}
.doc q {
  font-style: italic;
}
.doc .foot {
  padding-top: 12px;
  padding-bottom: calc(16px + var(--safe-b));
}
.doc .foot p + .legal,
.doc .foot .legal + p,
.doc .foot .langs + p {
  margin-top: 4px;
}
