/* GUIDES AND THE FACTS PAGE (2026-12-03) — /guides, /guides/<slug> and /what-is-daybook load this beside
   site.css; no other page does, so their rules cost no other page a byte. Long text, read on a phone: one
   column, 17px, nothing beside the words. Tokens are site.css's. */

.guide-hero h1 { max-width: 28ch; font-size: clamp(2rem, 4.6vw, 3rem); }
.guide-hero .eyebrow a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.guide-meta { margin-top: 1.25rem; font-size: 0.9375rem; color: rgb(250 249 246 / .66); }

.guide-body { font-size: 1.0625rem; line-height: 1.7; }
.guide-body > :first-child { margin-top: 0; }
.guide-body h2 { scroll-margin-top: 5.5rem; }
.guide-body h3 { margin: 1.75rem 0 0.5rem; font-size: 1.125rem; }
.guide-body p + p, .guide-body ul + p, .guide-body ol + p, .guide-body div + p, .guide-body aside + p { margin-top: 1rem; }
.guide-body ul, .guide-body ol { margin: 0.875rem 0 0; padding-left: 1.375rem; display: grid; gap: 0.5rem; max-width: 65ch; }
.guide-body li { padding-left: 0.125rem; }
.guide-body li::marker { color: var(--brand); font-weight: 600; }
.guide-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(15 118 110 / .4); }
.guide-body a:hover { text-decoration-color: currentColor; }

/* a caution: check with your accountant */
.guide-note {
  margin: 1.5rem 0 0; padding: 1rem 1.125rem; border-left: 3px solid var(--cta);
  background: #FDF6E7; border-radius: 0 var(--radius) var(--radius) 0;
}
.guide-note p { font-size: 1rem; }

/* what Daybook does about it — set apart from the advice */
.guide-daybook {
  margin: 2rem 0 0; padding: 1.25rem 1.375rem; background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2); border-radius: var(--radius-lg);
}
.guide-daybook-tag {
  display: flex; align-items: center; gap: 0.375rem; margin-bottom: 0.5rem;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand);
}
.guide-daybook-tag .icon { width: 1rem; height: 1rem; }
.guide-daybook p { font-size: 1rem; }

/* a table scrolls inside its own box on a phone; the page never scrolls sideways */
.guide-table-wrap { margin: 1.25rem 0 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.9578rem; line-height: 1.45; }
.guide-table th, .guide-table td { padding: 0.75rem 0.875rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.guide-table thead th { background: var(--page-muted); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-muted); }
.guide-table tbody th { font-weight: 600; color: var(--ink-heading); }
/* a phone shows every column: the last one is often the answer (a rate), so nothing is pushed off the edge */
@media (max-width: 39.9375rem) {
  .guide-table { font-size: 0.875rem; }
  .guide-table th, .guide-table td { padding: 0.625rem 0.5rem; }
  .guide-table thead th { font-size: 0.6875rem; letter-spacing: 0.02em; }
}
@media (min-width: 40rem) {
  .guide-table thead th { white-space: nowrap; }
  .guide-table tbody th { min-width: 9rem; }
}
.guide-table tbody tr:last-child th, .guide-table tbody tr:last-child td { border-bottom: 0; }

.guide-sources { font-size: 0.9578rem; }
.guide-fine { margin-top: 1.25rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-muted); }
.guide-related { list-style: none; padding-left: 0 !important; }
.guide-related a { font-weight: 600; }

/* the list page's cards, and "More guides" */
.guide-card { display: flex; flex-direction: column; }
.guide-card .eyebrow { margin-bottom: 0; }
.guide-card h3 { margin-top: 0.625rem; }
.guide-card > h3:first-child { margin-top: 0; }
.guide-card h3 a { color: var(--ink-heading); }
.guide-card h3 a:hover { color: var(--brand); }
.guide-card-meta { margin-top: auto; padding-top: 1rem; font-size: 0.8125rem !important; }
