/* Build Better webinar series page. Every rule is under .bb-page, so nothing
   reaches the shared nav or footer. */

.bb-page {
  --bb-on-navy: #d5dcf0;
  --bb-on-navy-muted: #a9b6dc;
  --bb-rule: #e2e4ea;
}

.bb-page img {
  border-radius: 0;
}

.bb-page .bb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.bb-page .bb-cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.bb-page [id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* ==================== HERO ==================== */
.bb-page .bb-hero {
  position: relative;
  padding: calc(var(--nav-height) + clamp(40px, 6vw, 72px)) 0 clamp(64px, 8vw, 96px);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}

.bb-page .bb-hero::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -160px;
  width: 680px;
  height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(0 71 187 / 60%), rgb(0 27 107 / 0%) 70%);
  pointer-events: none;
}

.bb-page .bb-hero .container {
  position: relative;
  z-index: 1;
}

.bb-page .bb-crumb {
  margin-bottom: clamp(24px, 4vw, 36px);
  font-size: 14px;
  color: var(--bb-on-navy-muted);
}

.bb-page .bb-crumb a {
  color: var(--bb-on-navy-muted);
}

.bb-page .bb-crumb a:hover {
  color: #fff;
}

.bb-page .bb-hero__kicker {
  margin-bottom: 18px;
  color: var(--sky);
}

.bb-page .bb-hero__logo {
  margin-bottom: 30px;
  line-height: 0;
}

.bb-page .bb-hero__logo img {
  width: min(620px, 100%);
  height: auto;
}

.bb-page .bb-hero__strap {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(20px, 2.4vw, 24px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.bb-page .bb-hero__lede {
  max-width: 700px;
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--bb-on-navy);
}

.bb-page .bb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.bb-page :is(.bb-hero, .bb-closing) :focus-visible {
  outline-color: var(--sky);
}

/* ==================== NEXT EPISODE ==================== */
.bb-page .bb-next {
  padding: clamp(64px, 8vw, 96px) 0;
}

.bb-page .bb-next__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(36px, 5vw, 64px);
  align-items: flex-start;
}

.bb-page .bb-next__main {
  flex: 1 1 540px;
}

.bb-page .bb-next__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bb-page .bb-partner {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.bb-page .bb-partner img {
  width: auto;
  height: 40px;
  border-radius: 0;
}

.bb-page .bb-badge {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.bb-page .bb-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgb(65 182 230 / 25%);
}

.bb-page .bb-badge__num {
  color: var(--blue);
}

.bb-page .bb-next h2 {
  margin-bottom: 20px;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.bb-page .bb-next__lede {
  margin: 0 0 30px;
  font-size: 18px;
  line-height: 1.65;
}

.bb-page .bb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  margin-bottom: 34px;
  padding: 20px 0;
  border-block: 1px solid var(--bb-rule);
}

.bb-page .bb-meta div {
  flex: 1 1 120px;
}

.bb-page .bb-meta dt,
.bb-page .bb-reg__points dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.bb-page .bb-meta dd {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.bb-page .bb-agenda {
  list-style: none;
  counter-reset: agenda;
}

.bb-page .bb-agenda li {
  position: relative;
  padding: 0 0 22px 56px;
  counter-increment: agenda;
}

.bb-page .bb-agenda li::before {
  content: "0" counter(agenda);
  position: absolute;
  top: 2px;
  left: 0;
  width: 36px;
  padding-top: 6px;
  border-top: 3px solid var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--blue);
}

.bb-page .bb-agenda h3 {
  margin-bottom: 4px;
  font-size: 19px;
}

.bb-page .bb-agenda p {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.65;
}

/* Sticky only matters side by side. Stacked, the card is the last item in
   the row, so it has nowhere to travel. */
.bb-page .bb-reg {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  flex: 1 1 340px;
  padding: 32px 32px 28px;
  border: 1px solid var(--bb-rule);
  border-top: 3px solid var(--sky);
  background: #fff;
  box-shadow: 0 20px 50px rgb(0 27 107 / 12%);
}

.bb-page .bb-reg h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.bb-page .bb-reg__sub {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.bb-page .bb-reg__points {
  margin-bottom: 22px;
  border-top: 1px solid var(--bb-rule);
}

.bb-page .bb-reg__points div {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bb-rule);
}

.bb-page .bb-reg__points dt {
  flex: none;
  width: 52px;
  padding-top: 3px;
}

.bb-page .bb-reg__points dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.bb-page .bb-reg__btn {
  display: block;
  width: 100%;
}

.bb-page .bb-reg__note {
  margin: 10px 0 22px;
  font-size: 13px;
  text-align: center;
  color: var(--text-muted);
}

.bb-page .bb-gift {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--cool-grey);
}

.bb-page .bb-gift p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.bb-page .bb-gift__cover {
  flex: none;
  width: 44px;
  height: auto;
}

/* ==================== BANDS ==================== */
.bb-page .bb-band {
  padding: clamp(64px, 8vw, 96px) 0;
}

.bb-page .bb-band--grey {
  background: var(--cool-grey);
}

.bb-page .bb-band h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 3.2vw, 36px);
  line-height: 1.15;
}

.bb-page .bb-band__cap {
  margin-bottom: 12px;
}

.bb-page .bb-intro {
  max-width: 760px;
  margin: 0 0 44px;
  font-size: 19px;
  line-height: 1.6;
}

/* ==================== SPEAKERS ==================== */
/* Each card spans two rows of a subgrid, so the bios line up whatever the
   length of the job title above them. */
.bb-page .bb-speakers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  column-gap: 22px;
}

.bb-page .bb-speaker {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  grid-template-columns: 110px 1fr;
  row-gap: 0;
  column-gap: 20px;
  align-items: start;
  margin-bottom: 22px;
  padding: clamp(22px, 3vw, 26px);
  border: 1px solid var(--bb-rule);
  background: #fff;
}

.bb-page .bb-speaker__photo {
  width: 110px;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--cool-grey);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--sky);
  object-fit: cover;
}

.bb-page .bb-speaker__body {
  padding-top: 14px;
}

.bb-page .bb-speaker__body h3 {
  margin-bottom: 6px;
}

.bb-page .bb-speaker__role {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--blue);
}

.bb-page .bb-speaker > p {
  grid-column: 1 / -1;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.65;
}

/* ==================== SERIES ==================== */
.bb-page .bb-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.bb-page .bb-card {
  padding: 30px 32px 32px;
  border: 1px solid var(--bb-rule);
  border-top: 3px solid var(--navy);
  background: #fff;
}

.bb-page .bb-card h3 {
  margin: 12px 0 10px;
}

.bb-page .bb-card p:last-child {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.7;
}

.bb-page .bb-band .bb-episodes__title {
  font-size: 28px;
}

.bb-page .bb-episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 22px;
}

.bb-page .bb-ep {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--bb-rule);
  background: #fff;
}

.bb-page .bb-ep--live {
  border-color: var(--blue);
}

.bb-page .bb-ep--soon {
  border-style: dashed;
  background: transparent;
}

.bb-page .bb-ep__head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 136px;
  padding: 0 28px;
  background: radial-gradient(circle at 75% 60%, var(--blue), var(--navy) 70%);
}

.bb-page .bb-ep__head img {
  width: 160px;
  height: auto;
}

.bb-page .bb-ep__tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  background: var(--sky);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
}

.bb-page .bb-ep__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 26px 28px;
}

.bb-page .bb-ep--soon .bb-cap {
  color: var(--text-muted);
}

.bb-page .bb-ep h3 {
  font-size: 19px;
}

.bb-page .bb-ep p {
  margin-top: 0;
  font-size: 15px;
  line-height: 1.6;
}

.bb-page .bb-ep__body > p:not(.bb-cap) {
  color: var(--text-muted);
}

.bb-page .bb-ep__link {
  margin-top: auto;
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

/* ==================== NEWSLETTER ==================== */
.bb-page .bb-notify {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 40px;
  padding: clamp(28px, 4vw, 34px) clamp(22px, 4vw, 38px);
  background: var(--navy);
  color: #fff;
}

.bb-page .bb-notify h3 {
  margin-bottom: 4px;
  color: #fff;
}

.bb-page .bb-notify p {
  font-size: 15px;
  color: var(--bb-on-navy);
}

.bb-page .bb-notify__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bb-page .bb-notify__form input[type="email"] {
  flex: 1 1 220px;
  padding: 11px 12px;
  border: 0;
  border-radius: 4px;
  font: 400 15px Lexend, sans-serif;
  color: var(--ink);
}

.bb-page .bb-notify__form .btn {
  background: var(--sky);
  color: var(--navy);
}

.bb-page .bb-notify__form .btn:hover {
  background: #fff;
}

.bb-page .bb-notify :focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.bb-page .bb-notify__check {
  display: flex;
  flex-basis: 100%;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
}

.bb-page .bb-notify__check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--sky);
}

.bb-page .bb-notify .bb-notify__legal {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--bb-on-navy-muted);
}

.bb-page .bb-notify__legal a {
  color: var(--bb-on-navy);
}

.bb-page .bb-notify [hidden] {
  display: none;
}

.bb-page .bb-notify__done {
  display: flex;
  grid-column: 1 / -1;
  gap: 20px;
  align-items: flex-start;
}

.bb-page .bb-notify__tick {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--navy);
  font-size: 24px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}

.bb-page .bb-notify__done h3:focus {
  outline: none;
}

.bb-page .bb-notify__trap {
  position: absolute;
  left: -5000px;
}

/* ==================== WHO IT'S FOR ==================== */
.bb-page .bb-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(24px, 5vw, 64px);
}

/* ==================== FAQ ==================== */
.bb-page .bb-faq {
  max-width: 820px;
}

.bb-page .bb-faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--bb-rule);
}

.bb-page .bb-faq summary {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

.bb-page .bb-faq summary::-webkit-details-marker {
  display: none;
}

.bb-page .bb-faq summary::after {
  content: "+";
  font-size: 22px;
  line-height: 1;
  color: var(--blue);
}

.bb-page .bb-faq details[open] summary::after {
  content: "\2212";
}

.bb-page .bb-faq details p {
  margin-top: 10px;
  font-size: 16px;
}

/* ==================== CLOSING ==================== */
.bb-page .bb-closing {
  padding: clamp(64px, 7vw, 80px) 0;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  text-align: center;
  color: #fff;
}

.bb-page .bb-closing .bb-cap {
  margin-bottom: 12px;
  color: var(--sky);
}

.bb-page .bb-closing h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3.2vw, 36px);
  color: #fff;
}

.bb-page .bb-closing__text {
  margin: 0 0 28px;
  font-size: 18px;
  color: var(--bb-on-navy);
}

.bb-page .bb-closing__btn {
  background: #fff;
  color: var(--navy);
}

.bb-page .bb-closing__btn:hover {
  background: var(--cool-grey);
  color: var(--navy);
}
