body.news-post-page {
  --post-bg: #050505;
  --post-ink: #f0f0f2;
  --post-body-ink: #cfcfd6;
  --post-muted: rgba(255, 255, 255, .58);
  --post-subtle: rgba(255, 255, 255, .38);
  --post-hairline: rgba(255, 255, 255, .09);
  min-height: 100vh;
  background: var(--post-bg);
  color: var(--post-ink);
  font-family: 'Inter', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.news-post-page .masthead.masthead-split {
  --masthead-glass: 1;
  --masthead-ink: .71;
}

.post-shell {
  width: min(100% - 48px, 840px);
  margin-inline: auto;
}

.post-main {
  padding-top: 0;
  padding-bottom: clamp(32px, 4vw, 52px);
}

/* Full-bleed atmospheric banner: ambient layer extends behind top navbar while main artwork stays fully intact */
.post-banner {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding-top: calc(var(--header-height) * .72);
  height: clamp(440px, 58svh, 580px);
  margin: 0;
  overflow: hidden;
  background: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-banner-ambient {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  object-fit: cover;
  object-position: center 36%;
  filter: blur(34px) brightness(.6) saturate(1.16);
  opacity: .96;
  pointer-events: none;
}

.post-banner-media {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 1160px);
  height: 100%;
  object-fit: cover;
  object-position: center 26%;
  filter: brightness(.94);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .68) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .68) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .68) 8%, #000 18%, #000 82%, rgba(0, 0, 0, .68) 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
  mask-composite: intersect;
  animation: postBannerBreath .7s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes postBannerBreath {
  from {
    opacity: 0;
    transform: scale(1.03);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes postSoftRise {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.post-header {
  animation: postSoftRise .52s cubic-bezier(.16, 1, .3, 1) .06s both;
}

.post-body {
  animation: postSoftRise .58s cubic-bezier(.16, 1, .3, 1) .14s both;
}

@media (prefers-reduced-motion: reduce) {
  .post-banner-media,
  .post-header,
  .post-body {
    animation: none;
  }
}

.post-banner-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, .58) 0%, rgba(5, 5, 5, .1) 26%, rgba(5, 5, 5, .12) 56%, rgba(5, 5, 5, .82) 86%, #050505 100%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, .44) 8%, transparent 22%, transparent 78%, rgba(5, 5, 5, .44) 92%, #050505 100%);
}

.post-header {
  position: relative;
  z-index: 3;
  margin-top: clamp(-64px, -6vw, -40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--post-hairline);
}

.post-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--post-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
}

.post-meta-line time,
.post-read-time {
  color: var(--post-subtle);
  font-variant-numeric: tabular-nums;
}

.post-title {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 37px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -.035em;
  text-wrap: normal;
}

/* Clean reading typography */
.post-body {
  padding: clamp(20px, 2.6vw, 28px) 0 6px;
  color: var(--post-body-ink);
  font-size: clamp(15.5px, 1.12vw, 16.5px);
  line-height: 1.88;
}

.post-body p {
  margin: 0 0 18px;
}

.post-body h3 {
  margin: 28px 0 12px;
  color: #fff;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.post-body ul {
  margin: 0 0 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.post-body li {
  color: var(--post-body-ink);
}

.post-body li::marker {
  color: rgba(255, 255, 255, .42);
}

.post-body blockquote {
  margin: 24px 0;
  padding: 5px 0 5px 18px;
  border-left: 2px solid rgba(255, 255, 255, .36);
  color: #e8e8ec;
  font-size: clamp(15.5px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.68;
}

.post-action-row {
  margin: 10px 0 24px;
}

.post-action-row[hidden] {
  display: none;
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #f4f3f1;
  color: #050505;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .04em;
  transition: background-color .2s ease, transform .2s ease;
}

.post-action-btn:hover,
.post-action-btn:focus-visible {
  background: #fff;
  transform: translateY(-1px);
}

.post-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 14px 0 4px;
  border-top: 1px solid var(--post-hairline);
}

.post-pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
  color: inherit;
  transition: opacity .2s ease;
}

.post-pager-link[hidden] {
  display: none;
}

.post-pager-next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

.post-pager-label {
  color: var(--post-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.post-pager-link strong {
  color: #e2e2e6;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  transition: color .2s ease;
}

.post-pager-link:hover strong,
.post-pager-link:focus-visible strong {
  color: #fff;
}

/* More stories strip */
.post-related-section {
  margin-top: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--post-hairline);
}

.post-related-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.post-related-head h2 {
  margin: 0;
  color: #e8e8ea;
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -.035em;
}

.post-related-all {
  color: var(--post-muted);
  font-size: 12px;
  font-weight: 650;
  transition: color .2s ease;
}

.post-related-all:hover {
  color: #fff;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-related-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.post-related-thumb {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #141416;
  margin-bottom: 10px;
}

.post-related-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.post-related-card:hover .post-related-thumb img {
  transform: scale(1.04);
}

.post-related-meta {
  color: var(--post-subtle);
  font-size: 11px;
  font-weight: 650;
  margin-bottom: 4px;
}

.post-related-card h3 {
  margin: 0;
  color: #ececef;
  font-size: 15.5px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -.02em;
  transition: color .2s ease;
}

.post-related-card:hover h3 {
  color: #fff;
}

/* Footer */
.post-footer {
  padding: 20px 0 30px;
  border-top: 1px solid var(--post-hairline);
}

.post-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  color: var(--post-subtle);
  font-size: 11px;
  font-weight: 600;
}

.post-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: var(--post-muted);
  font-size: 12px;
}

.post-footer-nav a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  body.news-post-page {
    --header-height: 72px;
  }
  .post-shell {
    width: min(100% - 32px, 840px);
  }
  .post-banner {
    padding-top: calc(var(--header-height) * .72);
    height: clamp(300px, 44svh, 390px);
  }
  .post-banner-media {
    width: 100%;
    -webkit-mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, #000 8%, #000 92%, rgba(0, 0, 0, .65) 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(90deg, rgba(0, 0, 0, .65) 0%, #000 8%, #000 92%, rgba(0, 0, 0, .65) 100%),
      linear-gradient(180deg, transparent 0%, #000 12%, #000 84%, transparent 100%);
    mask-composite: intersect;
  }
  .post-header {
    margin-top: -32px;
  }
  .post-pager {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .post-pager-link {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-sizing: border-box;
  }
  .post-pager-link strong {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 14px;
    line-height: 1.45;
  }
  .post-pager-next {
    grid-column: auto;
    align-items: flex-start;
    text-align: left;
  }
  .post-related-section {
    position: relative;
    overflow: hidden;
  }
  .post-related-section::before,
  .post-related-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    top: 52px;
    width: 24px;
    z-index: 4;
    pointer-events: none;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .post-related-section::before {
    left: 0;
    background: linear-gradient(90deg, rgba(10, 10, 11, 0.9) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 0%, transparent 100%);
  }
  .post-related-section::after {
    right: 0;
    background: linear-gradient(270deg, rgba(10, 10, 11, 0.9) 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
    mask-image: linear-gradient(270deg, #000 0%, transparent 100%);
  }
  .post-related-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    margin-inline: -16px;
    padding: 4px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18px, #000 calc(100% - 18px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18px, #000 calc(100% - 18px), transparent 100%);
  }
  .post-related-grid::-webkit-scrollbar {
    display: none;
  }
  .post-related-card {
    flex: 0 0 184px;
    scroll-snap-align: start;
  }
  .post-related-thumb {
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .post-related-meta {
    font-size: 10.5px;
    margin-bottom: 3px;
  }
  .post-related-card h3 {
    font-size: 13.5px;
    line-height: 1.38;
  }
}
