.or-ad-wrapper {
  margin: 24px auto 40px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.or-ad-wrapper[hidden] {
  display: none !important;
}

.or-ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
}

.or-ad-link {
  width: 100%;
  display: block;
}

.or-ad-image {
  width: 100%;
  height: auto;
  display: block;
}

.or-ad-badge-container {
  position: relative;
  margin-top: 8px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.or-ad-badge-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  font-family: "Merriweather", Georgia, serif;
  font-size: 14px;
  color: #000;
}

.or-ad-badge-logo {
  width: 100px;
  height: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
}

.or-ad-badge-separator {
  color: #888;
}

.or-ad-badge-text-why {
  color: #000;
}

.or-ad-badge-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
  color: #666;
}

.or-ad-badge-chevron.expanded {
  transform: rotate(180deg);
}

.or-ad-dropdown {
  position: relative;
  margin-top: 10px;
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.or-ad-dropdown p {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin: 0;
  font-family: "Merriweather", Georgia, serif;
}

.or-ad-dropdown a {
  color: #5865f2;
  text-decoration: underline;
}


.or-ad-badge-toggle:focus-visible,
.or-ad-link:focus-visible {
  outline: 2px solid #5865f2;
  outline-offset: 3px;
}

.or-ad-wrapper[data-openrockets-ad] {
  box-sizing: border-box;
  grid-column: 1 / -1;
  flex: 0 0 auto;
  margin: 24px auto 32px;
  padding-inline: 16px;
}

.or-ad-wrapper[data-openrockets-ad] .or-ad-image {
  max-height: clamp(180px, 38vw, 360px);
  object-fit: contain;
}

.or-vignette-dialog {
  display: none;
  flex-direction: column;
  align-items: center;
  width: min(900px, 90vw);
  max-width: 90vw;
  max-height: 80vh;
  margin: auto;
  padding: 0;
  border: 0;
  outline: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.or-vignette-dialog[open] {
  display: flex;
}

.or-vignette-dialog::backdrop {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
}

.or-vignette-close-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.or-vignette-close {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font: 400 15px/1.2 Arial, sans-serif;
  letter-spacing: 0.02em;
}

.or-vignette-close:hover {
  background: #000;
}

.or-vignette-close svg {
  width: 20px;
  height: 20px;
}

.or-vignette-scroll {
  width: 100%;
  max-height: 70vh;
  overflow-y: auto;
  background: transparent;
}

.or-vignette-scroll .or-ad-wrapper {
  margin: 0;
  width: 100%;
}

.or-vignette-scroll .or-ad-container {
  max-width: none;
  width: 100%;
}

.or-vignette-scroll .or-ad-link {
  display: flex;
  justify-content: center;
}

.or-vignette-scroll .or-ad-image {
  width: auto;
  max-width: 100%;
  max-height: 55vh;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .or-vignette-dialog {
    width: 90vw;
    max-width: 90vw;
  }

  .or-vignette-scroll .or-ad-image {
    max-height: 65vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .or-ad-badge-chevron {
    transition: none;
  }
}


@media (min-width: 1600px) {
  [data-or-ad-rail]:has(> [data-openrockets-ad]:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1148px minmax(0, 1fr);
    align-items: center;
  }

  [data-or-ad-rail] > .section-container {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
  }

  [data-or-ad-rail] > .or-ad-wrapper[data-openrockets-ad] {
    grid-column: 3;
    grid-row: 1;
    width: min(220px, 100%);
    margin: 16px auto;
    padding-inline: 12px;
  }
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif/InstrumentSerif-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.or-promo-frame {
  box-sizing: border-box;
  width: 90%;
  min-width: 0;
  container-type: inline-size;
}

.or-promo-frame,
.or-promo-frame * {
  border-radius: 0 !important;
}

.or-promo {
  position: relative;
  isolation: isolate;
  display: block;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  background: #f3f5f7;
  color: #111 !important;
  text-decoration: none !important;
  font: 400 14px/1.35 Roboto, Arial, "Helvetica Neue", sans-serif;
}

.or-promo-thumbnail {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.or-promo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(255, 255, 255, .91), rgba(255, 255, 255, .66));
  content: "";
}

.or-promo-copy {
  display: grid;
  grid-template-areas: "brand" "article" "action";
  align-items: center;
  gap: clamp(12px, 4cqi, 28px);
  min-width: 0;
  padding: clamp(12px, 3.2cqi, 28px);
  text-align: left;
}

.or-promo-brand {
  grid-area: brand;
  display: grid;
  justify-items: start;
  gap: 4px;
}

.or-promo-logo {
  display: block;
  width: clamp(96px, 30cqi, 156px);
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.or-promo-label {
  color: #252525;
  font: italic 500 13px/1.15 Garamond, "Times New Roman", serif;
}

.or-promo-article {
  grid-area: article;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.or-promo .or-promo-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  font-family: "Instrument Serif", Georgia, serif !important;
  font-size: clamp(20.91px, 4.92cqi, 38.13px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.12;
}

.or-promo-byline {
  color: #292929;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.or-promo-more {
  grid-area: action;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  background: #174ea6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.or-promo:hover .or-promo-more {
  background: #103b82;
}

.or-promo:focus-visible {
  outline: 2px solid #174ea6;
  outline-offset: 3px;
}

@container (min-width: 360px) {
  .or-promo-copy {
    grid-template-columns: minmax(85px, 22%) minmax(0, 1fr);
    grid-template-areas: "brand article" "brand action";
    row-gap: 10px;
  }
}

@container (min-width: 600px) {
  .or-promo-copy {
    grid-template-columns: minmax(90px, 18%) minmax(0, 1fr) auto;
    grid-template-areas: "brand article action";
  }

  .or-promo-more {
    justify-self: end;
  }
}
