body[data-account-page="economic-calendar"] {
  --hero-image: url("economic-calendar-banner.jpg");
}

.calendar-hero {
  min-height: 610px;
  background-image:
    linear-gradient(90deg, rgba(4,14,31,.9) 0%, rgba(4,14,31,.66) 38%, rgba(4,14,31,.08) 70%, rgba(4,14,31,.03) 100%),
    linear-gradient(180deg, rgba(4,14,31,.04) 64%, rgba(6,13,32,.56) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

.calendar-hero::before {
  background:
    linear-gradient(180deg, rgba(4,14,31,.08) 0, transparent 22%, transparent 76%, #060d20 100%);
}

.calendar-hero::after {
  content: none;
}

.calendar-hero .banner-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding-top: 92px;
}

.calendar-section {
  position: relative;
  padding: 82px 0 100px;
  background:
    radial-gradient(ellipse at 50% 22%, rgba(20,79,153,.24), transparent 58%),
    linear-gradient(180deg, #060d20 0%, #071a35 28%, #081d3b 52%, #07152c 78%, #060d20 100%);
}

body.calendar-page [data-site-footer] {
  background: #060d20;
}

body.calendar-page [data-site-footer] > .site-footer {
  border-top: 0 !important;
  background:
    linear-gradient(180deg, #060d20 0%, rgba(3,11,22,.78) 100%),
    #060d20 !important;
}

.calendar-intro {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .75fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 36px;
}

.calendar-intro h2 {
  margin-top: 10px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 500;
}

.calendar-intro p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.section-kicker {
  color: var(--blue-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.calendar-shell {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(680px, 78vh, 900px);
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(232,196,122,.34);
  border-radius: 18px;
  background: #1a1d22;
  box-shadow: 0 34px 90px rgba(0,10,31,.52), inset 0 1px 0 rgba(255,255,255,.06);
}

.calendar-shell::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 3;
  border: 1px solid rgba(232,196,122,.18);
  border-radius: inherit;
  pointer-events: none;
}

#economicCalendarWidget {
  position: relative;
  z-index: 2;
  width: 100%;
  height: calc(100% - 36px);
  min-height: 640px;
  background: transparent;
}

#economicCalendarWidget iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  background: #1a1d22;
}

.calendar-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: #aeaeae;
  background: #1a1d22;
}

.calendar-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #373946;
  border-top-color: #efc34b;
  border-radius: 50%;
  animation: calendar-spin .8s linear infinite;
}

.calendar-loading p {
  color: #aeaeae;
  font-size: 14px;
}

.ecw-copyright {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 36px;
  display: grid;
  place-items: center;
  border-top: 1px solid #373946;
  color: #aeaeae;
  background: #1a1d22;
  font-size: 12px;
}

.ecw-copyright a:hover {
  color: #efc34b;
}

.calendar-disclaimer {
  max-width: 940px;
  margin: 24px auto 0;
  color: rgba(157,185,218,.72);
  font-size: 13px;
  line-height: 1.85;
  text-align: center;
}

@keyframes calendar-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 820px) {
  .calendar-hero {
    min-height: 560px;
    background-image:
      linear-gradient(180deg, rgba(4,14,31,.38) 0%, rgba(4,14,31,.74) 56%, rgba(4,14,31,.94) 100%),
      var(--hero-image);
    background-position: 67% center;
  }

  .calendar-hero .banner-copy {
    padding-top: 80px;
  }

  .calendar-section {
    padding: 64px 0 76px;
  }

  .calendar-intro {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .calendar-intro p {
    font-size: 15px;
  }

  .calendar-shell {
    height: 760px;
    min-height: 760px;
    border-radius: 12px;
  }

  #economicCalendarWidget {
    min-height: 720px;
  }
}

@media (max-width: 520px) {
  .calendar-hero {
    min-height: 520px;
  }

  .calendar-shell {
    width: calc(100% + 24px);
    margin-left: -12px;
    height: 720px;
    min-height: 720px;
    border-radius: 10px;
  }

  #economicCalendarWidget {
    min-height: 680px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .calendar-loading span {
    animation: none;
  }
}
