/* Vaenyx — document pages (report.html).
   Deliberately standalone, NOT an add-on to css/style.css. That stylesheet is
   written for the single-screen landing: it sets `overflow: hidden` on body
   (a long document then cannot be scrolled at all) and it owns generic class
   names like `.note` (body copy was being forced into wide-tracked UPPERCASE).
   A legal complaints route used by people who are not our users must not
   depend on the landing's layout rules, so it gets its own file.

   Palette mirrors the :root block in css/style.css — that file stays the
   source of truth for the brand colours; keep these in sync if it changes. */

:root {
  --bg: #0b0c14;
  --card: #12131f;
  --border: #1e1f33;
  --border-2: #23243a;
  --border-3: #35364f;
  --text: #f0f0f6;
  --text-2: #9a9bb4;
  --text-3: #7a7b9c;
  --text-faint: #6f7090;
  --accent: #8f8bc0;
  --accent-2: #c0bde4;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Control edges need 3:1 to be perceivable (WCAG 1.4.11). --border-3 is only
     1.57:1 on --card, which left the fallback routes' buttons looking like
     plain text — bad here, since Options B and C exist for the person whose
     mail app did nothing. 3.43:1 on --card. */
  --border-ctl: #66678f;
  color-scheme: dark;            /* native select + scrollbars follow the page */
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;        /* footer sits at the bottom on short screens */
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 8px;
}

/* --- Header: the site's identity, and the way back home --- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* max() keeps text clear of a notch in landscape (viewport-fit=cover) */
  padding-top: calc(12px + env(safe-area-inset-top));
  padding-right: max(clamp(16px, 4vw, 28px), env(safe-area-inset-right));
  padding-bottom: 12px;
  padding-left: max(clamp(16px, 4vw, 28px), env(safe-area-inset-left));
  background: rgba(11, 12, 20, 0.94);
  border-bottom: 1px solid var(--border);
}
@supports (backdrop-filter: blur(10px)) {
  .site-head {
    background: rgba(11, 12, 20, 0.72);
    backdrop-filter: blur(10px);
  }
}

.brand {
  display: inline-block;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 6px;
  color: var(--accent-2);
  text-decoration: none;
  text-shadow: 0 0 16px rgba(143, 139, 192, 0.45);
  transition: color 0.2s var(--ease);
}
.brand:hover, .brand:focus-visible { color: #fff; }

.lang {
  flex: none;
  min-height: 44px;              /* same comfortable tap target as the buttons */
  padding: 8px 14px;
  border: 1px solid var(--border-ctl);
  border-radius: 10px;
  background: var(--card);
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.lang:hover, .lang:focus-visible { color: var(--text); border-color: var(--accent); }

/* --- Document body --- */
.doc {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(28px, 5vw, 44px);
  padding-right: max(clamp(16px, 4vw, 24px), env(safe-area-inset-right));
  padding-bottom: 64px;
  padding-left: max(clamp(16px, 4vw, 24px), env(safe-area-inset-left));
}

.doc h1 {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.4px;
  margin-bottom: 14px;
}
.doc h2 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
  margin: 36px 0 10px;
}
.doc p {
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 14px;
}
.doc a {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.doc a:hover { color: #fff; }

/* Small print. Named `hint`, never `note`: `.note` belongs to the landing. */
/* The fallback instructions are the most important small print on the page,
   so they use --text-2 (6.78:1 on --card) rather than a dimmer grey. */
.hint {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 12px 0 0;
}
.hint strong { color: var(--text); font-weight: 600; }

/* --- One card per way of reaching us --- */
.route {
  margin: 12px 0 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border-2);
  border-radius: 14px;
}
.route-label {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;     /* intentional, and only on this short label */
  color: var(--text-2);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;              /* comfortable to hit on a phone */
  padding: 11px 16px;
  border: 1px solid var(--border-ctl);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease);
}
.mini:hover, .mini:focus-visible {
  border-color: var(--accent);
  background: rgba(143, 139, 192, 0.12);
}

.mini.primary {
  border-color: var(--accent);
  background: rgba(143, 139, 192, 0.14);
  color: var(--accent-2);
  font-weight: 500;
}
.mini.primary:hover, .mini.primary:focus-visible {
  background: rgba(143, 139, 192, 0.26);
  color: #fff;
}

select.mini {
  width: 100%;
  max-width: 340px;
  font-size: 16px;               /* 16px keeps iOS from zooming on focus */
  color-scheme: dark;
}

/* Windows/Chrome draws the open dropdown on a system light panel while the
   options inherit the control's near-white text — white on white, unreadable.
   Setting both explicitly keeps the list legible wherever it is drawn. */
select.mini option {
  background-color: var(--card);
  color: var(--text);
}

/* The address, in plain text, big enough to read out or copy by hand */
.addr {
  font-size: clamp(17px, 4.4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
  /* breaks only if it truly cannot fit — an address split mid-string invites
     a mis-typed transcription */
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

pre.template {
  margin: 8px 0 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  white-space: pre-wrap;         /* wraps instead of forcing the page sideways */
  word-break: break-word;
  overflow-x: auto;
  -webkit-user-select: all;
  user-select: all;
}

/* --- Footer --- */
.doc-foot {
  border-top: 1px solid var(--border);
  padding: 18px clamp(16px, 4vw, 24px) calc(20px + env(safe-area-inset-bottom));
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);          /* --text-faint is 4.08:1, under AA */
}
.doc-foot a { color: var(--text-3); text-decoration: none; }
.doc-foot a:hover, .doc-foot a:focus-visible {
  color: var(--accent-2);
  text-decoration: underline;
}
.doc-foot .sep { opacity: 0.5; margin: 0 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --- Phones: one full-width control per row, nothing to aim at --- */
@media (max-width: 460px) {
  .btn-row { gap: 8px; }
  .btn-row .mini { width: 100%; }
  select.mini { max-width: none; }
  .doc h2 { margin-top: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* --- Print: someone may want this on paper for their records --- */
@media print {
  /* buttons are useless on paper, but the chosen category must still print */
  .site-head, .lang, button.mini, a.mini { display: none !important; }
  select.mini { border: 1px solid #999; background: none; color: #000; }
  body { background: #fff; color: #000; }
  .doc { max-width: none; padding: 0; }
  .doc h1, .doc h2, .doc p, .hint, .route-label, .addr { color: #000; }
  .doc a { color: #000; }
  .route { background: none; border: 1px solid #999; break-inside: avoid; }
  pre.template { background: none; border: 1px solid #999; color: #000; }
  .doc-foot { border-top: 1px solid #999; color: #000; }
}
