/* ===========================================================================
   PeelBoard marketing site — guides (hub + articles).
   Tokens + base come from /css/site.css; nav, prose, FAQ, CTA card and footer
   come from /css/pages.css. This file only adds what a long-form guide needs:
   the article byline, an on-this-page list, numbered steps, a callout, the
   guide cards on the hub, and a table that scrolls inside its own box.

   Nothing here may create horizontal page scroll: the only wide elements are
   the guide tables, and they scroll inside .g-table-wrap.
   =========================================================================== */

/* ── article byline ───────────────────────────────────────────────────────── */
.g-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--dim);
}
.g-meta span { display: inline-flex; align-items: center; gap: 8px; }
.g-meta span + span::before { content: '·'; color: #3a3a45; }
.g-meta b { color: var(--muted); font-weight: 600; }

/* ── on this page ─────────────────────────────────────────────────────────── */
.g-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 22px 24px;
  margin-bottom: 44px;
}
.g-toc h2 {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}
.g-toc ol { list-style: none; counter-reset: toc; display: grid; gap: 8px; }
.g-toc li { counter-increment: toc; position: relative; padding-left: 26px; font-size: 15px; }
.g-toc li::before {
  content: counter(toc);
  position: absolute; left: 0; top: 1px;
  font-size: 12px; font-weight: 700; color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}
.g-toc a { color: var(--muted); }
.g-toc a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── numbered steps inside .prose ─────────────────────────────────────────── */
.prose ol {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 12px;
}
.prose ol li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  color: var(--muted);
  font-size: 16px;
}
.prose ol li::before {
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-hi);
  font-size: 11.5px; font-weight: 700; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.prose ol li b, .prose ol li strong { color: var(--text); font-weight: 600; }

/* ── callout: the thing a shop owner should write down ────────────────────── */
.g-callout {
  margin-top: 30px;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px var(--r-card) var(--r-card) 4px;
  padding: 20px 24px;
}
.g-callout h3 {
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}
.g-callout p { margin-top: 0; font-size: 15.5px; color: var(--muted); }
.g-callout p + p { margin-top: 12px; }

/* ── a script you can copy (text message wording) ─────────────────────────── */
.g-script {
  margin-top: 22px;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
.g-script span {
  display: block;
  margin-bottom: 10px;
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
}

/* ── guide tables ─────────────────────────────────────────────────────────── */
.g-table-wrap {
  margin-top: 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 6px;
  overflow: hidden;
}
.g-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
table.g-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
table.g-table caption { text-align: left; padding: 0; }
table.g-table th, table.g-table td {
  text-align: left;
  padding: 13px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
table.g-table thead th {
  font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--dim);
  background: var(--bg-inset);
  white-space: nowrap;
}
table.g-table tbody th { font-weight: 600; color: var(--text); }
table.g-table tbody td { color: var(--muted); }
table.g-table tbody tr:last-child th, table.g-table tbody tr:last-child td { border-bottom: 0; }
.g-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-table-note { margin-top: 14px; font-size: 13px; color: var(--dim); line-height: 1.6; }

/* ── the hub's guide cards ────────────────────────────────────────────────── */
.g-cards { display: grid; gap: 14px; margin-top: 8px; }
.g-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  padding: 28px 30px;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.g-card:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.g-card .g-kicker {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-hi);
}
.g-card h3 { font-size: clamp(19px, 2vw, 23px); margin: 12px 0 10px; }
.g-card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.g-card .g-more {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--accent-hi);
}
.g-card:hover .g-more { text-decoration: underline; text-underline-offset: 3px; }

/* ── next/previous guide row ──────────────────────────────────────────────── */
.g-next { margin-top: 8px; }

/* ── responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .g-toc { padding: 20px 20px; margin-bottom: 34px; }
  .g-card { padding: 24px 22px; }
  .g-callout { padding: 18px 20px; }
  table.g-table th, table.g-table td { padding: 12px 13px; }
}
@media (max-width: 560px) {
  .g-meta { font-size: 13px; }
  table.g-table { font-size: 13.5px; min-width: 520px; }
}
