/* Guide pages (/guides/..., /compare): layout only. Colors, type and components
   (card, faq, buttons, section header) come from tokens.css + components.css with
   class="sb" on <body>. Same reading column as about.html. */
* { box-sizing: border-box; margin: 0; padding: 0; }
body.sb { padding: 2rem var(--gutter); max-width: var(--container-narrow); margin: 0 auto; line-height: 1.7; }
.back { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 2rem; display: inline-block; }
.byline { font-size: 0.85rem; color: var(--ink-muted); margin-bottom: 1.75rem; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-muted); margin-bottom: 1.75rem; }

/* The direct answer, first thing on the page */
.answer { margin-bottom: 2.5rem; }
.answer .label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
                 color: var(--accent-text); margin-bottom: 0.4rem; }
.answer p { font-size: 1rem; color: var(--ink); }
.answer p + p { margin-top: 0.6rem; }

main section { margin-bottom: 2.5rem; }
main h2 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 0.75rem; }
main h3 { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 1.5rem 0 0.4rem; }
main section > p, main section li { margin-bottom: 0.75rem; }
main section ul, main section ol { padding-left: 1.4rem; margin-bottom: 1rem; }
main section li::marker { color: var(--ink-muted); }
.note { font-size: 0.9rem; color: var(--ink-muted); }

/* Comparison tables */
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid var(--border);
              border-radius: var(--radius-sm); background: var(--surface); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 0.88rem; line-height: 1.5; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem;
                                 border-bottom: 1px solid var(--border); }
.table-wrap thead th { background: var(--surface-inset); font-weight: 600; white-space: nowrap; }
.table-wrap tbody th { font-weight: 600; white-space: nowrap; }
.table-wrap tr:last-child > * { border-bottom: none; }
/* Wide tables scroll inside their box on phones instead of squeezing cells to a
   word per line; the row labels stay pinned on the left while scrolling. */
.table-wrap.wide table { min-width: 680px; }
.table-wrap.wide tbody th { position: sticky; left: 0; background: var(--surface); }
.table-wrap.wide thead th:first-child { position: sticky; left: 0; z-index: 1; }

/* Guides index */
.guide-list { display: grid; gap: var(--grid-gap); list-style: none; padding: 0; margin: 0 0 2.5rem; }
.guide-list a { display: block; color: inherit; text-decoration: none; height: 100%; }
.guide-list a:hover h2 { color: var(--accent-text); }
.guide-list h2 { font-size: 1.05rem; margin-bottom: 0.35rem; transition: color var(--duration-color, 0.15s); }

.cta { margin: 2.5rem 0 0; }
.cta h2 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.cta p { margin-bottom: 1rem; }
.cta .btn-primary:hover { text-decoration: none; }
.page-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
               font-size: 0.8rem; color: var(--ink-muted); }

@media (max-width: 680px) {
  body.sb { padding-left: var(--gutter-compact); padding-right: var(--gutter-compact); }
}
