/* =============================================================
   Old Mutual PF Carousel — Shared styles & design tokens
   ============================================================= */

:root {
  /* Old Mutual green palette */
  --om-green-900: #033d2c;
  --om-green-800: #045138;
  --om-green-700: #046a38;
  --om-green-600: #007749;
  --om-green-500: #0a8f5f;
  --om-green-400: #35a97b;
  --om-green-300: #7fc9a9;
  --om-green-100: #e4f4ec;

  --om-gold: #c8a75b;
  --om-gold-soft: #f2e9d2;

  --ink-900: #0e1a15;
  --ink-700: #34423b;
  --ink-500: #5d6b63;
  --ink-300: #9aa8a0;

  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --surface-3: #eef2ef;
  --line: #e2e9e4;

  --danger: #c0392b;
  --warn: #d98a1f;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 1px 3px rgba(3, 61, 44, 0.08);
  --shadow: 0 8px 24px rgba(3, 61, 44, 0.10);
  --shadow-lg: 0 22px 60px rgba(3, 61, 44, 0.20);

  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue",
    Arial, sans-serif;
}

img.is-broken {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--om-green-600);
}

/* ---------- Global "Powered by Pure Survey" footer ---------- */
.powered-by {
  width: 100%;
  text-align: center;
  padding: 16px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-500);
  letter-spacing: 0.01em;
}
.powered-by a {
  color: var(--om-green-700);
  font-weight: 700;
  text-decoration: none;
}
.powered-by a:hover {
  text-decoration: underline;
}
/* Sits within the admin scroll area, separated from content above */
.admin .main .powered-by {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
/* Viewer shows "Powered by Pure Survey" inline within its own footer line,
   so the standalone global footer is suppressed there. */
.viewer .powered-by {
  display: none;
}
/* Login page centres its card via flex; pin the footer to the bottom so it
   stays out of the flex flow and doesn't shift the card. */
.login-page .powered-by {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}
/* Landing page shows "Powered by Pure Survey" inline within its own footer,
   so suppress the standalone global footer here to avoid duplication. */
.landing .powered-by {
  display: none;
}

/* ---------- Brand bar / logo ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__logo {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  box-shadow: var(--shadow-sm);
}

.brand__logo-fallback {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--om-green-700);
  font-size: 18px;
  white-space: nowrap;
}

.brand__divider {
  width: 1px;
  height: 26px;
  background: var(--line);
}

.brand__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-700);
  white-space: nowrap;
}

/* ---------- Icons ---------- */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon--sm {
  width: 16px;
  height: 16px;
}
.icon--lg {
  width: 26px;
  height: 26px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease, color 0.15s ease;
  background: var(--surface);
  color: var(--ink-900);
  border-color: var(--line);
}
.btn:hover {
  background: var(--surface-2);
}
.btn:active {
  transform: translateY(1px);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--primary {
  background: var(--om-green-600);
  color: #fff;
  border-color: var(--om-green-600);
}
.btn--primary:hover {
  background: var(--om-green-700);
}
.btn--ghost {
  background: transparent;
  border-color: transparent;
}
.btn--ghost:hover {
  background: var(--surface-2);
}
.btn--danger {
  color: var(--danger);
  border-color: #eccfcb;
  background: #fbf1f0;
}
.btn--danger:hover {
  background: #f6e2df;
}
.btn--sm {
  padding: 7px 12px;
  font-size: 13px;
}
.btn--icon {
  padding: 9px;
  border-radius: 50%;
}

/* ---------- Chips ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  background: var(--om-green-100);
  color: var(--om-green-700);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-thumb {
  background: #cdd8d1;
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #b6c4bc;
  background-clip: content-box;
}
