.news-home[data-news-depth] {
  --news-top: 88px;
  --news-travel: 0px;
  --news-background: #171715;
  color: #f5f3ed;
  background: var(--news-background) !important;
  padding: 0;
  overflow: visible;
}

.news-home[data-news-depth] > .wrap {
  position: sticky;
  top: var(--news-top);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-width: none;
  height: calc(100svh - var(--news-top));
  padding: clamp(12px, 2.5vh, 28px) 0 14px;
  isolation: isolate;
}

.news-home[data-news-depth] > .wrap::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 45%, #46443c 0%, transparent 68%),
    repeating-linear-gradient(112deg, transparent 0 109px, #e3decd12 110px, transparent 111px);
}

.news-home[data-news-depth] > .wrap::after {
  position: absolute;
  z-index: -1;
  inset: auto 0 12% 0;
  height: 43%;
  content: "";
  pointer-events: none;
  opacity: .34;
  background:
    repeating-linear-gradient(90deg, transparent 0 99px, #aba59655 100px, transparent 101px),
    repeating-linear-gradient(0deg, transparent 0 37px, #aba59655 38px, transparent 39px);
  mask-image: linear-gradient(transparent 4%, #000 83%);
  transform: perspective(330px) rotateX(54deg);
  transform-origin: center bottom;
}

.news-home[data-news-depth] :is(.section-head, .news-rail-footer) {
  position: relative;
  z-index: 1;
  width: min(90%, 1440px);
  margin: 0 auto;
  color: #e7e3d8;
}

.news-home[data-news-depth] .section-head h2 { font-size: clamp(32px, 4.35vw, 69px); color: #f5f3ed; }
.news-home[data-news-depth] .section-head .eyebrow { color: #c7c1b2; }
.news-home[data-news-depth] .section-head .link-arrow { color: #f5f3ed; }

.news-home[data-news-depth] .news-rail {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  justify-items: center;
  align-items: center;
  overflow: clip;
  min-height: 0;
  margin: 0;
  gap: 0;
  padding: 5px 0;
  perspective: 1100px;
  scroll-snap-type: none;
}

.news-home[data-news-depth] .news-rail > .news-card {
  grid-area: 1 / 1;
  width: min(630px, 64vw, var(--news-card-width, 520px));
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #1e1d1b;
  background: #f5f3ee;
  border: 1px solid #eeeade;
  border-radius: 3px;
  overflow: clip;
  transition: none;
  transform: var(--news-card-pose, translateZ(-1200px));
  opacity: var(--news-card-opacity, 0);
  box-shadow: 0 15px 42px #09090859;
  backface-visibility: hidden;
  scroll-snap-align: none;
}

.news-home[data-news-depth] .news-card:not([data-news-current]) { pointer-events: none; }
.news-home[data-news-depth] .news-card[data-news-current]:focus-within {
  outline: 2px solid #fff5d8;
  outline-offset: 3px;
}

.news-home[data-news-depth] .news-card-copy { padding: 12px clamp(15px, 2.1vw, 27px) 13px; }
.news-home[data-news-depth] .news-meta { margin-bottom: 6px; }
.news-home[data-news-depth] .news-card-copy h3 { font-size: clamp(18px, 1.65vw, 25px); line-height: 1.13; margin: 0 0 6px; }
.news-home[data-news-depth] .news-card-copy p { font-size: clamp(12px, 1vw, 14px); line-height: 1.38; margin: 0; }
.news-home[data-news-depth] .news-read {
  margin-top: 8px;
  padding-top: 6px;
  font-size: 12px;
}

.news-home[data-news-depth] .news-rail-footer {
  display: grid;
  grid-template-columns: auto minmax(48px, 160px) 1fr auto;
  align-items: center;
  gap: clamp(10px, 2.2vw, 30px);
  padding-top: 7px;
}
.news-home[data-news-depth] .news-rail-footer p { margin: 0; color: #e2ded3; }
.news-home[data-news-depth] .news-rail-footer button {
  width: 42px;
  height: 42px;
  color: #f5f3ed;
  border-color: #8c877a;
}
.news-home[data-news-depth] .news-rail-footer button:enabled:hover { color: #191815; background: #f5f3ed; }
.news-depth-count { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; }
.news-depth-progress {
  position: relative;
  height: 2px;
  background: #8b867a;
}
.news-depth-progress::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #f5f3ed;
  transform: scaleX(var(--news-progress, 0));
  transform-origin: left center;
}

.news-home[data-news-depth="wheel"] { min-height: calc(100svh - var(--news-top) + var(--news-travel)); }

@media (max-height: 840px) {
  .news-home[data-news-depth="wheel"] .news-card-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    height: auto;
    align-items: center;
  }
  .news-home[data-news-depth="wheel"] .news-card-image { width: 100%; }
  .news-home[data-news-depth="wheel"] .news-card-copy { padding: 10px 12px; }
}

.news-home[data-news-depth="touch"] > .wrap { position: relative; top: auto; height: auto; }
.news-home[data-news-depth="touch"] .news-rail { padding: 17px 0 15px; touch-action: pan-y pinch-zoom; }
.news-home[data-news-depth="touch"] .news-rail > .news-card { width: min(78vw, 420px); }
.news-home[data-news-depth="touch"] .news-rail-footer { grid-template-columns: auto 1fr auto; }
.news-home[data-news-depth="touch"] .news-rail-footer p { display: none; }
.news-home[data-news-depth="touch"] .section-head { margin-top: 8px; }

@media (max-height: 620px) {
  .news-home[data-news-depth="wheel"] .news-rail > .news-card {
    width: min(630px, 80vw);
  }
  .news-home[data-news-depth="wheel"] .news-card-copy h3 {
    font-size: clamp(18px, 1.65vw, 21px);
  }
  .news-home[data-news-depth="wheel"] .news-card-copy p {
    font-size: 12px;
  }
}
