/* ── SHARED SAMPLE SECTION CHROME ── */
.sample-section {}
.sample-head-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sample-head-row::after { content: ''; flex: 1; height: 1px; background: var(--line, var(--rule)); }
.sample-eyebrow {
  font-size: 11px; color: var(--muted, var(--text-3, var(--text-m))); letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: 12px;
  white-space: nowrap; flex-shrink: 0;
}
.sample-live { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: var(--green, var(--accent)); letter-spacing: .14em; font-weight: 700; text-transform: uppercase; margin-left: 4px; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green, var(--accent)); animation: livePulse 1.8s ease-out infinite; flex-shrink: 0; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0   rgba(43,84,67,.45); }
  80%  { box-shadow: 0 0 0 9px rgba(43,84,67,.00); }
  100% { box-shadow: 0 0 0 0   rgba(43,84,67,.00); }
}
[data-theme="dark"] .live-pulse { animation-name: livePulseDark; }
@keyframes livePulseDark {
  0%   { box-shadow: 0 0 0 0   rgba(109,166,143,.45); }
  80%  { box-shadow: 0 0 0 9px rgba(109,166,143,.00); }
  100% { box-shadow: 0 0 0 0   rgba(109,166,143,.00); }
}

/* ── SLIDER CHROME ── */
.sample-slider-wrap { position: relative; }
.sample-grid {
  display: flex; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: 4px; padding-top: 4px;
}
.sample-grid::-webkit-scrollbar { display: none; }
.sample-grid .scard { flex: 0 0 300px; scroll-snap-align: start; min-width: 0; }
.sample-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-card, var(--bg-elev, var(--panel))); border: 1px solid var(--line, var(--rule));
  box-shadow: var(--shadow-soft, var(--shadow-sm, var(--shadow)));
  display: flex; align-items: center; justify-content: center;
  color: var(--ink, var(--text)); cursor: pointer; z-index: 2;
  transition: opacity .15s, background .15s;
  opacity: 0; pointer-events: none;
}
.sample-nav.visible { opacity: 1; pointer-events: auto; }
.sample-nav:hover { background: var(--bg-card-2, var(--bg-alt, var(--panel-soft))); }
.sample-nav.prev { left: -17px; }
.sample-nav.next { right: -17px; }
.sample-eyebrow .dash { width: 36px; height: 1px; background: currentColor; opacity: .5; flex-shrink: 0; }

/* ── CARD SHELL ── */
.scard {
  background: var(--bg-card, var(--bg-elev, var(--panel)));
  border: 1px solid var(--line, var(--rule));
  border-radius: 20px;
  padding: 18px 18px 16px;
  display: flex; flex-direction: column; gap: 0;
  box-shadow: var(--shadow-soft, var(--shadow-sm, var(--shadow)));
  transition: transform .25s, box-shadow .25s, border-color .25s;
  text-decoration: none; color: inherit;
}
.scard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop, var(--shadow));
  border-color: var(--line-strong, var(--rule-strong, var(--rule-s)));
}

/* ── EYEBROW ── */
.scard-ey {
  font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted, var(--text-3, var(--text-m)));
  font-family: 'Geist Mono', monospace;
  margin-bottom: 8px;
}

/* ── NAME ── */
.scard-name {
  font-size: 16px; font-weight: 700; letter-spacing: -.022em;
  line-height: 1.2; color: var(--ink, var(--text));
  margin-bottom: 10px;
  min-height: 38px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── PILLS ── */
.scard-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.scard-pill-active {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--green-tint, var(--pos-bg, var(--accent-soft)));
  color: var(--green, var(--accent));
  font-size: 12px; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
}

/* ── HERO SECTION ── */
.scard-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: center;
  padding: 14px 0 10px;
  border-top: 1px solid var(--line, var(--rule));
}
.scard-hero-l { min-width: 0; }
.scard-lbl {
  font-size: 10px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted, var(--text-3, var(--text-m)));
  font-family: 'Geist Mono', monospace; margin-bottom: 5px; line-height: 1.2;
}
.scard-hero-val {
  font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: var(--ink, var(--text)); margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scard-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 500;
  font-family: 'Geist Mono', monospace;
  color: var(--muted, var(--text-3, var(--text-m)));
}
.scard-delta span { font-size: 9px; }
.scard-delta.pos { color: #2D7A52; }
.scard-delta.neg { color: #B84B30; }

/* ── HEALTH RING ── */
.scard-ring {
  position: relative; width: 52px; height: 52px; flex-shrink: 0;
}
.scard-ring-num {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; letter-spacing: -.02em;
  color: var(--ink, var(--text));
}
.scard-ring-jauns {
  font-size: 7px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; font-family: 'Geist Mono', monospace;
  color: var(--muted, var(--text-3, var(--text-m)));
}

/* ── SPARKLINE — always rendered, flex:1 to fill remaining space ── */
.scard-spark { flex: 1; min-height: 62px; margin: 4px 0 10px; display: flex; flex-direction: column; justify-content: center; }
.scard-spark-svg { width: 100%; height: 48px; display: block; overflow: visible; }
.scard-jauns-note {
  font-size: 12.5px; line-height: 1.45; letter-spacing: -.005em;
  color: var(--muted, var(--text-3, var(--text-m)));
  padding: 4px 0;
}

/* ── BOTTOM METRICS ── */
.scard-bot {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 12px 0 10px;
  border-top: 1px solid var(--line, var(--rule));
}
.scard-bot-item {}
.scard-bot-val {
  font-size: 18px; font-weight: 700; letter-spacing: -.02em;
  margin-top: 5px; color: var(--ink, var(--text)); line-height: 1;
}
.scard-bot-val.neg { color: #B84B30; }
.scard-bot-val.muted { color: var(--muted, var(--text-3, var(--text-m))); font-weight: 400; }

/* ── CTA ── */
.scard-cta {
  margin-top: 14px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 11px 14px 11px 16px;
  border: 1px solid var(--line, var(--rule));
  border-radius: 13px;
  font-size: 13.5px; font-weight: 500; letter-spacing: -.005em;
  color: var(--ink, var(--text));
  background: var(--bg-card-2, var(--bg-alt, var(--panel-soft)));
  transition: background .18s, border-color .18s, color .18s;
}
.scard-cta:hover {
  background: var(--ink, var(--text));
  border-color: var(--ink, var(--text));
  color: var(--bg-card, var(--bg));
}
.scard-cta-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green, var(--accent));
  color: var(--bg-card, var(--bg));
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .18s, color .18s, transform .25s cubic-bezier(.2,.7,.3,1);
}
.scard:hover .scard-cta-arrow,
.scard-cta:hover .scard-cta-arrow {
  background: var(--bg-card, var(--bg));
  color: var(--ink, var(--text));
  transform: translateX(3px);
}

/* ── RESPONSIVE ── */
@media(max-width: 640px) {
  .sample-grid .scard { flex: 0 0 270px; }
  .sample-eyebrow .dash { width: 22px; }
  .scard-hero-val { font-size: 24px; }
}
