:root {
  --red: #b00;
  --bg: #faf9f6;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #666;
  --line: #e8e3dc;
  --header-bg: rgba(250, 249, 246, 0.96);
  --nav-bg: #313131;
  --nav-accent: #851923;
  --media-bg: #ececec;
  --ui-font: "Helvetica Neue", Arial, sans-serif;
  --body-font: "corporate-e", Georgia, "Times New Roman", serif;
  --headline-font: "superior-title", Georgia, "Times New Roman", serif;
  --pullquote-font: "superior-title", Georgia, "Times New Roman", serif;
  --deck-font: "cabrito-extended", Georgia, "Times New Roman", serif;
  --nav-height: 66px;
  --card-width: clamp(210px, 61vw, 320px);
  --card-overlap: clamp(30px, 8vw, 52px);
}

:root[data-theme="dark"] {
  --bg: #1f2933;
  --surface: #24313d;
  --text: #fff;
  --muted: #d7dde4;
  --line: #3d4b58;
  --header-bg: rgba(31, 41, 51, 0.96);
  --nav-bg: #111820;
  --media-bg: #303d48;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  text-size-adjust: 100%;
  touch-action: pan-y;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

/* Let the document scroll; a non-scrolling body overflow container traps sticky chrome. */
body:has(.mobile-home) {
  overflow: visible;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 10px 24px 8px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo-link {
  display: inline-flex;
  justify-content: center;
}

.site-logo {
  width: min(52vw, 205px);
  height: auto;
}

:root[data-theme="dark"] .site-logo {
  filter: invert(1);
}

.theme-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  transform: translateY(-50%);
  appearance: none;
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px currentColor inset;
}

.theme-toggle-icon::after {
  content: "";
  position: absolute;
  top: -2px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--surface);
  transition: transform 160ms ease, opacity 160ms ease;
}

:root[data-theme="dark"] .theme-toggle-icon {
  background: transparent;
}

:root[data-theme="dark"] .theme-toggle-icon::after {
  opacity: 0;
  transform: scale(0.2);
}

.mobile-home {
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom) + 26px);
  touch-action: pan-y;
}

.desktop-primary-nav,
.desktop-home-lead,
.desktop-latest,
.desktop-section-heading {
  display: none;
}

/*
 * TEMPORARY NAV PROTOTYPE CONTROL:
 * The original Cityview desktop navigation remains in index.html but carries
 * this class while the 5280-style category navigation is being evaluated.
 */
.is-nav-prototype-hidden {
  display: none !important;
}

.issues-section {
  padding: 8px 0 11px;
  background: var(--surface);
}

.issue-carousel {
  --side-padding: calc((100vw - var(--card-width)) / 2);
  display: flex;
  gap: 0;
  align-items: center;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--side-padding);
  padding: 0 var(--side-padding);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.issue-carousel::-webkit-scrollbar {
  display: none;
}

.issue-card {
  position: relative;
  z-index: 0;
  isolation: isolate;
  flex: 0 0 var(--card-width);
  margin-inline: calc(var(--card-overlap) * -1);
  scroll-snap-align: center;
  display: grid;
  gap: 8px;
  opacity: 1;
  transform: scale(0.88);
  transform-origin: center bottom;
  transition: transform 180ms ease;
  text-align: center;
}

.issue-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  aspect-ratio: 600 / 776;
  z-index: 0;
  border-radius: 8px;
  background: #f7f4ee;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.issue-card.is-clone {
  pointer-events: auto;
}

.issue-card.is-active {
  z-index: 3;
  transform: scale(1);
}

.issue-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 600 / 776;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  background: #f7f4ee;
  filter: brightness(0.74) saturate(0.78);
  transition: filter 180ms ease;
}

.issue-card.is-active img {
  filter: none;
}

.issue-card span {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 1.1em;
  color: var(--text);
  font-size: clamp(1rem, 4.9vw, 1.38rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0;
}

.issue-card .cover-peel {
  z-index: 2;
  position: absolute;
  top: 0;
  right: 0;
  width: 16%;
  aspect-ratio: 1;
  overflow: hidden;
  border-top-right-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.18);
  transform-origin: top right;
}

.issue-card .cover-peel::before,
.issue-card .cover-peel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
}

.issue-card .cover-peel::before {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0) 0 47%, rgba(255, 255, 255, 0.7) 48% 56%, rgba(236, 236, 236, 0.82) 57% 100%);
  box-shadow: -4px 5px 9px rgba(0, 0, 0, 0.16);
  clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.issue-card .cover-peel::after {
  width: 44%;
  height: 44%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0));
  filter: blur(1px);
  transform: translate(-25%, 72%) rotate(45deg);
}

.issue-card.is-active.is-teasing .cover-peel {
  animation: cover-peel-tease 1700ms ease-in-out both;
}

@keyframes cover-peel-tease {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.18);
  }

  28%,
  72% {
    opacity: 1;
    transform: scale(1);
  }
}

.motion-promo {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--media-bg);
  border-top: 1px solid var(--line);
}

.promo-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  transition: opacity 520ms ease;
}

.promo-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.promo-slide video,
.promo-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-slide video {
  z-index: 1;
  opacity: 0;
}

.promo-slide.has-video video {
  opacity: 1;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  min-height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.16);
}

.bottom-nav a {
  display: flex;
  min-width: 0;
  min-height: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-size: clamp(0.58rem, 2.45vw, 0.72rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.bottom-nav img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.bottom-nav span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-curation { margin-top: 44px; }
.waterfall-preview-section[hidden] { display: none; }
.waterfall-preview-section { margin: 22px 0 36px; }
.waterfall-composition { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.waterfall-ad { min-width: 0; margin: 0; }
.waterfall-artwork { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: contain; }
.waterfall-ad-label { margin: 8px 0 0; text-align: center; color: #999; font: 10px/1.3 Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.waterfall-stories { grid-column: span 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,minmax(0,1fr)); gap: 24px 28px; min-width: 0; }
.waterfall-stories .desktop-story-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.waterfall-stories .desktop-story-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.waterfall-stories .desktop-story-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.waterfall-stories .desktop-story-copy { padding: 15px 17px; }
.waterfall-stories h3 { margin: 7px 0 0; font-family: var(--headline-font); font-size: clamp(1.25rem,2.2vw,2rem); line-height: 1.1; }
.waterfall-stories .desktop-feature-section { color: var(--red); font-size: .66rem; font-weight: 700; text-transform: uppercase; }
@media(max-width:767px) {
  .waterfall-preview-section { margin: 20px 16px 32px; }
  .waterfall-composition { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .waterfall-ad { width: min(100%,360px); justify-self: center; }
  .waterfall-stories { grid-column: auto; gap: 20px 16px; grid-template-rows: auto; }
  .waterfall-stories .desktop-story-copy { padding: 12px 10px; }
  .has-waterfall-preview .mobile-featured { display: none; }
}
.mobile-featured, .mobile-home-more { display: none; }
@media (max-width: 767px) {
  .mobile-featured, .mobile-home-more { display: block; }
  .mobile-home .home-curation { margin: 32px 16px 0; }
  .home-curation .desktop-section-heading { display: block; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
  .home-curation .desktop-section-heading h2 { margin: 0; font-family: var(--headline-font); font-size: 1.75rem; line-height: 1.15; }
  .home-curation .desktop-story-card { min-width: 0; }
  .home-curation .desktop-story-media { border-radius: 6px; background: var(--media-bg); }
  .home-curation .desktop-story-copy { overflow-wrap: anywhere; }
  .home-curation .desktop-feature-section { font-size: .65rem; font-weight: 700; color: var(--red); text-transform: uppercase; }
  .home-curation .home-collection-heading { flex-wrap: wrap; gap: 8px; }
  .home-curation .home-collection-heading h3 { font-size: 1.5rem; }
  .home-curation .home-collection-heading a { font-size: .85rem; padding: 10px 0; }
  .mobile-home-more { margin: 28px 16px 0; }
  .mobile-home-more a { display: block; padding: 16px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-weight: 700; }
}
.home-picks-grid, .home-food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 22px 0; }
.home-collection-heading h3 { margin: 0; font-family: var(--headline-font); font-size: 2rem; }
.home-collection-heading a { color: var(--red); font-weight: 700; }
.home-curation .desktop-story-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.home-curation .desktop-story-media img { width: 100%; height: 100%; object-fit: cover; }
.home-curation .desktop-story-copy { padding: 14px 10px; }
.home-curation .desktop-story-copy h3 { font-family: var(--headline-font); font-size: 1.25rem; line-height: 1.2; margin: 6px 0 0; }
@media (min-width: 768px) {
  .home-food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-picks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .home-picks-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.archive-page {
  display: grid;
  gap: 28px;
  padding: 20px 14px calc(var(--nav-height) + env(safe-area-inset-bottom) + 32px);
  background: var(--bg);
  touch-action: pan-y;
}

.archive-year {
  display: grid;
  gap: 12px;
}

.archive-year h1,
.archive-year h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 9px;
}

@media (min-width: 1200px) {
  .archive-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px 16px;
  }
}

.archive-slot {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--text);
  text-align: center;
}

.archive-slot img,
.archive-placeholder {
  width: 100%;
  aspect-ratio: 600 / 776;
  border-radius: 6px;
  background: var(--media-bg);
}

.archive-slot img {
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.16);
}

.archive-slot span:last-child {
  min-height: 2.2em;
  color: var(--text);
  font-size: clamp(0.72rem, 3.1vw, 0.9rem);
  font-weight: 700;
  line-height: 1.1;
}

.archive-slot.is-empty {
  opacity: 0.52;
}

.archive-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: clamp(0.72rem, 3vw, 0.88rem);
  font-weight: 700;
  line-height: 1.1;
}

.stories-page {
  max-width: 100vw;
  overflow-x: clip;
  display: grid;
  gap: 12px;
  padding: 14px 0 calc(var(--nav-height) + env(safe-area-inset-bottom) + 28px);
  background: var(--bg);
  touch-action: pan-y;
}

.story-issue-rail {
  display: none;
}

.story-issue-header {
  position: sticky;
  top: 57px;
  z-index: 4;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 2px 0 -4px;
  padding: 7px 14px;
  border-top: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  color: var(--text);
}

.story-issue-header-cover,
.story-issue-cover-image,
.story-issue-rail-cover {
  display: block;
  overflow: hidden;
  background: #f7f4ee;
}

.story-issue-header-cover {
  width: 36px;
  aspect-ratio: 600 / 776;
  border-radius: 3px;
}

.story-issue-header-cover img,
.story-issue-cover-image img,
.story-issue-rail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-issue-header-copy,
.story-issue-cover-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.story-issue-title {
  overflow: hidden;
  color: var(--text);
  font-family: var(--headline-font);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-issue-volume {
  color: var(--muted);
  font-family: var(--headline-font);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
}

.story-issue-code {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.story-issue-cover-card {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-issue-cover-link {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 15px 20px;
}

.story-issue-cover-image {
  width: 74px;
  aspect-ratio: 600 / 776;
  border-radius: 5px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.story-issue-cover-card .story-issue-title {
  font-size: clamp(2rem, 10vw, 3.15rem);
  white-space: normal;
}

.story-issue-cover-card .story-issue-volume {
  color: var(--text);
  font-size: clamp(1.4rem, 6.4vw, 2.12rem);
}

.story-feed-card {
  display: grid;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story-feed-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--story-media-ratio);
  overflow: hidden;
  background: var(--media-bg);
}

.story-feed-media img,
.story-feed-media video {
  width: 100%;
  height: auto;
  display: block;
}

.story-feed-media video {
  position: relative;
  z-index: 1;
}

.story-feed-media .story-feed-fallback {
  display: none;
}

.story-feed-body {
  display: grid;
  gap: 9px;
  padding: 14px 15px 18px;
}

.story-feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.story-feed-meta span {
  display: inline-block;
  opacity: 0.78;
}

.story-feed-card h2 {
  margin: 0;
  color: var(--text);
  font-family: var(--headline-font);
  font-size: clamp(1.28rem, 6.2vw, 1.9rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.story-feed-deck {
  margin: 0;
  color: var(--text);
  font-family: var(--deck-font);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.38;
}

.story-feed-byline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
}

.story-feed-byline strong {
  color: var(--text);
  font-weight: 800;
}

.story-feed-byline strong::before {
  content: " ";
}

.story-feed-excerpt {
  margin: 2px 0 0;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  font-family: var(--body-font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.45;
}

.story-feed-continue {
  justify-self: start;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.bottom-nav a[aria-current="page"] {
  color: #fff;
}

@media (max-width: 360px) {
  :root {
    --nav-height: 62px;
    --card-width: 61vw;
    --card-overlap: 28px;
  }

  .site-header {
    min-height: 56px;
    padding-block: 10px 8px;
  }

  .bottom-nav {
    padding-inline: 2px;
  }

  .bottom-nav a {
    gap: 4px;
    min-height: 50px;
  }

  .bottom-nav img {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .issue-card,
  .promo-slide {
    transition: none;
  }

  .issue-card.is-active.is-teasing .cover-peel {
    animation: none;
  }
}

@media (min-width: 700px) {
  :root {
    --card-width: 315px;
    --card-overlap: 48px;
  }

  .issues-section {
    padding-top: 18px;
  }
}

@media (min-width: 768px) {
  :root {
    --card-width: 168px;
    --card-overlap: 0px;
    --nav-height: 0px;
  }

  body:has(.mobile-home) {
    background: var(--bg);
  }

  .site-header {
    min-height: 78px;
    padding: 16px 36px 13px;
  }

  .site-logo {
    width: min(34vw, 260px);
  }

  .theme-toggle {
    right: max(24px, calc((100vw - 1240px) / 2));
  }

  .desktop-primary-nav {
    position: sticky;
    top: var(--site-header-height, 78px);
    z-index: 9;
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 4vw, 58px);
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: blur(14px);
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.095em;
    text-transform: uppercase;
  }

  .desktop-primary-nav--5280 {
    gap: clamp(13px, 2.15vw, 34px);
    font-size: clamp(0.61rem, 0.82vw, 0.74rem);
  }

  .nav-dropdown { position: relative; }
  .nav-dropdown summary { display:flex;align-items:center;gap:6px;min-height:45px;cursor:pointer;list-style:none; }
  .nav-dropdown summary::-webkit-details-marker { display:none; }
  .nav-dropdown summary:focus-visible { outline:2px solid var(--nav-accent);outline-offset:3px; }
  .nav-dropdown-menu { position:absolute;top:100%;left:0;min-width:220px;padding:8px 14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #0002; }
  .nav-dropdown-menu a { white-space:nowrap; }

  .desktop-primary-nav a,
  .desktop-primary-nav .desktop-nav-pending {
    display: flex;
    min-height: 45px;
    align-items: center;
    border-bottom: 2px solid transparent;
    transition: border-color 160ms ease, color 160ms ease;
  }

  .desktop-nav-amp {
    margin-inline: 0.22em;
    color: var(--nav-accent);
    font-family: var(--headline-font);
    font-size: 1.35em;
    font-weight: 700;
    line-height: 0;
  }

  .desktop-primary-nav a:hover,
  .desktop-primary-nav a[aria-current="page"] {
    border-bottom-color: var(--text);
  }

  .mobile-home {
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 30px clamp(24px, 4vw, 54px) 54px;
  }

  .desktop-home-lead,
  .desktop-latest {
    display: block;
  }

  .desktop-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--text);
  }

  .desktop-section-heading h1,
  .desktop-section-heading h2 {
    margin: 2px 0 0;
    font-family: var(--headline-font);
    font-size: clamp(2rem, 4vw, 3.45rem);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.02em;
  }

  .desktop-section-heading h2 {
    font-size: clamp(1.7rem, 3vw, 2.45rem);
  }

  .desktop-section-heading > a {
    flex: 0 0 auto;
    padding-bottom: 3px;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .desktop-kicker {
    display: block;
    color: var(--muted);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .desktop-home-banner {
    margin: 0 0 22px;
  }

  .desktop-home-banner-placeholder {
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 6 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px dashed var(--muted);
    background: var(--surface, #f0efec);
    color: var(--muted);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .desktop-home-banner-placeholder strong {
    font-size: clamp(1rem, 2vw, 1.5rem);
  }

  .desktop-feature-grid {
    display: grid;
    gap: 22px;
  }

  .desktop-feature-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 28px;
  }

  .desktop-feature-secondary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

  .desktop-story-card,
  .desktop-current-issue,
  .desktop-ad-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .desktop-ad-card {
    display: grid;
    align-content: start;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .desktop-ad-link {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--media-bg);
  }

  .desktop-ad-link img {
    width: 100%;
    aspect-ratio: 430 / 500;
    object-fit: cover;
    transition: transform 360ms ease;
  }

  .desktop-ad-link:hover img {
    transform: scale(1.015);
  }

  .desktop-ad-label {
    margin: 7px 0 0;
    color: #aaa;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    line-height: 1;
    text-align: center;
  }

  .desktop-story-media {
    display: block;
    width: 100%;
    aspect-ratio: var(--desktop-story-ratio, 16 / 9);
    overflow: hidden;
    background: var(--media-bg);
  }

  .desktop-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 360ms ease;
  }

  .desktop-story-card:hover .desktop-story-media img {
    transform: scale(1.025);
  }

  .desktop-story-card--lead {
    display: grid;
    height: 100%;
    grid-template-rows: auto 1fr;
  }

  .desktop-story-copy {
    display: grid;
    min-width: 0;
    gap: 7px;
    padding: 15px 17px 18px;
  }

  .desktop-story-card--lead .desktop-story-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 0;
    padding: 18px 20px 21px;
  }

  .desktop-feature-section {
    color: var(--red);
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }

  .desktop-story-copy h2,
  .desktop-story-copy h3 {
    margin: 5px 0 0;
    font-family: var(--headline-font);
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    font-weight: 500;
    line-height: 1;
  }

  .desktop-story-copy h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.5rem);
  }

  .desktop-story-copy p,
  .desktop-current-copy p {
    margin: 7px 0 0;
    color: var(--muted);
    font-family: var(--deck-font);
    font-size: 0.96rem;
    font-style: italic;
    font-weight: 700;
    line-height: 1.35;
  }

  .desktop-current-issue {
    display: grid;
    grid-column: 3;
    align-self: stretch;
    grid-template-rows: auto 1fr;
  }

  .desktop-current-cover {
    display: block;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--media-bg);
  }

  .desktop-current-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  .desktop-feature-top .desktop-story-media {
    aspect-ratio: 3 / 4;
  }

  .desktop-current-copy {
    align-content: start;
    display: grid;
    padding: 14px 17px 19px;
  }

  .desktop-current-copy > span {
    color: var(--red);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
  }

  .desktop-current-copy h2 {
    margin: 5px 0 0;
    font-family: var(--headline-font);
    font-size: clamp(1.65rem, 2.5vw, 2.65rem);
    font-weight: 500;
    line-height: 0.98;
  }

  .issues-section {
    margin-top: 42px;
    padding: 0;
    background: transparent;
  }

  .desktop-issues-heading {
    display: flex;
  }

  .issue-carousel {
    --side-padding: 0px;
    gap: 18px;
    align-items: start;
    padding: 5px 2px 24px;
    scroll-padding-inline: 0;
    scroll-snap-type: x proximity;
  }

  .issue-card {
    flex-basis: var(--card-width);
    margin-inline: 0;
    scroll-snap-align: start;
    transform: none;
  }

  .issue-card::before {
    display: none;
  }

  .issue-card img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    filter: none;
  }

  .issue-card.is-active {
    transform: none;
  }

  .issue-card span {
    font-size: 0.85rem;
  }

  .motion-promo {
    margin-top: 24px;
    aspect-ratio: 16 / 5.4;
    border: 1px solid var(--line);
  }

  .desktop-latest {
    margin-top: 44px;
  }

  .desktop-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .desktop-latest-card {
    display: grid;
    min-width: 0;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .desktop-latest-card > a:first-child {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-bg);
  }

  .desktop-latest-copy {
    padding: 12px 2px 0;
  }

  .bottom-nav {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .desktop-feature-top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .desktop-feature-secondary {
    gap: 16px;
  }

  .desktop-story-card--lead .desktop-story-copy {
    grid-template-columns: 1fr;
  }

  .desktop-story-card--secondary .desktop-story-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .desktop-latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  body:has(.stories-page) {
    overflow-x: clip;
  }

  .story-issue-rail {
    position: fixed;
    top: 92px;
    bottom: calc(var(--nav-height) + 18px);
    left: max(16px, calc((100vw - 1120px) / 2));
    z-index: 3;
    display: grid;
    align-content: start;
    width: 148px;
    gap: 5px;
    overflow-y: auto;
    overflow-x: clip;
    overscroll-behavior: contain;
    padding: 8px 0 14px;
    scrollbar-width: none;
    touch-action: pan-y;
  }

  .story-issue-rail::-webkit-scrollbar {
    display: none;
  }

  .story-issue-rail-item {
    display: grid;
    width: 100%;
    justify-self: center;
    justify-items: center;
    gap: 0;
    padding: 2px 0;
    border-radius: 0;
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 800;
    line-height: 1.05;
    text-align: center;
    transform-origin: center;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    touch-action: manipulation;
  }

  .story-issue-rail-year {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 10px 3px;
    color: color-mix(in srgb, var(--muted) 58%, transparent);
    font-size: 0.64rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
  }

  .story-issue-rail-year span {
    display: block;
    height: 1px;
    flex: 1 1 auto;
    background: color-mix(in srgb, var(--line) 58%, transparent);
  }

  .story-issue-rail-cover {
    width: 124px;
    aspect-ratio: 600 / 776;
    justify-self: center;
    border-radius: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
    transition: box-shadow 160ms ease, transform 160ms ease;
  }

  .story-issue-rail-item.is-active {
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 70%, var(--line));
    transform: none;
  }

  .story-issue-rail-item.is-active .story-issue-rail-cover {
    box-shadow:
      0 0 0 2px var(--text),
      0 10px 20px rgba(0, 0, 0, 0.22);
    transform: none;
  }

  .stories-page {
    width: auto;
    max-width: 900px;
    margin-left: max(188px, calc((100vw - 1120px) / 2 + 172px));
    margin-right: 24px;
    padding-top: 22px;
  }

  .story-feed-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .story-issue-header {
    top: 59px;
    margin-inline: 0;
    border-inline: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    border-radius: 8px;
  }

  .story-issue-cover-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .story-issue-cover-link {
    grid-template-columns: 98px minmax(0, 1fr);
    padding: 26px 28px 28px;
  }

  .story-issue-cover-image {
    width: 98px;
  }

  .story-issue-cover-card .story-issue-title {
    font-size: 2.55rem;
  }

  .story-issue-cover-card .story-issue-volume {
    font-size: 1.78rem;
  }
}

.home-author-directory { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.home-author-directory a { color: inherit; border: 1px solid currentColor; border-radius: 4px; padding: 12px 16px; font-weight: 650; text-decoration: none; }
.home-author-directory a:hover, .home-author-directory a:focus-visible { text-decoration: underline; outline-offset: 4px; }

.home-all-authors { margin-top: 20px; }
.home-all-authors summary { cursor: pointer; font-weight: 650; padding: 12px 0; }

@media (min-width:768px) {
  .desktop-feature-top { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
.waterfall-composition > .desktop-ad-card { min-width:0; align-self:start; }
@media (max-width:767px) {
  .waterfall-composition > .desktop-ad-card { width:min(100%,360px); justify-self:center; }
}

.mobile-featured .home-picks-grid { grid-template-columns:minmax(0,1fr); }

@media (max-width:767px) {
  .desktop-primary-nav--5280 { position:relative;z-index:9;display:flex;flex-wrap:wrap;justify-content:center;gap:0 14px;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--line);font:800 10px/1.4 var(--ui-font);text-transform:uppercase;letter-spacing:.05em; }
  .desktop-primary-nav--5280 > a,.nav-dropdown summary { min-height:36px;display:flex;align-items:center;gap:4px; }
  .nav-dropdown { position:relative; }
  .nav-dropdown summary { list-style:none;cursor:pointer; }
  .nav-dropdown summary::-webkit-details-marker { display:none; }
  .nav-dropdown-menu { position:absolute;top:100%;left:-40px;width:220px;padding:8px 14px;background:var(--surface);border:1px solid var(--line);box-shadow:0 8px 24px #0002; }
  .nav-dropdown-menu a { display:flex;align-items:center;min-height:40px; }
  .desktop-primary-nav--5280 .desktop-nav-amp { margin-inline:3px;color:var(--nav-accent); }
}

/* A delivered homepage banner is also visible above the phone's featured story. */
@media (max-width:767px) {
  .desktop-home-lead:has([data-ad-slot="homepage-banner"][data-ad-state="active"]) { display:block; margin:20px 16px; }
  .desktop-home-lead > .desktop-section-heading, .desktop-home-lead > .desktop-feature-grid { display:none; }
  .desktop-home-banner { margin:0; }
  .desktop-home-banner .desktop-ad-label { text-align:center; color:#999; font:10px/1.3 Arial,sans-serif; letter-spacing:.1em; }
}

/* Phone-first current issue and complete two-column recommendation rows. */
.mobile-current-issue{display:none}
@media(max-width:767px){
 .mobile-current-issue{display:block;margin:20px 16px;order:-1}
 .mobile-home{display:flex;flex-direction:column;padding-bottom:28px}
 .mobile-current-issue .desktop-current-cover{display:block}
 .mobile-current-issue img{width:100%;max-height:72vh;object-fit:contain}
 .mobile-current-issue .desktop-current-copy{text-align:center;padding:12px}
 .mobile-current-issue h2{font-family:var(--headline-font);font-size:1.6rem}
 .home-curation .desktop-story-card:last-child:nth-child(odd){grid-column:1/-1}
}
@media(min-width:768px){
 [data-staff-picks]>.desktop-story-card:nth-child(n+6),[data-food-drink]>.desktop-story-card:nth-child(n+4),[data-business-spotlights]>.desktop-story-card:nth-child(n+4){display:none}
}
.story-feed-body audio{display:block;width:100%;margin:14px 0}
img[src*="/brand/elements/from-the-publisher-title.svg"]{object-fit:contain!important;background:#fff;box-sizing:border-box;padding:20px}
