/* Wecare — page du design system. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
small { font-size: var(--fs-xs); color: var(--ink-3); display: block; }
.ds { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-8); max-width: 1320px; margin: 0 auto; padding: var(--s-6); }
.ds__nav { position: sticky; top: var(--s-6); align-self: start; display: grid; gap: 2px; }
.ds__brand { display: flex; align-items: center; gap: var(--s-3); padding-bottom: var(--s-4); text-decoration: none; font-weight: 700; font-size: var(--fs-lg); }
.ds__nav h2 { padding: var(--s-4) 12px var(--s-1); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); }
.ds__nav a:not(.ds__brand) { padding: 7px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink-2); font-weight: 500; }
.ds__nav a:not(.ds__brand):hover { background: var(--surface); color: var(--blue-700); }
.ds__back { margin-top: var(--s-4); }
.ds__head { padding: var(--s-4) 0 var(--s-6); }
.ds__head h1 { font-size: 36px; line-height: 40px; font-weight: 600; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ds__head p { max-width: 620px; margin-top: var(--s-2); font-size: var(--fs-lg); color: var(--ink-2); }
.sec { padding: 30px; margin-bottom: 30px; background: var(--surface); border-radius: var(--r-xl); }
.sec > h2 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -.01em; }
.sec > p { max-width: 640px; color: var(--ink-2); margin: var(--s-1) 0 var(--s-4); }
.sec h3 { margin: var(--s-6) 0 var(--s-3); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-3); }
.sec h3:first-of-type { margin-top: var(--s-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.row--top { align-items: flex-start; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-3); }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.swatch i { display: block; height: 64px; }
.swatch span { display: block; padding: var(--s-2) var(--s-3); font-size: var(--fs-sm); font-weight: 600; }
.swatch small { font-weight: 400; }
.tones { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-3); }
.tone { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 15px; background: var(--t-bg); border: 1px solid var(--t-line); border-radius: var(--r-md); color: var(--ink); font-weight: 600; font-size: var(--fs-md); }
.tone small { color: var(--blue-600); }
.type { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: var(--s-4); align-items: baseline; padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.type:last-child { border-bottom: 0; }
.type small { font-size: var(--fs-sm); }
.spaces { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: flex-end; }
.spaces div { display: grid; justify-items: center; gap: var(--s-1); font-size: var(--fs-xs); color: var(--ink-3); }
.spaces i { display: block; background: var(--blue-200); border-radius: 2px; }
.radius { width: 88px; height: 64px; background: var(--blue-100); display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--blue-700); }
.shadow { width: 160px; height: 80px; display: grid; place-items: center; background: var(--surface); border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 600; }
.is-hover.btn--primary { background: var(--blue-700); }
.is-hover.btn--secondary { background: var(--surface-2); border-color: var(--ink-3); }
.is-hover.btn--ghost { background: var(--blue-50); }
.is-focus { outline: 2px solid var(--blue-600); outline-offset: 2px; }
.input.is-focus { outline: 0; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s-4); align-items: start; }
.matrix { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s-4); padding: var(--s-4); background: var(--canvas); border-radius: var(--r-md); }
.matrix figure { margin: 0; display: grid; gap: 6px; }
.matrix figcaption { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 600; }
.matrix .evt { height: 128px; }
.matrix .evt--xs { height: 34px; }
.states { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-3); }
.states > div { border: 1px solid var(--line); border-radius: var(--r-md); display: grid; min-height: 220px; }
.states .sk-box { display: grid; gap: var(--s-3); padding: var(--s-5); align-content: center; }
.steps-demo { max-width: 620px; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s-3); }
.rules li { padding: var(--s-4); background: var(--surface-2); border-radius: var(--r-md); }
.rules b { display: block; font-weight: 600; margin-bottom: 2px; }
.rules span { color: var(--ink-2); font-size: var(--fs-sm); }

.ds-motif { max-width: 670px; aspect-ratio: 335 / 174; border-radius: var(--r-md); background: url(../assets/wecare-motif.svg) center / 100% auto no-repeat, var(--blue-600); }
.ds-pop { position: static; max-width: 100%; animation: none; }
.ds-stack { position: relative; display: flex; flex-direction: column; gap: 3px; }
.ds-stack .evt { height: 26px; padding: 0 8px; border-radius: 8px; container-type: normal; }
.ds-stack .evt__meta { display: none; }
.ds-stack .evt__name { line-height: 16px; }
.ds-drop { position: relative; height: 128px; }
.ds-drop .drop { inset: 0; }
.ds-sms { display: grid; gap: 8px; justify-items: start; max-width: 360px; padding: var(--s-4); border-radius: var(--r-md); background: var(--blue-50); }
.ds-promo { max-width: 266px; }
.ds-promo .promo { margin: 0; }

@media (max-width: 900px) {
  .ds { grid-template-columns: minmax(0, 1fr); padding: 16px; gap: var(--s-2); }
  .ds__nav { position: static; display: flex; flex-wrap: wrap; }
  .ds__nav h2 { display: none; }
  .ds__brand { width: 100%; }
  .ds__head h1 { font-size: var(--fs-3xl); }
  .sec { padding: var(--s-4); border-radius: var(--r-lg); }
  .type { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
