/* ===========================================================
   RUNZONE TRAINING — Design tokens (Modern Minimal + Bento)
   =========================================================== */
:root {
  /* Brand — Runzone yellow (from logo) */
  --rz-brand-500: #ffd60a;   /* logo yellow */
  --rz-brand-600: #e6bc00;   /* hover/darker */
  --rz-brand-400: #ffe04d;   /* lighter accent */
  --rz-brand-100: #ffefa1;   /* border / soft accent */
  --rz-brand-50:  #fff8d6;   /* soft background */

  /* Ink — charcoal (from logo text) — also primary CTA */
  --rz-ink-900: #1f2227;
  --rz-ink-800: #2f3137;
  --rz-ink-700: #3d424a;
  --rz-ink-600: #4a5159;
  --rz-ink-500: #6b7280;
  --rz-ink-400: #8a9099;

  /* Surface */
  --rz-bg:     #fafaf7;
  --rz-card:   #ffffff;
  --rz-line:   #ececE7;
  --rz-line-2: #e2e2dc;

  /* Semantic */
  --rz-success: #1fa971;
  --rz-success-50: #e8f7f0;
  --rz-warn:    #f6a623;
  --rz-warn-50: #fdf3e2;
  --rz-danger:  #d7263d;
  --rz-danger-50: #fcecef;

  /* Bento accents */
  --rz-mint:  #c8f0d9;
  --rz-cream: #ffe8c2;
  --rz-sand:  #f1e7d5;
  --rz-sky:   #d9ecf5;

  /* Spacing scale */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15,20,25,0.04);
  --sh-md: 0 1px 2px rgba(15,20,25,0.04), 0 8px 24px rgba(15,20,25,0.06);
  --sh-lg: 0 2px 4px rgba(15,20,25,0.05), 0 18px 40px rgba(15,20,25,0.10);

  /* Motion */
  --t-fast: 150ms;
  --t-base: 220ms;
  --t-slow: 320ms;
  --ease-out: cubic-bezier(.22, .61, .36, 1);

  /* Font */
  --ff-ui:      'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ff-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* ----------- Reset / base ----------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-ui);
  background: var(--rz-bg);
  color: var(--rz-ink-900);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--ff-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.25; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
p { margin: 0 0 var(--sp-3); color: var(--rz-ink-700); }
a { color: var(--rz-ink-900); text-decoration: none; }
a:hover { color: var(--rz-ink-700); text-decoration: underline; text-decoration-color: var(--rz-brand-500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ----------- App shell ----------- */
.app-root { min-height: 100dvh; }
.view-fade { animation: viewFade var(--t-base) var(--ease-out); }
@keyframes viewFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-4);
}
@media (min-width: 768px) { .container { padding: 0 var(--sp-6); } }
@media (min-width: 1024px) { .container { padding: 0 var(--sp-8); } }

/* ----------- Top bar ----------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: saturate(180%) blur(10px);
  background: rgba(250, 250, 247, 0.85);
  border-bottom: 1px solid var(--rz-line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex; align-items: center; gap: var(--sp-2);
  font-family: var(--ff-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--rz-ink-900);
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--rz-brand-500), var(--rz-brand-400));
  display: grid; place-items: center;
  color: var(--rz-ink-900); font-weight: 800; font-size: 15px;
  box-shadow: 0 6px 14px rgba(255, 214, 10, 0.5);
}
.brand-logo {
  display: block;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(255, 214, 10, 0.4);
}
.brand-logo-sm { width: 40px; height: 40px; border-radius: 10px; }
.brand-logo-md { width: 64px; height: 64px; border-radius: 14px; }
.brand-logo-lg { width: 88px; height: 88px; border-radius: 18px; }
.brand-pill {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  background: var(--rz-ink-900); color: var(--rz-brand-500);
  border-radius: var(--r-pill);
  font-family: var(--ff-display); font-weight: 700; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.user-chip {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 10px 6px 6px;
  border-radius: var(--r-pill);
  background: var(--rz-card);
  border: 1px solid var(--rz-line);
  font-size: 14px;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--rz-brand-500); color: var(--rz-ink-900);
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
}

/* ----------- Buttons -----------
   Primary CTA = charcoal (clean, professional)
   Accent CTA  = brand yellow (for highlight / certificate)
*/
.btn {
  --bg: var(--rz-ink-900);
  --fg: #ffffff;
  --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  padding: 12px 20px;
  min-height: 44px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  transition: transform var(--t-fast) var(--ease-out),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out);
  box-shadow: var(--sh-sm);
}
.btn:hover { background: var(--rz-ink-800); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-sm); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { --bg: transparent; --fg: var(--rz-ink-900); --bd: var(--rz-line); box-shadow: none; }
.btn-ghost:hover { background: var(--rz-card); border-color: var(--rz-ink-900); }

.btn-accent { --bg: var(--rz-brand-500); --fg: var(--rz-ink-900); }
.btn-accent:hover { background: var(--rz-brand-600); }

.btn-soft { --bg: var(--rz-brand-50); --fg: var(--rz-ink-900); --bd: var(--rz-brand-100); box-shadow: none; }
.btn-soft:hover { background: var(--rz-brand-100); }

.btn-success { --bg: var(--rz-success); --fg: #ffffff; }
.btn-success:hover { background: #178a5b; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: 13px; }

/* Focus ring (accessibility) — yellow glow + dark inner */
:focus-visible {
  outline: 3px solid var(--rz-brand-500);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ----------- Card ----------- */
.card {
  background: var(--rz-card);
  border: 1px solid var(--rz-line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--sh-sm);
}
.card-soft { background: transparent; border-style: dashed; }

/* ----------- Bento grid ----------- */
.bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}
@media (min-width: 768px)  { .bento { grid-template-columns: repeat(6, 1fr); gap: var(--sp-5); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(12, 1fr); gap: var(--sp-6); } }

.bento-card {
  position: relative;
  background: var(--rz-card);
  border: 1px solid var(--rz-line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  min-height: 160px;
  display: flex; flex-direction: column;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
  overflow: hidden;
  text-align: left;
  color: inherit;
}
.bento-card.is-link { cursor: pointer; }
.bento-card.is-link:hover { transform: translateY(-2px); box-shadow: var(--sh-md); border-color: var(--rz-line-2); }
.bento-card.is-locked { cursor: not-allowed; opacity: .9; }
.bento-card.is-locked::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.7));
  pointer-events: none;
}

.bento-card .lock-pill {
  position: absolute; top: 14px; right: 14px;
  background: var(--rz-card); border: 1px solid var(--rz-line);
  border-radius: var(--r-pill); padding: 4px 10px;
  font-size: 12px; color: var(--rz-ink-500);
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 2;
}
.bento-card .badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--rz-success-50); color: var(--rz-success);
  border: 1px solid #b9e6d0;
  border-radius: var(--r-pill); padding: 4px 10px;
  font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}

.bento-card .b-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  font-family: var(--ff-display); font-weight: 700; font-size: 14px;
  background: var(--rz-brand-500); color: var(--rz-ink-900);
  margin-bottom: var(--sp-3);
}
.bento-card h3 { font-size: 17px; margin-bottom: 4px; }
.bento-card .b-sub { color: var(--rz-ink-500); font-size: 13px; }
.bento-card .b-foot {
  margin-top: auto; padding-top: var(--sp-3);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--rz-ink-500);
}

/* Tints — neutral accents (kept) */
.tint-mint  { background: var(--rz-mint); color: var(--rz-ink-900); }
.tint-cream { background: var(--rz-cream); color: var(--rz-ink-900); }
.tint-sand  { background: var(--rz-sand); color: var(--rz-ink-900); }
.tint-sky   { background: var(--rz-sky); color: var(--rz-ink-900); }
.tint-coral { background: var(--rz-brand-50); color: var(--rz-ink-900); } /* legacy name — now brand soft */
.tint-brand { background: var(--rz-brand-500); color: var(--rz-ink-900); }

/* Span helpers (desktop only) */
@media (min-width: 1024px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
  .row-2 { grid-row: span 2; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .col-md-3 { grid-column: span 3; }
  .col-md-6 { grid-column: span 6; }
}

/* ----------- Progress ----------- */
.progress {
  height: 8px; width: 100%;
  background: var(--rz-line);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress > i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--rz-brand-500), var(--rz-brand-400));
  border-radius: inherit;
  transition: width 400ms var(--ease-out);
}
.progress.success > i { background: linear-gradient(90deg, var(--rz-success), #2ec38a); }

/* ----------- Form ----------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-4); }
.field label { font-size: 13px; font-weight: 600; color: var(--rz-ink-700); }
.field .hint { font-size: 12px; color: var(--rz-ink-400); }
.input, .select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--rz-line);
  border-radius: var(--r-md);
  font: inherit; color: var(--rz-ink-900);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--rz-ink-900);
  box-shadow: 0 0 0 4px rgba(255, 214, 10, 0.35);
}
.field-row { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ----------- Module reader ----------- */
.lesson { display: flex; flex-direction: column; gap: var(--sp-5); }
.lesson h2 { margin-bottom: var(--sp-2); }
.lesson h3 { color: var(--rz-ink-900); margin-top: var(--sp-2); }
.lesson .lead { font-size: 17px; color: var(--rz-ink-700); }
.lesson ul, .lesson ol { padding-left: 22px; margin: 0; color: var(--rz-ink-700); }
.lesson li { margin-bottom: 6px; }
.lesson table {
  width: 100%; border-collapse: collapse;
  background: var(--rz-card); border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--rz-line);
}
.lesson th, .lesson td {
  padding: 10px 14px; text-align: left; font-size: 14px;
  border-bottom: 1px solid var(--rz-line);
  vertical-align: top;
}
.lesson th { background: #f7f7f2; color: var(--rz-ink-700); font-weight: 600; }
.lesson tr:last-child td { border-bottom: none; }
.lesson .callout {
  background: var(--rz-brand-50);
  border: 1px solid var(--rz-brand-100);
  border-left: 4px solid var(--rz-brand-500);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  color: var(--rz-ink-700);
}
.lesson .callout strong { color: var(--rz-ink-900); }

/* ----------- Quiz ----------- */
.quiz-shell { max-width: 720px; margin: 0 auto; padding: var(--sp-6) 0 var(--sp-12); }
.quiz-meter {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--sp-3); font-size: 13px; color: var(--rz-ink-500);
}
.option {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-4);
  background: #fff; border: 1.5px solid var(--rz-line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
  margin-bottom: var(--sp-3);
}
.option:hover { border-color: var(--rz-ink-900); }
.option.is-selected { border-color: var(--rz-ink-900); background: var(--rz-brand-50); }
.option .ind {
  flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rz-line);
  display: grid; place-items: center;
  background: #fff;
}
.option.type-multi .ind { border-radius: 6px; }
.option.is-selected .ind { border-color: var(--rz-ink-900); background: var(--rz-brand-500); }
.option.is-selected .ind::after {
  content: ""; width: 10px; height: 10px; border-radius: inherit;
  background: var(--rz-ink-900);
}
.option .o-text { font-size: 15px; color: var(--rz-ink-900); line-height: 1.5; }

/* ----------- Certificate ----------- */
.cert-wrap { max-width: 980px; margin: 0 auto; padding: var(--sp-6) 0; }
.cert {
  position: relative;
  background: #fffdf3;
  background-image:
    radial-gradient(120% 80% at 0% 0%, var(--rz-brand-50) 0%, transparent 45%),
    radial-gradient(80% 60% at 100% 100%, var(--rz-sand) 0%, transparent 55%);
  border: 1px solid var(--rz-line);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-8);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.cert::before, .cert::after {
  content: ""; position: absolute; pointer-events: none;
}
.cert::before {
  inset: 16px;
  border: 3px solid var(--rz-brand-500);
  border-radius: calc(var(--r-xl) - 8px);
  opacity: .35;
}
.cert::after {
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--rz-brand-500) 0%, transparent 60%);
  opacity: 0.18;
  border-radius: 50%;
}
.cert-head { text-align: center; margin-bottom: var(--sp-6); }
.cert-title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rz-ink-900);
  margin-bottom: var(--sp-2);
}
.cert-sub { color: var(--rz-ink-600); font-size: 14px; }
.cert-name {
  font-family: var(--ff-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: var(--rz-ink-900);
  margin: var(--sp-6) 0 var(--sp-2);
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
  background: linear-gradient(180deg, transparent 60%, var(--rz-brand-500) 60%, var(--rz-brand-500) 92%, transparent 92%);
  padding: 0 12px;
}
.cert-meta {
  text-align: center; color: var(--rz-ink-700); font-size: 15px;
  margin-bottom: var(--sp-6);
}
.cert-body {
  text-align: center; max-width: 640px; margin: 0 auto var(--sp-8);
  color: var(--rz-ink-700); font-size: 15px;
}
.cert-score {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--rz-success-50); color: var(--rz-success);
  padding: 6px 14px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14px;
  border: 1px solid #b9e6d0;
}
.cert-signs {
  display: grid; grid-template-columns: 1fr; gap: var(--sp-6);
  margin-top: var(--sp-8);
}
@media (min-width: 640px) { .cert-signs { grid-template-columns: 1fr 1fr; } }

.sign-block { text-align: center; }
.sign-pad {
  position: relative;
  width: 100%; max-width: 300px; height: 120px;
  margin: 0 auto;
  border: 2px dashed var(--rz-line-2);
  border-radius: var(--r-md);
  background: #fff;
  transition: border var(--t-fast), background var(--t-fast);
  touch-action: none;
}
.sign-pad.has-stroke { border-style: solid; border-color: var(--rz-success); }
.sign-pad canvas { display: block; width: 100%; height: 100%; border-radius: inherit; }
.sign-pad .placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--rz-ink-400); font-size: 13px; pointer-events: none;
}
.sign-pad.has-stroke .placeholder { display: none; }
.sign-actions {
  display: flex; align-items: center; justify-content: center;
  gap: var(--sp-3); margin-top: var(--sp-2);
}
.sign-block .sign-label { font-size: 13px; color: var(--rz-ink-500); margin-top: 8px; }
.sign-block .sign-name {
  font-family: var(--ff-display); font-weight: 600;
  color: var(--rz-ink-900);
  margin-top: 4px;
}
.sign-name-input { max-width: 260px; margin: var(--sp-3) auto 0; }

.cert-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-10);
  padding-top: var(--sp-5);
  border-top: 1px dashed var(--rz-line-2);
  font-size: 13px; color: var(--rz-ink-500);
}
.cert-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: #fff; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--rz-line); color: var(--rz-ink-700);
}
.cert-qr canvas, .cert-qr img { width: 72px; height: 72px; border-radius: 8px; }

/* ----------- Utility ----------- */
.row { display: flex; align-items: center; gap: var(--sp-3); }
.row-wrap { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.between { justify-content: space-between; }
.center { justify-content: center; }
.mt-2 { margin-top: var(--sp-2); } .mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); } .mt-8 { margin-top: var(--sp-8); }
.mb-2 { margin-bottom: var(--sp-2); } .mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.text-muted { color: var(--rz-ink-500); }
.text-sm { font-size: 13px; }
.text-lg { font-size: 17px; }
.text-center { text-align: center; }
.hide-on-mobile { display: none; }
@media (min-width: 768px) { .hide-on-mobile { display: initial; } .show-on-mobile { display: none; } }

.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--rz-line);
  padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; color: var(--rz-ink-600);
}
.tag.success { background: var(--rz-success-50); color: var(--rz-success); border-color: #b9e6d0; }
.tag.warn { background: var(--rz-warn-50); color: var(--rz-warn); border-color: #f8d9a4; }
.tag.danger { background: var(--rz-danger-50); color: var(--rz-danger); border-color: #f1b7c1; }

.divider { height: 1px; background: var(--rz-line); margin: var(--sp-6) 0; border: 0; }

/* Result page */
.result-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--sp-3); padding: var(--sp-8) 0; text-align: center;
}
.result-circle {
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--rz-brand-500) var(--p, 0%), var(--rz-line) 0);
  position: relative;
}
.result-circle::before {
  content: ""; position: absolute; inset: 10px;
  background: var(--rz-bg); border-radius: 50%;
}
.result-circle > span {
  position: relative; z-index: 1; font-family: var(--ff-display);
  font-size: 36px; font-weight: 800; color: var(--rz-ink-900);
}
.result-circle.success { background: conic-gradient(var(--rz-success) var(--p, 0%), var(--rz-line) 0); }

/* =============================================
   CATALOG GRID
   ============================================= */
.catalog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}

.catalog-card {
  background: var(--rz-card);
  border: 1.5px solid var(--rz-line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  color: var(--rz-ink-900);
}
.catalog-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
  border-color: var(--rz-brand-400);
  text-decoration: none;
}
.catalog-card .b-num {
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.catalog-card.tint-brand { background: linear-gradient(135deg, var(--rz-brand-50) 0%, #fff 70%); border-color: var(--rz-brand-100); }
.catalog-card.tint-sky   { background: linear-gradient(135deg, #edf6fb 0%, #fff 70%); }
.catalog-card.tint-mint  { background: linear-gradient(135deg, #e8f8ef 0%, #fff 70%); }
.catalog-card.tint-cream { background: linear-gradient(135deg, #fff5e8 0%, #fff 70%); }
.catalog-card.tint-sand  { background: linear-gradient(135deg, #f7f3ec 0%, #fff 70%); }
.catalog-card.tint-coral { background: linear-gradient(135deg, #fdecea 0%, #fff 70%); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print (export friendly) */
@media print {
  .topbar, .btn, .sign-actions, .cert-print-hide { display: none !important; }
  body { background: #fff; }
}
