/* Guide pages. Loaded after landing.css, so it uses the same colour tokens and light/dark themes. */

.g-head { padding: 52px 0 6px; }
.article { width: min(760px, 100% - 40px); margin-inline: auto; }
.crumbs { font-size: 14px; color: var(--steel); }
.crumbs a { color: var(--steel); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-hidden] { margin: 0 6px; }

.article h1 { margin: 18px 0 0; font-family: var(--geo); font-weight: 700; font-size: clamp(2.1rem, 6.2vw, 3.5rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; max-width: none; }
.g-meta { margin-top: 16px; font-size: 14.5px; color: var(--steel); }
.g-lede { margin-top: 22px; font-size: clamp(1.125rem, 2.4vw, 1.3rem); line-height: 1.6; color: var(--ink); }

.article h2 { margin-top: 56px; font-family: var(--geo); font-weight: 700; font-size: clamp(1.55rem, 3.6vw, 2.05rem); line-height: 1.1; letter-spacing: -.04em; scroll-margin-top: 20px; }
.article h3 { margin-top: 30px; font-family: var(--geo); font-weight: 700; font-size: 1.3rem; letter-spacing: -.03em; }
.article p { margin-top: 16px; font-size: 1.125rem; line-height: 1.7; }
.article ul, .article ol { margin: 16px 0 0; padding-left: 1.35em; }
.article li { margin-top: 9px; font-size: 1.125rem; line-height: 1.65; padding-left: 4px; }
.article li::marker { color: var(--steel); }
.article strong { font-weight: 700; }
.article a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.article a:hover { text-decoration-color: var(--tape); }

.g-note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--tape); background: var(--surface); border-radius: 0 12px 12px 0; font-size: 1rem; line-height: 1.6; color: var(--steel); }
.g-note strong { color: var(--ink); }

.toc { margin-top: 34px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.toc h2 { margin: 0; font-size: 1rem; letter-spacing: 0; font-family: var(--sans); font-weight: 700; }
.toc ol { margin-top: 10px; padding-left: 1.25em; }
.toc li { margin-top: 5px; font-size: 1rem; }

.table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 1rem; }
.table-wrap caption { text-align: left; padding: 14px 18px 4px; font-weight: 700; }
.table-wrap th { text-align: left; padding: 11px 18px; font-size: .9rem; color: var(--steel); background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-wrap td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { font-weight: 700; white-space: nowrap; }

.faq-list { margin-top: 20px; border-top: 1px solid var(--line-strong); }
.faq-list h3 { margin: 0; padding-top: 22px; font-size: 1.2rem; }
.faq-list p { margin-top: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }

.cta-card { margin-top: 56px; padding: 34px 34px 36px; background: var(--tape); color: var(--tape-ink); border-radius: 22px; }
.cta-card h2 { margin: 0; color: var(--tape-ink); font-size: clamp(1.6rem, 3.6vw, 2.1rem); }
.cta-card p, .cta-card li { color: #2b2300; font-size: 1.05rem; }
.cta-card ul { margin-top: 14px; }
.cta-card a { color: var(--tape-ink); }
.cta-card :focus-visible { outline-color: #10212f; }
.cta-row-g { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .btn-ink { background: #10212f; color: #fff; text-decoration: none; }
.cta-card .btn-line { background: transparent; color: var(--tape-ink); border: 2px solid #10212f; text-decoration: none; }
.cta-card .fine-g { margin-top: 18px; font-size: .95rem; }

.related { margin-top: 44px; }
.related h2 { margin-top: 0; font-size: 1.3rem; }
.g-cards { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.g-card { display: block; padding: 24px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; text-decoration: none; color: var(--ink); }
.g-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.g-card h3 { margin: 0; font-size: 1.35rem; line-height: 1.15; }
.g-card p { margin-top: 10px; font-size: 1rem; line-height: 1.55; color: var(--steel); }
.g-card .more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; }
.g-end { height: 8px; }

@media (max-width: 760px) {
  .g-head { padding-top: 36px; }
  .article h2 { margin-top: 44px; }
  .g-cards { grid-template-columns: 1fr; }
  .cta-card { padding: 26px 22px 28px; border-radius: 18px; }
  .table-wrap td:first-child { white-space: normal; }
}

/* on narrow phones the logo and theme button already fill the header; the article's own call-to-action covers it */
@media (max-width: 460px) {
  .top .actions .btn { display: none; }
}
