/*
 * The guides: /guides and /guides/<slug> (2026-11-08).
 *
 * Loaded after brand.css and site.css, which give the header, footer, hero,
 * sections and the closing call to action. This file is only what an article
 * needs that a marketing page does not: a reading measure for long prose, a
 * byline, tables, the sources list, and the hub's list of guides.
 */

.guide {
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.guide h1 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem);
  max-width: 24ch;
  margin-bottom: 0.75rem;
}

.guide h2 {
  margin-top: 2.5rem;
  max-width: 32ch;
}

.guide h3 {
  margin-top: 1.75rem;
}

.guide p,
.guide ul,
.guide ol {
  max-width: var(--measure);
}

.guide li {
  margin-bottom: 0.4rem;
}

.byline {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.byline a {
  color: inherit;
}

/* The answer paragraph: the one a search result or an AI answer lifts. */
.guide__answer {
  font-size: 1.125rem;
  line-height: 1.6;
  border-left: 3px solid var(--green);
  padding-left: 1rem;
}

.guide__table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.guide table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.guide th,
.guide td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.guide thead th {
  font-family: var(--display);
  font-weight: 700;
  border-bottom: 2px solid var(--ink);
}

.guide tbody th {
  font-weight: 600;
}

.sources {
  font-size: 0.875rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- the hub */

.guide-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.guide-list__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--rule);
}

.guide-list__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
}

.guide-list__summary {
  margin: 0.35rem 0 0.25rem;
}

.guide-list__date {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0;
}

.guide-list__empty {
  color: var(--ink-soft);
}
