/* Thrive sponsor activation and branded referral cards. Canonical isolated stylesheet. */
.thrive-top-banner {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(105deg,#006b31 0%,#007a39 47%,#55ad27 100%);
  color: #fff;
}
.thrive-top-banner[hidden] { display: none; }
.thrive-top-banner__native { position:relative;min-height:196px;display:grid;grid-template-columns:66px minmax(0,1fr) 52px;gap:11px;align-items:center;padding:14px;isolation:isolate; }
.thrive-top-banner__native::before,.thrive-top-banner__native::after { content:"";position:absolute;z-index:-1;pointer-events:none; }
.thrive-top-banner__native::before { inset:0;background-image:radial-gradient(circle,rgba(255,255,255,.18) 1px,transparent 1.4px);background-size:7px 7px;mask-image:linear-gradient(90deg,#000,transparent 20%,transparent 75%,#000);opacity:.38; }
.thrive-top-banner__native::after { width:220px;height:220px;right:-90px;bottom:-165px;border-radius:50%;background:rgba(191,240,38,.2); }
.thrive-top-banner__logo { width:66px;height:66px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:15px;background:#fff;color:#08723b;box-shadow:0 9px 24px rgba(0,0,0,.16); }
.thrive-top-banner__logo strong { font:800 1.38rem/1 Arial,sans-serif;letter-spacing:-.06em; }
.thrive-top-banner__logo small { margin-top:4px;font:700 .46rem/1 Arial,sans-serif; }
.thrive-top-banner__copy { min-width:0; }
.thrive-top-banner__copy strong { display:block;max-width:100%;color:#e6f125;font:800 clamp(1.05rem,5.1vw,1.45rem)/1.06 Arial,sans-serif;letter-spacing:-.035em;overflow-wrap:anywhere; }
.thrive-top-banner__copy span { display:block;max-width:34rem;margin-top:6px;color:#fff;font:600 .69rem/1.3 Arial,sans-serif; }
.thrive-top-banner__divider { display:none; }
.thrive-top-banner__actions { grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center; }
.thrive-top-banner__download { grid-column:1/-1;min-height:46px;display:flex;align-items:center;justify-content:center;padding:0 18px;border-radius:999px;background:#e7f122;color:#095829;font-size:.75rem;font-weight:900;letter-spacing:.04em;text-transform:uppercase;box-shadow:0 7px 18px rgba(0,0,0,.17);transition:transform .18s ease,filter .18s ease; }
.thrive-top-banner__store { min-width:0;min-height:48px;display:flex;align-items:center;justify-content:center;transition:transform .18s ease,filter .18s ease; }
.thrive-top-banner__store img { display:block;max-width:100%;width:auto;object-fit:contain; }
.thrive-top-banner__store--apple img { height:40px; }
.thrive-top-banner__store--google img { height:50px; }
.thrive-top-banner__actions a:hover { transform:translateY(-1px);filter:brightness(1.05); }
.thrive-top-banner__actions a:focus-visible { outline:3px solid #fff;outline-offset:2px; }
.thrive-top-banner__phone { position:relative;grid-column:3;grid-row:1;align-self:end;width:48px;height:94px;margin-bottom:0;border:3px solid #141718;border-radius:13px 13px 6px 6px;background:#171a1b;box-shadow:0 0 0 1px #9da5a5,0 9px 21px rgba(0,0,0,.28);transform:rotate(7deg);transform-origin:center bottom;z-index:1; }
.thrive-top-banner__phone-screen { position:absolute;inset:2px;border-radius:9px 9px 3px 3px;background:#47b852 url('assets/thrive/thrive-official-screen.jpg') 50% 66%/164% auto no-repeat;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16); }
.thrive-top-banner__phone-island { position:absolute;top:4px;left:50%;width:20px;height:5px;border-radius:99px;background:#111;transform:translateX(-50%);box-shadow:0 1px 1px rgba(255,255,255,.12); }
.thrive-top-banner__phone-button { position:absolute;left:-5px;width:2px;border-radius:2px 0 0 2px;background:#747b7c; }
.thrive-top-banner__phone-button--upper { top:22px;height:12px; }
.thrive-top-banner__phone-button--lower { top:39px;height:17px; }
.thrive-top-banner__spark { position:absolute;width:26px;height:30px;pointer-events:none;z-index:0; }
.thrive-top-banner__spark i { position:absolute;left:2px;display:block;width:18px;height:7px;background:#e7f122;clip-path:polygon(0 0,100% 50%,0 100%,18% 50%);transform-origin:left center; }
.thrive-top-banner__spark i:nth-child(1) { top:1px;transform:rotate(18deg); }
.thrive-top-banner__spark i:nth-child(2) { top:11px;left:6px;width:20px; }
.thrive-top-banner__spark i:nth-child(3) { top:22px;transform:rotate(-18deg); }
.thrive-top-banner__spark--left { left:3px;top:72px; }
.thrive-top-banner__spark--right { right:48px;top:10px;transform:rotate(8deg); }

/* Compact sponsor placement. It overlays rather than shifting each page,
   cycles on eligible routes, and never appears in transactional flows. */
.thrive-top-banner--floating {
  position:fixed;
  top:auto;
  bottom:calc(10px + env(safe-area-inset-bottom));
  left:10px;
  right:10px;
  z-index:1350;
  width:auto;
  max-width:760px;
  margin-inline:auto;
  border:1px solid rgba(255,255,255,.3);
  border-radius:18px;
  box-shadow:0 22px 60px rgba(0,0,0,.38);
  opacity:0;
  pointer-events:none;
  transform:translateY(calc(100% + 26px));
  transition:transform .48s cubic-bezier(.22,.8,.25,1),opacity .34s ease;
}
.thrive-top-banner--floating.is-visible { opacity:1; pointer-events:auto; transform:translateY(0); }
.thrive-top-banner--floating-rich { max-width:1180px; }
.thrive-top-banner--floating-rich .thrive-top-banner__native { padding-right:66px; }
.thrive-float-ad {
  position:relative;
  min-height:146px;
  display:grid;
  grid-template-columns:56px minmax(0,1fr);
  gap:9px 11px;
  align-items:center;
  padding:12px 48px 12px 12px;
  overflow:hidden;
  isolation:isolate;
}
.thrive-float-ad::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background-image:radial-gradient(circle,rgba(255,255,255,.2) 1px,transparent 1.4px);
  background-size:7px 7px;
  mask-image:linear-gradient(90deg,#000,transparent 38%,#000);
  opacity:.42;
}
.thrive-float-ad__logo { width:56px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:13px;background:#fff;color:#08723b;box-shadow:0 8px 20px rgba(0,0,0,.16); }
.thrive-float-ad__logo strong { font:800 1.15rem/1 Arial,sans-serif;letter-spacing:-.06em; }
.thrive-float-ad__logo small { margin-top:3px;font:700 .4rem/1 Arial,sans-serif; }
.thrive-float-ad__copy { min-width:0; }
.thrive-float-ad__copy strong { display:block;color:#eff82e;font:900 clamp(1rem,5vw,1.35rem)/1.04 Arial,sans-serif;letter-spacing:-.035em; }
.thrive-float-ad__copy span { display:block;margin-top:5px;color:#fff;font:600 .68rem/1.3 Arial,sans-serif; }
.thrive-float-ad__cta { grid-column:1/-1;min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 16px;border-radius:999px;background:#e7f122;color:#095829;font-size:.7rem;font-weight:900;letter-spacing:.045em;text-transform:uppercase;box-shadow:0 7px 18px rgba(0,0,0,.17); }
.thrive-float-ad--home { min-height:204px; }
.thrive-float-ad__stores { grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:center; }
.thrive-float-ad__stores .thrive-top-banner__store { min-height:44px; }
.thrive-float-ad__stores .thrive-top-banner__store--apple img { height:34px; }
.thrive-float-ad__stores .thrive-top-banner__store--google img { height:42px; }
.thrive-float-ad__close { position:absolute;top:5px;right:5px;z-index:2;width:44px;height:44px;display:grid;place-items:center;color:#fff;border-radius:50%;background:rgba(0,0,0,.2);font-size:16px; }
.thrive-float-ad__close:focus-visible,.thrive-float-ad__cta:focus-visible { outline:3px solid #fff;outline-offset:2px; }

@media (prefers-reduced-motion:reduce) {
  .thrive-top-banner--floating { transition:opacity .01ms linear;transform:none; }
}

@media (min-width: 560px) {
  .thrive-top-banner__native { min-height:157px;grid-template-columns:84px minmax(0,1fr) 68px;gap:16px;padding:14px 22px; }
  .thrive-top-banner__logo { width:82px;height:82px;border-radius:18px; }
  .thrive-top-banner__logo strong { font-size:1.7rem; }
  .thrive-top-banner__logo small { font-size:.56rem; }
  .thrive-top-banner__copy strong { font-size:clamp(1.35rem,3.6vw,1.85rem);overflow-wrap:normal; }
  .thrive-top-banner__copy span { font-size:.78rem; }
  .thrive-top-banner__actions { grid-template-columns:minmax(145px,1fr) 120px 145px; }
  .thrive-top-banner__download { grid-column:auto; }
  .thrive-top-banner__phone { width:62px;height:118px;margin-bottom:0;border-width:4px;border-radius:17px 17px 7px 7px; }
  .thrive-top-banner__phone-screen { inset:3px;border-radius:11px 11px 4px 4px; }
  .thrive-top-banner__phone-island { top:6px;width:26px;height:6px; }
  .thrive-top-banner__spark--right { right:70px; }
  .thrive-float-ad { min-height:92px;grid-template-columns:66px minmax(0,1fr) auto;gap:16px;padding:12px 58px 12px 14px; }
  .thrive-float-ad__logo { width:66px;height:66px; }
  .thrive-float-ad__logo strong { font-size:1.35rem; }
  .thrive-float-ad__copy strong { font-size:1.35rem; }
  .thrive-float-ad__copy span { font-size:.75rem; }
  .thrive-float-ad__cta { grid-column:auto;min-width:148px;padding-inline:20px; }
  .thrive-float-ad--home { min-height:148px; }
}

@media (min-width: 900px) {
  .thrive-top-banner__native { min-height:158px;grid-template-columns:92px minmax(250px,1fr) minmax(330px,430px) 82px;gap:18px;padding:12px 30px; }
  .thrive-top-banner__logo { width:88px;height:88px; }
  .thrive-top-banner__copy strong { font-size:clamp(1.55rem,2.4vw,2rem); }
  .thrive-top-banner__copy span { font-size:clamp(.8rem,1.15vw,.98rem); }
  .thrive-top-banner__actions { grid-column:auto;grid-template-columns:minmax(140px,1fr) 120px; }
  .thrive-top-banner__download { grid-column:1/-1; }
  .thrive-top-banner__phone { grid-column:4;width:76px;height:142px;margin-bottom:-43px;border-width:5px;border-radius:20px 20px 8px 8px; }
  .thrive-top-banner__spark--left { left:7px; }
  .thrive-top-banner__spark--right { right:88px;top:10px; }
}

@media (min-width: 1220px) {
  .thrive-top-banner__native { min-height:142px;grid-template-columns:96px minmax(310px,1fr) 1px minmax(420px,auto) 108px;gap:clamp(15px,1.5vw,24px);padding:10px clamp(28px,3.4vw,58px); }
  .thrive-top-banner__logo { width:92px;height:92px;border-radius:19px; }
  .thrive-top-banner__logo strong { font-size:1.9rem; }
  .thrive-top-banner__logo small { font-size:.63rem; }
  .thrive-top-banner__copy strong { font-size:clamp(1.75rem,2.15vw,2.5rem); }
  .thrive-top-banner__copy span { font-size:clamp(.85rem,1vw,1.12rem); }
  .thrive-top-banner__divider { display:block;width:1px;height:72px;background:rgba(255,255,255,.62); }
  .thrive-top-banner__actions { display:flex;gap:10px; }
  .thrive-top-banner__download { grid-column:auto;min-width:150px;min-height:48px; }
  .thrive-top-banner__store { flex:0 0 auto; }
  .thrive-top-banner__phone { grid-column:5;width:98px;height:176px;margin-bottom:-54px;border-width:6px;border-radius:25px 25px 10px 10px; }
  .thrive-top-banner__phone-screen { inset:4px;border-radius:17px 17px 6px 6px; }
  .thrive-top-banner__phone-island { top:8px;width:38px;height:9px; }
  .thrive-top-banner__phone-button { left:-8px;width:3px; }
  .thrive-top-banner__phone-button--upper { top:40px;height:17px; }
  .thrive-top-banner__phone-button--lower { top:63px;height:25px; }
  .thrive-top-banner__spark--right { right:calc(clamp(28px,3.4vw,58px) + 104px);top:16px; }
}

@media (min-width: 1540px) {
  /* The approved full event name is longer than the retired "iMarathon"
     label. Keep the supporting sentence on one line, but let the headline
     form a clean two-line block instead of colliding with the store buttons. */
  .thrive-top-banner__copy strong { white-space:normal; }
  .thrive-top-banner__copy span { white-space:nowrap; }
  .thrive-top-banner__phone { width:108px;height:190px; }
}

.club-referral-brand {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.11);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}
.club-referral-brand img {
  display: block;
  width: 68px;
  height: 50px;
  object-fit: contain;
}
.club-referral-brand__mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--crimson), var(--crimson-dark));
}
.club-referral-brand span,
.club-referral-brand strong,
.club-referral-brand p { display: block; }
.club-referral-brand span {
  margin-bottom: 2px;
  color: var(--crimson);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}
.club-referral-brand strong {
  color: var(--text-dark);
  font-size: 0.98rem;
  line-height: 1.25;
}
.club-referral-brand p {
  margin: 3px 0 0;
  color: var(--text-dark-mid);
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .club-referral-brand {
    grid-template-columns: 88px minmax(0, 1fr);
    padding: 14px 16px;
  }
  .club-referral-brand img { width: 88px; height: 58px; }
}
