/* Scoped styles for the weekly-eight promo section. All rules prefixed .weekly-eight; no global selectors. */

.weekly-eight {
  --we-navy: #222b45;
  --we-blue: #304aa0;
  --we-cream: #fffaf0;
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin: 32px auto;
  padding: 32px;
  border: 1px solid rgba(34, 43, 69, 0.14);
  border-radius: 24px;
  background: var(--we-cream);
  color: var(--we-navy);
  font: inherit;
  line-height: 1.55;
}

.weekly-eight *,
.weekly-eight *::before,
.weekly-eight *::after {
  box-sizing: inherit;
}

.weekly-eight__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 40%);
  gap: 32px;
  align-items: center;
}

.weekly-eight__copy {
  min-width: 0;
}

.weekly-eight__title {
  margin: 0 0 12px;
  font: inherit;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--we-navy);
  text-wrap: balance;
}

.weekly-eight__lead {
  margin: 0;
  max-width: 58ch;
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
}

.weekly-eight__note {
  margin: 12px 0 0;
  font: inherit;
  font-size: 14px;
  text-wrap: pretty;
}

.weekly-eight__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 24px;
  background: var(--we-blue);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
}

.weekly-eight__cta:hover {
  background: var(--we-navy);
}

.weekly-eight__cta:focus-visible {
  outline: 3px solid var(--we-blue);
  outline-offset: 2px;
}

.weekly-eight__art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.weekly-eight__art-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 420px;
  object-fit: contain;
}

.weekly-eight__rules {
  margin-top: 20px;
}

.weekly-eight__rules-summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  font: inherit;
  font-weight: 600;
  color: var(--we-blue);
}

.weekly-eight__rules-summary::-webkit-details-marker {
  display: none;
}

.weekly-eight__rules-summary::after {
  content: "+";
  margin-left: 8px;
  font-weight: 700;
}

.weekly-eight__rules[open] > .weekly-eight__rules-summary::after {
  content: "–";
}

.weekly-eight__rules-summary:focus-visible {
  outline: 3px solid var(--we-blue);
  outline-offset: 2px;
}

.weekly-eight__rules-list {
  margin: 0;
  padding-left: 20px;
  font: inherit;
  font-size: 14px;
}

.weekly-eight__rules-list li + li {
  margin-top: 6px;
}

/* Mobile: text first, art after. */
@media (max-width: 700px) {
  .weekly-eight {
    margin: 24px auto;
    padding: 20px;
  }

  .weekly-eight__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .weekly-eight__art-img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }

  .weekly-eight__art {
    align-self: center;
  }
}
