/* =========================================================
   Narada — content pages (guides, comparisons, answers)
   Layered on top of styles.css + legal-doc.css, using the
   same tokens. Nothing new in the palette: one accent, flat
   surfaces, hairline rules.
   ========================================================= */

.doc { padding: 40px 0 0; }

/* ---------- Header ---------- */

.doc-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.doc-crumbs a { color: var(--ink-3); text-decoration: none; }
.doc-crumbs a:hover { color: var(--accent); }
.doc-crumbs i { font-size: 9px; color: var(--ink-5); }

/* An article title is not a landing-page hero: the legal-doc scale (up to 54px)
   turned a normal headline into four lines. */
.doc-head h1 {
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
}
.doc-lede {
  max-width: 40em;
  margin: 16px 0 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
}
.doc-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-4);
}
.doc-byline-sep { color: var(--ink-5); }

/* ---------- The answer block ---------- */

/* Sits above everything else so the page answers its own question in the first
   screen, for a reader in a hurry and for a model that will quote one line of
   it out of context. */
.answer-box {
  margin: 8px 0 34px;
  padding: 20px 22px;
  background: var(--accent-ultra);
  border: 1px solid rgba(124, 92, 252, 0.22);
  border-radius: var(--radius);
}
.answer-box-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 10px;
}
.answer-box-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.answer-box-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.answer-box-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.answer-box-list strong { color: var(--ink); }

/* ---------- On this page ---------- */

.doc-toc {
  margin: 0 0 36px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-toc-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 10px;
}
.doc-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 24px;
}
.doc-toc a {
  font-size: 14px;
  color: var(--ink-3);
  text-decoration: none;
  line-height: 1.45;
}
.doc-toc a:hover { color: var(--accent); }

/* ---------- Body extras ---------- */

.doc-body { max-width: 760px; }
.doc-body h2 { margin-top: 46px; }
.doc-body h2:first-of-type { margin-top: 34px; }

.doc-rule {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 38px 0;
}

.doc-quote {
  margin: 20px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px;
  color: var(--ink-2);
}

.doc-pre {
  margin: 20px 0;
  padding: 16px 18px;
  background: var(--ink);
  color: #E8E6F0;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
}
.doc-pre code { background: none; color: inherit; padding: 0; }

/* Wide comparison tables scroll inside themselves rather than pushing the page
   sideways on a phone. */
.doc-table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.doc-table th,
.doc-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.doc-table thead th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--surface-dim);
  white-space: nowrap;
}
.doc-table tbody tr:last-child td { border-bottom: 0; }
.doc-table td:first-child { font-weight: 500; color: var(--ink); }
.doc-table code { font-size: 13px; }

/* Small semantic callouts, used sparingly from raw HTML in a page body. */
.note,
.warn {
  margin: 22px 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.6;
}
.note {
  background: var(--surface-dim);
  border: 1px solid var(--line-soft);
  color: var(--ink-2);
}
.warn {
  background: var(--amber-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-ink);
}
.note strong,
.warn strong { color: inherit; }

/* ---------- FAQ ---------- */

.doc-faq { margin-top: 52px; }
.doc-faq .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- CTA ---------- */

.doc-cta {
  margin: 56px 0 0;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  border: 1px solid var(--line-soft);
}
.doc-cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}
.doc-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.doc-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}
.doc-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ---------- Related ---------- */

.doc-related { margin: 52px 0 0; }
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.rel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}
.rel-card:hover {
  border-color: rgba(124, 92, 252, 0.35);
  transform: translateY(-1px);
}
.rel-kind {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.rel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.rel-desc {
  font-size: 13px;
  color: var(--ink-4);
  line-height: 1.5;
}

/* ---------- Cards are surfaces, not inline links ---------- */

/* legal-doc.css underlines every anchor inside .doc-body. That is right for a
   citation in a sentence and wrong for a whole card, so these opt out at the
   same specificity. */
.doc-body a.hub-card,
.doc-body a.rel-card,
.doc-body a.btn {
  text-decoration: none;
  border-bottom: 0;
}
.doc-body a.hub-card:hover,
.doc-body a.rel-card:hover { text-decoration: none; }

/* ---------- Hub pages ---------- */

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 26px 0 8px;
}
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
  transition: border-color 120ms ease, transform 120ms ease;
}
.hub-card:hover {
  border-color: rgba(124, 92, 252, 0.35);
  transform: translateY(-1px);
}
.hub-card-title {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}
.hub-card-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.55;
}

/* A hub page's body can be wider than a reading column, because it is a list of
   destinations rather than prose. */
.doc-wide .doc-body,
.doc-wide .doc-head { max-width: 1000px; }

@media (max-width: 760px) {
  /* `1fr` is minmax(auto, 1fr), so the widest button's min-content width won and
     the single column came out 308px wide inside a 276px card. */
  .doc-cta-inner { grid-template-columns: minmax(0, 1fr); }
  .doc-cta-actions { min-width: 0; }
  .doc-cta-actions .btn { white-space: normal; text-align: center; }
  .doc-toc ul { grid-template-columns: 1fr; }
  .answer-box { padding: 16px 18px; }
  .answer-box-list li { font-size: 15px; }
}
