/* Long-form guides: screenshots, source notes, tables, test boxes.
   Loaded after /styles.css on every guide page. */

.guide { max-width: 760px; margin: 0 auto; }
.guide p, .guide li { font-size: 1.0625rem; line-height: 1.75; color: var(--fg-soft, #3f3f46); }
.guide h2 { margin: 3rem 0 1rem; font-size: clamp(1.5rem, 2.6vw, 1.95rem); line-height: 1.25; }
.guide h3 { margin: 2rem 0 .6rem; font-size: 1.2rem; line-height: 1.35; font-family: var(--font-body, inherit); font-weight: 600; }
.guide a { color: var(--accent-2, #db2777); text-underline-offset: 3px; }
.guide ul, .guide ol { padding-left: 1.25rem; }
.guide li { margin: .35rem 0; }

/* Direct answer at the top of every guide */
.answer { background: var(--bg-soft, #faf7f9); border: 1px solid var(--border); border-left: 4px solid var(--accent, #ec4899);
  border-radius: 14px; padding: 1.25rem 1.4rem; margin: 1.5rem 0 2rem; }
.answer p { margin: 0; font-size: 1.1rem; color: var(--fg, #18181b); }
.answer-label { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-2, #db2777); margin-bottom: .4rem; }

/* Byline + update stamp */
.byline { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; font-size: .9rem; color: var(--muted, #71717a); margin: .5rem 0 0; }
.byline a { color: inherit; font-weight: 600; text-decoration: none; }
.byline a:hover { text-decoration: underline; }

/* Real product screenshots */
.shot { margin: 1.75rem 0 2rem; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 14px 40px -18px rgba(24, 24, 27, .35); background: var(--bg-soft); }
.shot--phone img { max-width: 340px; margin: 0 auto; border-radius: 28px; }
.shot figcaption { margin-top: .7rem; font-size: .9rem; line-height: 1.55; color: var(--muted, #71717a); }
.shot figcaption strong { color: var(--fg, #18181b); }

/* How we tested / what we checked */
.method { border: 1px dashed var(--border); border-radius: 14px; padding: 1.1rem 1.3rem; margin: 2rem 0; background: var(--bg-elev); }
.method h2, .method h3 { margin-top: 0; font-size: 1.05rem; }
.method p, .method li { font-size: .95rem; }

/* Callouts */
.note { border-radius: 12px; padding: 1rem 1.2rem; margin: 1.5rem 0; background: var(--bg-soft); }
.note--warn { background: #fff7ed; border: 1px solid #fed7aa; }
.note--ok { background: #ecfdf5; border: 1px solid #a7f3d0; }
.note p { margin: 0; font-size: .98rem; }

/* Data tables */
.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.table-wrap th { background: var(--bg-soft); text-align: left; padding: .8rem .75rem; font-weight: 600; border-bottom: 1px solid var(--border); color: var(--fg, #18181b); vertical-align: bottom; }
.table-wrap td { padding: .75rem; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--fg-soft, #3f3f46); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap caption { caption-side: bottom; text-align: left; padding: .7rem .75rem; font-size: .8rem; color: var(--muted, #71717a); }
.table-wrap tr.us td { background: var(--accent-soft); }

/* Inline source markers + sources list */
.src { font-size: .78em; vertical-align: super; line-height: 0; }
.sources { margin: 3rem 0 1rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.sources h2 { font-size: 1.1rem; margin-top: 0; }
.sources ol { font-size: .85rem; }
.sources li { font-size: .85rem; line-height: 1.5; word-break: break-word; }

/* Table of contents */
.toc { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.toc p { margin: 0 0 .4rem; font-weight: 600; font-size: .9rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { font-size: .92rem; margin: .2rem 0; }
.toc a { text-decoration: none; }

/* FAQ */
.guide details { border: 1px solid var(--border); border-radius: 12px; padding: .9rem 1.1rem; margin: .6rem 0; background: var(--bg-elev); }
.guide summary { cursor: pointer; font-weight: 600; color: var(--fg, #18181b); }
.guide details p { margin: .6rem 0 0; }

/* Author box */
.author-box { display: flex; gap: 1rem; align-items: flex-start; border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.5rem; }
.author-box p { margin: .2rem 0; font-size: .95rem; }
.author-avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* Related + CTA */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .9rem; margin: 1rem 0 0; }
.related a { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; background: var(--bg-elev); }
.related a:hover { border-color: var(--accent, #ec4899); }
.related strong { display: block; color: var(--fg, #18181b); margin-bottom: .2rem; }
.related span { font-size: .85rem; color: var(--muted, #71717a); }
.cta-box { text-align: center; background: #0f0f12; color: #fff; border-radius: 18px; padding: 2rem 1.5rem; margin: 3rem 0 1rem; }
.cta-box h2 { color: #fff; margin-top: 0; }
.cta-box p { color: var(--border); }
.cta-box .btn-ghost { color: #fff; }

@media (max-width: 640px) {
  .guide p, .guide li { font-size: 1rem; }
  .answer { padding: 1rem 1.1rem; }
  .author-box { flex-direction: column; }
}

html[data-theme="dark"] .note--warn { background: rgba(251,146,60,.10); border-color: rgba(251,146,60,.35); }
html[data-theme="dark"] .note--ok { background: rgba(16,185,129,.10); border-color: rgba(16,185,129,.35); }
html[data-theme="dark"] .cta-box { background: var(--bg-elev); border: 1px solid var(--border); }

/* Buttons inside guides keep their own colours (the .guide a rule above would otherwise tint them) */
.guide a.btn, .guide a.btn-primary, .guide a.btn-ghost { text-decoration: none; }
.guide a.btn-primary, .guide a.btn.btn-primary { color: #fff; }
.guide a.btn-ghost { color: var(--fg); }
.cta-box a.btn-ghost { color: #fff; }
