.latest-preview{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:2.5rem;align-items:stretch}
.latest-preview-lead{position:relative;display:flex;align-items:end;min-height:560px;overflow:hidden;border:1px solid var(--gx-border);border-radius:var(--gx-radius-md);background:var(--gx-surface-1)}
.latest-preview-lead>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 480ms var(--gx-ease)}
.latest-preview-lead:hover>img{transform:scale(1.035)}
.latest-preview-shade{position:absolute;inset:0;background:linear-gradient(0deg,rgb(3 3 3/.98),rgb(3 3 3/.73) 38%,rgb(3 3 3/.08) 85%)}
.latest-preview-copy{position:relative;width:100%;padding:1.6rem}
.latest-preview-meta{display:flex;align-items:center;flex-wrap:wrap;gap:.55rem;margin-bottom:.65rem}
.latest-preview-meta time{color:var(--gx-muted);font:400 .72rem/1.3 var(--gx-font-body)}
.latest-preview-copy h3{margin:0;color:var(--gx-white);font:650 clamp(1.55rem,2.25vw,2.35rem)/1.1 var(--gx-font-display);letter-spacing:-.035em;text-wrap:balance}
.latest-preview-copy p{margin:.8rem 0 1.2rem;color:var(--gx-muted);font-size:.85rem;line-height:1.5}
.latest-preview-more{display:inline-flex;align-items:center;gap:.35rem;font-weight:700;font-size:.8rem;color:var(--gx-white)}
.latest-preview-more i{color:var(--gx-acid)}
.latest-preview-rail{display:grid;grid-auto-rows:1fr;gap:0}
.latest-preview-row{display:grid;grid-template-columns:100px minmax(0,1fr) auto;gap:1rem;align-items:center;padding:1rem 0;border-bottom:1px solid var(--gx-border)}
.latest-preview-row:first-child{padding-top:0}.latest-preview-row:last-child{border-bottom:0;padding-bottom:0}
.latest-preview-row>img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--gx-radius-sm);background:var(--gx-surface-2)}
.latest-preview-row h3{margin:0;font:600 clamp(.95rem,1.1vw,1.1rem)/1.3 var(--gx-font-display);letter-spacing:-.02em;color:var(--gx-white)}
.latest-preview-row:hover h3{color:var(--gx-acid)}
.latest-preview a:focus-visible{outline:2px solid var(--gx-acid);outline-offset:4px}
@media(max-width:1100px) and (min-width:821px){.latest-preview{grid-template-columns:1fr}.latest-preview-lead{min-height:400px}.latest-preview-row{grid-template-columns:112px minmax(0,1fr) auto}}
@media(max-width:620px){.latest-preview{grid-template-columns:1fr;gap:1.5rem}.latest-preview-lead{min-height:410px}.latest-preview-copy{padding:1.35rem}.latest-preview-copy h3{font-size:1.8rem}.latest-preview-row{grid-template-columns:96px minmax(0,1fr) auto;gap:.85rem;min-height:106px;padding:.9rem 0}.latest-preview-row h3{font-size:1rem}.latest-preview-row .content-label{font-size:.6rem}.latest-preview-copy p{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.latest-preview-lead>img{transition:none}}

.latest-preview-arrow{font-size:1.15rem;color:var(--gx-acid);align-self:center}
/* Restore the section divider and the shared desktop sidebar behavior. */
.latest-section>.section-title{padding-bottom:1.5rem;border-bottom:1px solid var(--gx-border)}
@media(min-width:821px){
 .latest-section .feed-layout{align-items:start}
 .latest-section .feed-sidebar{position:sticky;top:104px;align-self:start;margin-top:0}
 .latest-section .feed-sidebar .most-read{position:static;margin-top:0}
}
.latest-section .latest-preview{padding-bottom:1.5rem;border-bottom:1px solid var(--gx-border)}
@media(min-width:821px){
 .latest-section .feed-layout{align-items:stretch}
 .latest-section .feed-sidebar{position:sticky;top:112px;align-self:start;margin-top:1.25rem;display:grid;gap:24px}
 .latest-section .feed-sidebar .most-read{position:static;margin-top:0;width:100%}
}
/* Keep the sidebar aligned and give sticky the section's existing bottom space. */
@media(min-width:821px){
 .latest-section{padding-bottom:0}
 .latest-section .feed-layout{padding-bottom:clamp(3.5rem,7vw,7rem);align-items:stretch}
 .latest-section .feed-sidebar{margin-top:0;position:sticky;top:104px;align-self:start}
}
@media(min-width:821px){
 .latest-section .feed-layout{padding-bottom:0;row-gap:0}
 .latest-section .feed-layout::after{content:"";grid-column:1;grid-row:2;height:clamp(3.5rem,7vw,7rem)}
 .latest-section .latest-feed{grid-column:1;grid-row:1}
 .latest-section .feed-sidebar{grid-column:2;grid-row:1 / span 2}
}
/* Natural sticky scope; align the news divider with the advertising base. */
@media(min-width:821px){
 .latest-section{padding-bottom:clamp(3.5rem,7vw,7rem)}
 .latest-section .feed-layout{padding-bottom:0;align-items:stretch}
 .latest-section .feed-layout::after{content:none}
 .latest-section .latest-feed{grid-column:1;grid-row:1;display:flex;min-width:0}
 .latest-section .latest-preview{flex:1;min-width:0;padding-bottom:0;align-items:start}
 .latest-section .feed-sidebar{grid-column:2;grid-row:1;position:sticky;top:112px;margin-top:0;align-self:start}
}

.latest-carousel {
  position: relative;
  display: grid;
  min-width: 0;
}

.latest-carousel .latest-preview-lead[hidden] {
  display: none;
}

.latest-carousel {
  --latest-copy-inset: 1.6rem;
}

.latest-carousel .portal-ad-controls {
  right: var(--latest-copy-inset);
  bottom: calc(var(--latest-copy-inset) + .65rem);
  transform: translateY(50%);
}

@media (max-width: 620px) {
  .latest-carousel {
    --latest-copy-inset: 1.35rem;
  }
}

.latest-section .latest-carousel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 80px;
  z-index: 1;
  border-radius: var(--gx-radius-md) var(--gx-radius-md) 0 0;
  background: linear-gradient(to bottom, rgb(0 0 0 / 45%), rgb(0 0 0 / 0%));
  pointer-events: none;
}

.latest-story-progress {
  position: absolute;
  inset: 8px 12px auto;
  z-index: 3;
  display: flex;
  gap: 4px;
  pointer-events: none;
}

.latest-story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / 35%);
}

.latest-story-progress b {
  display: block;
  height: 100%;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}


.latest-story-edge {
  position: absolute;
  inset-block: 24px 80px;
  z-index: 1;
  width: 15%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.latest-story-edge--previous { left: 0; }
.latest-story-edge--next { right: 0; }
.latest-story-edge:focus-visible { outline: 2px solid var(--gx-acid); outline-offset: -3px; }

.latest-story-progress { top: 16px; }
.latest-story-progress b { width: 100%; }

.latest-story-seek {
  position: absolute;
  inset: 4px 12px auto;
  z-index: 4;
  width: calc(100% - 24px);
  height: 33px;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: none;
}

.latest-carousel:has(.latest-story-seek:focus-visible) .latest-story-progress {
  outline: 2px solid var(--gx-acid);
  outline-offset: 3px;
}

.latest-carousel .latest-story-toggle {
  inset: 38px 12px auto auto;
  transform: none;
  padding: 0;
}


@media (hover: hover) and (pointer: fine) {
  .latest-story-edge--previous {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23111111' stroke='%23ffffff'/%3E%3Cpath d='m18 10-6 6 6 6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, w-resize;
  }

  .latest-story-edge--next {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='14' fill='%23111111' stroke='%23ffffff'/%3E%3Cpath d='m14 10 6 6-6 6' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, e-resize;
  }
}

.latest-carousel .latest-preview-lead,
.latest-story-edge {
  touch-action: pan-y pinch-zoom;
}

.latest-carousel .latest-preview-lead,
.latest-carousel .latest-preview-lead *,
.latest-story-edge {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.latest-avatars { display: none; }

.latest-story-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gx-white);
  max-width: none;
  max-height: none;
}

.latest-story-dialog[open] {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding-top: 56px;
  box-sizing: border-box;
}

.latest-story-dialog::backdrop {
  background: rgb(5 5 5 / 38%);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

body:has(.latest-story-dialog[open]) { overflow: hidden; }

.latest-story-frame {
  position: relative;
  width: min(calc(100vw - 24px), 420px);
  height: min(calc(100dvh - 80px), 747px);
}

.latest-story-frame .latest-carousel { height: 100%; }
.latest-story-frame .latest-preview-lead { min-height: 0; }
.latest-story-frame .latest-preview-lead,
.latest-story-frame .latest-story-edge { touch-action: none; }

.latest-story-close {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 6px);
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(9 9 9 / 58%);
  color: var(--gx-white);
  font: 400 1.25rem/1 var(--gx-font-body);
  cursor: pointer;
}

@media (max-width: 760px) {
  .latest-avatars {
    display: flex;
    gap: .8rem;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    padding: 0 max(1rem, calc((100vw - 100%) / 2)) 1rem;
    box-sizing: border-box;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .latest-avatar {
    flex: 0 0 76px;
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: .4rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gx-white);
    font: 500 .72rem/1.3 var(--gx-font-body);
    cursor: pointer;
  }

  .latest-avatar-ring {
    display: grid;
    place-items: center;
    width: 68px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gx-brand-peach), var(--gx-brand-sky), var(--gx-brand-mint));
  }

  .latest-avatar-ring img {
    display: block;
    box-sizing: border-box;
    width: 62px;
    height: 62px;
    border: 2px solid var(--gx-black);
    border-radius: 50%;
    background: var(--gx-black);
    object-fit: cover;
  }

  .latest-avatar-name {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.latest-story-frame:focus { outline: none; }
.latest-story-close .ph { display: block; line-height: 1; transform: translateY(-1px); }
.latest-story-close:focus-visible { outline: 2px solid var(--gx-acid); outline-offset: 2px; }

.latest-story-title {
  position: absolute;
  bottom: calc(100% + 6px);
  inset-inline: 0 52px;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  color: var(--gx-white);
  font: 650 1.15rem/1.2 var(--gx-font-display);
}

.latest-story-frame .latest-carousel {
  transform-origin: center bottom;
}

.latest-avatar--trending { text-decoration: none; }

.latest-avatar-plus {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--gx-black);
  color: var(--gx-white);
  font: 500 2rem/1 var(--gx-font-body);
}

.latest-story-progress .latest-story-progress-ad {
  background: color-mix(in srgb, var(--gx-amber) 58%, transparent);
}

.latest-story-progress-ad b { background: var(--gx-amber); }

.latest-story-frame .latest-story-ad {
  background: var(--gx-black);
  isolation: isolate;
  box-sizing: border-box;
  padding: calc(var(--story-controls-top) + 52px) 16px 0;
}

.latest-story-frame .latest-story-ad:not([hidden]) {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

.latest-story-frame .latest-story-ad .latest-story-ad-fill {
  object-fit: cover;
  filter: blur(24px) brightness(.4);
  transform: scale(1.12);
  pointer-events: none;
}

.latest-story-frame .latest-story-ad .latest-story-ad-creative {
  position: relative;
  inset: auto;
  min-height: 0;
  width: min(100%, max(0px, calc(100dvh - var(--story-controls-top) - 190px - env(safe-area-inset-bottom, 0px))));
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  transform: none;
}

.latest-story-ad-copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.5rem;
  box-sizing: border-box;
  display: grid;
  justify-items: center;
  gap: .6rem;
  text-align: center;
  color: var(--gx-white);
}

.latest-story-ad-copy strong {
  font: 650 1.25rem/1.2 var(--gx-font-display);
}

.latest-story-ad-copy span {
  padding: .65rem 1rem;
  border-radius: var(--gx-radius-round);
  background: var(--gx-amber);
  color: var(--gx-black);
  font-weight: 700;
}

.latest-story-dialog[open] {
  padding: 0;
}

.latest-story-frame {
  --story-controls-top: calc(env(safe-area-inset-top, 0px) + 30px);
  --story-controls-right: max(12px, env(safe-area-inset-right, 0px));
  --story-controls-left: max(12px, env(safe-area-inset-left, 0px));
  width: 100%;
  height: 100%;
}

.latest-story-frame .latest-preview-lead { border-radius: 0; }
.latest-story-frame .latest-story-progress {
  top: calc(env(safe-area-inset-top, 0px) + 16px);
}
.latest-story-frame .latest-story-seek {
  top: calc(env(safe-area-inset-top, 0px) + 2px);
  height: 27px;
}

.latest-story-frame .latest-story-toggle {
  top: var(--story-controls-top);
  right: calc(var(--story-controls-right) + 50px);
}

.latest-story-frame .latest-story-toggle button,
.latest-story-frame .latest-story-close {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

.latest-story-frame .latest-story-close {
  top: var(--story-controls-top);
  right: var(--story-controls-right);
  bottom: auto;
}

.latest-story-frame .latest-story-title {
  top: var(--story-controls-top);
  bottom: auto;
  left: var(--story-controls-left);
  right: calc(var(--story-controls-right) + 100px);
  gap: .4rem;
  font-size: .9rem;
  z-index: 4;
  pointer-events: none;
}

.latest-story-title img {
  flex: none;
  width: 20px;
  height: 20px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--gx-black);
}

.latest-story-frame .latest-preview-copy,
.latest-story-frame .latest-story-ad-copy {
  padding-bottom: max(1.5rem, calc(env(safe-area-inset-bottom, 0px) + 12px));
}

.latest-story-frame {
  --story-description-size: .85rem;
}

.latest-story-frame .latest-story-title,
.latest-story-frame .latest-preview-copy p {
  font: 400 var(--story-description-size)/1.5 var(--gx-font-body);
}

@media (max-width: 620px) {
  .latest-story-frame { --story-description-size: .9rem; }
}

.latest-story-brand-ring {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gx-brand-peach), var(--gx-brand-sky), var(--gx-brand-mint));
}

.latest-story-frame .latest-story-trending {
  background: radial-gradient(ellipse at 72% 32%, color-mix(in srgb, var(--gx-brand-sky) 25%, var(--gx-black)), transparent 62%),
    radial-gradient(ellipse at 22% 55%, color-mix(in srgb, var(--gx-brand-mint) 17%, var(--gx-black)), var(--gx-black) 75%);
}

.latest-story-frame .latest-story-trending:not([hidden]) {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding-top: calc(var(--story-controls-top) + 50px);
}

.latest-trending-collage {
  position: relative;
  width: min(86%, 440px);
  height: min(78%, 360px);
  margin-inline: auto;
}

.latest-trending-collage img {
  position: absolute;
  top: 10%;
  width: 47%;
  height: 80%;
  border: 1px solid var(--gx-border-strong);
  border-radius: var(--gx-radius-md);
  object-fit: cover;
  background: var(--gx-black);
  box-shadow: 0 10px 26px rgb(0 0 0 / 38%);
}

.latest-trending-collage img:first-child { left: 0; transform: rotate(-12deg); }
.latest-trending-collage img:nth-child(2) { left: 26.5%; top: 4%; height: 88%; z-index: 1; }
.latest-trending-collage img:nth-child(3) { right: 0; transform: rotate(12deg); }

.latest-story-trending .latest-preview-copy {
  text-align: center;
}

.latest-story-trending .latest-preview-more {
  padding: .7rem 1rem;
  border: 1px solid var(--gx-border-strong);
  border-radius: var(--gx-radius-round);
  background: var(--gx-black);
}

.latest-avatar-ring { position: relative; }

.latest-avatar-ring .gx-hot-badge {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 21px;
  height: 21px;
  border: 2px solid var(--gx-black);
}

.latest-story-frame .latest-story-ad-copy { padding: 40px .5rem 0; }

.latest-hot-sticker { display: none; }

.latest-story-frame .latest-hot-sticker {
  position: absolute;
  z-index: 1;
  top: calc(var(--story-controls-top) + 64px);
  left: 8%;
  display: block;
  color: var(--gx-white);
  transform: rotate(-9deg);
  filter: drop-shadow(2px 4px 2px rgb(0 0 0 / 52%));
  pointer-events: none;
}

.latest-hot-sticker-face {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.05rem .55rem .7rem;
  border-radius: .6rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  background:
    linear-gradient(123deg, transparent 20%, rgb(255 255 255 / 22%) 39%, rgb(255 255 255 / 10%) 47%, transparent 57%),
    linear-gradient(151deg, #ff6970, #ec4557 55%, #d32e48);
  text-shadow: 0 1px 2px rgb(64 0 22 / 65%);
  font: 650 .75rem/1.05 var(--gx-font-display);
  text-transform: uppercase;
}

.latest-hot-sticker::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 5px 1px 0 1px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  background: linear-gradient(140deg, #ffb6bf, #f78a99 52%, #cd465b 85%);
}

.latest-hot-sticker strong { display: block; font-size: 1.15rem; }
.latest-hot-sticker .gx-hot-badge {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}

.latest-hot-sticker .gx-hot-badge .ph {
  color: #fff;
  font-size: 1.15rem;
}

.latest-story-frame .latest-story-pedalboard > img {
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.28);
  transform: scale(1.2);
  transform-origin: center 48%;
}

.latest-story-frame .latest-story-pedalboard .latest-preview-shade {
  background: linear-gradient(0deg, rgb(3 3 3 / 90%), rgb(3 3 3 / 36%) 25%, transparent 48%);
}


.latest-story-caged {
  background: var(--gx-reader-paper);
}

.latest-story-caged .latest-preview-shade {
  background: none;
}

.latest-caged-wordmark {
  color: var(--gx-reader-ink);
  font: 700 clamp(3.6rem, 19vw, 7rem)/.95 var(--gx-font-display);
  letter-spacing: -.08em;
  white-space: nowrap;
}

.latest-caged-wordmark > span {
  color: var(--gx-reader-accent);
}

.latest-story-caged > .latest-caged-wordmark {
  position: absolute;
  inset: 39% 0 auto;
  text-align: center;
}

.latest-story-caged .latest-preview-copy :is(h3, p, time, .latest-preview-more) {
  color: var(--gx-reader-ink);
}

.latest-story-caged .latest-preview-more i {
  color: var(--gx-reader-accent);
}

.latest-avatar-ring > .latest-caged-wordmark {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  width: 62px;
  height: 62px;
  box-sizing: border-box;
  border: 2px solid var(--gx-black);
  border-radius: 50%;
  background: var(--gx-reader-paper);
  font-size: .88rem;
}

.latest-story-frame .latest-carousel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(env(safe-area-inset-top, 0px) + 130px);
  z-index: 1;
  background: linear-gradient(to bottom, rgb(0 0 0 / 42%), rgb(0 0 0 / 23%) 50%, transparent);
  pointer-events: none;
}

.home-story-header { display: contents; }

@media (max-width: 760px) {
  .home-story-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 30;
    transition: top var(--gx-duration, 180ms) ease;
  }

  .home-story-header.is-menu-retracted {
    top: calc(-1 * var(--story-menu-height, 72px));
  }

  .home-story-header .gx-header { position: relative; }
  .home-story-header .latest-avatars {
    width: 100%;
    margin-inline: 0;
    padding: .75rem 1rem;
    background: rgb(9 9 9 / 93%);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--gx-border);
  }

  @media (prefers-reduced-motion: reduce) {
    .home-story-header { transition: none; }
  }
}
