/* paintedmiles.com: the home, support and privacy pages, in the app's colours. Self-contained: no outside fonts,
   scripts or images, so the strict Content-Security-Policy in _headers can stay "self" only. */
:root {
  --page: #fff6f3;
  --surface: #fffdfb;
  --border: #f4dddd;
  --lip: #ebcbce;
  --ink: #4a2a3a;
  --muted: #86616f;
  --primary: #c94f72;
  --primary-lip: #983553;
  --tint: #fce3e6;
  --text: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Zen Maru Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --page: #221a1e;
    --surface: #2d2328;
    --border: #45343c;
    --lip: #170f13;
    --ink: #f6e9ee;
    --muted: #c8adb8;
    --primary: #ef7d9c;
    --primary-lip: #b04e6c;
    --tint: #3a2730;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  color: var(--ink);
  background: radial-gradient(120% 50% at 50% 0%, var(--tint) 0%, transparent 60%), var(--page);
  line-height: 1.55;
}
main { max-width: 680px; margin: 0 auto; padding: 32px 16px 56px; }
a { color: var(--primary); font-weight: 700; text-underline-offset: 2px; }

.head { text-align: center; margin-bottom: 22px; }
.mascot { width: 96px; height: 96px; }
h1 { font-size: 28px; line-height: 1.2; margin: 6px 0 6px; font-weight: 700; }
h2 { font-size: 20px; margin: 0 0 8px; }
h3 { font-size: 16px; margin: 18px 0 4px; }
.head p, .muted { color: var(--muted); margin: 0; }
.section-title { margin: 28px 4px 10px; }

.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 4px 0 var(--lip);
  padding: 18px;
  margin-bottom: 14px;
}
.card p, .card li { color: var(--muted); }
.card p { margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 10px; padding-left: 20px; }
.card strong, .card b { color: var(--ink); }
.note { font-size: 13px; margin-top: 18px !important; }

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--primary-lip);
  margin: 6px 0 4px;
}
.button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--primary-lip); }

details { border-top: 2px solid var(--border); padding: 12px 2px; }
details:first-of-type { border-top: 0; padding-top: 2px; }
details:last-of-type { padding-bottom: 2px; }
summary { cursor: pointer; font-weight: 700; color: var(--ink); }
details p { margin: 8px 0 0 !important; }

.report b { word-break: break-all; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 8px 6px; border-top: 2px solid var(--border); color: var(--muted); }
th { color: var(--ink); border-top: 0; }
.table-wrap { overflow-x: auto; }

footer { text-align: center; color: var(--muted); font-size: 13px; margin-top: 28px; }
footer p { margin: 0 0 4px; }

/* The home card, centred on the page. */
.home main { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.home footer { margin-top: 18px; }
.home .card { text-align: center; max-width: 440px; padding: 24px 22px; }
.home .card p { margin-bottom: 0; }
.home .lead { color: var(--ink); font-weight: 700; margin: 0 0 12px; }
.home .features { text-align: left; margin: 0 0 14px; padding-left: 20px; font-size: 15px; }
.home .features li { margin-bottom: 6px; }
