/*
 * guides.css — reading layout for /guides/ pages (article + hub).
 *
 * Builds on marketing-chrome.css, which owns the reset, nav, footer and the
 * .btn-primary / .btn-secondary buttons. Colours are the homepage's own:
 * ink #0f172a, body #334155, muted #64748b, brand #0ea5e9.
 */

.guide { max-width: 760px; margin: 0 auto; padding: 28px 16px 64px; color: #334155; line-height: 1.7; font-size: 17px; }

.breadcrumb { font-size: 13px; color: #64748b; margin-bottom: 18px; }
.breadcrumb a { color: #64748b; text-decoration: none; }
.breadcrumb a:hover { color: #0ea5e9; }
.breadcrumb .sep { margin: 0 6px; color: #cbd5e1; }

.guide-header { margin-bottom: 28px; }
.guide-header h1 { color: #0f172a; font-size: 38px; line-height: 1.18; font-weight: 900; letter-spacing: -0.01em; }
.guide-date { margin-top: 10px; font-size: 14px; color: #64748b; }

.guide-body p { margin: 0 0 18px; }
.guide-body .guide-lede { font-size: 19px; color: #0f172a; }
.guide-body h2 { color: #0f172a; font-size: 27px; line-height: 1.25; font-weight: 900; margin: 44px 0 14px; scroll-margin-top: 76px; }
.guide-body h3 { color: #0f172a; font-size: 20px; line-height: 1.3; font-weight: 800; margin: 30px 0 10px; }
.guide-body ul, .guide-body ol { margin: 0 0 20px 24px; }
.guide-body li { margin-bottom: 8px; }
.guide-body strong { color: #0f172a; }
.guide-body a { color: #0284c7; }

/* Desktop: an ordinary table. .table-scroll still contains any table that is
   wider than its box; .stack-on-phone tables become cards below 600px (see the
   media query), so on a phone nothing scrolls sideways at all. */
.table-scroll { overflow-x: auto; margin: 0 0 20px; border: 1px solid #e2e8f0; border-radius: 10px; }
.guide-body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.guide-body th { background: #f1f5f9; color: #0f172a; text-align: left; padding: 10px 14px; font-weight: 800; }
.guide-body td { padding: 10px 14px; border-top: 1px solid #e2e8f0; vertical-align: top; }

.guide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.guide-body .guide-cta a { color: inherit; }
.guide-body .guide-cta .btn-primary { color: white; }

/* Hub page */
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.guide-body .guide-list { margin-left: 0; }
.guide-card { border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px 22px; transition: border-color .15s, box-shadow .15s; }
.guide-card:hover { border-color: #0ea5e9; box-shadow: 0 6px 20px rgba(14,165,233,.12); }
.guide-card a { text-decoration: none; }
.guide-card h2 { margin: 0 0 6px; font-size: 21px; }
.guide-card p { margin: 0; font-size: 15.5px; color: #64748b; }

@media (max-width: 600px) {
  .guide { font-size: 16px; padding-top: 20px; }
  .guide-header h1 { font-size: 29px; }
  .guide-body .guide-lede { font-size: 17.5px; }
  .guide-body h2 { font-size: 23px; margin-top: 36px; }
  .guide-body h3 { font-size: 18.5px; }
  .guide-cta a { width: 100%; text-align: center; }

  /* Each row becomes a card: the first cell is its heading, the others are
     labelled lines whose labels come from the cell's data-label. The header
     row is hidden visually but kept for screen readers. */
  .table-scroll:has(> .stack-on-phone) { overflow: visible; border: none; border-radius: 0; }
  .guide-body .stack-on-phone { min-width: 0; }
  .stack-on-phone, .stack-on-phone tbody, .stack-on-phone tr, .stack-on-phone td { display: block; width: 100%; }
  .stack-on-phone thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stack-on-phone tr { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
  .guide-body .stack-on-phone td { border: none; padding: 3px 0; }
  .guide-body .stack-on-phone td:first-child { font-size: 17px; font-weight: 800; color: #0f172a; padding-bottom: 6px; }
  .stack-on-phone td:not(:first-child)::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #64748b; }
}
