/* Layout helpers for the design system page itself.
   These are NOT part of the shipped component library. */

.ds-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--fc-steel-100);
}
.ds-nav {
  display: none;
  gap: 22px;
}
.ds-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--fc-steel-500);
  text-decoration: none;
  transition: color .15s ease;
}
.ds-nav a:hover { color: var(--fc-navy-ink); }
@media (min-width: 900px) { .ds-nav { display: flex; } }

.ds-intro { padding-top: 100px; padding-bottom: 32px; }

section[id] {
  border-top: 1px solid var(--fc-steel-100);
}

.ds-mt    { margin-top: 48px; }
.ds-mt-sm { margin-top: 16px; }

.ds-row {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
}

.ds-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 32px;
}
@media (min-width: 760px)  { .ds-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.ds-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 760px)  { .ds-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.ds-swatch {
  border-radius: 14px;
  overflow: hidden;
  background: var(--fc-paper);
  border: 1px solid var(--fc-steel-100);
}
.ds-swatch-body {
  height: 88px;
  display: flex; align-items: center; justify-content: center;
}
.ds-swatch-tall .ds-swatch-body { height: 200px; }
.ds-swatch-meta {
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 2px;
  font-size: 13px;
}
.ds-swatch-meta strong { color: var(--fc-navy-ink); font-weight: 600; }
.ds-swatch-meta span { color: var(--fc-steel-500); font-size: 11px; }

.ds-type-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 28px 0;
  border-bottom: 1px solid var(--fc-steel-100);
}
.ds-type-row:last-child { border-bottom: none; }
@media (min-width: 760px) {
  .ds-type-row { grid-template-columns: 200px 1fr; gap: 32px; align-items: baseline; }
}
.ds-type-tag {
  font-family: var(--fc-font-mono);
  font-size: 11px;
  color: var(--fc-steel-500);
  letter-spacing: .04em;
}

.ds-form-demo {
  background: var(--fc-mist);
  border-radius: 20px;
  padding: 32px 24px;
}
@media (min-width: 760px) { .ds-form-demo { padding: 48px 40px; } }

.ds-form { display: flex; flex-direction: column; gap: 20px; }
.ds-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 600px) { .ds-form-row { grid-template-columns: 1fr 1fr; } }
