.p99-home .stgrid.scroller {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(12.5rem, 24vw, 18.5rem);
  gap: clamp(.85rem, 1.6vw, 1.35rem);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  padding: .25rem .25rem 1rem;
  scroll-padding-inline: .25rem;
  scrollbar-width: thin;
}

.p99-home .stgrid .stc {
  min-width: 0;
  scroll-snap-align: start;
}

.p99-home .stgrid .stc .ph img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.p99-home .stgrid .stc:focus-within,
.p99-home .stgrid:focus-visible,
.facet-study-rail-controls button:focus-visible {
  outline: 2px solid #228cb9;
  outline-offset: -2px;
}

.facet-study-rail-controls {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .45rem;
}

.facet-study-rail-controls[hidden] { display: none; }

.facet-study-rail-controls button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: .25rem;
  border: 1px solid #8295a8;
  border-radius: .6rem;
  background: #f7fafc;
  color: #172534;
  font: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

html[data-facet-mode="dark"] .facet-study-rail-controls button {
  background: #162a3d;
  color: #e8f4fc;
}

.facet-study-rail-controls button:disabled {
  opacity: .48;
  cursor: default;
}

main[data-facet-editorial-layout] > header[class*="r6_pageHero__"],
main[data-facet-editorial-layout] > p[class*="r6_caption__"],
main[data-facet-editorial-layout] > div[class*="r6_articleTools__"] {
  width: min(100%, 72rem);
  margin-inline: auto;
}

main[data-facet-editorial-layout] > header[class*="r6_pageHero__"] {
  padding-block: clamp(2rem, 5vw, 4.5rem) 1rem;
}

main[data-facet-editorial-layout] > header h1 {
  max-width: 26ch;
  font-size: clamp(2.1rem, 4.2vw, 3.65rem);
  line-height: 1.07;
  text-wrap: balance;
}

main[data-facet-editorial-layout] > .facet-article-feature {
  width: min(100%, 64rem);
  margin: clamp(1.25rem, 3vw, 2.5rem) auto;
}

main[data-facet-editorial-layout] > .facet-article-feature[data-facet-article-feature="chart"] {
  max-width: 56rem;
}

.facet-article-feature a,
.facet-article-feature img { display: block; }

.facet-article-feature img {
  width: 100%;
  height: auto;
  border-radius: .75rem;
  object-fit: contain;
}

.facet-article-feature figcaption {
  margin-block-start: .55rem;
  color: #41576b;
  font-size: .88rem;
  line-height: 1.5;
}
html[data-facet-mode="dark"] .facet-article-feature figcaption { color: #bed0e0; }

main[data-facet-editorial-layout] > article[class*="r6_prose__"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 76ch) minmax(0, 1fr);
  width: min(100%, 72rem);
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

main[data-facet-editorial-layout] > article[class*="r6_prose__"] > * {
  grid-column: 2;
  min-width: 0;
}

main[data-facet-editorial-layout] > article[class*="r6_prose__"] > figure[class*="ArticleExhibit_"] {
  grid-column: 1 / -1;
}

main[data-facet-editorial-layout] figure[class*="ArticleExhibit_"] img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

main[data-facet-editorial-layout] [data-facet-used-in-hero] { display: none; }

@media (max-width: 540px) {
  .p99-home .stgrid.scroller { grid-auto-columns: min(70vw, 17rem); }
  main[data-facet-editorial-layout] > article[class*="r6_prose__"] { padding-inline: .9rem; }
}

main[data-facet-editorial-layout] > article[class*="r6_prose__"] > figure:has(img[src*="-number-pull-"]) {
  grid-column: 2;
}

.p99-home .stgrid .stc > a.go {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  border-radius: inherit;
}
