/* FAQ, guides, comparisons and 404: additions on top of site.css (same tokens, same building blocks). */

/* Hero byline */
.rd-by { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 28px 0 0; color: var(--mute-dark); }

/* FAQ hero: search, chips, and an example answer from the site chat */
.rd-hero-faq .calm-body { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 72px); align-items: end; }
.rd-hero-faq .calm-body > :not(.rd-search) { grid-column: 1; }
.rd-search { display: contents; }
.rd-find { grid-column: 1; margin-top: clamp(28px, 4vw, 44px); display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; border-radius: 999px; background: #17181b; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); transition: box-shadow .3s; }
.rd-find:focus-within { box-shadow: inset 0 0 0 1.5px var(--lime), 0 0 0 6px rgba(198,255,61,.12); }
.rd-find svg { width: 22px; height: 22px; flex: none; stroke: #9a9d98; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.rd-find input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #f4f3ee; font: 400 18px/1 var(--font); outline: none; }
.rd-find input::placeholder { color: #7d807b; }
.rd-count { flex: none; color: var(--mute-dark); }
.rd-chips { grid-column: 1; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.rd-chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; color: #e4e5e0; text-decoration: none; font-size: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); transition: background .25s, color .25s; }
.rd-chip:hover, .rd-chip:focus-visible { background: var(--lime); color: var(--ink); }
.rd-ask { grid-column: 2; grid-row: 2 / span 4; align-self: end; margin: 0; padding: 18px; border-radius: 26px; background: #121315; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -30px rgba(0,0,0,.6); }
.rd-ask-top { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--mute-dark); }
.rd-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15); }
.rd-bub { margin: 0 0 10px; padding: 12px 14px; border-radius: 18px 18px 18px 6px; background: #1d1e21; color: #e4e5e0; font-size: 15px; line-height: 1.45; max-width: 92%; }
.rd-bub.rd-me { margin-left: auto; border-radius: 18px 18px 6px 18px; background: var(--lime); color: var(--ink); max-width: 80%; }
.rd-ask-btn { margin-top: 6px; width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: #f4f3ee; color: var(--ink); font: 600 15px/1 var(--font); cursor: pointer; }
.rd-ask-btn:hover, .rd-ask-btn:focus-visible { background: var(--lime); }
.rd-ask-light { width: auto; padding: 0 22px; background: var(--ink); color: #fff; }
@media (max-width: 960px) {
  .rd-hero-faq .calm-body { display: block; }
  .rd-search { display: block; }
  .rd-ask { margin-top: 28px; }
}
@media (max-width: 520px) { .rd-count { display: none; } .rd-find { height: 56px; } }

/* Topic tiles: whole tile is the link */
.rd-topics > div { transition: background .3s; }
.rd-topics h3 a { text-decoration: none; }
.rd-topics h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rd-topics > div:hover { background: var(--cream); }
.rd-topics h3 a:focus-visible { outline: none; }
.rd-topics > div:has(a:focus-visible) { box-shadow: inset 0 0 0 2px var(--ink); }

/* FAQ list */
.rd-side { position: sticky; top: 120px; }
.rd-more { margin-top: 22px; color: var(--mute); }
.rd-link { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: rgba(10,11,12,.3); text-underline-offset: 3px; cursor: pointer; }
.rd-group + .rd-group { margin-top: 34px; }
.rd-gname { margin: 0 0 12px 4px; color: var(--mute); }
.rd-qa summary h3 { margin: 0; font: inherit; }
.rd-ans { padding: 0 24px 22px; color: var(--mute); font-size: 16px; line-height: 1.6; max-width: 62ch; }
.rd-ans p { margin: 0 0 10px; }
.rd-ans strong { color: var(--ink); font-weight: 600; }
.rd-none { padding: 26px; border-radius: 20px; background: var(--cream); }
.rd-none p { margin: 0 0 14px; }
@media (max-width: 860px) { .rd-side { position: static; } }

/* 404: the brand mark is the zero */
.rd-hero-404 .calm-body { padding-top: clamp(56px, 7vw, 96px); }
.nf-digits { display: flex; align-items: center; gap: clamp(4px, 1vw, 14px); font: 600 clamp(120px, 22vw, 320px)/.8 var(--display); letter-spacing: -.06em; color: #f4f3ee; }
.nf-mark { width: .82em; height: .82em; flex: none; }
/* The mark never rotates or flips (brand pack): only its lime arcs pulse, like a signal. */
.nf-mark [stroke="#c6ff3d"] { animation: nf-pulse 2.8s ease-in-out infinite; }
@keyframes nf-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .nf-mark [stroke="#c6ff3d"] { animation: none; } }
.nf-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.nf-status li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; color: #c9cac4; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.nf-status i { width: 8px; height: 8px; border-radius: 50%; }
.nf-bad { background: #ff6b6f; box-shadow: 0 0 0 4px rgba(255,107,111,.18); }
.nf-ok { background: var(--lime); box-shadow: 0 0 0 4px rgba(198,255,61,.15); }
.nf-path { text-transform: none; letter-spacing: 0; font-family: var(--mono); }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.nf-actions .btn.ghost { color: #f4f3ee; }

/* Guides and comparisons: reading column on the light page */
.rd-body { max-width: 760px; font-size: 18px; line-height: 1.65; color: #2b2d2a; }
.rd-body h2 { font: 600 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); margin: 64px 0 16px; text-wrap: balance; }
.rd-body h2:first-child { margin-top: 0; }
.rd-body h3 { font: 600 20px/1.3 var(--display); color: var(--ink); margin: 32px 0 8px; }
.rd-body p, .rd-body ul, .rd-body ol { margin: 0 0 16px; }
.rd-body ul, .rd-body ol { padding-left: 22px; }
.rd-body li { margin: 7px 0; }
.rd-body strong { color: var(--ink); }
.rd-body a { color: var(--lime-deep); text-underline-offset: 3px; }
.rd-body .rd-short { font: 500 clamp(20px, 2vw, 24px)/1.45 var(--display); letter-spacing: -.01em; color: var(--ink); }
.rd-note { margin: 0 0 40px; padding: 20px 24px; border-radius: 22px; background: var(--cream); font-size: 15.5px; line-height: 1.55; color: var(--mute); }
.rd-note strong { color: var(--ink); }
.rd-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 8px 0 24px; font-size: 16px; border-radius: 22px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: #fff; }
.rd-table th, .rd-table td { text-align: left; vertical-align: top; padding: 16px 18px; border-top: 1px solid var(--line); }
.rd-table thead th { border-top: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); background: var(--cream); }
.rd-table thead th:last-child { background: var(--lime); color: var(--ink); }
.rd-table tbody th { width: 26%; font-weight: 600; color: var(--ink); }
.rd-table td:last-child { background: rgba(198,255,61,.08); }
.rd-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 8px; }
.rd-two > div { padding: 24px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.rd-two > div.rd-us { background: var(--ink); color: #e4e5e0; box-shadow: none; }
.rd-two h3 { margin-top: 0; }
.rd-two .rd-us h3, .rd-two .rd-us strong { color: #fff; }
.rd-two ul { margin: 0; }
.rd-src { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--mute); }
.rd-src ol { padding-left: 20px; }
.rd-src a { color: var(--mute); }
@media (max-width: 720px) {
  .rd-body { font-size: 17px; }
  .rd-two { grid-template-columns: 1fr; }
  .rd-table, .rd-table tbody, .rd-table tr, .rd-table th, .rd-table td { display: block; width: auto; }
  .rd-table thead { display: none; }
  .rd-table tbody th { padding-bottom: 4px; background: var(--cream); }
  .rd-table td { border-top: 0; padding-top: 6px; }
  .rd-table td::before { content: attr(data-label); display: block; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 2px; }
}

/* Guides hub */
.bp.rd-g2 { grid-template-columns: repeat(2, 1fr); }
.bp.rd-g2 .h3 { font-size: clamp(22px, 2.2vw, 28px); max-width: 22ch; }
.rd-tight { padding-top: 0; }
.rd-vs > div { min-height: 260px; }
.rd-vs-name { margin: 26px 0 auto !important; font: 600 clamp(28px, 2.6vw, 38px)/1 var(--display) !important; letter-spacing: -.04em; color: var(--ink) !important; }
.rd-vs-name span { color: var(--lime-deep); font-weight: 500; margin-right: 4px; }
.rd-vs .h3 { font-size: 15px; font-weight: 500; color: var(--mute); }
@media (max-width: 960px) { .bp.rd-g2 { grid-template-columns: 1fr; } .bp.rd-g2 > div + div { border-left: 0; border-top: 1px dashed rgba(10,11,12,.22); } }
