/* rzumarli DS documentation chrome. Component styles live in
   css/components.css; tokens in css/tokens.css. */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--rds-border);
  padding: var(--rds-space-24) var(--rds-space-16);
  background: var(--rds-surface-subtle);
}
.sidebar .logo { font-weight: var(--rds-weight-bold); font-size: var(--rds-text-lg); margin-bottom: var(--rds-space-4); letter-spacing: var(--rds-tracking-heading); }
.sidebar .logo a { color: inherit; text-decoration: none; }
.sidebar .tagline { font-size: var(--rds-text-xs); color: var(--rds-text-muted); margin-bottom: var(--rds-space-24); }
.sidebar nav a {
  display: block; padding: var(--rds-space-8) 12px;
  border-radius: var(--rds-radius-8); color: var(--rds-neutral-600);
  text-decoration: none; font-size: var(--rds-text-sm);
}
.sidebar nav a:hover { background: var(--rds-neutral-100); color: var(--rds-text); }
.sidebar nav a.active { background: var(--rds-neutral-100); color: var(--rds-text); font-weight: var(--rds-weight-semibold); }
.sidebar .nav-group { font-size: var(--rds-text-xs); font-weight: var(--rds-weight-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--rds-text-muted); margin: var(--rds-space-16) 12px var(--rds-space-8); }
.sidebar nav span.planned { display: flex; justify-content: space-between; align-items: center; padding: var(--rds-space-8) 12px; font-size: var(--rds-text-sm); color: var(--rds-neutral-400); }
.sidebar nav span.planned .tag { font-family: var(--rds-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.main { flex: 1; max-width: 920px; padding: var(--rds-space-48) var(--rds-space-32); }
.main > h1 { font-size: var(--rds-text-3xl); font-weight: var(--rds-weight-semibold); margin: 0 0 var(--rds-space-8); letter-spacing: var(--rds-tracking-heading); }
.main > p.desc { color: var(--rds-text-muted); margin: 0 0 var(--rds-space-24); max-width: 62ch; }
.hero { margin-bottom: var(--rds-space-48); }
.hero h1 { font-size: var(--rds-text-4xl); font-weight: var(--rds-weight-semibold); margin: 0 0 12px; letter-spacing: var(--rds-tracking-heading); }
.hero p { font-size: var(--rds-text-lg); color: var(--rds-text-muted); margin: 0 0 var(--rds-space-24); max-width: 62ch; }
.hero code, .main code {
  font-family: var(--rds-font-mono); font-size: var(--rds-text-sm);
  background: var(--rds-neutral-100); padding: var(--rds-space-4) var(--rds-space-8);
  border-radius: var(--rds-radius-4);
}
.main h2.group { font-size: var(--rds-text-xl); font-weight: var(--rds-weight-semibold); margin: var(--rds-space-32) 0 var(--rds-space-16); letter-spacing: var(--rds-tracking-heading); }
.doc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--rds-space-16); }
a.doc-card { text-decoration: none; color: inherit; display: block; }
a.doc-card:hover { border-color: var(--rds-primary-300); }
a.doc-card h3 { margin: 0 0 var(--rds-space-4); font-size: var(--rds-text-base); font-weight: var(--rds-weight-semibold); }
a.doc-card p { margin: 0; font-size: var(--rds-text-sm); color: var(--rds-text-muted); }
h3.sub { font-size: var(--rds-text-sm); font-weight: var(--rds-weight-semibold); margin: var(--rds-space-24) 0 12px; }
h3.sub:first-of-type { margin-top: 0; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.swatch { border: 1px solid var(--rds-border); border-radius: var(--rds-radius-8); overflow: hidden; cursor: pointer; background: var(--rds-surface); }
.swatch .chip { height: 64px; }
.swatch .meta { padding: var(--rds-space-8) 12px; }
.swatch .name { font-family: var(--rds-font-mono); font-size: var(--rds-text-xs); font-weight: var(--rds-weight-medium); display: block; }
.swatch .hex { font-family: var(--rds-font-mono); font-size: var(--rds-text-xs); color: var(--rds-text-muted); }
.type-row { border-bottom: 1px solid var(--rds-border); padding: 12px 0; display: flex; align-items: baseline; gap: var(--rds-space-16); }
.type-row .token { font-family: var(--rds-font-mono); font-size: var(--rds-text-xs); color: var(--rds-text-muted); width: 150px; flex-shrink: 0; }
.space-row { border-bottom: 1px solid var(--rds-border); padding: var(--rds-space-8) 0; display: flex; align-items: center; gap: var(--rds-space-16); }
.space-row .token { font-family: var(--rds-font-mono); font-size: var(--rds-text-xs); color: var(--rds-text-muted); width: 150px; flex-shrink: 0; }
.space-bar { height: 12px; background: var(--rds-primary-500); border-radius: var(--rds-radius-2); display: inline-block; }
.radius-box { width: 56px; height: 56px; border: 1px solid var(--rds-neutral-300); background: var(--rds-primary-100); display: inline-flex; align-items: center; justify-content: center; font-family: var(--rds-font-mono); font-size: var(--rds-text-xs); color: var(--rds-primary-800); }
.demo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: var(--rds-space-24); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--rds-space-16); margin-bottom: var(--rds-space-24); }
.state-table { width: 100%; border-collapse: collapse; margin-bottom: var(--rds-space-24); }
.state-table th { text-align: left; font-size: var(--rds-text-xs); font-weight: var(--rds-weight-semibold); color: var(--rds-text-muted); padding: var(--rds-space-8) 12px; border-bottom: 1px solid var(--rds-border); }
.state-table td { padding: 12px; border-bottom: 1px solid var(--rds-border); vertical-align: middle; }
.state-table td:first-child { font-size: var(--rds-text-sm); color: var(--rds-neutral-600); width: 110px; }
.code-block {
  font-family: var(--rds-font-mono); font-size: var(--rds-text-xs);
  background: var(--rds-neutral-900); color: var(--rds-neutral-100);
  padding: var(--rds-space-16); border-radius: var(--rds-radius-8);
  overflow-x: auto; margin: var(--rds-space-16) 0 0;
}
.note {
  font-size: var(--rds-text-sm); color: var(--rds-neutral-600);
  background: var(--rds-primary-50); border: 1px solid var(--rds-primary-200);
  border-radius: var(--rds-radius-8); padding: 12px var(--rds-space-16);
  margin-bottom: var(--rds-space-24);
}
.toast {
  position: fixed; bottom: var(--rds-space-24); left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--rds-neutral-900); color: #fff; font-size: var(--rds-text-sm);
  padding: var(--rds-space-8) var(--rds-space-16); border-radius: var(--rds-radius-99);
  opacity: 0; transition: opacity var(--rds-transition-base), transform var(--rds-transition-base);
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
footer { border-top: 1px solid var(--rds-border); padding-top: var(--rds-space-24); margin-top: var(--rds-space-48); color: var(--rds-text-muted); font-size: var(--rds-text-sm); }
@media (max-width: 720px) {
  .sidebar { display: none; }
  .main { padding: var(--rds-space-24) var(--rds-space-16); }
}
