/* Invecter — resources (glossaire / guides) reading pages.
   Readability-first: high contrast, ~68ch measure, generous spacing. Keeps the
   Invecter accent (#FFA51F) without the black+neon of the marketing hub. */

:root {
  --bg: #0e0e10;
  --surface: #151517;
  --text: #ececee;
  --muted: #9a9aa0;
  --hair: rgba(255, 255, 255, 0.10);
  --accent: #FFA51F;
  --measure: 40rem; /* ~68ch */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.doc {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 20px 80px;
}

.crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { margin: 0 6px; }
.crumbs [aria-current] { color: var(--text); }

.cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(255, 165, 31, 0.4);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

h1 {
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

/* TL;DR — the answer-first block LLMs quote. Set apart, high contrast. */
.tldr {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  margin: 0 0 34px;
}

.body h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  line-height: 1.3;
}
.body p { margin: 0 0 18px; }
.body ul { margin: 0 0 18px; padding-left: 22px; }
.body li { margin: 0 0 8px; }
.body strong { color: #fff; }
.body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(255,165,31,0.35); }
.body a:hover { border-bottom-color: var(--accent); }

.related {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hair);
}
.related h2 { font-size: 1.05rem; margin: 0 0 12px; }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.related a {
  display: inline-block;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 6px 14px;
  text-decoration: none;
}
.related a:hover { border-color: var(--accent); }

.cta {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 20px;
}
.cta-name { color: var(--accent); font-weight: 700; letter-spacing: 0.02em; margin-bottom: 6px; }
.cta p { color: var(--muted); margin: 0 0 14px; font-size: 0.98rem; }
.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #0e0e10;
  font-weight: 700;
  text-decoration: none;
  border-radius: 22px;
  padding: 10px 20px;
}

/* Index grid */
.doc section { margin-top: 36px; }
.doc section h2 { font-size: 1.15rem; margin: 0 0 14px; color: var(--accent); }
ul.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
ul.grid a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
ul.grid a:hover { border-bottom-color: var(--accent); }

@media (max-width: 560px) {
  body { font-size: 17px; }
  h1 { font-size: 1.7rem; }
  ul.grid { grid-template-columns: 1fr; }
}
