:root {
  --red: #e10600;
  --red-dark: #b80500;
  --red-soft: #fff1f0;
  --ink: #111111;
  --text: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --line-dark: #111111;
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --ad-bg: #f3f3f3;
  --max: 1180px;
  --header-h: 52px;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --shadow: 0 8px 30px rgba(0,0,0,.06);
  --focus: 2px solid var(--red);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul { list-style: none; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Announcement — hidden so the header stays compact */
.announce {
  display: none;
}
.announce a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }
.announce a:hover { color: #ffd7d5; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo search menu";
  align-items: center;
  min-height: var(--header-h);
  gap: 2px;
  padding: 0 6px;
}
.logo {
  grid-area: logo;
  justify-self: start;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.2rem, 5vw, 1.55rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  padding-left: 6px;
}
#search-btn { grid-area: search; }
.menu-btn { grid-area: menu; }
.logo span { color: var(--red); }
.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 4px;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
.desktop-nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 10px 16px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}
.desktop-nav::-webkit-scrollbar { display: none; }
.desktop-nav a {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.desktop-nav a.active,
.desktop-nav a:hover { color: var(--red); }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px 0 20px;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block;
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-panel a.active { color: var(--red); }

@media (min-width: 900px) {
  .header-bar {
    grid-template-columns: 1fr auto auto;
    min-height: 58px;
    width: min(100% - 32px, var(--max));
    margin-inline: auto;
    padding: 0;
  }
  .logo { font-size: 1.7rem; }
  .menu-btn { visibility: hidden; pointer-events: none; }
  .desktop-nav {
    justify-content: center;
    gap: 28px;
    padding: 11px 0 13px;
    overflow: visible;
  }
  .desktop-nav a { font-size: 13px; }
}

/* Search */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.55);
  z-index: 80;
  display: none;
  padding: 12vh 16px 16px;
}
.search-overlay.open { display: block; }
.search-box {
  width: min(720px, 100%);
  margin: 0 auto;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}
.search-box input {
  width: 100%;
  border: 0;
  border-bottom: 2px solid var(--ink);
  padding: 10px 0;
  font-size: 1.15rem;
  outline: none;
}
.search-results { margin-top: 14px; }
.search-results a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.search-results .cat {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Ads */
.ad-slot {
  background: var(--ad-bg);
  color: #8a8a8a;
  border: 1px dashed #d0d0d0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ad-leader { min-height: 90px; margin: 20px auto; width: min(100% - 32px, var(--max)); }
.ad-box { min-height: 250px; }
.ad-inline { min-height: 120px; margin: 28px 0; }

/* Hero / Top Stories */
.section { padding: 8px 0 36px; }
.kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 18px;
  padding-bottom: 8px;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}
.section-head a { font-size: 13px; font-weight: 600; color: var(--muted); }

.top-grid {
  display: grid;
  gap: 22px;
}
.lead a { color: inherit; }
.lead img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #eee;
}
.lead .body { padding-top: 14px; }
.lead h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 650;
  margin: 8px 0 10px;
}
.lead .excerpt {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 46rem;
}
.meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.badge {
  display: inline-block;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.side-list { display: grid; gap: 16px; }
.side-item {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  align-items: start;
}
.side-item img {
  width: 112px;
  height: 84px;
  object-fit: cover;
  background: #eee;
}
.side-item h3 {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .top-grid {
    grid-template-columns: 1.45fr .9fr;
    gap: 32px;
    align-items: start;
  }
  .side-item { grid-template-columns: 140px 1fr; }
  .side-item img { width: 140px; height: 96px; }
}

/* Story grids */
.story-grid {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) {
  .story-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .story-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
.card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #eee;
}
.card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 8px 0 6px;
}
.card p {
  color: var(--muted);
  font-size: .95rem;
}

.cat-row { padding: 10px 0 28px; }
.cat-row .story-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .cat-row .story-grid { grid-template-columns: repeat(4, 1fr); }
  .cat-row .card h3 { font-size: 1.05rem; }
}

/* Newsletter */
.newsletter {
  background: var(--ink);
  color: #fff;
  padding: 36px 0;
  margin: 10px 0 0;
}
.newsletter .wrap {
  display: grid;
  gap: 16px;
}
.newsletter h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}
.newsletter p { color: #d2d2d2; max-width: 36rem; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input {
  flex: 1 1 220px;
  background: #fff;
  border: 0;
  padding: 12px 14px;
}
.newsletter button {
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 13px;
}
.newsletter button:hover { background: var(--red-dark); }
.form-note { font-size: 13px; color: #bbb; }

@media (min-width: 800px) {
  .newsletter .wrap { grid-template-columns: 1.2fr .8fr; align-items: center; }
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 36px 0 20px;
}
.footer-grid {
  display: grid;
  gap: 28px;
}
.footer-brand .logo { justify-self: start; display: inline-block; font-size: 1.6rem; }
.footer-brand p { color: var(--muted); margin-top: 10px; max-width: 28rem; }
.footer-links h4 {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.footer-links a { display: block; padding: 5px 0; color: var(--muted); }
.footer-bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.socials { display: flex; gap: 14px; margin-top: 14px; }
.socials a { font-weight: 700; font-size: 13px; letter-spacing: .04em; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr .7fr .7fr; }
}

/* Pages */
.page-main { padding: 28px 0 56px; }
.page-prose {
  max-width: 740px;
}
.page-prose h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-prose h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 28px 0 10px;
}
.page-prose p, .page-prose li { color: #333; margin-bottom: 12px; }
.page-prose ul { list-style: disc; padding-left: 1.2rem; }

/* Article */
.article-layout { display: grid; gap: 36px; }
.article-hero img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  background: #f4f4f4;
  display: block;
}
.article-hero figcaption,
.gallery figcaption {
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
}
.article-kicker { margin-bottom: 8px; }
.article-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.byline { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.article-body {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.75;
  max-width: 720px;
}
.article-body p { margin-bottom: 1.05em; }
.article-body h2, .article-body h3 {
  font-size: 1.35rem;
  margin: 1.4em 0 .5em;
}
.article-body a { text-decoration: underline; }

.media-block { margin: 24px 0; }
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.gallery {
  columns: 1;
  column-gap: 16px;
  margin: 28px 0 8px;
}
.gallery figure {
  break-inside: avoid;
  margin: 0 0 18px;
  background: #fff;
}
.gallery img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: #f4f4f4;
  cursor: zoom-in;
}
.article-hero img { cursor: zoom-in; }
@media (min-width: 700px) {
  .gallery { columns: 2; column-gap: 20px; }
}
@media (min-width: 1100px) {
  .gallery { columns: 3; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,.92);
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 72px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  color: #ddd;
  text-align: center;
  font-size: 14px;
}
.lightbox button {
  position: absolute;
  color: #fff;
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
}
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 8px; top: 50%; }
.lightbox .lb-next { right: 8px; top: 50%; }

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 28px 0;
}
.share button, .share a {
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}
.share button:hover, .share a:hover { border-color: var(--ink); color: var(--ink); }

.related h2 {
  font-family: var(--serif);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
}

.sidebar .ad-box { margin-bottom: 24px; }
.sidebar h3 {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
}
.sidebar li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sidebar li a { font-weight: 600; line-height: 1.3; }

/* Category */
.cat-hero { padding: 10px 0 6px; }
.cat-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.03em;
}

/* Admin */
.admin-wrap { width: min(100% - 24px, 920px); margin: 28px auto 60px; }
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
  margin-bottom: 20px;
}
.admin-card h1, .admin-card h2 { font-family: var(--serif); margin-bottom: 8px; }
.muted { color: var(--muted); }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type="text"], input[type="url"], input[type="password"], input[type="date"], input[type="email"], select, textarea {
  width: 100%;
  border: 1px solid #d5d5d5;
  padding: 10px 12px;
  background: #fff;
  margin-bottom: 14px;
}
.form-row { display: grid; gap: 12px; }
@media (min-width: 700px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.btn {
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
}
.btn:hover { background: var(--red); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn.danger { background: #fff; color: #9b1c1c; border: 1px solid #9b1c1c; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.status { display: none; padding: 10px 12px; margin: 10px 0; }
.status.show { display: block; }
.status.ok { background: #ecfdf3; color: #146c43; }
.status.err { background: #fef2f2; color: #9b1c1c; }
.repeat-item { border: 1px dashed #d5d5d5; padding: 12px; margin-bottom: 10px; }
.article-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.check { display: flex; gap: 8px; align-items: center; margin: 8px 0 16px; }
.check input { width: auto; margin: 0; }

.empty { color: var(--muted); padding: 24px 0; }

@media (max-width: 430px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  .lead h1 { font-size: 1.55rem; }
  .side-item { grid-template-columns: 92px 1fr; }
  .side-item img { width: 92px; height: 72px; }
}

/* ========== HOMEPAGE FEED (editorial density) ========== */
body[data-page="home"] main {
  padding: 0;
}
body[data-page="home"] .ad-leader { display: none; }

.hero-story a { color: inherit; display: block; }
.hero-story .story-media {
  position: relative;
  background: #eee;
}
.hero-story img {
  width: 100%;
  height: auto;
  max-height: 82vh;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #f4f4f4;
}
.hero-copy {
  padding: 20px 18px 8px;
}
.hero-story h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.35rem, 5.4vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0 0 12px;
}
.hero-story .excerpt {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  max-width: none;
}

.story-media { position: relative; background: #eee; }
.story-label {
  margin: 12px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6a6a6a;
}
.story-label-accent {
  color: var(--red);
  font-weight: 700;
}

.story-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 16px;
  padding: 32px 18px 24px;
}
.story a { color: inherit; display: block; }
.story img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #f4f4f4;
}
.story.thumb img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}
.story h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.story a:hover h3,
.hero-story a:hover h1 { color: var(--ink); }

.ad-slot.discreet {
  min-height: 70px;
  margin: 12px 18px 8px;
  font-size: 11px;
}

@media (min-width: 430px) {
  .story h3 { font-size: 1.02rem; }
  .hero-copy { padding: 24px 20px 12px; }
  .story-feed { padding: 36px 20px 28px; gap: 36px 18px; }
}

@media (min-width: 768px) {
  .hero-copy,
  .story-feed {
    width: min(100%, 820px);
    margin-inline: auto;
  }
  .story-feed { padding: 40px 20px; gap: 40px 20px; }
  .hero-story h1 { font-size: 2rem; line-height: 1.18; }
  .story h3 { font-size: 1.1rem; }
  .ad-slot.discreet { width: min(100% - 40px, 820px); margin-inline: auto; }
}

@media (min-width: 1024px) {
  .hero-copy,
  .story-feed,
  .ad-slot.discreet {
    width: min(100%, 1080px);
  }
}

@media (max-width: 374px) {
  .hero-copy { padding: 18px 16px 8px; }
  .story-feed { gap: 28px 16px; padding: 28px 16px 20px; }
}

/* Homepage editorial variety */
.home-block { padding: 8px 0 12px; }
.home-block-title {
  width: min(100% - 36px, 1080px);
  margin: 28px auto 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #111;
  border-bottom: 1px solid #111;
  padding-bottom: 8px;
}
.secondary-row {
  display: grid;
  gap: 28px;
  padding: 8px 18px 12px;
}
.story.photo-led img { max-height: none; }
.story.wide { grid-column: 1 / -1; }
.story.wide h3 { font-size: 1.35rem; line-height: 1.2; max-width: 40rem; }
.trending-list {
  width: min(100% - 36px, 1080px);
  margin: 0 auto 36px;
  counter-reset: trend;
}
.trending-list a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
}
.trending-list a::before {
  counter-increment: trend;
  content: counter(trend);
  font-weight: 800;
  color: var(--red);
}
.trending-list strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.25;
}
@media (min-width: 700px) {
  .secondary-row {
    grid-template-columns: 1.15fr .85fr;
    width: min(100% - 40px, 1080px);
    margin-inline: auto;
    align-items: start;
  }
}

/* ========== HOME EDITION COMPOSITION ========== */
.home-edition {
  padding-bottom: 48px;
}
.ed a { color: inherit; display: block; }
.ed-photo {
  margin: 0;
  background: #f3f3f3;
}
.ed-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #f3f3f3;
}
.ed-copy {
  padding: 18px 20px 8px;
}
.ed-hero .ed-copy,
.ed-feature .ed-copy,
.ed-secondary .ed-copy {
  padding: 20px 20px 36px;
}
.ed-hero h1,
.ed-feature h2,
.ed-secondary h2,
.ed-pair h2,
.ed-text h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1.2;
}
.ed-hero h1 {
  font-size: clamp(1.45rem, 6.2vw, 2.15rem);
  margin-bottom: 12px;
}
.ed-feature h2 {
  font-size: clamp(1.28rem, 5vw, 1.7rem);
  margin-bottom: 10px;
}
.ed-secondary h2 {
  font-size: clamp(1.2rem, 4.6vw, 1.5rem);
  margin-bottom: 8px;
}
.ed-pair h2 {
  font-size: 1.05rem;
  margin: 14px 20px 28px;
  line-height: 1.22;
}
.ed-copy p,
.ed-text p {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}
.ed-section {
  display: flex;
  flex-direction: column;
}
.ed-kicker {
  width: min(100% - 40px, 1080px);
  margin: 12px auto 18px;
  padding: 28px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #111;
  border-bottom: 1px solid #111;
}
.ed-pair {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
}
.ed-text {
  padding: 8px 20px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 16px;
}
.ed-text h2 { font-size: 1.25rem; margin-bottom: 10px; }
.ed-trend {
  list-style: none;
  width: min(100% - 40px, 1080px);
  margin: 0 auto 40px;
  padding: 0;
  counter-reset: t;
}
.ed-trend li {
  counter-increment: t;
  border-bottom: 1px solid var(--line);
}
.ed-trend a {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 12px;
  padding: 16px 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.3;
}
.ed-trend a::before {
  content: counter(t);
  color: var(--red);
  font-weight: 800;
}
body[data-page="home"] .ad-slot.discreet {
  margin: 8px 20px 28px;
}

@media (min-width: 700px) {
  .ed-copy,
  .ed-hero .ed-copy,
  .ed-feature .ed-copy,
  .ed-secondary .ed-copy {
    width: min(100% - 48px, 800px);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .ed-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    width: min(100% - 48px, 1080px);
    margin: 8px auto 28px;
  }
  .ed-pair h2 { margin: 14px 0 0; }
  .ed-text {
    width: min(100% - 48px, 800px);
    margin-inline: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .ed-hero h1 { font-size: 2.4rem; }
  .ed-photo img { background: #f6f6f6; }
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  padding: 12px 20px 40px;
}
.pager a,
.pager span {
  min-width: 36px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
}
.pager .is-current {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.story-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.story-pager a {
  color: inherit;
  font-weight: 700;
  line-height: 1.3;
}
.story-pager span:first-child,
.story-pager a span {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.story-pager .is-next { text-align: right; }
.related { margin-top: 12px; }
.related h2 { font-size: 1.1rem; margin-bottom: 12px; }

/* Homepage image hierarchy */
.ed-hero .ed-photo img {
  width: 100%;
  max-height: min(380px, 46vh);
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.ed-kicker.is-alert {
  color: var(--red);
  border-bottom-color: var(--red);
}
.ed-break,
.ed-trend-rows {
  width: min(100% - 40px, 720px);
  margin: 0 auto 36px;
  display: grid;
  gap: 22px;
}
.ed-row a {
  display: grid;
  gap: 14px;
  align-items: start;
  color: inherit;
}
.ed-row-break a { grid-template-columns: 132px 1fr; }
.ed-row-trend a { grid-template-columns: 72px 1fr; }
.ed-row-photo {
  margin: 0;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-row-photo img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.ed-row-break .ed-row-photo img { max-height: 96px; }
.ed-row-trend .ed-row-photo img { max-height: 56px; }
.ed-row h3 {
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.ed-row-trend h3 { font-size: 0.92rem; }

.ed-compact {
  width: min(100% - 40px, 1080px);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 16px;
}
.ed-compact .ed-photo {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ed-compact .ed-photo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  object-position: center top;
}
.ed-compact h2 {
  font-size: 0.95rem;
  margin: 10px 0 0;
  line-height: 1.25;
}
.ed-compact .ed-copy { padding: 10px 0 0; }
.ed-hero .ed-copy { padding-bottom: 28px; }
.ed-kicker { margin-top: 20px; margin-bottom: 20px; }

@media (min-width: 700px) {
  .ed-row-break a { grid-template-columns: 180px 1fr; }
  .ed-row-trend a { grid-template-columns: 88px 1fr; }
  .ed-row-break .ed-row-photo img { max-height: 120px; }
  .ed-row-trend .ed-row-photo img { max-height: 64px; }
  .ed-compact { gap: 36px 24px; }
  .ed-compact .ed-photo img { max-height: 140px; }
}

/* Final editorial homepage */
.home-edition { padding: 8px 0 48px; }
.band {
  width: min(100% - 40px, 980px);
  margin: 0 auto 48px;
}
.band-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin: 0 0 22px;
}
.band-title.is-red {
  color: var(--red);
  border-bottom-color: var(--red);
}
.preview { margin-bottom: 28px; }
.preview-media { display: block; background: #f3f3f3; }
.preview-media img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.preview-copy h1,
.preview-copy h2 {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  margin: 12px 0 8px;
}
.preview-copy h1 { font-size: clamp(1.4rem, 5.8vw, 2.1rem); }
.preview-copy h2 { font-size: 1.15rem; }
.preview-copy .excerpt {
  color: #444;
  line-height: 1.6;
  margin-bottom: 10px;
}
.read-more {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.read-more:hover { color: var(--red-dark); }

.preview-hero .preview-media img { max-height: none; width: 100%; height: auto; }
.preview-break .preview-media img { max-height: 220px; }
.preview-feature .preview-media img { max-height: 240px; }
.preview-trend .preview-media,
.preview-support .preview-media,
.preview-latest .preview-media,
.preview-card .preview-media,
.preview-row .preview-media {
  max-width: 220px;
}
.preview-trend,
.preview-support,
.preview-latest,
.preview-row,
.preview-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: start;
}
.preview-trend .preview-media,
.preview-support .preview-media { max-width: 200px; }
.preview-trend .preview-media img,
.preview-support .preview-media img { max-height: 140px; }
.preview-latest .preview-media img,
.preview-card .preview-media img,
.preview-row .preview-media img { max-height: 130px; }
.preview-text { grid-template-columns: 1fr; }
.preview-hero,
.preview-break,
.preview-feature { display: block; }
.preview-hero .preview-copy,
.preview-break .preview-copy,
.preview-feature .preview-copy { padding-top: 4px; }

.stack-break,
.stack-support,
.stack-trend,
.stack-latest,
.stack-grid,
.stack-news,
.stack-rows { display: grid; gap: 8px; }

.comments {
  margin: 36px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.comments h2 {
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.comments-lead { color: var(--muted); margin: 8px 0 20px; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment header { display: flex; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.comment time { color: var(--muted); font-size: 13px; }
.comment-form { display: grid; gap: 12px; margin-top: 20px; }
.comment-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--line);
  padding: 10px 12px;
  width: 100%;
}
.comment-form button {
  justify-self: start;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}
.comment-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

@media (max-width: 699px) {
  .preview-trend,
  .preview-support,
  .preview-latest,
  .preview-row,
  .preview-card {
    grid-template-columns: 1fr;
  }
  .preview-trend .preview-media,
  .preview-support .preview-media,
  .preview-latest .preview-media,
  .preview-card .preview-media,
  .preview-row .preview-media {
    max-width: 100%;
  }
  .preview-break .preview-media img { max-height: 240px; }
  .preview-trend .preview-media img { max-height: 180px; }
}

@media (min-width: 700px) {
  .stack-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .stack-grid .preview-card { grid-template-columns: 1fr; }
  .stack-grid .preview-media { max-width: none; }
}

/* Balanced editorial image + text rows */
.preview-hero,
.preview-break,
.preview-feature {
  display: grid;
  grid-template-columns: 54% 1fr;
  gap: 16px;
  align-items: start;
}
.preview-hero { grid-template-columns: 1fr; }
.preview-hero .preview-media img {
  max-height: 210px;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.preview-row,
.preview-trend,
.preview-support,
.preview-latest,
.preview-card,
.preview-break {
  display: grid;
  grid-template-columns: 52% 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 26px;
}
.preview-row .preview-media,
.preview-trend .preview-media,
.preview-support .preview-media,
.preview-latest .preview-media,
.preview-card .preview-media,
.preview-break .preview-media {
  max-width: none;
}
.preview-row .preview-media img,
.preview-trend .preview-media img,
.preview-support .preview-media img,
.preview-latest .preview-media img,
.preview-card .preview-media img,
.preview-break .preview-media img {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  object-position: center top;
}
.preview-copy h1 { font-size: 1.35rem; }
.preview-copy h2 { font-size: 1.02rem; line-height: 1.25; }
.band { margin-bottom: 40px; }

@media (max-width: 699px) {
  .preview-trend,
  .preview-support,
  .preview-latest,
  .preview-row,
  .preview-card,
  .preview-break {
    grid-template-columns: 52% 1fr;
  }
  .preview-trend .preview-media,
  .preview-support .preview-media,
  .preview-latest .preview-media,
  .preview-card .preview-media,
  .preview-row .preview-media,
  .preview-break .preview-media {
    max-width: none;
  }
}

@media (min-width: 700px) {
  .preview-row,
  .preview-trend,
  .preview-support,
  .preview-latest,
  .preview-card,
  .preview-break {
    grid-template-columns: 240px 1fr;
  }
  .preview-hero { grid-template-columns: 1fr; }
  .preview-hero .preview-media img { max-height: none; width: 100%; height: auto; }
}

/* Modest row-image size only */
.home-edition .preview-row,
.home-edition .preview-trend,
.home-edition .preview-support,
.home-edition .preview-latest,
.home-edition .preview-card,
.home-edition .preview-break,
.stack-latest .preview-latest,
.stack-latest .preview-row {
  grid-template-columns: 160px 1fr;
}
.home-edition .preview-row .preview-media,
.home-edition .preview-trend .preview-media,
.home-edition .preview-support .preview-media,
.home-edition .preview-latest .preview-media,
.home-edition .preview-card .preview-media,
.home-edition .preview-break .preview-media,
.stack-latest .preview-media {
  width: 160px;
  max-width: 160px;
}
.home-edition .preview-row .preview-media img,
.home-edition .preview-trend .preview-media img,
.home-edition .preview-support .preview-media img,
.home-edition .preview-latest .preview-media img,
.home-edition .preview-card .preview-media img,
.home-edition .preview-break .preview-media img,
.stack-latest .preview-media img {
  width: 160px;
  max-width: 160px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (min-width: 700px) {
  .home-edition .preview-row,
  .home-edition .preview-trend,
  .home-edition .preview-support,
  .home-edition .preview-latest,
  .home-edition .preview-card,
  .home-edition .preview-break,
  .stack-latest .preview-latest,
  .stack-latest .preview-row {
    grid-template-columns: 200px 1fr;
  }
  .home-edition .preview-row .preview-media,
  .home-edition .preview-trend .preview-media,
  .home-edition .preview-support .preview-media,
  .home-edition .preview-latest .preview-media,
  .home-edition .preview-card .preview-media,
  .home-edition .preview-break .preview-media,
  .stack-latest .preview-media,
  .home-edition .preview-row .preview-media img,
  .home-edition .preview-trend .preview-media img,
  .home-edition .preview-support .preview-media img,
  .home-edition .preview-latest .preview-media img,
  .home-edition .preview-card .preview-media img,
  .home-edition .preview-break .preview-media img,
  .stack-latest .preview-media img {
    width: 200px;
    max-width: 200px;
  }
}


/* FINAL HOMEPAGE HERO FIX: make the first homepage story truly full-width. */
body[data-page="home"] .stack-latest > .preview:first-child { display:block; }
body[data-page="home"] .stack-latest > .preview:first-child .preview-media { width:100% !important; max-width:none !important; }
body[data-page="home"] .stack-latest > .preview:first-child .preview-media img { width:100% !important; max-width:100% !important; height:auto !important; max-height:none !important; object-fit:contain !important; }
body[data-page="home"] .preview-hero { width:100% !important; max-width:none !important; }
body[data-page="home"] .preview-hero .preview-media, body[data-page="home"] .preview-hero .preview-media img { width:100% !important; max-width:100% !important; }

/* FINAL HOMEPAGE HERO IMAGE SIZE FIX: mobile and desktop use full content width with natural aspect ratio. */
body[data-page="home"] .home-edition .preview-hero .preview-media {
  width: 100% !important;
  max-width: none !important;
}
body[data-page="home"] .home-edition .preview-hero .preview-media img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center top !important;
  display: block !important;
}
