/* Dizajnový systém — dokumentačná vrstva.
   Zámerne pokojná: obsahom sú komponenty webu, nie táto stránka.
   Žiadne hover „nadvihnutia" — interakcia je zmena farby, obrysu alebo podkladu. */

.ds-body { background: var(--paper, #FBF6F1); }

.ds-wrap {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 100px;
}
@media (max-width: 900px) { .ds-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ── sidebar ── */
.ds-nav-inner {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 900px) { .ds-nav-inner { position: static; } }
.ds-nav nav { display: flex; flex-direction: column; }
/* Active item is marked the way the brand already marks things — a magenta dot,
   like .microlabel — not a coloured rail or a filled pill. */
.ds-nav nav a {
  position: relative;
  padding: 7px 0 7px 18px;
  color: var(--ink-soft, #6A5560);
  font: 500 14px/1.3 var(--font-body, system-ui);
  text-decoration: none;
  transition: color .15s ease;
}
.ds-nav nav a::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--magenta, #E60469);
  opacity: 0;
  transition: opacity .15s ease;
}
.ds-nav nav a:hover { color: var(--ink, #1B0E15); }
.ds-nav nav a.is-current { color: var(--ink, #1B0E15); font-weight: 700; }
.ds-nav nav a.is-current::before { opacity: 1; }
.ds-nav nav a[hidden] { display: none; }
.ds-search {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--line, rgba(27,14,21,.12));
  border-radius: 999px;
  background: #fff;
  font: 500 14px/1 var(--font-body, system-ui);
  color: var(--ink, #1B0E15);
}
.ds-search:focus { outline: 2px solid var(--magenta, #E60469); outline-offset: 1px; }
.ds-nav-out {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line, rgba(27,14,21,.12));
  color: var(--magenta, #E60469);
  font: 600 13px/1.4 var(--font-body, system-ui);
  text-decoration: none;
}

/* ── content ── */
.ds-hero { padding-bottom: 34px; border-bottom: 1px solid var(--line, rgba(27,14,21,.12)); margin-bottom: 12px; }
.ds-h1 { font-family: var(--font-display); font-size: clamp(38px, 6vw, 66px); line-height: 1.03; margin: 10px 0 14px; letter-spacing: -.02em; }
.ds-h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; letter-spacing: -.01em; }
.ds-h3 { font-family: var(--font-display); font-size: 19px; margin: 30px 0 12px; }
.ds-lead { color: var(--ink-soft, #6A5560); font-size: 16px; line-height: 1.65; max-width: 62ch; margin: 0 0 8px; }
.ds-use { color: var(--ink-soft, #6A5560); font-size: 14px; line-height: 1.6; max-width: 62ch; margin: 0 0 14px; }
.ds-section { padding: 46px 0; border-bottom: 1px solid var(--line, rgba(27,14,21,.12)); scroll-margin-top: calc(var(--nav-h) + 20px); }
.ds-section:last-child { border-bottom: 0; }
.ds-section[hidden] { display: none; }
.ds-stats { display: flex; gap: 26px; margin-top: 20px; color: var(--ink-soft, #6A5560); font-size: 14px; }
.ds-stats strong { font-family: var(--font-display); font-size: 22px; color: var(--ink, #1B0E15); margin-right: 5px; }

/* ── swatches ── */
.ds-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ds-swatch {
  display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--line, rgba(27,14,21,.12));
  border-radius: 14px; background: #fff; cursor: pointer; text-align: left;
  font: inherit; transition: border-color .15s ease, background .15s ease;
}
.ds-swatch:hover { border-color: var(--magenta, #E60469); }
.ds-swatch.is-copied { border-color: var(--magenta, #E60469); background: rgba(230, 4, 105, .06); }
.ds-chipcolor { width: 42px; height: 42px; border-radius: 10px; flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(27,14,21,.08); }
.ds-sw-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ds-sw-meta code { font: 600 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink, #1B0E15); }
.ds-sw-meta span { font-size: 11px; color: var(--ink-soft, #6A5560); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── type specimens ── */
.ds-type { display: flex; flex-direction: column; gap: 20px; margin-bottom: 26px; }
.ds-type-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: baseline; }
@media (max-width: 640px) { .ds-type-row { grid-template-columns: 1fr; gap: 6px; } }
.ds-type-label { font: 600 11px/1 var(--font-body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-soft, #6A5560); }

/* ── radii + shadows ── */
.ds-radii, .ds-shadows { display: flex; flex-wrap: wrap; gap: 20px; }
.ds-radius, .ds-shadow { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.ds-radius span { width: 92px; height: 68px; background: var(--magenta-soft, #FDE3EE); display: block; }
.ds-shadow span { width: 92px; height: 68px; background: #fff; border-radius: 16px; display: block; }
.ds-radius code, .ds-shadow code { font: 600 12px/1 ui-monospace, Menlo, monospace; }
.ds-radius em { font-size: 11px; color: var(--ink-soft, #6A5560); font-style: normal; }

/* ── motion ── */
.ds-motion { display: flex; flex-wrap: wrap; gap: 18px; }
.ds-move {
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  padding: 16px; border: 1px solid var(--line, rgba(27,14,21,.12));
  border-radius: 16px; background: #fff; cursor: pointer; font: inherit; min-width: 230px;
}
.ds-move:hover { border-color: var(--magenta, #E60469); }
.ds-ball { width: 20px; height: 20px; border-radius: 50%; background: var(--magenta, #E60469); transition: translate .7s; }
.ds-move.is-run .ds-ball { translate: 176px 0; }
.ds-move code { font: 600 12px/1 ui-monospace, Menlo, monospace; }
.ds-move em { font-size: 11px; color: var(--ink-soft, #6A5560); font-style: normal; }

/* ── component demos ── */
.ds-comp { padding-top: 30px; }
.ds-demo {
  padding: 30px; border: 1px solid var(--line, rgba(27,14,21,.12));
  border-radius: 18px; background: var(--paper, #FBF6F1);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start;
}
.ds-demo > * { max-width: 100%; }
.ds-demo .show-card, .ds-demo .pod-ep { max-width: 330px; }
.ds-demo .news-row { width: 100%; }

.ds-code { margin-top: 12px; position: relative; }
.ds-code summary {
  cursor: pointer; font: 600 13px/1 var(--font-body);
  color: var(--ink-soft, #6A5560); padding: 8px 0; list-style: none;
}
.ds-code summary::-webkit-details-marker { display: none; }
.ds-code summary::before { content: '⌄ '; }
.ds-code[open] summary::before { content: '⌃ '; }
.ds-code summary:hover { color: var(--magenta, #E60469); }
.ds-code pre {
  margin: 0; padding: 18px; border-radius: 14px; overflow-x: auto;
  background: #1B0E15; color: #F3E9DC;
  font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ds-copy {
  position: absolute; top: 42px; right: 12px; z-index: 2;
  padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.08); color: #F3E9DC; cursor: pointer;
  font: 600 11px/1 var(--font-body); transition: background .15s ease;
}
.ds-copy:hover { background: rgba(255,255,255,.2); }
.ds-copy.is-copied { background: var(--magenta, #E60469); border-color: transparent; color: #fff; }

/* ── notes + voice ── */
/* A note is set apart by type, not by a coloured rail: the label leads, the rule follows. */
.ds-note {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line, rgba(27,14,21,.12));
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft, #6A5560);
  max-width: 62ch;
}
.ds-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink, #1B0E15);
  font: 600 11px/1 var(--font-body, system-ui);
  letter-spacing: .09em;
  text-transform: uppercase;
}
/* Voice rules read as editorial lines, not as red/green boxes:
   the rule is the heading, the example carries the contrast typographically. */
.ds-rules { margin: 0; }
.ds-rule { padding: 18px 0; border-top: 1px solid var(--line, rgba(27,14,21,.12)); }
.ds-rule:first-child { border-top: 0; }
.ds-rule dt {
  font: 600 15.5px/1.4 var(--font-body, system-ui);
  color: var(--ink, #1B0E15);
  margin-bottom: 8px;
}
.ds-rule dd {
  margin: 0;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
  font-size: 15px; line-height: 1.5;
}
.ds-yes {
  font-weight: 600; color: var(--ink, #1B0E15);
  box-shadow: inset 0 -0.55em 0 rgba(230, 4, 105, .14);
}
.ds-vs { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft, #6A5560); opacity: .7; }
.ds-no { color: var(--ink-soft, #6A5560); text-decoration: line-through; text-decoration-thickness: 1px; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .ds-ball, .ds-swatch, .ds-copy, .ds-nav nav a { transition: none; }
}
