/* ============================================================
   Vootlabs: guides + connect pages (article layout).
   Loaded after site.css (before site-rtl.css on /ar/ pages).
   Uses the site tokens only. Logical properties throughout, so
   the same rules serve LTR and RTL; html[dir="rtl"] adds the rest.
   ============================================================ */

.guide { padding: 96px 0 72px; }
.guide-wrap { max-width: calc(700px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); min-width: 0; }
@media (min-width: 821px) { .guide { padding: 124px 0 96px; } }

/* breadcrumb */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 0; font-size: 13.5px; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-inline: 8px; color: var(--ink-3); opacity: .6; }
.crumbs a { color: var(--ink-3); transition: color .2s; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-2); }

/* title block */
.guide h1 {
  margin-top: 22px; font-size: clamp(29px, 4.6vw, 44px);
  font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance;
}
.guide-meta { margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.lead { margin-top: 18px; font-size: 18px; color: var(--ink-2); line-height: 1.6; max-width: 56ch; }

/* answer box: the 2 to 3 sentence direct answer */
.answer { margin-top: 28px; padding: 22px 24px; background: var(--accent-soft); border-radius: var(--radius); }
.answer-label { font-size: 14px; font-weight: 500; color: #0c6b3a; margin-bottom: 6px; }
.answer p:not(.answer-label) { font-size: clamp(17px, 2.4vw, 18px); line-height: 1.6; color: var(--ink); }
.answer p:not(.answer-label) + p { margin-top: 10px; }

/* body copy */
.guide-body { margin-top: 12px; }
.guide h2 { margin: 52px 0 14px; font-size: clamp(22px, 2.8vw, 27px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.guide h3 { margin: 30px 0 8px; font-size: 18.5px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; }
.guide-body p, .guide-body li, .guide dd { color: var(--ink); line-height: 1.7; }
.guide-body p + p { margin-top: 16px; }
.guide-body :is(ul, ol, dl, .table-wrap) + p:not(.note, .table-caption) { margin-top: 16px; }
@media (max-width: 560px) { .crumbs li:last-child { display: none; } }
.guide-body ul, .guide-body ol { margin-top: 14px; padding-inline-start: 22px; }
.guide-body li { margin-top: 8px; padding-inline-start: 4px; }
.guide-body a:not(.btn):not(.textlink):not(.card) {
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s; overflow-wrap: anywhere;
}
.guide-body a:not(.btn):not(.textlink):not(.card):hover { color: var(--accent); text-decoration-color: var(--accent); }
.guide code { font-family: var(--font); background: var(--stone); padding: 1px 6px; border-radius: 6px; font-size: .95em; overflow-wrap: anywhere; }
.note { margin-top: 20px; font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.guide-body .note { color: var(--ink-3); }

/* numbered steps */
.guide-body ol.steps { list-style: none; padding-inline-start: 0; counter-reset: step; }
.steps > li { position: relative; counter-increment: step; padding-block: 2px; padding-inline-start: 44px; margin-top: 14px; }
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 1px;
  width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--stone); color: var(--ink); border-radius: 50%; font-size: 14px; font-weight: 500;
}

/* tables scroll inside their own box, never the page */
.table-wrap { margin-top: 18px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
.guide table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 15px; }
.guide th, .guide td { padding: 12px 14px; text-align: start; vertical-align: top; line-height: 1.5; border-bottom: 1px solid var(--line-2); }
.guide th { font-weight: 500; background: var(--bg); color: var(--ink); }
.guide tbody tr:last-child td { border-bottom: 0; }
.guide td:first-child { font-weight: 500; }
.table-caption { margin-top: 10px; font-size: 14px; color: var(--ink-3); }

/* terms in plain language */
.guide dl { margin-top: 14px; }
.guide dt { margin-top: 16px; font-weight: 500; }
.guide dd { margin-top: 2px; }

/* where Vootlabs fits + CTA */
.fits { margin-top: 56px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fits h2 { margin-top: 0; }
.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }

/* sources, related, byline */
.sources { font-size: 15px; }
.guide-body .sources li { margin-top: 6px; color: var(--ink-2); }
.related { margin-top: 52px; }
.related h2 { margin-top: 0; }
.guide-body .card-list, .card-list { list-style: none; display: grid; gap: 12px; margin-top: 18px; padding: 0; }
.related .card-list { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.guide-body .card-list li { margin: 0; padding: 0; }
.card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  transition: border-color .2s, transform .25s cubic-bezier(.2,.7,.2,1);
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card-title { font-size: 17.5px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.3; color: var(--ink); }
.card-desc { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.card-status { align-self: flex-start; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-size: 13px; background: var(--accent-soft); color: var(--accent); }
.byline { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); }
.guide-body .byline { color: var(--ink-3); }

/* hubs: roomier list */
.hub .card-list { margin-top: 32px; gap: 14px; }
.hub .card { padding: 22px 24px; }
.hub .card-title { font-size: 19px; }
.guide .hub-group { margin: 44px 0 0; font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--ink-3); }
.hub .hub-group + .card-list { margin-top: 12px; }

/* ---------- Arabic / RTL ---------- */
html[dir="rtl"] .guide-body p, html[dir="rtl"] .guide-body li, html[dir="rtl"] .guide dd { line-height: 1.9; }
html[dir="rtl"] .answer p:not(.answer-label) { line-height: 1.85; }
html[dir="rtl"] .guide h1 { line-height: 1.4; }
html[dir="rtl"] .guide h2, html[dir="rtl"] .guide h3, html[dir="rtl"] .card-title { line-height: 1.45; }
html[dir="rtl"] .card-desc, html[dir="rtl"] .guide td, html[dir="rtl"] .guide th { line-height: 1.75; }
html[dir="rtl"] .lead { max-width: 52ch; }
html[dir="rtl"] .guide-meta, html[dir="rtl"] .crumbs ol { line-height: 1.7; }
html[dir="rtl"] .guide code, html[dir="rtl"] .guide-body a[href^="mailto:"] { direction: ltr; unicode-bidi: isolate; }
