:root {
  --topic-ink: #071a3a;
  --topic-blue: #0754c7;
  --topic-paper: #f6f8fb;
  --topic-line: #dfe6ee;
}

.topic-page {
  overflow: visible;
  background: #fff;
  color: var(--topic-ink);
}

.topic-page + .site-footer {
  margin-top: 0;
}

.topic-wrap {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.topic-kicker {
  display: block;
  color: var(--topic-blue);
  font: 600 11px/1.2 'Source Sans 3', Arial, sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.topic-page .month-hero .month-eyebrow {
  text-transform: uppercase;
}

/* Compact guide hero: based on the Monthly Page rather than a campaign landing page. */
.topic-hero {
  position: relative;
  height: 505px;
  overflow: hidden;
  background: #f7f5f1;
  color: var(--topic-ink);
}

.topic-hero__media,
.topic-hero__shade {
  position: absolute;
  inset: 0;
}

.topic-hero__media {
  left: auto;
  width: 72%;
}

.topic-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.topic-hero__shade {
  background:
    linear-gradient(90deg, #fffdf9 0%, rgba(255, 252, 248, .98) 34%, rgba(255, 252, 248, .82) 50%, rgba(248, 247, 243, .16) 76%),
    linear-gradient(0deg, rgba(7, 26, 58, .08), transparent 48%);
}

.topic-hero__fallback {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(125deg, #eef4fb, #fff8ee);
}

.topic-hero__fallback:before,
.topic-hero__fallback:after,
.topic-hero__fallback span,
.topic-hero__fallback i,
.topic-hero__fallback b {
  content: "";
  position: absolute;
  border: 1px solid rgba(23, 96, 210, .12);
  border-radius: 50%;
}

.topic-hero__fallback:before {
  width: 420px;
  height: 420px;
  right: 8%;
  top: 8%;
}

.topic-hero__fallback:after {
  width: 250px;
  height: 250px;
  right: 15%;
  top: 25%;
}

.topic-hero__fallback span {
  width: 100px;
  height: 100px;
  right: 22%;
  top: 39%;
  box-shadow: 0 0 70px rgba(66, 134, 255, .16);
}

.topic-hero__fallback i {
  width: 660px;
  height: 660px;
  right: -19%;
  top: -23%;
}

.topic-hero__fallback b {
  width: 40px;
  height: 40px;
  right: 25%;
  top: 45%;
  border: 7px solid rgba(255, 255, 255, .45);
  background: rgba(154, 111, 37, .55);
}

.topic-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 28px;
}

.topic-hero nav {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6d7888;
  font-size: 12px;
}

.topic-hero nav a {
  color: inherit;
  text-decoration: none;
}

.topic-hero nav strong {
  color: var(--topic-ink);
}

.topic-hero__copy {
  position: absolute;
  top: 53%;
  left: 0;
  width: 590px;
  max-width: 52%;
  transform: translateY(-50%);
}

.topic-hero__copy .topic-kicker {
  margin-bottom: 14px;
}

.topic-hero h1 {
  margin: 0 0 22px;
  font: 500 55px/.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -2.4px;
}

.topic-hero p {
  max-width: 560px;
  margin: 0;
  color: #435168;
  font-size: 18px;
  line-height: 1.58;
}

.topic-snapshot > div:first-child .snapshot-icon {
  background: #fff3dc;
  color: #9a6a1f;
}

.topic-snapshot > a {
  transition: border-color .18s ease, background .18s ease;
}

.topic-snapshot > a:hover {
  border-color: #bfd1e6;
  background: #f4f8fd;
}

.topic-snapshot > a svg {
  transition: transform .18s ease;
}

.topic-snapshot > a:hover svg {
  transform: translateX(2px);
}

.topic-tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow-x: auto;
  border-bottom: 1px solid #e3e9f0;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 24px rgba(16, 35, 61, .045);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.topic-tabs::-webkit-scrollbar {
  display: none;
}

.topic-tabs > div {
  width: min(1200px, calc(100% - 48px));
  height: 94px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  margin: 0 auto;
}

.topic-tabs a {
  position: relative;
  min-width: 0;
  height: 94px;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 22px;
  border-left: 1px solid #e7ecf2;
  color: #69778b;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}

.topic-tabs a:last-child {
  border-right: 0;
}

.topic-tabs a:hover {
  background: #f8fafd;
  color: var(--topic-ink);
}

.topic-tab__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  border: 1px solid #d8e2ed;
  border-radius: 50%;
  background: #fff;
  color: #718096;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.topic-tab__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-tab__copy {
  min-width: 0;
}

.topic-tab__copy small,
.topic-tab__copy strong {
  display: block;
}

.topic-tab__copy small {
  margin-bottom: 5px;
  color: #8090a4;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
}

.topic-tab__copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
}

.topic-tabs a:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: var(--topic-blue);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.topic-tabs a.is-active {
  color: var(--topic-ink);
  background: linear-gradient(180deg, #fff, #f6f9fe);
}

.topic-tabs a.is-active .topic-tab__icon {
  border-color: var(--topic-blue);
  background: var(--topic-blue);
  color: #fff;
}

.topic-tabs a.is-active .topic-tab__copy small {
  color: var(--topic-blue);
}

.topic-tabs a.is-active:after {
  transform: scaleX(1);
}

.topic-tabs.is-compact {
  box-shadow: 0 8px 24px rgba(16, 35, 61, .09);
}

.topic-tabs.is-compact > div,
.topic-tabs.is-compact a {
  height: 58px;
}

.topic-tabs.is-compact .topic-tab__icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.topic-tabs.is-compact .topic-tab__copy small {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
}

.topic-tabs.is-compact .topic-tab__copy strong {
  font-size: 12px;
}

#overview,
#guide,
#current-events,
#faq,
#continue-planning {
  scroll-margin-top: 116px;
}

.topic-content {
  padding: 76px 0 104px;
}

.topic-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8e4f1;
  border-radius: 18px;
  background: linear-gradient(115deg, #eef5fd 0%, #f8fbff 62%, #fffaf5 100%);
  box-shadow: 0 12px 34px rgba(16, 35, 61, .045);
}

.topic-intro:after {
  display: none;
}

.topic-intro__heading,
.topic-intro__answer {
  position: relative;
  z-index: 1;
}

.topic-intro__heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 36px;
}

.topic-intro__heading .topic-kicker {
  margin-bottom: 11px;
  color: var(--topic-blue);
}

.topic-intro__heading h2 {
  max-width: 400px;
  margin: 0;
  color: var(--topic-ink);
  font-size: clamp(1.75rem, 2.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.topic-intro__answer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 36px;
  background: #fff;
}

.topic-intro__answer-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
  color: var(--topic-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
}

.topic-intro__answer-label > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
}

.topic-intro__answer-label svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-intro__answer p {
  margin: 0;
  color: #435168;
  font-size: 17px;
  line-height: 1.75;
}

.topic-events {
  padding: 36px 0;
}

.topic-events + .event-faq {
  margin-top: 36px;
}

.topic-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.topic-section-heading h2 {
  margin: 8px 0 0;
  color: var(--topic-ink);
  font: 700 28px/normal Georgia, 'Times New Roman', serif;
  letter-spacing: -.6px;
}

.topic-section-heading p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.topic-section-heading__link,
.topic-month > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--topic-blue);
  font: 600 16px/1.4 'Source Sans 3', Arial, sans-serif;
  text-decoration: none;
}

.topic-section-heading__link svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.topic-month > a span {
  transition: transform .18s ease;
}

.topic-section-heading__link:hover svg,
.topic-month > a:hover span {
  transform: translateX(3px);
}

.topic-event-carousel {
  min-width: 0;
}

.topic-event-viewport {
  min-width: 0;
  overflow: hidden;
  padding-bottom: 2px;
}

.topic-event-grid {
  position: relative;
  display: flex;
  gap: 20px;
  transition: transform .42s cubic-bezier(.22, .61, .36, 1);
  will-change: transform;
}

.topic-event {
  min-width: 0;
  flex: 0 0 calc((100% - 40px) / 3);
  overflow: hidden;
  border: 1px solid #e1e7ef;
  border-radius: 13px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.topic-event-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.topic-event-controls[hidden] {
  display: none;
}

.topic-event-controls button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--topic-blue);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}

.topic-event-controls button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #0648aa;
}

.topic-event-controls button:disabled {
  background: #e7e9ec;
  color: #a8afb9;
  cursor: default;
}

.topic-event-controls button:focus-visible {
  outline: 3px solid rgba(7, 84, 199, .2);
  outline-offset: 3px;
}

.topic-event-controls svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-event:hover {
  border-color: #ced9e5;
  box-shadow: 0 15px 34px rgba(16, 35, 61, .11);
}

.topic-event__media {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #e9eff5, #dce8f5);
}

.topic-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-event__media span {
  color: #64809e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.topic-event__body {
  padding: 20px 20px 22px;
}

.topic-event__body small {
  color: var(--topic-blue);
  font: 700 12px/1.2 'Source Sans 3', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
}

.topic-event__body h3 {
  min-height: 46px;
  margin: 8px 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.3;
}

.topic-event__venue {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  min-height: 31px;
  margin: 0 0 11px;
  color: #748196;
  font-size: 12px;
  line-height: 1.35;
}

.topic-event__venue svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-event__body time {
  color: #748196;
  font-size: 12px;
  font-weight: 600;
}

.topic-events__empty {
  padding: 38px;
  border: 1px dashed #d3deea;
  border-radius: 15px;
  background: var(--topic-paper);
  text-align: center;
}
.topic-events__empty.is-client-hidden { display: none; }

.topic-events__empty p {
  margin: 7px 0 0;
  color: #607188;
}

.topic-guide {
  padding: 0 0 30px;
}

.topic-month {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: end;
  padding: 42px 46px;
  border-radius: 16px;
  background: linear-gradient(120deg, #071a3a, #123762);
  color: #fff;
}

.topic-month .topic-kicker {
  color: #91bfff;
}

.topic-month h2 {
  margin: 9px 0 11px;
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.topic-month p {
  max-width: 650px;
  margin: 0;
  color: #c0ccda;
  font-size: 14px;
  line-height: 1.7;
}

.topic-month > a {
  justify-self: end;
  color: #fff;
}

.topic-planning {
  margin-top: 82px;
  padding-top: 62px;
  border-top: 1px solid var(--topic-line);
}

.topic-planning__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
}

.topic-planning__grid a {
  position: relative;
  display: flex;
  min-height: 246px;
  padding: 27px 25px 24px;
  flex-direction: column;
  border: 1px solid #dde5ef;
  border-radius: 15px;
  color: #10213c;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(20, 55, 96, .055);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.topic-planning__grid a:hover {
  transform: translateY(-3px);
  border-color: #b8cce8;
  box-shadow: 0 18px 38px rgba(20, 55, 96, .1);
}

.topic-planning-card__icon {
  position: absolute;
  top: 27px;
  left: 25px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  color: #1760d2;
  background: #eaf2fd;
}

.topic-planning-card--events .topic-planning-card__icon {
  color: #fff;
  background: #1760d2;
}

.topic-planning-card__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-planning__grid small {
  display: block;
  min-height: 25px;
  margin-left: 35px;
  color: #1760d2;
  font-size: 10px;
  font-weight: 800;
  line-height: 25px;
  letter-spacing: .13em;
}

.topic-planning__grid h3 {
  margin: 9px 0 11px;
  color: #10213c;
  font-size: 22px;
  line-height: 1.25;
}

.topic-planning__grid p {
  margin: 0 0 24px;
  color: #617187;
  font-size: 14px;
  line-height: 1.6;
}

.topic-planning__grid b {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: #1760d2;
  font-size: 13px;
  font-weight: 700;
}

.topic-planning__grid b svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.topic-planning__grid a:hover b svg {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .topic-hero {
    height: 540px;
  }

  .topic-hero__media {
    width: 100%;
  }

  .topic-hero__shade {
    background: linear-gradient(90deg, rgba(255, 253, 249, .98) 0%, rgba(255, 252, 248, .93) 53%, rgba(248, 247, 243, .4) 100%);
  }

  .topic-hero__copy {
    max-width: 68%;
  }

  .topic-tabs > div {
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
  }

  .topic-tabs a {
    flex: 0 0 190px;
  }

  .topic-intro {
    padding: 0;
  }

  .topic-intro__heading {
    padding: 28px 30px;
  }

  .topic-intro__answer {
    padding: 28px 30px;
  }

  .topic-event {
    flex-basis: calc((100% - 20px) / 2);
  }

  .topic-planning__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topic-month {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .topic-month > a {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .topic-wrap {
    width: calc(100% - 36px);
  }

  .topic-hero {
    height: 570px;
  }

  .topic-hero__media img {
    object-position: 62% center;
  }

  .topic-hero__shade {
    background: linear-gradient(90deg, rgba(255, 253, 249, .98), rgba(255, 252, 248, .88) 72%, rgba(248, 247, 243, .48));
  }

  .topic-hero__inner {
    padding-top: 22px;
  }

  .topic-hero__copy {
    top: 52%;
    width: 100%;
    max-width: 100%;
  }

  .topic-hero h1 {
    margin-bottom: 18px;
    font-size: 43px;
    letter-spacing: -1.5px;
  }

  .topic-hero p {
    max-width: 94%;
    font-size: 16px;
    line-height: 1.55;
  }

  .topic-content {
    padding: 58px 0 78px;
  }

  .topic-tabs {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .topic-tabs > div {
    width: 100%;
    min-width: 100%;
    height: 54px;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
  }

  .topic-tabs a {
    height: 54px;
    display: flex;
    flex: 0 0 33.3333%;
    padding: 0 10px;
    scroll-snap-align: center;
  }

  .topic-tab__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .topic-tab__copy strong {
    font-size: 12px;
  }

  .topic-tab__copy small {
    display: none;
  }

  .topic-intro {
    display: block;
    margin-bottom: 0;
    padding: 0;
    border-radius: 16px;
  }

  .topic-intro__heading {
    padding: 27px 22px;
    border-right: 0;
  }

  .topic-intro__heading h2 {
    font-size: 28px;
  }

  .topic-intro__answer {
    margin-top: 0;
    padding: 26px 22px;
    border-top: 0;
    border-left: 0;
  }

  .topic-intro__answer p {
    font-size: 16px;
  }

  .topic-events {
    padding: 32px 0;
  }

  .topic-events + .event-faq {
    margin-top: 30px;
  }

  .topic-section-heading {
    align-items: start;
    flex-direction: column;
    margin-bottom: 24px;
  }

  .topic-section-heading h2 {
    font-size: 23px;
  }

  .topic-section-heading__link {
    display: none;
  }

  .topic-event {
    flex-basis: 100%;
  }

  .topic-event-controls {
    margin-top: 18px;
  }

  .topic-event-controls button {
    width: 46px;
    height: 46px;
  }

  .topic-event__body h3 {
    min-height: 0;
  }

  .topic-guide {
    margin: 0;
    padding: 0 0 26px;
  }

  .topic-month {
    padding: 31px 25px;
    border-radius: 14px;
  }

  .topic-month h2 {
    font-size: 31px;
  }

  .topic-planning {
    margin-top: 62px;
    padding-top: 50px;
  }

  .topic-planning__grid {
    grid-template-columns: 1fr;
  }

  .topic-planning__grid a {
    min-height: 0;
    padding: 24px 22px;
  }

  .topic-planning-card__icon {
    top: 24px;
    left: 22px;
  }
}
