/* WishHana shared design tokens — derived from the approved brand mockup:
   warm cream backgrounds, deep olive green as the primary ink/accent,
   a soft gold for quota/target lines and highlight badges. */
:root {
  --wh-green-900: #2c3524;
  --wh-green-800: #333f2a;
  --wh-green-700: #3f4c34;
  --wh-green-600: #4f5e40;
  --wh-green-100: #e7ebe1;

  --wh-cream-000: #fdfbf7;
  --wh-cream-100: #faf6ee;
  --wh-cream-200: #f3ecdf;
  --wh-cream-300: #ece2cd;

  --wh-tan-300: #e8d9ba;
  --wh-tan-500: #cbab6a;
  --wh-gold-500: #c9a227;

  --wh-ink-900: #262b21;
  --wh-ink-700: #454b3f;
  --wh-ink-500: #6b7062;
  --wh-ink-300: #9a9c8e;

  --wh-border: #e3dcc9;
  --wh-border-soft: #ece6d6;

  --wh-red-500: #b5493a;
  --wh-white: #ffffff;

  --wh-radius-lg: 18px;
  --wh-radius-md: 12px;
  --wh-radius-sm: 8px;
  --wh-radius-pill: 999px;

  --wh-shadow-card: 0 1px 2px rgba(38, 43, 33, 0.04), 0 8px 24px -12px rgba(38, 43, 33, 0.12);

  --wh-font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --wh-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--wh-cream-100);
  color: var(--wh-ink-900);
  font-family: var(--wh-font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .wh-display { font-family: var(--wh-font-display); }
a { color: inherit; }
button { font-family: inherit; }

.wh-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / banner (shared across survey + admin) ---------- */
.wh-header {
  background: linear-gradient(135deg, var(--wh-cream-200) 0%, var(--wh-cream-100) 55%, var(--wh-cream-200) 100%);
  border-bottom: 1px solid var(--wh-border-soft);
  position: relative;
  overflow: hidden;
}
.wh-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}
.wh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}
.wh-brand-row { display: flex; align-items: center; gap: 12px; }
.wh-wordmark {
  font-family: var(--wh-font-display);
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.5px;
  color: var(--wh-green-800);
  line-height: 1;
  white-space: nowrap;
}
.wh-wordmark .dot { color: var(--wh-gold-500); }
.wh-wordmark-img {
  height: 46px;
  width: auto;
  display: block;
}
.wh-tagline {
  font-size: 11.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wh-tan-500);
  font-weight: 600;
}
.wh-header-side { display: flex; align-items: center; gap: 10px; flex: 1; }
.wh-header-side.right { justify-content: flex-end; }

.wh-leaf { color: var(--wh-green-600); opacity: 0.55; }

/* ---------- Buttons / pills ---------- */
.wh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--wh-radius-pill);
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  padding: 10px 18px;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}
.wh-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.wh-btn:active { transform: translateY(1px); }
.wh-btn-dark {
  background: var(--wh-green-800);
  color: var(--wh-cream-000);
}
.wh-btn-dark:hover { background: var(--wh-green-900); }
.wh-btn-outline {
  background: transparent;
  border: 1.5px solid var(--wh-border);
  color: var(--wh-ink-700);
}
.wh-btn-outline:hover { border-color: var(--wh-green-600); color: var(--wh-green-800); }
.wh-btn-gold {
  background: var(--wh-tan-300);
  color: var(--wh-green-900);
}
.wh-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wh-lang-toggle {
  display: flex;
  background: var(--wh-cream-000);
  border: 1px solid var(--wh-border);
  border-radius: var(--wh-radius-pill);
  padding: 3px;
  gap: 2px;
}
.wh-lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--wh-radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--wh-ink-500);
  cursor: pointer;
}
.wh-lang-toggle button.active {
  background: var(--wh-green-800);
  color: var(--wh-cream-000);
}

/* ---------- Cards ---------- */
.wh-card {
  background: var(--wh-cream-000);
  border: 1px solid var(--wh-border-soft);
  border-radius: var(--wh-radius-lg);
  box-shadow: var(--wh-shadow-card);
}

.wh-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--wh-green-800);
  color: var(--wh-cream-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wh-icon-badge svg { width: 20px; height: 20px; }
.wh-icon-badge.light {
  background: var(--wh-cream-200);
  color: var(--wh-green-800);
}

/* ---------- Progress bar ---------- */
.wh-progress-track {
  flex: 1;
  height: 8px;
  background: var(--wh-cream-300);
  border-radius: var(--wh-radius-pill);
  overflow: hidden;
}
.wh-progress-fill {
  height: 100%;
  background: var(--wh-green-700);
  border-radius: var(--wh-radius-pill);
  transition: width 0.35s ease;
}

/* ---------- Utility ---------- */
.wh-eyebrow {
  font-size: 11.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--wh-tan-500);
  font-weight: 700;
}
.wh-muted { color: var(--wh-ink-500); }
.wh-flex { display: flex; }
.wh-gap-8 { gap: 8px; }
.wh-gap-12 { gap: 12px; }

::selection { background: var(--wh-tan-300); }

.wh-skiplink {
  position: absolute; left: -999px; top: 0;
}
.wh-skiplink:focus {
  left: 12px; top: 12px; z-index: 999;
  background: var(--wh-green-900); color: #fff; padding: 8px 14px; border-radius: 8px;
}

:focus-visible { outline: 2.5px solid var(--wh-gold-500); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
