/* Only loaded on /styleguide.html (via `styles` in its front matter) */

.sg-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.sg-nav a { font-family: var(--font-display); font-size: 20px; }

.sg-section { padding-top: 40px; scroll-margin-top: 64px; }
.sg-section > .h2 { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.sg-label { display: block; font-family: var(--font-mono); font-size: 13px; color: var(--ink-dark); letter-spacing: 0; line-height: 1.4; margin-top: 4px; }
.sg-demo { margin: 24px 0 8px; }
.sg-demo > .sg-label { margin: 0 0 8px; }

.sg-type-row { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sg-type-row > :first-child { margin-top: 0; margin-bottom: 0; }
.sg-type-row p { margin: 0; }

.sg-colour { margin-top: 28px; }
.sg-colour .h4 { margin-top: 0; }
.sg-colour p { font-size: 16px; margin: 4px 0 12px; }
.sg-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sg-swatch { border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.sg-swatch-chip { height: 64px; }
.sg-swatch-meta { padding: 6px 8px 8px; background: rgba(255,255,255,0.025); }
.sg-swatch-meta span { display: block; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; color: var(--ink); }
.sg-swatch-meta span + span { color: var(--ink-dark); text-transform: uppercase; }

@media (max-width: 560px) {
  .sg-swatches { grid-template-columns: repeat(2, 1fr); }
}
