/* Evans Insights — shared styles (theme-aware, mobile-first) */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --ink: #16202c;
  --muted: #5a6675;
  --brand: #2f6f5e;
  --brand-ink: #ffffff;
  --border: #e3e7ec;
  --ring: rgba(47, 111, 94, 0.15);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1319;
    --card: #161d26;
    --ink: #eef2f6;
    --muted: #9aa7b4;
    --brand: #4fbf9f;
    --brand-ink: #08110d;
    --border: #263140;
    --ring: rgba(79, 191, 159, 0.18);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px rgba(0,0,0,.06);
  text-align: center;
}

.hero {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  object-position: center 40%;
}

.card-body { padding: 32px 36px 36px; }

/* Partnership credit (Queen's / Bader College) */
.partner {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.partner-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .02em;
}
.partner-logo {
  width: 150px;
  max-width: 60%;
  height: auto;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 20px;
  font-size: 30px;
  background: var(--ring);
}

.brand {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 20px;
  font-weight: 600;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

p { color: var(--muted); margin: 0 0 14px; }
p.lead { color: var(--ink); font-size: 17px; }

.note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

a { color: var(--brand); }

.foot {
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}

/* Simple consent banner (only shown if requireConsent = true) */
#ei-consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  max-width: 720px; margin: 0 auto;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; display: none;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  text-align: left;
}
#ei-consent.show { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
#ei-consent p { margin: 0; flex: 1 1 260px; font-size: 14px; color: var(--ink); }
#ei-consent .actions { display: flex; gap: 8px; }
.btn {
  appearance: none; border: 1px solid var(--border); cursor: pointer;
  border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--ink);
}
.btn.primary { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
