/* ============================================================
   Brightly — Age gate / researcher verification modal
   Full-screen, blocks browsing on first visit until confirmed.
   ============================================================ */

.age-gate {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(26,23,20,0.62);
  -webkit-backdrop-filter: blur(10px) saturate(0.92);
  backdrop-filter: blur(10px) saturate(0.92);
}

.age-gate__panel {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 22px;
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  padding: 44px;
  box-shadow: 0 34px 90px -44px rgba(0,0,0,0.72);
}

.age-gate__panel::before {
  content: "Brightly";
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 12px; margin: 0 0 20px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--color-border-soft);
  color: var(--color-ink);
  font-size: 13px; font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.age-gate__title { font-size: clamp(30px, 4vw, 38px); line-height: 1; letter-spacing: -0.04em; margin: 0 0 16px; }
.age-gate__intro { font-size: 16px; line-height: 1.5; color: var(--color-ink); margin: 0 0 20px; }

.age-gate__check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  border: 1px solid var(--color-border-faint);
  border-radius: var(--radius-box);
  background: #fff;
  font-size: 15px; line-height: 1.45; color: var(--color-ink);
}
.age-gate__check + .age-gate__check { margin-top: 10px; }
.age-gate__check:focus-within { border-color: var(--color-ink); box-shadow: none; }
.age-gate__check input { margin-top: 2px; flex: 0 0 auto; }

.age-gate__enter { margin: 24px 0 16px; }
.age-gate__enter:disabled { opacity: 0.42; cursor: not-allowed; transform: none; box-shadow: none; }

.age-gate__fine {
  font-size: 12px; line-height: 1.5; color: var(--color-ink-muted); margin: 0 0 20px;
}
.age-gate__fine a { color: var(--color-ink-muted); text-decoration: underline; }

.age-gate__exit {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-sans); font-size: 14px; color: var(--color-ink-muted);
  text-decoration: underline;
}

/* Hide the gate for verified visitors (class set by the early inline script). */
html.age-verified .age-gate { display: none; }

/* Lock page scroll while the gate is open (until verified). */
html:not(.age-verified) body.has-age-gate { overflow: hidden; }

@media (max-width: 560px) {
  .age-gate { padding: 16px; align-items: flex-start; overflow-y: auto; }
  .age-gate__panel { padding: 30px 22px; margin: 18px 0; border-radius: 18px; }
  .age-gate__title { font-size: 26px; }
}
