/* TDA visitor welcome screen
   ------------------------------------------------------------------
   A fullscreen, one-question audience survey shown on first eligible
   visit. Scoped under the .vw dialog (and the .vw-update footer
   control) so it cannot leak into existing page styling.
   Brand tokens mirror the incumbent palette: TDA red #D0202A,
   charcoal ink, muted greys, thin hairline borders. */

.vw {
  --vw-red: #D0202A;
  --vw-red-dark: #A8161F;
  --vw-red-soft: #FDF2F3;
  --vw-ink: #1A1A1A;
  --vw-ink-2: #2E2E2E;
  --vw-grey: #5B616E;
  --vw-grey-2: #6E7480;
  --vw-line: #E7E9EC;
  --vw-line-2: #F1F2F4;
  --vw-bg: #FFFFFF;
  --vw-bg-alt: #FAFAFB;

  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: var(--vw-bg);
  color: var(--vw-ink-2);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.vw::backdrop { background: var(--vw-bg); }

.vw, .vw * { box-sizing: border-box; }

.vw-shell {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(20px, 3.4vw, 44px) clamp(20px, 5vw, 72px) clamp(20px, 3vw, 36px);
  animation: vw-in .4s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes vw-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

/* ----- Top bar ----- */
.vw-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.vw-logo { height: clamp(44px, 5vw, 56px); width: auto; display: block; }

.vw-skip {
  appearance: none;
  background: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vw-grey);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.vw-skip:hover { color: var(--vw-ink); background: var(--vw-bg-alt); border-color: var(--vw-line); }
.vw-skip:focus-visible { outline: 3px solid var(--vw-red); outline-offset: 3px; }

/* ----- Main two-column content ----- */
.vw-main {
  flex: 1 1 auto;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  padding: clamp(32px, 6vh, 72px) 0;
}
.vw-left { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }

.vw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--vw-red);
}
.vw-eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--vw-red);
  border-radius: 2px;
  flex: none;
}

.vw-headline {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--vw-ink);
  margin: 20px 0 20px;
  max-width: 14ch;
  text-wrap: balance;
}

.vw-intro { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--vw-grey); max-width: 36ch; }

.vw-sub { font-size: 14.5px; font-weight: 600; color: var(--vw-ink-2); margin-top: 18px; }

.vw-right { display: flex; flex-direction: column; min-width: 0; }

.vw-question {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--vw-ink);
  text-wrap: balance;
}

.vw-helper { font-size: 15px; color: var(--vw-grey); margin: 10px 0 26px; }

/* ----- Options ----- */
.vw-options {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.vw-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.vw-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--vw-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.vw-option:hover { border-color: #D9DCE1; background: var(--vw-bg-alt); }
.vw-option:focus-within { outline: 3px solid var(--vw-red); outline-offset: 2px; }

.vw-radio {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #C9CDD4;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color .18s ease, background .18s ease;
}
.vw-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transition: opacity .18s ease;
}

.vw-option.is-selected {
  border-color: var(--vw-red);
  background: var(--vw-red-soft);
  box-shadow: inset 0 0 0 1px var(--vw-red);
}
.vw-option.is-selected .vw-radio { border-color: var(--vw-red); background: var(--vw-red); }
.vw-option.is-selected .vw-radio::after { opacity: 1; }

.vw-option-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.vw-option-title { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 16.5px; font-weight: 700; color: var(--vw-ink); }
.vw-option-desc { font-size: 13.5px; color: var(--vw-grey); line-height: 1.45; }

/* ----- Step wrapper -----
   Each screen is a flex child that fills the space between the top bar
   and the footer, so step 2 does not inherit step 1's column widths. */
.vw-step {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.vw-step[hidden] { display: none; }

/* ----- CTA + note ----- */
.vw-cta {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  width: 100%;
  margin-top: 22px;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  background: var(--vw-red);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.vw-cta:hover:not(:disabled) {
  background: var(--vw-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -12px rgba(208, 32, 42, .6);
}
.vw-cta:focus-visible { outline: 3px solid var(--vw-red); outline-offset: 3px; }
.vw-cta:disabled { background: #C9CDD4; color: #fff; cursor: not-allowed; }

.vw-note { font-size: 12.5px; color: var(--vw-grey-2); margin-top: 12px; }

/* ==================================================================
   Step 2 — latest happening
   ================================================================== */

.vw-main--event {
  grid-template-columns: 1.02fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}

.vw-event-media {
  position: relative;
  align-self: stretch;
  min-height: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--vw-line-2);
  border: 1px solid var(--vw-line);
}
.vw-event-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.vw-event-badge {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--vw-grey);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(16, 24, 40, .14);
}
.vw-event-badge.is-live { color: var(--vw-red); }

.vw-event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vw-red);
  flex: none;
  animation: vw-pulse 1.8s ease-in-out infinite;
}
@keyframes vw-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.78); }
}

.vw-event-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.vw-event-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(26px, 2.7vw, 40px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--vw-ink);
  margin: 16px 0 0;
  text-wrap: balance;
}
.vw-event-title:focus-visible { outline: 3px solid var(--vw-red); outline-offset: 4px; }

.vw-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin: 20px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--vw-line);
}
.vw-event-meta div { min-width: 0; }
.vw-event-meta dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--vw-grey-2);
}
.vw-event-meta dd {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vw-ink-2);
}

.vw-event-summary {
  font-size: clamp(15px, 1.25vw, 16.5px);
  color: var(--vw-grey);
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 52ch;
}

.vw-event-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.vw-event-points li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--vw-ink-2);
  line-height: 1.5;
}
.vw-event-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 2px;
  background: var(--vw-red);
  border-radius: 2px;
}

.vw-event-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

/* The event CTA is a real link, so it needs the button look without the
   full-width behaviour step 1's CTA has. */
.vw-cta--link {
  width: auto;
  margin-top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.vw-quiet {
  appearance: none;
  background: none;
  border: 1px solid var(--vw-line);
  border-radius: 10px;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--vw-ink-2);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.vw-quiet:hover { border-color: var(--vw-ink); background: var(--vw-bg-alt); color: var(--vw-ink); }
.vw-quiet:focus-visible { outline: 3px solid var(--vw-red); outline-offset: 3px; }

/* ----- Step indicator ----- */
.vw-steps { display: inline-flex; align-items: center; gap: 7px; }
.vw-steps[hidden] { display: none; }
.vw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #C9CDD4;
  transition: background .18s ease, transform .18s ease;
}
.vw-dot.is-on { background: var(--vw-red); transform: scale(1.25); }


/* ----- Footer ----- */
.vw-foot {
  flex: none;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--vw-line);
  padding-top: 20px;
  font-size: 13px;
  color: var(--vw-grey);
}

/* Decorative angular line motif, bottom left. Noninteractive. */
.vw-motif {
  position: absolute;
  left: -32px;
  bottom: -32px;
  width: 240px;
  height: 240px;
  color: var(--vw-red);
  opacity: .14;
  pointer-events: none;
  z-index: -1;
}

/* ----- Footer control (injected by visitor-welcome.js) ----- */
.vw-update {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color .18s ease;
}
.vw-update:hover { color: #fff; }
.vw-update:focus-visible { outline: 3px solid #D0202A; outline-offset: 3px; border-radius: 4px; }

body.vw-lock { overflow: hidden; }

/* ----- Responsive ----- */
@media (max-width: 900px) {
  .vw-shell { padding: 20px 20px 24px; }
  .vw-logo { height: 44px; }
  .vw-main {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    padding: clamp(24px, 5vh, 40px) 0;
  }
  .vw-headline { max-width: none; font-size: clamp(30px, 8.5vw, 40px); }
  .vw-question { font-size: clamp(22px, 6vw, 28px); }
  .vw-foot { flex-direction: column; gap: 6px; }

  /* Event: image on top, content below. */
  .vw-main--event { gap: 22px; }
  .vw-event-media img { min-height: 0; height: clamp(180px, 30vh, 260px); }
  .vw-event-title { font-size: clamp(24px, 6.4vw, 30px); }
  .vw-event-summary { max-width: none; }
  .vw-event-actions { margin-top: 22px; }
  .vw-event-actions .vw-cta--link,
  .vw-event-actions .vw-quiet { flex: 1 1 100%; }
}

@media (max-height: 640px) {
  .vw-shell { padding-top: 14px; padding-bottom: 14px; }
  .vw-main { padding: 16px 0; gap: 20px; }
  .vw-logo { height: 38px; }
  .vw-headline { font-size: 26px; margin: 12px 0; }
  .vw-intro { font-size: 15px; }
  .vw-sub { margin-top: 10px; }
  .vw-helper { margin-bottom: 14px; }
  .vw-option { padding: 12px 16px; }
  .vw-cta { margin-top: 16px; padding: 13px 24px; }

  .vw-event-title { font-size: 24px; margin-top: 10px; }
  .vw-event-meta { margin-top: 14px; padding-top: 12px; }
  .vw-event-summary { margin-top: 12px; }
  .vw-event-points { margin-top: 12px; }
  .vw-event-actions { margin-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .vw-shell { animation: none; }
  .vw-skip,
  .vw-option,
  .vw-cta,
  .vw-quiet,
  .vw-dot,
  .vw-update { transition: none; }
  /* Keep the live badge legible without the pulse. */
  .vw-event-dot { animation: none; opacity: 1; transform: none; }
}
