/* Style guide-only layout — not used on the marketing site */

.sg-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.sg-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.6;
}
.sg-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 6rem;
}
.sg-section {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sg-section:last-child { border-bottom: none; }
.sg-section h2 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.sg-section > .section-lead { margin-top: 0; margin-bottom: 2.5rem; }
.sg-section h3.sg-sub {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  margin: 2.5rem 0 1.25rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Color swatches */
.sg-swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}
.sg-swatch {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.08);
}
.sg-swatch-color { height: 90px; }
.sg-swatch-meta { padding: 0.85rem 1rem; background: var(--white); }
.sg-swatch-name { display: block; font-weight: 700; font-size: 0.9rem; }
.sg-swatch-code {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 0.15rem;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}

/* Type rows */
.sg-type-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.sg-type-row:first-of-type { border-top: none; }
.sg-type-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sg-demo-h1 { font-size: 2.5rem; }
.sg-demo-h2 { font-size: 1.9rem; }
.sg-demo-h3 { font-size: 1.4rem; }
.sg-demo-body { max-width: 60ch; }
.sg-demo-number {
  font-family: var(--font-numeral);
  font-weight: 700;
  font-size: 1.9rem;
}
.sg-type-note {
  font-size: 0.85rem;
  color: var(--gray);
  max-width: 60ch;
  margin-top: -0.5rem;
  padding-bottom: 1.25rem;
}
.sg-type-note code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.05);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* Generic row / grid wrappers for components */
.sg-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}
.sg-row--dark {
  background: var(--ink);
  padding: 2rem;
  border-radius: var(--radius-sm);
}
.sg-row--blue { background: var(--blue); padding: 2rem; border-radius: var(--radius-sm); }

.sg-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Icons */
.sg-icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.sg-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1rem;
  background: var(--light-bg);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--gray);
  text-align: center;
}

/* Radius / shadow demo boxes */
.sg-token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1.5rem;
}
.sg-token-box {
  height: 90px;
  background: var(--light-bg);
  border: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--gray);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
