/*
 * Shared UI layer (all pages): design tokens and components used by the
 * homepage and inner pages.
 */

:root {
  --h-ink: #13205c;
  --h-primary: var(--color-idsc-primary, #23399d);
  --h-secondary: var(--color-idsc-secondary, #5648d8);
  --h-gold: var(--color-idsc-accent, #d2a63f);
  --h-muted: #5d6893;
  --h-line: #e3e8f7;
  --h-surface: #ffffff;
  --h-soft: #f5f7ff;
  --h-radius: 24px;
  --h-shadow: 0 1px 2px rgb(19 32 92 / 0.04), 0 12px 32px rgb(19 32 92 / 0.06);
}

/* ---------- Shared ---------- */
.idsc-h-icon {
  display: inline-grid;
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.idsc-h-icon svg {
  width: 100%;
  height: 100%;
}

.idsc-h-section {
  padding-block: 3.25rem 0;
}

@media (min-width: 64rem) {
  .idsc-h-section {
    padding-block-start: 4.5rem;
  }
}

.idsc-h-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.idsc-h-kicker {
  margin: 0 0 0.35rem;
  color: var(--h-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

html[lang="en"] .idsc-h-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
}

.idsc-h-kicker--light {
  color: #ffd98d;
}

.idsc-h-title {
  margin: 0;
  color: var(--h-ink);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.idsc-h-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  color: var(--h-secondary);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.idsc-h-more:hover {
  color: var(--h-primary);
}

.idsc-h-more .idsc-h-icon {
  transition: transform 0.2s ease;
}

.idsc-h-more:hover .idsc-h-icon {
  transform: translateX(3px);
}

[dir="rtl"] .idsc-h-more:hover .idsc-h-icon {
  transform: translateX(-3px);
}

.idsc-h-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.idsc-h-btn:hover {
  transform: translateY(-1px);
}

.idsc-h-btn--primary {
  background: linear-gradient(135deg, var(--h-primary), var(--h-secondary));
  color: #fff;
  box-shadow: 0 10px 24px rgb(35 57 157 / 0.24);
}

.idsc-h-btn--ghost {
  border-color: var(--h-line);
  background: var(--h-surface);
  color: var(--h-primary);
}

.idsc-h-btn--ghost:hover {
  border-color: var(--h-secondary);
}

.idsc-h-btn--soft {
  background: var(--h-soft);
  color: var(--h-primary);
}

.idsc-h-btn--gold {
  background: linear-gradient(135deg, #e5bd5c, var(--h-gold));
  color: #1c1a3a;
  box-shadow: 0 10px 24px rgb(210 166 63 / 0.3);
}

.idsc-h-btn--outline-light {
  border-color: rgb(255 255 255 / 0.35);
  color: #fff;
}

.idsc-h-btn--outline-light:hover {
  background: rgb(255 255 255 / 0.1);
}

.idsc-h-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgb(86 72 216 / 0.1);
  color: var(--h-secondary);
  font-size: 0.75rem;
  font-weight: 800;
}

.idsc-h-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  color: var(--h-muted);
  font-size: 0.8rem;
}

