/* The /help fallback page, and (inlined) the 502/503/504 page that nginx serves. Same palette and help
   button as the site. Keep this file free of dollar signs and apostrophes: deploy.sh embeds it in an
   nginx string (a test checks this). */
:root {
  --page: #FFF8F1;
  --card: #FFFEFC;
  --text: #2B2440;
  --muted: #665B73;
  --line: #E8DCD7;
  --accent: #FF7A85;
  --focus: #6441B5;
  --shadow: rgba(43, 36, 64, 0.12);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #241C1A;
    --card: #342724;
    --text: #FFF1DD;
    --muted: #E6CDB5;
    --line: #694D40;
    --focus: #D9C6FF;
    --shadow: rgba(0, 0, 0, 0.42);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.help-page {
  max-width: 480px;
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) 24px 160px;
}

.help-page h1 {
  margin: 0 0 16px;
  font-size: 30px;
  line-height: 1.2;
}

.help-page p {
  margin: 0 0 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  font-size: 19px;
}

.help-page a {
  color: var(--text);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* "Call 999": a full-width 44 px button, so a shaking hand cannot miss it. */
.help-page .call-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 12px 18px;
  border-radius: 20px;
  background: var(--accent);
  color: #2B2440;
  font-size: 19px;
  text-decoration: none;
}

/* Her private line (only with the help cookie): above 999, the same full-width 44 px shape. */
.help-page .line-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0 0 12px;
  padding: 12px 18px;
  border-radius: 20px;
  background: #BFE8C9;
  color: #2B2440;
  font-size: 19px;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* The same help button as on every screen of the site: fixed, 44 px, above everything, never animated. */
.help-button {
  position: fixed;
  z-index: 1000;
  right: max(16px, calc((100vw - 480px) / 2 + 16px));
  bottom: calc(76px + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 4px 16px var(--shadow);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: none;
  animation: none;
}
