/*
 * The support site's stylesheet — the portal's firelit palette, on a document rather than an app.
 *
 * The tokens below are copied from apps/app-web/src/styles.css deliberately rather than imported: that file
 * is a component stylesheet for a signed-in SPA and pulling it in would drag class names this site never
 * renders. What has to stay in step is the PALETTE, so only the palette is duplicated, and it is the one
 * block to re-copy if the brand moves.
 */

:root {
  --ink: #0a0705;
  --ink-2: #100a06;
  --char: #17100a;
  --panel: rgba(28, 19, 12, 0.72);
  --panel-solid: #1a120b;
  --panel-2: #20160d;

  --ember: #ff6f1a;
  --gold: #f4b942;
  --gold-soft: #ffd584;

  --cream: #fff6ea;
  --muted: #cdbba7;
  --faint: #8f8170;

  --ok: #74cf63;
  --warn: #f4b942;
  --danger: #ff6b5e;
  --info: #5aa9ff;

  --line: rgba(255, 226, 190, 0.13);
  --line-strong: rgba(255, 226, 190, 0.26);

  --radius: 18px;
  --radius-sm: 11px;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 700px at 20% -10%, var(--char), var(--ink) 60%);
  background-attachment: fixed;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 10;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

/* ── chrome ─────────────────────────────────────────────────────────────────────────────────────────── */

.top {
  border-bottom: 1px solid var(--line);
  background: rgba(10, 7, 5, 0.72);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: inline-block;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-decoration: none;
}
.brand span { color: var(--gold); font-weight: 600; }

.wrap {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 44px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 90px;
  align-items: start;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 26px 24px;
  color: var(--faint);
  font-size: 14px;
}

/* ── sidebar ────────────────────────────────────────────────────────────────────────────────────────── */

.side { position: sticky; top: 88px; }
.side section { margin-bottom: 26px; }
.side h2 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 9px;
}
.side ul { list-style: none; margin: 0; padding: 0; }
.side a {
  display: block;
  padding: 5px 12px;
  margin-left: -12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
}
.side a:hover { color: var(--cream); background: rgba(255, 226, 190, 0.05); }
.side a.here {
  color: var(--ink);
  background: var(--gold);
  font-weight: 600;
}

/* ── content ────────────────────────────────────────────────────────────────────────────────────────── */

main { min-width: 0; max-width: 76ch; }

h1 {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}

h2 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 46px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 30px 0 10px;
  color: var(--gold-soft);
}

.anchor {
  margin-left: 9px;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }

p { margin: 0 0 15px; }
.lede { font-size: 19px; color: var(--muted); }

a { color: var(--gold); text-decoration-color: rgba(244, 185, 66, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--gold-soft); }

strong { color: #fff; font-weight: 700; }

ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 7px; }

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: rgba(255, 226, 190, 0.08);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

blockquote {
  margin: 22px 0;
  padding: 4px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(244, 185, 66, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
blockquote h3 { margin-top: 14px; color: var(--gold); }

/* Wide tables scroll rather than pushing the page sideways. */
table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: 15.5px;
}
th, td {
  border: 1px solid var(--line);
  padding: 9px 13px;
  text-align: left;
  vertical-align: top;
}
th { background: rgba(255, 226, 190, 0.05); font-weight: 700; color: var(--cream); }

/* ── the screenshot placeholder ─────────────────────────────────────────────────────────────────────── */

.shot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 20px 0;
  padding: 26px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 226, 190, 0.03);
}
.shot-id {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.shot-desc { color: var(--muted); }

/* ── the review marker ──────────────────────────────────────────────────────────────────────────────── */

.banner {
  margin: 0 0 26px;
  padding: 13px 18px;
  border: 1px solid rgba(255, 107, 94, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 94, 0.09);
  color: var(--cream);
  font-size: 15px;
}

p.review, blockquote.review {
  border-left: 3px solid var(--danger);
  background: rgba(255, 107, 94, 0.08);
  padding: 12px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}

/* ── the contents page ──────────────────────────────────────────────────────────────────────────────── */

.contents ul { list-style: none; padding: 0; }
.contents li { margin-bottom: 13px; }
.contents li a { font-weight: 600; font-size: 17px; }
.contents li span { display: block; color: var(--muted); font-size: 15px; }

/* ── narrow ─────────────────────────────────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 26px; padding: 22px 18px 70px; }
  .side { position: static; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .side section { margin-bottom: 16px; }
  h1 { font-size: 31px; }
  body { font-size: 16px; }
}
