/* Format discovery is isolated from the existing landing-page sections. */
.lively-site .ad-formats {
  padding: 80px 0 88px;
  border-top: 1px solid #dedfd7;
  border-bottom: 1px solid #dedfd7;
  background: #f1f0e9;
  color: #202b2b;
}
.ad-formats .formats-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 38px;
}
.ad-formats .formats-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.6;
  text-transform: uppercase;
}
.ad-formats h2 {
  margin: 0;
}
.ad-formats h2 span {
  color: #ed4e1c;
}
.ad-formats .formats-intro {
  max-width: 365px;
  margin: 0 0 3px;
  color: #53645d;
  font-size: 16px;
  line-height: 1.75;
}
.ad-formats-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 36px;
  border-bottom: 1px solid #c4cac2;
}
.ad-formats-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 64px;
  padding: 14px 10px;
  box-sizing: border-box;
  color: #53645d;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 150ms ease,
    color 150ms ease;
}
.ad-formats-tabs a:hover {
  background: #e7e8df;
  color: #202b2b;
}
.ad-formats-tabs a[aria-selected='true'] {
  color: #202b2b;
  background: #faf9f3;
}
.ad-formats-tabs a[aria-selected='true']::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: #ed4e1c;
  content: '';
}
.ad-formats-tabs svg {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
}
.ad-formats-tabs a:focus-visible,
.ad-formats .format-contact:focus-visible,
.ad-formats .ad-format-panel:focus-visible {
  outline: 2px solid #ad3f1e;
  outline-offset: 4px;
}
.ad-formats .ad-format-panel {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1.35fr);
  gap: 54px;
  align-items: center;
  min-width: 0;
  margin-top: 48px;
  scroll-margin-top: calc(var(--lively-header-height, 64px) + 24px);
}
.ad-formats.is-enhanced .ad-format-panel {
  margin-top: 0;
}
.ad-formats .ad-format-panel[hidden] {
  display: none;
}
.ad-formats .format-copy {
  min-width: 0;
  max-width: 435px;
  padding: 16px 0;
}
.ad-formats .format-overline {
  margin: 0 0 12px;
  color: #8b412a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.5;
  text-transform: uppercase;
}
.ad-formats h3 {
  margin: 0 0 20px;
  color: #202b2b;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.2px;
  text-transform: none;
}
.ad-formats .format-description {
  margin: 0;
  color: #53645d;
  font-size: 17px;
  line-height: 1.8;
}
.ad-formats .format-facts {
  margin: 28px 0;
  border-top: 1px solid #d5dad2;
}
.ad-formats .format-facts > div {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  align-items: first baseline;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid #d5dad2;
}
.ad-formats dt {
  color: #53645d;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 650;
}
.ad-formats dd {
  margin: 0;
  color: #202b2b;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 500;
}
.ad-formats .format-contact {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 12px;
  color: #202b2b;
  font-size: 15px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 6px;
}
.ad-formats .format-contact svg {
  width: 20px;
  height: 20px;
}
.ad-formats .format-contact:hover {
  color: #ad3f1e;
}
.ad-formats .format-preview {
  min-width: 0;
  margin: 0;
}
.ad-formats .format-preview-stage {
  position: relative;
  border: 1px solid #dadbd2;
  border-radius: 8px;
  background: #e9e3f1;
  overflow: hidden;
}
.ad-formats .format-preview-stage img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 760 / 500;
}
.ad-formats [data-format='native'] .format-preview-stage {
  background: #e2e9de;
}
.ad-formats [data-format='pre-roll'] .format-preview-stage {
  background: #e8dce7;
}
.ad-formats [data-format='push'] .format-preview-stage {
  background: #dee8ee;
}
.ad-formats [data-format='in-page'] .format-preview-stage {
  background: #eeebd9;
}
.ad-formats [data-format='popunder'] .format-preview-stage {
  background: #f0e1d9;
}
.ad-formats figcaption {
  margin: 12px 0 0;
  color: #53645d;
  font-size: 12px;
  line-height: 1.6;
}
.ad-formats figcaption strong {
  color: #202b2b;
  font-weight: 650;
}
@media (min-width: 1800px) {
  .ad-formats .formats-eyebrow,
  .ad-formats .format-overline {
    font-size: var(--wide-label-size, 14px);
  }
  .ad-formats .formats-intro {
    max-width: 460px;
    font-size: var(--wide-body-size, 20px);
  }
  .ad-formats-tabs a {
    font-size: var(--wide-nav-size, 18px);
  }
  .ad-formats .format-description {
    font-size: var(--wide-body-size, 20px);
  }
  .ad-formats dt,
  .ad-formats figcaption {
    font-size: var(--wide-label-size, 14px);
  }
  .ad-formats dd,
  .ad-formats .format-contact {
    font-size: calc(var(--wide-body-size, 20px) - 2px);
  }
  .ad-formats .format-facts > div {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .ad-formats .ad-format-panel {
    gap: 30px;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  }
  .ad-formats-tabs a {
    gap: 7px;
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  .lively-site .ad-formats {
    padding: 60px 0;
  }
  .ad-formats .formats-heading {
    display: block;
    margin-bottom: 26px;
  }
  .ad-formats .formats-intro {
    max-width: 550px;
    margin-top: 20px;
  }
  .ad-formats-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 28px;
  }
  .ad-formats-tabs a {
    min-height: 54px;
    font-size: 14px;
  }
  .ad-formats .ad-format-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .ad-formats .format-copy {
    display: contents;
  }
  .ad-formats .format-overline {
    display: none;
  }
  .ad-formats h3 {
    grid-row: 1;
    margin: 0;
  }
  .ad-formats .format-description {
    grid-row: 2;
    font-size: 16px;
    margin-top: -8px;
  }
  .ad-formats .format-preview {
    grid-row: 3;
  }
  .ad-formats .format-facts {
    grid-row: 4;
    margin: 0;
  }
  .ad-formats .format-contact {
    grid-row: 5;
    justify-self: start;
  }
}
@media (max-width: 480px) {
  .lively-site .ad-formats {
    padding: 44px 0 48px;
  }
  .ad-formats .formats-intro {
    font-size: 15px;
  }
  .ad-formats-tabs a {
    padding: 12px 4px;
    font-size: 13px;
    gap: 6px;
  }
  .ad-formats-tabs svg {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
  .ad-formats h3 {
    font-size: 30px;
  }
  .ad-formats .format-facts > div {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ad-formats-tabs a {
    transition: none;
  }
}
