/*
 * The /bot and /privacy pages (ADR-49) in the site's look (the owner's "Report v2" design, frontend/src/index.css): the
 * same tokens, the white header bar with the wordmark, the content on a white card, and the footer. An external
 * stylesheet, as the CSP allows only 'self' styles (ADR-55). The two faces are the frontend build's latin files under
 * fixed names (frontend/scripts/prerender.mjs); without a frontend build the system fonts stand in.
 */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --accent: #2f5bff;
  --link: #1d43d8;
  --ground: #f4f5f8;
  --ink: #0e1726;
  --ink-soft: #2a3446;
  --muted: #4a5567;
  --line: #dde1e8;
  --rule: #e7eaf0;
  --control: #c9cfda;
  --night: #0b1220;
  --night-text: #e6ebf3;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-code: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* The header bar: the wordmark links home, the call to action leads to the form. */
.site-header, .site-footer { background: #fff; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); margin-top: auto; }
.bar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--ink); }
.wordmark span { color: var(--accent); }
.site-header a[href="/"] { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.site-header .cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; text-decoration: none;
}
.site-header .cta:hover { background: #1f2b40; color: #fff; }
.site-footer .bar { padding-top: 20px; padding-bottom: 20px; font-size: 0.875rem; }
.site-footer p { margin: 0; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.site-footer .wordmark { font-size: 1rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft);
  text-decoration-color: var(--control); text-underline-offset: 4px;
}
.site-footer nav a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* The content: one white card in a readable measure. */
main {
  width: 100%;
  max-width: 48rem;
  margin: 40px auto 72px;
  padding: 32px 20px 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (max-width: 52rem) {
  main { margin: 0 auto 48px; border-radius: 0; border-width: 0 0 1px; }
}
@media (min-width: 40rem) {
  .bar { padding-left: 24px; padding-right: 24px; }
  main { padding: 40px 48px 44px; }
}
h1, h2 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
h1 { font-size: 2.25rem; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 1rem; }
h2 { font-size: 1.375rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
p { margin: 0.75rem 0; color: var(--ink-soft); }
ul { margin: 0.75rem 0; padding-left: 1.25rem; color: var(--ink-soft); }
li { margin: 0.375rem 0; }
li::marker { color: var(--accent); }
code, pre { font-family: var(--font-code); font-size: 0.875em; }
code { background: var(--ground); border: 1px solid var(--rule); border-radius: 6px; padding: 0.05em 0.35em; overflow-wrap: anywhere; }
pre { background: var(--night); color: var(--night-text); padding: 14px 18px; border-radius: 12px; overflow-x: auto; line-height: 1.5; }
/* The closing line of each page's own text: its links home and to the other page. */
main > p:last-child { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); font-size: 0.9375rem; color: var(--muted); }
