/* =================================================================
   GUIDES — /guides/ (index) and /guides/<slug> (articles).
   Articles sit on the legal page layout in styles.css (.legal-main,
   .legal, .legal__body); the index uses .container.
   ================================================================= */

/* Breadcrumbs */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:18px;font-size:.84rem;color:var(--text-low)}
.crumbs a{color:var(--text-mid)}
.crumbs a:hover{color:var(--blue-600)}
.crumbs span[aria-hidden]{color:var(--border-strong)}

/* Direct answer — the first thing a reader or a search engine sees */
.guide-answer{margin-top:24px;padding:22px 24px;border-radius:var(--r-lg);
  background:linear-gradient(180deg,rgba(37,99,235,.07),rgba(37,99,235,.02));border:1px solid rgba(37,99,235,.22)}
.legal__body .guide-answer h2,.guide-answer h2{font-family:var(--f-body);font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.09em;
  color:var(--blue-600);margin:0 0 10px;padding:0;border:0}
.guide-answer p{font-size:1.05rem;line-height:1.65;color:var(--text-high)}
.guide-answer p+p{margin-top:10px}
.guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

/* On this page */
.guide-toc{margin-top:22px;padding:18px 22px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface-2)}
.guide-toc h2{font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.09em;color:var(--text-low);margin-bottom:10px}
.guide-toc ol{margin:0;padding-left:20px;display:grid;gap:6px;font-size:.93rem}
.guide-toc a{color:var(--blue-700)}
.guide-toc a:hover{text-decoration:underline}
.legal__body h2[id]{scroll-margin-top:90px}

/* Numbered steps */
.guide-steps{list-style:none;counter-reset:gs;display:grid;gap:14px;margin:4px 0 18px}
.guide-steps li{position:relative;padding:16px 18px 16px 58px;border:1px solid var(--border);border-radius:var(--r-lg);
  background:var(--surface);box-shadow:var(--el-1);counter-increment:gs;font-size:.95rem;line-height:1.6;color:var(--text-mid)}
.guide-steps li::before{content:counter(gs);position:absolute;left:16px;top:15px;display:grid;place-items:center;width:28px;height:28px;
  border-radius:50%;background:var(--grad-blue);color:#fff;font-size:.82rem;font-weight:700}
.guide-steps strong{color:var(--text-high)}
.legal__body .guide-steps li{padding-left:58px}
.legal__body .guide-steps li::before{top:15px;left:16px;width:28px;height:28px;background:var(--grad-blue)}

/* Example questions, as chat bubbles */
.guide-qs{display:flex;flex-wrap:wrap;gap:10px;margin:6px 0 20px}
.guide-qs span{padding:10px 15px;border-radius:16px 16px 16px 4px;font-size:.93rem;font-weight:500;color:var(--text-high);
  background:rgba(99,102,241,.08);border:1px solid rgba(99,102,241,.22)}

/* A sample answer, like the app shows it */
.guide-sample{margin:8px 0 22px;padding:18px;border:1px solid var(--border);border-radius:var(--r-xl);background:var(--surface);box-shadow:var(--el-2)}
.guide-sample__head{display:flex;justify-content:flex-end}
.guide-sample__q{display:inline-block;max-width:100%;padding:10px 14px;border-radius:14px 14px 4px 14px;background:var(--blue-600);color:#fff;font-size:.9rem}
.guide-sample__a{margin-top:12px;padding:14px;border-radius:14px 14px 14px 4px;border:1px solid rgba(99,102,241,.2);background:rgba(99,102,241,.05);
  font-size:.92rem;color:var(--text-high)}
.guide-sample__a .bad{color:var(--danger);font-weight:600}
.guide-sample__a .num{font-family:var(--f-mono);font-weight:600;color:var(--blue-600)}
.guide-sample__row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--hairline);font-size:.88rem}
.guide-sample__row:first-of-type{margin-top:8px}
.guide-sample__row b{font-family:var(--f-mono);font-weight:600;color:var(--blue-600)}
.guide-sample__note{margin:10px 0 0 !important;font-size:.76rem !important;color:var(--text-low) !important}

/* Comparison table */
.guide-table-wrap{overflow-x:auto;margin:6px 0 20px}
.guide-table{width:100%;border-collapse:collapse;font-size:.9rem;border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
.guide-table th,.guide-table td{padding:11px 13px;text-align:left;vertical-align:top;border-bottom:1px solid var(--hairline);color:var(--text-mid)}
.guide-table th{background:var(--surface-2);color:var(--text-high);font-weight:600;font-size:.82rem}
.guide-table td:first-child{color:var(--text-high);font-weight:500}
.guide-table tr:last-child td{border-bottom:none}
@media (max-width:560px){ .guide-table{font-size:.82rem} .guide-table th,.guide-table td{padding:9px} }

/* Screens from the app (assets/screens), with captions */
.guide-figs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:10px 0 22px}
.guide-fig{margin:0;text-align:center}
.guide-fig img{display:block;width:100%;max-width:300px;height:auto;margin:0 auto}
.guide-fig--wide img{max-width:420px}
.guide-fig figcaption{margin-top:6px;font-size:.8rem;line-height:1.5;color:var(--text-low)}

/* FAQ — open on the page, so every question is plain, indexable text */
.guide-faq{display:grid;gap:12px;margin-top:6px}
.guide-faq__item{padding:18px 20px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);box-shadow:var(--el-1)}
.legal__body .guide-faq__item h3{margin:0 0 6px;font-size:1rem;color:var(--text-high)}
.legal__body .guide-faq__item p{margin:0;font-size:.94rem}
.guide-faq__item[id]{scroll-margin-top:90px}

/* Glossary */
.glossary{display:grid;gap:12px;margin-top:6px}
.glossary dt{font-family:var(--f-display);font-weight:600;font-size:1.05rem;color:var(--text-high)}
.glossary dd{margin:2px 0 0;font-size:.94rem;line-height:1.65;color:var(--text-mid)}
.glossary dd em{color:var(--blue-700);font-style:normal;font-weight:500}
.glossary__item{padding:16px 18px;border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface)}
.glossary__item[id]{scroll-margin-top:90px}

/* Closing call to action */
.guide-cta{margin-top:clamp(34px,5vw,48px);padding:clamp(24px,4vw,32px);border-radius:var(--r-2xl);text-align:center;color:#fff;
  background:linear-gradient(135deg,#1D4ED8 0%,#2563EB 55%,#3B82F6 100%);box-shadow:0 24px 60px -28px rgba(37,99,235,.6)}
.legal__body .guide-cta h2,.guide-cta h2{font-family:var(--f-display);font-weight:600;font-size:clamp(1.35rem,3vw,1.75rem);line-height:1.2;color:#fff;margin:0;padding:0;border:0}
.legal__body .guide-cta p,.guide-cta p{margin:10px auto 0;max-width:46ch;color:rgba(255,255,255,.88);font-size:.98rem}
.guide-cta .guide-actions{justify-content:center}
.guide-cta .btn--primary{background:#fff;color:var(--blue-700)}
.guide-cta .btn--glass{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}

/* Related guides / guide cards */
.guide-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:10px}
.guide-card{display:flex;flex-direction:column;gap:6px;padding:18px 20px;border:1px solid var(--border);border-radius:var(--r-lg);
  background:var(--surface);box-shadow:var(--el-1);transition:border-color .2s,transform .2s,box-shadow .2s}
.guide-card:hover{border-color:var(--blue-300);transform:translateY(-2px);box-shadow:var(--el-2)}
.guide-card__cat{font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:var(--blue-600)}
.guide-card b{color:var(--text-high);font-size:1rem;line-height:1.35}
.guide-card small{color:var(--text-mid);font-size:.86rem;line-height:1.5}
.legal__body .guide-card{text-decoration:none}

/* Guides index */
.guides-main{padding:clamp(40px,7vw,72px) 0 clamp(56px,8vw,96px)}
.guides-head{max-width:760px}
.guides-head h1{font-family:var(--f-display);font-weight:600;color:var(--text-high);font-size:clamp(2rem,4.6vw,3rem);line-height:1.08;letter-spacing:-.02em;margin-top:14px}
.guides-head p{margin-top:16px;font-size:1.05rem;color:var(--text-mid);line-height:1.7}
.guides-sec{margin-top:clamp(36px,5vw,52px)}
.guides-sec h2{font-family:var(--f-display);font-weight:600;font-size:1.35rem;color:var(--text-high)}
.guides-qa{columns:2 320px;column-gap:28px;margin-top:14px;list-style:none;padding:0}
.guides-qa li{break-inside:avoid;padding:9px 0;border-bottom:1px solid var(--hairline);font-size:.94rem}
.guides-qa a{color:var(--text-high)}
.guides-qa a:hover{color:var(--blue-600)}
.guides-qa small{display:block;color:var(--text-low);font-size:.78rem}
.guide-cards--grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:900px){ .guide-cards--grid{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media (max-width:560px){ .guide-cards--grid{grid-template-columns:1fr} }
