/* support.garbo.ph's styles (sites/support.garbo.ph/; sites/README.md, "support.garbo.ph"). Garbo's colours (src/constants/brand.ts)
   and the phone's own fonts: no font from another site, so a visit tells nobody else. Light only, like
   the app. */
:root {
  --blue: #016dfd;
  --ink: #14201b;
  --muted: #5e6964;
  --line: #dce2e0;
  --soft: #edefee;
  --red-ink: #b3261e;
  --red-soft: #fdecec;
  --red-line: #f6c3c4;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); }
b { font-weight: 650; }

/* One column, phone width first; 16 px from the screen's sides like the app. */
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* The blue band at the top, with the wordmark (white on transparent). */
.band { background: var(--blue); color: #fff; padding: 20px 0 28px; }
.band a { color: #fff; }
.band .home { display: inline-block; }
.band .logo, .band .home img { display: block; width: auto; height: 32px; }
.band h1 { margin: 22px 0 6px; font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }
.band p { margin: 0; max-width: 600px; opacity: .92; }

main { padding-top: 4px; padding-bottom: 48px; }
h2 { margin: 36px 0 8px; font-size: 24px; line-height: 1.25; }
h3 { margin: 22px 0 4px; font-size: 18px; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
.updated { margin-top: 20px; color: var(--muted); font-size: 15px; }

/* Draft only (remove before publishing): the box at the top and the "to check" marks. */
.draft {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid #f3dd9a;
  border-radius: 12px;
  background: #fff7e0;
  font-size: 15px;
}
.check {
  display: inline-block;
  margin-left: 4px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff3b0;
  color: #6b5200;
  font-size: 12px;
  font-weight: 650;
  line-height: 20px;
  vertical-align: 1px;
  white-space: nowrap;
}

/* "If a child is in danger right now". */
.urgent {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--red-line);
  border-radius: 14px;
  background: var(--red-soft);
}
.urgent h2 { margin: 0 0 2px; font-size: 20px; }
.urgent p { margin: 0; font-size: 20px; }
.urgent a { color: var(--red-ink); font-weight: 700; }

.warn { padding: 12px 14px; border-radius: 12px; background: var(--soft); }

/* Help lines: a name, the number, what it's for. */
.lines { margin: 12px 0 16px; }
.lines > div { padding: 12px 0; border-top: 1px solid var(--line); }
.lines > div:last-child { border-bottom: 1px solid var(--line); }
.lines dt { font-weight: 700; }
.lines dd { margin: 2px 0 0; }
.lines .number { font-size: 20px; font-weight: 700; }
.lines .what { display: block; color: var(--muted); font-size: 15px; }

/* The Terms (terms.html, made by scripts/build-terms-page.mjs): the contents, the Parts, the lists. */
.contents { margin: 24px 0 8px; padding: 12px 16px; border-radius: 12px; background: var(--soft); font-size: 15px; }
.contents ol { margin: 0; padding-left: 0; list-style: none; }
.contents li { margin: 3px 0; }
.contents li.part { margin-top: 10px; font-weight: 650; }
h2.part { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.items { padding-left: 0; list-style: none; }
.items li { margin: 8px 0; }

footer { margin-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 18px; padding-bottom: 40px; }
footer a { color: var(--muted); }
