.wrapper {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--page-rail-gap, 24px);
  width: 100%;
  padding: 0;
  min-height: calc(100vh - var(--page-pad-top, 0px) - var(--page-pad-bottom, 0px));
  height: calc(100vh - var(--page-pad-top, 0px) - var(--page-pad-bottom, 0px));
}

.banner {
  flex: 0 0 var(--ad-rail-width, 260px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100%;
  height: 100%;
}

.banner .ad-wall {
  height: 100%;
  align-self: stretch;
}

.banner-right-ad-region {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 0;
  height: 100%;
}

.banner-right-half {
  min-height: 0;
}

.banner-right-half .banner-right-ad-region--half {
  height: calc(50% - 6px);
  margin-top: auto;
}

.banner-right-half .banner-right-ad-region .ad-wall {
  position: relative;
  top: auto;
  bottom: auto;
  height: 100%;
  min-height: 0;
}

.banner-right-split {
  flex: 0 0 var(--ad-rail-width-wide, 360px);
  width: var(--ad-rail-width-wide, 360px);
  max-width: var(--ad-rail-width-wide, 360px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  justify-content: stretch;
  justify-items: stretch;
  align-content: stretch;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.banner-right-split .banner-right-ad-region--half {
  height: auto;
  margin-top: 0;
}

.banner-right-split .null-prompts-panel,
.banner-right-split .banner-right-ad-region {
  width: 100%;
  min-width: 0;
}

.banner-right-split .banner-right-ad-region .ad-wall {
  margin: 0 auto;
}

.content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--row-gap, 16px);
  min-height: 0;
  height: 100%;
}

.row {
  flex: 1;
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}

.row > * {
  width: 100%;
}

.content .row:first-child {
  flex: 0 0 var(--nav-row-height, 72px);
}

.content .row:nth-child(2) {
  flex: 1 1 auto;
  min-height: 0;
}

.content .row:nth-child(3) {
  flex: 0 0 90px;
  min-height: 90px;
  height: 90px;
  max-height: 90px;
  flex-shrink: 0;
}

.page-pane {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
  overflow: auto;
  z-index: auto;
}

.ticker {
  width: 100%;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  flex: 0 0 90px;
}

.top-nav-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 3;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
}

.ad-wall {
  position: sticky;
  top: var(--ad-wall-top, 24px);
  width: var(--ad-wall-width, 260px);
  --ad-wall-gap: 12px;
  display: block;
  z-index: 2;
  overflow: hidden;
  padding: 0;
  border-radius: 20px;
  border: none;
  background: transparent;
  flex: 0 0 var(--ad-wall-width, 260px);
  height: 100%;
  min-height: 320px;
  align-self: flex-start;
}

body.ads-can-toggle:not(.ad-mode-on) .ad-wall {
  display: none;
}

.ad-wall-left {
  order: 0;
}

.ad-wall-right {
  order: 2;
}

.ad-wall .ad-slot {
  pointer-events: auto;
}

.ad-wall-hidden {
  display: none;
}

@media (max-width: 1024px) {
  .banner {
    display: none;
    max-width: 0;
  }
}

body.has-ticker {
  --page-pad-bottom: var(--page-pad-top, 0px);
  padding-bottom: var(--page-pad-bottom);
}
