
.g-main { min-width: 0; }
.g-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: var(--space-5);
}
@media (max-width: 980px) {
  .g-guide-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .g-side { position: static; order: -1; }
  .g-side .toc { margin: 0; max-width: none; }
  .g-side .g-side-tools { display: none; }
}

/* ---------- page head meta line ---------- */
.g-meta { margin-top: var(--space-3); margin-bottom: 0; }

/* ---------- data tables ---------- */
.g-tablewrap { margin: var(--space-5) 0; max-width: 100%; }
.g-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
}
.g-table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
.g-table-scroll table { min-width: 540px; }
.g-table-scroll th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper-deep);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.g-table-scroll td {
  padding: 0.7rem 0.9rem;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink);
}
.g-table-scroll tbody tr:first-child td { border-top: 0; }
.g-tablewrap figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: var(--space-2);
  max-width: 62ch;
}

/* ---------- sidebar tool links (mirrors .guide-cat rhythm) ---------- */
.g-side-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: var(--space-4);
}
.g-side-tools > p {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
.g-side-tools a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.g-side-tools a:hover strong { color: var(--accent-deep); }
.g-side-tools a strong {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 560;
  color: var(--ink-strong);
}
.g-side-tools a span { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- affiliate include point ---------- */
.affiliate-slot {
  margin: var(--space-7) 0 0;
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line-strong);
}
.g-ftc { margin: 0; }

/* ---------- glossary ---------- */
.g-gloss { margin: var(--space-4) 0 0; }
.g-gloss-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}
.g-gloss-row:last-child { border-bottom: 0; }
.g-gloss dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink-strong);
}
.g-gloss dd {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 62ch;
}
@media (max-width: 640px) {
  .g-gloss-row { grid-template-columns: 1fr; gap: var(--space-1); }
}
  .g-side, .affiliate-slot, .cta-block { display: none; }
  .g-guide-grid { grid-template-columns: 1fr; gap: 0; }
}
