/* Remember Those Days: signup component styles (session 257). Everything is scoped to
   .rtd-su, .rtd-pop, .rtd-topbar, .rtd-social and .rtd-relay-host. Uses the site's tokens. */
.rtd-su, .rtd-pop, .rtd-topbar, .rtd-social {
  --rtd-ink: var(--ink, #17283c); --rtd-red: var(--red, #811c2d); --rtd-gold: var(--gold, #e7b853);
  --rtd-paper: var(--paper, #fff9ed); --rtd-cream: var(--cream, #f7edda); --rtd-white: var(--white, #fffdf8);
  --rtd-muted: var(--muted, #4c5864); --rtd-line: var(--line, #cdbda0); --rtd-focus: #006e9c;
  --rtd-display: Zilla, Georgia, serif; --rtd-body: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  box-sizing: border-box;
}
.rtd-su *, .rtd-pop *, .rtd-topbar *, .rtd-social * { box-sizing: border-box; }

/* ---------- Mini-form ---------- */
.rtd-su {
  display: block; max-width: 40rem; margin: 1.5rem auto; padding: 1.25rem 1.4rem 1.1rem;
  background: var(--rtd-white); color: var(--rtd-ink); border: 1px solid var(--rtd-line);
  border-top: 5px solid var(--rtd-gold); border-radius: 8px; box-shadow: 0 6px 22px rgba(23, 40, 60, .12);
  font: 400 18px/1.5 var(--rtd-body); text-align: left;
}
.rtd-su.rtd-su--bare, .rtd-su.rtd-su--popup { background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.rtd-su .rtd-su__eyebrow { margin: 0 0 .35rem; text-wrap: balance; font: 700 18px/1.3 var(--rtd-body); letter-spacing: .08em; text-transform: uppercase; color: var(--rtd-red); }
.rtd-su .rtd-su__heading { margin: 0 0 .4rem; font: 700 clamp(1.9rem, 4vw, 2.6rem)/1.1 var(--rtd-display); color: var(--rtd-ink); }
.rtd-su .rtd-su__lead { margin: 0 0 1rem; font-size: 19px; color: var(--rtd-ink); max-width: 46ch; }
.rtd-su .rtd-su__prompt { margin: 0 0 .25rem; font: 700 22px/1.25 var(--rtd-display); color: var(--rtd-red); text-wrap: balance; }
.rtd-su .rtd-su__lead--compact { font-size: 18px; margin-bottom: .7rem; }
.rtd-su .rtd-su__form { margin: 0; }
.rtd-su .rtd-su__label { display: block; margin: 0 0 .35rem; font-weight: 700; font-size: 18px; color: var(--rtd-ink); }
.rtd-su .rtd-su__row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: stretch; }
.rtd-su .rtd-su__row .rtd-su__input {
  flex: 1 1 15rem; min-width: 0; width: 100%; min-height: 52px; margin: 0; padding: .6rem .8rem;
  font: 400 19px/1.3 var(--rtd-body); color: var(--rtd-ink); background: #fff;
  border: 2px solid #5d6873; border-radius: 6px; max-width: none;
}
.rtd-su .rtd-su__row .rtd-su__input:focus { border-color: var(--rtd-ink); }
.rtd-su .rtd-su__row .rtd-su__input[aria-invalid="true"] { border-color: #ae1833; box-shadow: 0 0 0 2px #ae1833; }
.rtd-su .rtd-su__row .rtd-su__btn, .rtd-pop .rtd-pop__no, .rtd-su .rtd-su__again {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; margin: 0;
  padding: .55rem 1.35rem; border: 2px solid var(--rtd-red); border-radius: 6px; background: var(--rtd-red);
  color: #fff; font: 700 19px/1.2 var(--rtd-body); text-decoration: none; cursor: pointer; filter: none; flex: 0 0 auto;
}
.rtd-su .rtd-su__row .rtd-su__btn:hover:not(:disabled) { background: #6a1424; border-color: #6a1424; }
.rtd-su .rtd-su__row .rtd-su__btn:disabled { opacity: .75; cursor: progress; }
.rtd-su .rtd-su__consent { margin: .6rem 0 0; font-size: 18px; line-height: 1.45; color: var(--rtd-muted); }
.rtd-su .rtd-su__consent a, .rtd-su .rtd-su__error a { color: var(--rtd-red); font-weight: 700; text-underline-offset: .2em; }
.rtd-su .rtd-su__error { margin: .6rem 0 0; color: #9e1932; font-weight: 700; font-size: 18px; }
.rtd-su .rtd-su__error:empty { display: none; }
.rtd-su .rtd-su__error .rtd-su__fallback { display: flex; width: fit-content; max-width: 100%; align-items: center; min-height: 48px; margin-top: .5rem; padding: .4rem .95rem; border: 2px solid var(--rtd-red); border-radius: 6px; background: #fff; line-height: 1.3; }
.rtd-su .rtd-su__done { margin: 0; padding: .9rem 1rem; border-left: 5px solid #2f6b4f; background: #eaf3ec; border-radius: 4px; }
.rtd-su .rtd-su__done-text { margin: 0 0 .6rem; font-weight: 700; font-size: 19px; color: #1d4a35; }
.rtd-su .rtd-su__again { min-height: 44px; padding: .35rem .9rem; background: transparent; color: var(--rtd-red); font-size: 18px; }
.rtd-su .rtd-su__status { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rtd-su [hidden] { display: none !important; }
.rtd-topbar .rtd-sr, .rtd-social .rtd-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rtd-su :focus-visible { outline: 3px solid var(--rtd-focus); outline-offset: 3px; }
/* Large (hero) variant */
.rtd-su--hero { max-width: 44rem; padding: 1.6rem 1.7rem 1.4rem; }
.rtd-su--hero .rtd-su__row .rtd-su__input { min-height: 58px; font-size: 21px; }
.rtd-su--hero .rtd-su__row .rtd-su__btn { min-height: 58px; font-size: 21px; padding-inline: 1.7rem; }
@media (max-width: 480px) { .rtd-su .rtd-su__row .rtd-su__btn { flex: 1 1 100%; } }
/* Keep a 16px gutter on phones when the card sits in an edge-to-edge section. */
@media (max-width: 640px) { .rtd-su:not(.rtd-su--popup):not(.rtd-su--bare) { margin-left: 1rem; margin-right: 1rem; padding-left: 1.1rem; padding-right: 1.1rem; } }
/* Compact variant */
.rtd-su--compact { max-width: 36rem; padding: 1rem 1.15rem .9rem; border-top-width: 4px; }

/* ---------- Visually hidden host for the real MailerLite form (pages without one) ---------- */
.rtd-relay-host { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Pop-up ---------- */
html.rtd-pop-lock { overflow: hidden; }
.rtd-pop {
  width: min(46rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0;
  border: 0; border-radius: 10px; background: var(--rtd-paper); color: var(--rtd-ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45); overflow: auto; font: 400 18px/1.5 var(--rtd-body);
}
.rtd-pop::backdrop { background: rgba(7, 18, 30, .78); }
.rtd-pop.rtd-pop--fallback { position: fixed; inset: 0; z-index: 2147483000; display: block; }
.rtd-pop .rtd-pop__inner { position: relative; display: grid; grid-template-columns: 1fr; border-top: 6px solid var(--rtd-gold); }
.rtd-pop.rtd-pop--cover .rtd-pop__inner { grid-template-columns: minmax(150px, 13rem) 1fr; }
.rtd-pop .rtd-pop__media { background: var(--rtd-ink); display: flex; align-items: center; justify-content: center; padding: 1.4rem 1.1rem; }
.rtd-pop .rtd-pop__media img { display: block; width: 100%; max-width: 190px; height: auto; border-radius: 2px 5px 5px 2px; box-shadow: 8px 10px 18px rgba(0, 0, 0, .45); }
.rtd-pop .rtd-pop__body { padding: 1.6rem 1.7rem 1.5rem; min-width: 0; }
.rtd-pop .rtd-pop__eyebrow { margin: 0 2.6rem .5rem 0; padding: .3rem .6rem; display: inline-block; text-wrap: balance; background: var(--rtd-ink); color: var(--rtd-gold); font: 700 18px/1.3 var(--rtd-body); letter-spacing: .07em; text-transform: uppercase; border-radius: 3px; }
.rtd-pop .rtd-pop__title { margin: .2rem 0 .5rem; font: 700 clamp(2rem, 5vw, 2.6rem)/1.08 var(--rtd-display); color: var(--rtd-ink); }
.rtd-pop .rtd-pop__lead { margin: 0 0 1rem; font-size: 18px; }
.rtd-pop .rtd-pop__x {
  position: absolute; top: .5rem; right: .5rem; z-index: 1; width: 48px; height: 48px; min-height: 48px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 50%;
  background: transparent; color: var(--rtd-ink); font: 400 34px/1 var(--rtd-body); cursor: pointer;
}
.rtd-pop.rtd-pop--cover .rtd-pop__x { background: var(--rtd-paper); }
.rtd-pop .rtd-pop__x:hover { border-color: var(--rtd-line); background: var(--rtd-cream); }
.rtd-pop .rtd-pop__no { margin-top: 1rem; min-height: 48px; background: transparent; color: var(--rtd-ink); border-color: transparent; text-decoration: underline; text-underline-offset: .2em; padding-inline: .4rem; font-weight: 700; font-size: 18px; }
.rtd-pop .rtd-pop__no:hover { background: var(--rtd-cream); }
/* After joining from the quiz gate, the close button becomes the way in: "Start playing" (OD-812). */
.rtd-pop .rtd-pop__no.rtd-pop__no--go { padding-inline: 1.35rem; border: 2px solid var(--rtd-red); border-radius: 6px; background: var(--rtd-red); color: #fff; text-decoration: none; }
.rtd-pop .rtd-pop__no.rtd-pop__no--go:hover { background: var(--rtd-red); filter: brightness(1.12); }
.rtd-pop :focus-visible { outline: 3px solid var(--rtd-focus); outline-offset: 3px; }
@media (max-width: 600px) {
  .rtd-pop { width: calc(100vw - 1rem); max-height: calc(100dvh - 1rem); }
  .rtd-pop.rtd-pop--cover .rtd-pop__inner { grid-template-columns: 1fr; }
  .rtd-pop .rtd-pop__media { padding: .9rem 1rem .5rem; background: var(--rtd-ink); }
  .rtd-pop .rtd-pop__media img { max-width: 92px; }
  .rtd-pop .rtd-pop__body { padding: 1.1rem 1rem 1.1rem; }
  .rtd-pop .rtd-pop__eyebrow { margin-right: 0; }
  .rtd-pop .rtd-pop__x { top: .35rem; right: .35rem; }
  .rtd-pop.rtd-pop--cover .rtd-pop__x { background: var(--rtd-ink); color: var(--rtd-gold); }
}
@media (prefers-reduced-motion: no-preference) {
  .rtd-pop[open] { animation: rtd-pop-in .22s ease-out; }
  @keyframes rtd-pop-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- Top bar ---------- */
/* Keep focused fields and #anchors clear of the sticky bar. */
html:has(> body > .rtd-topbar) { scroll-padding-top: 76px; }
.rtd-topbar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; justify-content: center; gap: .5rem 1.4rem;
  min-height: 56px; padding: 4px 16px; background: var(--rtd-ink); color: var(--rtd-gold);
  border-bottom: 3px solid var(--rtd-gold); font: 700 18px/1.15 var(--rtd-body);
}
.rtd-topbar .rtd-topbar__text { flex: 0 1 auto; min-width: 0; margin: 0; font: 700 clamp(18px, 2.1vw, 24px)/1.12 var(--rtd-display); letter-spacing: .06em; text-transform: uppercase; color: var(--rtd-gold); }
.rtd-topbar .rtd-topbar__part { white-space: nowrap; }
.rtd-topbar .rtd-topbar__btn {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; margin: 0;
  padding: .3rem 1rem; border: 2px solid var(--rtd-gold); border-radius: 6px; background: var(--rtd-gold); color: var(--rtd-ink);
  font: 700 18px/1.1 var(--rtd-body); text-decoration: none; cursor: pointer; filter: none;
}
.rtd-topbar .rtd-topbar__btn:hover { background: #f3cd73; border-color: #f3cd73; }
.rtd-topbar :focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .rtd-topbar { justify-content: space-between; gap: .6rem; padding: 4px 12px; }
  .rtd-topbar .rtd-topbar__text { font-size: 18px; letter-spacing: .03em; line-height: 1.08; }
  .rtd-topbar .rtd-topbar__sep { display: none; }
  .rtd-topbar .rtd-topbar__part { display: block; white-space: normal; }
  .rtd-topbar .rtd-topbar__btn { padding: .3rem .75rem; }
}
/* Below 375px the two lines can become three: stop sticking so the bar never covers more than 56px. */
@media (max-width: 374px) { .rtd-topbar { position: static; } }
@media (max-width: 420px) {
  .rtd-topbar { padding: 4px 10px; gap: .5rem; }
  .rtd-topbar .rtd-topbar__text { letter-spacing: .01em; }
  .rtd-topbar .rtd-topbar__btn { padding: .3rem .65rem; }
}

/* ---------- Footer social row ---------- */
.rtd-social { margin: 0 0 1.6rem; padding: 0 0 1.4rem; border-bottom: 1px solid rgba(247, 237, 218, .25); color: var(--rtd-cream); font: 400 18px/1.4 var(--rtd-body); }
.rtd-social .rtd-social__h { margin: 0 0 .8rem; font: 700 22px/1.25 var(--rtd-display); color: #fff4db; }
.rtd-social .rtd-social__list { display: flex; flex-wrap: wrap; gap: .6rem .7rem; margin: 0; padding: 0; list-style: none; }
.rtd-social .rtd-social__list li { margin: 0; }
.rtd-social a.rtd-social__link {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; padding: .3rem .95rem .3rem .35rem;
  border: 1px solid rgba(247, 237, 218, .45); border-radius: 999px; color: var(--rtd-cream); text-decoration: none; font-weight: 700; font-size: 18px;
}
.rtd-social a.rtd-social__link:hover { background: rgba(231, 184, 83, .16); border-color: var(--rtd-gold); text-decoration: none; }
.rtd-social a.rtd-social__link:focus-visible { outline: 3px solid var(--rtd-gold); outline-offset: 2px; }
.rtd-social .rtd-social__icon { display: inline-flex; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--rtd-gold); color: var(--rtd-ink); align-items: center; justify-content: center; }
.rtd-social .rtd-social__icon svg { width: 22px; height: 22px; display: block; }
@media (max-width: 480px) {
  .rtd-social .rtd-social__list { display: grid; grid-template-columns: 1fr 1fr; }
  .rtd-social a.rtd-social__link { width: 100%; font-size: 18px; }
}
@media print { .rtd-topbar, .rtd-pop, .rtd-su, .rtd-social { display: none !important; } }
