/* Shared prose/table styling for compendium reference articles (loaded
   alongside theme.css + compendium.css). Uses the site's own real theme
   tokens (--ink-bone, --ghost, --line, etc.) rather than inventing a
   parallel palette, so these pages track any future theme change for
   free. */

.compendium-main .section-kicker {
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ghost);
  margin: 0 0 .5em;
}
.compendium-main h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink-bone);
}
.compendium-main h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 2em 0 .6em;
  padding-bottom: .35em;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-bone);
}
.compendium-main h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 1.4em 0 .5em;
  color: var(--ghost);
}
.compendium-main p.lead {
  font-size: 1.1rem;
  color: var(--ink-dim);
  max-width: 68ch;
  margin: 0 0 1.6em;
}
.compendium-main p { max-width: 72ch; margin: 0 0 1em; color: var(--ink-bone); line-height: 1.65; }
.compendium-main p.muted, .compendium-main .muted { color: var(--ink-faint); font-size: .93rem; }
.compendium-main a { color: var(--ghost); }
.compendium-main a:hover { color: var(--ink-bone); }
.compendium-main code, .compendium-main .mono {
  font-family: var(--font-mono); font-size: .88em;
  background: var(--bg-inset); border: 1px solid var(--line);
  border-radius: 3px; padding: .08em .35em; color: var(--ghost);
}
.compendium-main ol, .compendium-main ul { padding-left: 1.4em; margin: 0 0 1.2em; max-width: 72ch; }
.compendium-main li { margin-bottom: .5em; line-height: 1.6; }

.compendium-main section.glass-panel {
  background: linear-gradient(135deg, var(--ghost-glow), transparent 45%), var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  padding: 1.6rem 1.9rem;
  margin: 0 0 1.8rem;
}
.compendium-main section.glass-panel h2:first-child { margin-top: 0; }

.compendium-main .table-wrap { overflow-x: auto; margin: 1em 0; }
.compendium-main table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: .92rem; }
.compendium-main table th, .compendium-main table td {
  text-align: left; padding: .6em .8em; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compendium-main table th {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
}
.compendium-main table td.mono, .compendium-main table td .mono { white-space: nowrap; }

.compendium-main .callout {
  border-left: 3px solid var(--ghost); background: var(--bg-inset);
  padding: 1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.2em 0;
  font-size: .95rem; color: var(--ink-dim);
}
.compendium-main .callout.warn { border-left-color: var(--warn); }
.compendium-main .callout.good { border-left-color: var(--good); }
.compendium-main .callout h4 {
  margin: 0 0 .4em; font-family: var(--font-ui); font-size: .8rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-bone);
}
.compendium-main .callout p:last-child { margin-bottom: 0; }

.compendium-main .card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem; margin: 1.2em 0;
}
.compendium-main .stat-card {
  background: var(--bg-inset); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.compendium-main .stat-card .big {
  font-family: var(--font-mono); font-size: 1.5rem; color: var(--ghost); font-weight: 600;
}
.compendium-main .stat-card h3 { margin: 0 0 .3em; font-size: .95rem; }
.compendium-main .stat-card p { font-size: .87rem; color: var(--ink-faint); margin: 0; }

.compendium-main .chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1em 0; }
.compendium-main .chip {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .04em;
  border: 1px solid var(--line-strong); border-radius: 99px; padding: .3em .8em; color: var(--ink-dim);
}
