/* Loamist guides: resources.html and the six L/C guide articles. Loads after content.css. */

/* Article hero: guide titles are long, so the H1 runs smaller than the content-page default. */
.page-hero--guide h1 { font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; max-width: 22ch; }
.page-hero__meta a, .page-hero__rule a { color: var(--ink); }
.page-hero__meta a:hover, .page-hero__rule a:hover { color: var(--gold); }

/* Article body */
.guide-body h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.guide-body .table-wrap { max-width: 100%; }
.guide-body .table-wrap table { font-size: 15px; }
.guide-body .table-wrap strong { color: var(--ink); }
@media (max-width: 639px) {
  .guide-body .table-wrap table { font-size: 14px; }
  .guide-body .table-wrap th, .guide-body .table-wrap td { padding: 10px 12px; }
  /* Four-column tables scroll inside their frame instead of crushing each column. */
  .guide-body .table-wrap table:has(th:nth-child(4)) { min-width: 600px; }
}
.guide-cta { margin-top: 2.4em; padding: 24px; }
.guide-cta > * + * { margin-top: .9em; }
.guide-cta h2 { margin: 0; font: 600 clamp(22px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; }

/* Sticky aside: table of contents (desktop only) and the free-check card */
.guide-toc { display: none; }
@media (min-width: 960px) {
  .guide-toc { display: grid; gap: 12px; }
  .guide-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
  .guide-toc li { border-bottom: 1px solid var(--line); }
  .guide-toc a { display: block; padding: 8px 0; font: 400 14px/1.35 var(--font-sans); color: var(--ink-2); }
  .guide-toc a:hover { color: var(--gold); }
}
.guide-aside-cta .btn { justify-content: center; }
.guide-aside-cta .more { margin-top: 0; }

/* Guide cards */
.guide-card .mono-sm { display: block; }
.guides-blog { margin: 28px 0 0; color: var(--ink-2); }
.guides-blog a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
