/* ================================================
   THE NEWS FOLIO — Premium additions
   Loaded after style.css. Only ADDS to the existing design;
   the homepage layout itself stays the same.
   ================================================ */

/* ---------- Fresh news time (last 3 hours) ---------- */
.fresh { color: #c8102e; font-weight: 600; }

/* ---------- Trending line under the menu (homepage) ---------- */
.trending-strip { border-bottom: 1px solid var(--gray-300); background: var(--white); }
.trending-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 9px 24px;
  display: flex; align-items: center; gap: 18px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; white-space: nowrap;
}
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: #c8102e; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.trending-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c8102e; }
.trending-inner a { font-size: 13px; color: var(--gray-600); flex-shrink: 0; }
.trending-inner a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Sub-category chips next to section heading ---------- */
.section-header { flex-wrap: wrap; align-items: center; }
.sec-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.section-header .sec-chips a {
  font-size: 11px; font-weight: 600; color: var(--gray-600);
  border: 1px solid var(--gray-300); border-radius: 999px; padding: 3px 10px; line-height: 1.4;
}
.section-header .sec-chips a:hover { border-color: var(--black); color: var(--black); }
.section-header .sec-more { margin-left: auto; }

/* ---------- Image placeholder (no image / broken image) ---------- */
.img-fallback {
  position: relative;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200)) !important;
}
.img-fallback::after {
  content: "THE NEWS FOLIO";
  text-transform: uppercase;
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 13px;
  letter-spacing: 2px; color: var(--gray-400);
}
.sc-thumb.img-fallback, .thumb.img-fallback { aspect-ratio: 16/10; }
.hero-img.img-fallback { aspect-ratio: 16/9; }

/* ---------- Smooth image hover on hero + side stories ---------- */
.hero-img img, .left-story .thumb img { transition: transform .35s ease; }
.col-center a:hover .hero-img img, .left-story a:hover .thumb img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) {
  .hero-img img, .left-story .thumb img, .story-card .sc-thumb img { transition: none; }
}

/* ================================================
   TABLET (≤1024px): right column was hidden → show it under the hero
   ================================================ */
@media (max-width: 1024px) {
  .hero-3col .col-right {
    display: grid; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; column-gap: 24px;
    padding: 18px 0 0; margin-top: 18px; border-left: 0; border-top: 1px solid var(--gray-300);
  }
  .hero-3col .col-right .right-story:first-child { padding-top: 13px; }
  .hero-3col .col-right .right-story:nth-child(-n+2) { padding-top: 0; }
}

/* ================================================
   MOBILE (≤768px): left + right columns were hidden → show them as a compact list
   ================================================ */
@media (max-width: 768px) {
  .hero-3col .col-center { order: -1; }
  .hero-3col .col-left,
  .hero-3col .col-right {
    display: block; grid-column: auto; padding: 0; border: 0; margin: 0;
  }
  .hero-3col .col-left { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gray-300); }
  .hero-3col .col-right { margin-top: 0; }

  /* Left stories: text left, small photo right */
  .left-story {
    display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: 12px;
    padding: 14px 0; margin: 0; border-bottom: 1px solid var(--gray-200);
  }
  .left-story:last-child { border-bottom: 1px solid var(--gray-200); padding-bottom: 14px; }
  .left-story > a.thumb {
    grid-column: 2; grid-row: 1 / span 3; align-self: start;
    width: 100%; aspect-ratio: auto; margin: 0; background: none; overflow: visible;
  }
  .left-story > a.thumb .thumb { width: 100%; margin: 0; aspect-ratio: 1; }
  .left-story .cat, .left-story .title, .left-story .meta { grid-column: 1; }
  .left-story .title { font-size: 16px; }

  .right-story { padding: 14px 0; }
  .right-story:first-child { padding-top: 14px; }
  .hero-3col .col-right .right-story:nth-child(-n+2) { padding-top: 14px; }
}

@media (max-width: 480px) {
  .trending-inner { padding: 8px 12px; gap: 14px; }
  .section-header .sec-more { margin-left: 0; }
  .left-story { grid-template-columns: minmax(0, 1fr) 88px; }
}

/* ---------- Article: Updated + Published times ---------- */
.meta-pub-date .meta-updated { display: block; color: var(--black); font-weight: 600; }
.meta-pub-date .meta-published { display: block; }

/* ---------- Mobile header: keep logo + buttons on one line ---------- */
.btn-signin, .btn-register { white-space: nowrap; }
@media (max-width: 480px) {
  .site-logo img { height: 28px !important; max-width: 46vw; object-fit: contain; }
  .header-inner { gap: 8px; }
  .btn-register { padding: 6px 10px; font-size: 11px; }
  .btn-signin { font-size: 12px; }
}
@media (max-width: 400px) {
  .btn-register { display: none; }
}

/* ================================================
   LIVE BLOG
   ================================================ */
.live-tag {
  display: inline-flex; align-items: center; gap: 4px;
  color: #c8102e; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #c8102e; animation: pulse 1.5s infinite; }
.live-badge.live-now { flex-wrap: wrap; }
.live-badge .live-sub { font-size: 12px; color: var(--gray-500); margin-left: 4px; }

/* Key points */
.key-points { border: 1px solid var(--gray-300); border-left: 4px solid var(--black); background: var(--gray-100); padding: 16px 20px; margin: 0 0 24px; }
.kp-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.key-points ul { margin: 0 0 0 18px; list-style: disc; }
.key-points li { font-size: 16px; line-height: 1.55; margin-bottom: 6px; font-family: var(--font-body, Georgia, serif); }

/* Timeline */
.live-blog { margin: 8px 0 32px; border-top: 3px solid #c8102e; padding-top: 14px; }
.lb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.lb-title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin: 0; }
.lb-title .live-dot { width: 10px; height: 10px; }
.lb-count { font-size: 12px; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.lb-ended { background: var(--gray-100); border: 1px solid var(--gray-300); padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.lb-new {
  position: sticky; top: 70px; z-index: 5; display: block; margin: 0 auto 12px;
  background: #c8102e; color: #fff; border: 0; border-radius: 999px; padding: 8px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.lb-new[hidden] { display: none; }
.lb-empty { font-size: 14px; color: var(--gray-500); padding: 12px 0; }
.lu { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--gray-200); scroll-margin-top: 90px; }
.lu-time { font-size: 13px; font-weight: 700; color: #c8102e; font-variant-numeric: tabular-nums; line-height: 1.4; }
.lu-flag { display: block; margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: .5px; color: var(--black); }
.lu-title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
.lu-body { font-family: var(--font-body, Georgia, serif); font-size: 16px; line-height: 1.65; }
.lu-body p { margin-bottom: 10px; }
.lu-body ul, .lu-body ol { margin: 0 0 10px 20px; }
.lu-body ul { list-style: disc; } .lu-body ol { list-style: decimal; }
.lu-body a { text-decoration: underline; text-underline-offset: 3px; }
.lu-body blockquote { border-left: 3px solid var(--black); padding-left: 12px; font-style: italic; margin: 10px 0; }
.lu-img { margin: 4px 0 10px; }
.lu-img img { width: 100%; height: auto; display: block; }
.lu-link { font-size: 11px; color: var(--gray-500); }
.lu-link:hover { color: var(--black); }
.lu-pinned { background: var(--gray-100); padding: 18px 14px; border: 1px solid var(--gray-300); border-left: 4px solid var(--black); margin-bottom: 4px; }
.lu-key .lu-title { color: #c8102e; }
.lu-fresh { animation: luIn .6s ease; }
@keyframes luIn { from { background: #fff3f3; } to { background: transparent; } }
@media (max-width: 600px) {
  .lu { grid-template-columns: 1fr; gap: 4px; }
  .lu-time { display: flex; gap: 8px; align-items: baseline; }
  .lu-flag { margin: 0; }
  .lb-new { top: 60px; }
}
@media (prefers-reduced-motion: reduce) { .lu-fresh, .live-tag::before { animation: none; } }

/* ================================================
   HOMEPAGE TOP WIDGETS
   ================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Breaking strip (only when a breaking story is active) */
.breaking-strip {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: #c8102e; color: #fff; padding: 10px 16px; text-decoration: none;
}
.breaking-strip:hover .bs-title { text-decoration: underline; text-underline-offset: 3px; }
.bs-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; background: #fff; color: #c8102e; padding: 3px 8px; flex-shrink: 0; }
.bs-title { font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 16px; line-height: 1.3; flex: 1; min-width: 0; }
.bs-time { font-size: 12px; opacity: .85; flex-shrink: 0; }

/* Live lead: latest updates under the headline */
.lead-updates { list-style: none; margin: 12px 0 10px; padding: 0; border-top: 1px solid var(--gray-300); }
.lead-updates li { border-bottom: 1px solid var(--gray-200); }
.lead-updates a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; color: var(--black); }
.lead-updates time { font-size: 12px; font-weight: 700; color: #c8102e; font-variant-numeric: tabular-nums; padding-top: 2px; }
.lead-updates span { font-size: 14px; line-height: 1.4; font-weight: 600; }
.lead-updates a:hover span { text-decoration: underline; }
.lead-follow { display: inline-block; font-size: 13px; font-weight: 700; color: #c8102e; }

/* Column heading (right column "Latest") */
.col-head {
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  border-bottom: 2px solid var(--black); padding-bottom: 6px; margin-bottom: 4px;
}
.hero-3col .col-right .col-head + .right-story { padding-top: 13px; }

/* Most read */
.mr-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.mr-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; align-items: start; }
.mr-num { font-family: var(--font-heading, Georgia, serif); font-size: 34px; font-weight: 700; line-height: 1; color: var(--gray-400); }
.mr-cat { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px; }
.mr-title { font-family: var(--font-heading, Georgia, serif); font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--black); display: block; }
.mr-title:hover { text-decoration: underline; }

/* Newsletter band */
.nl-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--black); color: #fff; padding: 24px 28px; margin: 24px 0; }
.nl-band-title { font-family: var(--font-heading, Georgia, serif); font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.nl-band p { color: #bbb; font-size: 14px; margin: 0; }
.nl-band-form { flex: 1 1 320px; max-width: 460px; }
.nl-band-form form { display: flex; }
.nl-band-form input { flex: 1; min-width: 0; border: 0; padding: 11px 12px; font-size: 14px; font-family: inherit; }
.nl-band-form button { border: 0; background: #fff; color: var(--black); font-weight: 700; font-size: 13px; padding: 0 18px; cursor: pointer; font-family: inherit; }
.nl-band-form button:hover { background: var(--gray-200); }
.nl-band-msg { display: none; font-size: 12px; margin-top: 8px; }

@media (max-width: 1024px) {
  .mr-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-3col .col-right .col-head { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .mr-list { grid-template-columns: 1fr; gap: 0; }
  .mr-list li { padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
  .mr-num { font-size: 26px; }
  .breaking-strip { flex-wrap: wrap; gap: 6px 10px; padding: 10px 12px; }
  .bs-title { flex-basis: 100%; order: 3; font-size: 15px; }
  .nl-band { padding: 20px 16px; }
  .hero-3col .col-right .col-head { margin-top: 18px; }
}
.col-center .live-tag { display: none; }

/* ================================================
   AD SLOTS (shown only when ad code is added in Admin → Settings → Ads)
   ================================================ */
.ad-slot { text-align: center; margin: 0 0 24px; overflow: hidden; }
.ad-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-500); margin-bottom: 6px; }
.ad-wrap { max-width: var(--max-width); margin: 16px auto 0; padding: 0 24px; }
.ad-wrap .ad-slot { margin-bottom: 0; }
.ad-wrap-home { padding: 24px 0; margin: 0; border-bottom: 1px solid var(--gray-300); }
.ad-wrap-footer { margin: 24px auto; }
.art-body .ad-slot { margin: 28px 0; }

/* Fallback: "Latest News" list in an empty sidebar slot */
.sb-latest { margin-bottom: 28px; }
.sb-latest ul { list-style: none; margin: 0; padding: 0; }
.sb-latest li { padding: 10px 0; border-bottom: 1px solid var(--gray-200); }
.sb-latest li:last-child { border-bottom: 0; }
.sbl-time { display: block; font-size: 11px; color: var(--gray-500); margin-bottom: 3px; }
.sb-latest a { font-family: var(--font-heading, Georgia, serif); font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--black); }
.sb-latest a:hover { text-decoration: underline; }
.sidebar-sticky .nl-sidebar-box { margin-bottom: 28px; }

/* Fallback: "Also read" inside an article */
.also-read { border-top: 2px solid var(--black); border-bottom: 1px solid var(--gray-300); padding: 12px 0; margin: 26px 0; font-family: var(--font-ui, Arial, sans-serif); }
.ar-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: #c8102e; margin-bottom: 4px; }
.also-read a { font-family: var(--font-heading, Georgia, serif); font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--black); text-decoration: none !important; }
.also-read a:hover { text-decoration: underline !important; }
@media (max-width: 768px) { .ad-wrap { padding: 0 16px; } }

/* "More top stories" under the lead */
.lead-more { margin-top: 18px; }
.lm-item { display: block; padding: 11px 0; border-bottom: 1px solid var(--gray-200); color: var(--black); }
.lm-item:last-child { border-bottom: 0; }
.lm-cat { display: block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gray-500); margin-bottom: 3px; }
.lm-title { display: block; font-family: var(--font-heading, Georgia, serif); font-size: 16px; font-weight: 700; line-height: 1.35; }
.lm-item:hover .lm-title { text-decoration: underline; }
.lm-time { display: block; font-size: 11px; color: var(--gray-500); margin-top: 4px; }

/* ================================================
   HOMEPAGE SECTION LAYOUTS (Admin → Settings → Homepage)
   ================================================ */
.hs .section-header h2 a { color: inherit; font-size: inherit; font-weight: inherit; }
.hs .section-header h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hs-img { position: relative; overflow: hidden; background: var(--gray-200); }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
a:hover > .hs-img img, .hs-spot a:hover .hs-img img { transform: scale(1.03); }
.hs-16x9 { aspect-ratio: 16 / 9; }
.hs-16x10 { aspect-ratio: 16 / 10; }
.hs-cat { font-size: 10px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gray-500); margin: 10px 0 5px; }
.hs-title { display: block; font-family: var(--font-heading, Georgia, serif); font-weight: 700; font-size: 16px; line-height: 1.32; color: var(--black); }
a.hs-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.hs-title-lg { font-size: 24px; line-height: 1.22; }
.hs-title-xl { font-size: 30px; line-height: 1.18; letter-spacing: -.2px; }
.hs-excerpt { font-size: 15px; line-height: 1.55; color: var(--gray-600); margin: 8px 0 0; }
.hs-meta { font-size: 11px; color: var(--gray-500); margin-top: 7px; }
.hs-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; }

/* 1. Lead + list */
.hs-lead .hs-cat { margin-top: 12px; }
.hs-list { display: flex; flex-direction: column; }
.hs-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.hs-row:first-child { padding-top: 0; }
.hs-row:last-child { border-bottom: 0; }
.hs-row .hs-cat { margin-top: 0; }
.hs-thumb { aspect-ratio: 1; }

/* 2. Spotlight */
.hs-spot a { display: block; position: relative; color: #fff; }
.hs-spot-img { aspect-ratio: 16 / 10; }
.hs-spot-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82) 100%); }
.hs-spot-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; z-index: 1; }
.hs-spot .hs-cat, .hs-spot .hs-meta { color: rgba(255,255,255,.8); }
.hs-spot .news-label, .hs-spot .live-tag { color: #fff; }
.hs-spot .hs-title { color: #fff; }
.hs-spot a:hover .hs-title { text-decoration: underline; text-underline-offset: 4px; }
.hs-spot .img-fallback::after { color: var(--gray-500); }
.hs-stack { display: flex; flex-direction: column; gap: 16px; }
.hs-side { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.hs-side:last-child { border-bottom: 0; padding-bottom: 0; }
.hs-side-img { aspect-ratio: 4 / 3; }
.hs-side .hs-cat { margin-top: 0; }

/* Mosaic */
.hs-grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hs-quad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; align-content: start; }
.hs-title-sm { font-size: 15px; }
.hs-title-md { font-size: 19px; line-height: 1.28; }

/* Center lead */
.hs-center3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.hs-col { display: flex; flex-direction: column; gap: 20px; }
.hs-col .hs-card + .hs-card { border-top: 1px solid var(--gray-200); padding-top: 18px; }
.hs-center-lead { border-left: 1px solid var(--gray-300); border-right: 1px solid var(--gray-300); padding: 0 24px; }

/* Feature */
.hs-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hs-feature-text .hs-cat { margin-top: 0; }
.hs-under3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gray-300); }
.hs-under3 .hs-cat { margin-top: 0; }

/* Three columns */
.hs-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

/* Compact list */
.hs-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.hs-compact .hs-row { grid-template-columns: 88px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
.hs-compact .hs-row:first-child, .hs-compact .hs-row:nth-child(2) { padding-top: 0; }
.hs-compact .hs-row:last-child, .hs-compact .hs-row:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.hs-thumb-sm { aspect-ratio: 1; }

/* 5. Headlines */
.hs-textlead .hs-img { margin-bottom: 4px; }
.hs-textlead .hs-cat { margin-top: 12px; }
.hs-textlead .hs-excerpt { font-size: 16px; }
.hs-numbered { list-style: none; margin: 0; padding: 0; counter-reset: hsn; display: grid; grid-template-columns: 1fr; }
.hs-numbered li { counter-increment: hsn; position: relative; padding: 12px 0 12px 42px; border-bottom: 1px solid var(--gray-200); }
.hs-numbered li:first-child { padding-top: 0; }
.hs-numbered li:last-child { border-bottom: 0; }
.hs-numbered li::before { content: counter(hsn, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--font-heading, Georgia, serif); font-size: 20px; font-weight: 700; color: var(--gray-400); line-height: 1; }
.hs-numbered li:first-child::before { top: 0; }
.hs-numbered .hs-cat { margin-top: 0; }

/* Tablet */
@media (max-width: 1024px) {
  .hs-grid { grid-template-columns: 1fr; gap: 22px; }
  .hs-center3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hs-center-lead { grid-column: 1 / -1; order: -1; border: 0; padding: 0; }
  .hs-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-three .hs-card:nth-child(3) { display: none; }
  .hs-feature { grid-template-columns: 1fr; gap: 0; }
  .hs-feature-text .hs-cat { margin-top: 12px; }
  .hs-spot-img { min-height: 0; aspect-ratio: 16 / 9; }
  .hs-stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .hs-side { grid-template-columns: 1fr; border-bottom: 0; padding-bottom: 0; }
  .hs-side .hs-cat { margin-top: 10px; }
}
/* Mobile */
@media (max-width: 768px) {
  .hs-title-lg { font-size: 21px; }
  .hs-title-xl { font-size: 24px; }
  .hs-stack { grid-template-columns: 1fr; gap: 0; }
  .hs-side { grid-template-columns: minmax(0, 1fr) 96px; padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
  .hs-side > a { order: 2; }
  .hs-side-img { aspect-ratio: 1; }
  .hs-side .hs-cat { margin-top: 0; }
  .hs-spot-text { padding: 16px; }
  .hs-quad { grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .hs-center3, .hs-three, .hs-under3, .hs-compact { grid-template-columns: 1fr; }
  .hs-three .hs-card:nth-child(3) { display: grid; }
  .hs-col { gap: 0; }
  .hs-col .hs-card, .hs-three .hs-card { display: grid; grid-template-columns: minmax(0, 1fr) 96px; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--gray-200); }
  .hs-col .hs-card > a:first-child, .hs-three .hs-card > a:first-child { grid-column: 2; grid-row: 1 / span 4; }
  .hs-col .hs-card .hs-img, .hs-three .hs-card .hs-img { aspect-ratio: 1; }
  .hs-col .hs-card .hs-cat, .hs-three .hs-card .hs-cat { margin-top: 0; }
  .hs-three .hs-excerpt { display: none; }
  .hs-under3 { gap: 0; }
  .hs-under3 article { padding: 12px 0; border-bottom: 1px solid var(--gray-200); }
  .hs-compact .hs-row:nth-child(2) { padding-top: 12px; }
  .hs-compact .hs-row:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--gray-200); }
}
@media (prefers-reduced-motion: reduce) { .hs-img img { transition: none; } }
.site-main { overflow-x: clip; }


/* Placeholder shows the category name when there is no image at all */
.img-fallback[data-label]:not([data-label=""])::after { content: attr(data-label); font-size: 15px; letter-spacing: 1.5px; }

/* ================================================
   EQUAL COLUMN HEIGHTS (no empty space at the bottom of a block)
   ================================================ */
@media (min-width: 1025px) {
  /* Hero: all three columns end on the same line */
  .hero-3col { align-items: stretch; }
  .hero-3col .col-left, .hero-3col .col-center, .hero-3col .col-right { display: flex; flex-direction: column; }
  .hero-3col .col-left .left-story { flex: 1 1 auto; display: flex; flex-direction: column; }
  .hero-3col .col-left .left-story > a.thumb { flex: 1 1 auto; display: flex; min-height: 150px; aspect-ratio: auto; background: none; margin-bottom: 10px; }
  .hero-3col .col-left .left-story > a.thumb .thumb { flex: 1; aspect-ratio: auto; height: auto; position: relative; margin-bottom: 0; }
  .hero-3col .col-left .left-story > a.thumb .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hero-3col .col-right .right-story { flex: 1 1 auto; }
}
@media (min-width: 1025px) {
  /* Sections: the big story's photo grows to match the list beside it */
  .hs-grid > .hs-lead, .hs-grid > .hs-textlead { display: flex; flex-direction: column; }
  .hs-grid > .hs-lead > a:first-child, .hs-grid > .hs-textlead > a:first-child { flex: 1 1 auto; display: flex; min-height: 0; }
  .hs-grid > .hs-lead > a:first-child .hs-img, .hs-grid > .hs-textlead > a:first-child .hs-img { flex: 1; aspect-ratio: auto; min-height: 220px; }
  .hs-grid > .hs-lead > a:first-child .hs-img img, .hs-grid > .hs-textlead > a:first-child .hs-img img { position: absolute; inset: 0; }
  .hs-grid > .hs-list:has(> :nth-child(4)), .hs-grid > .hs-stack:has(> :nth-child(3)) { justify-content: space-between; }
}

/* ================================================
   SMOOTH PAGE TRANSITIONS
   Chrome / Edge / Safari 18.2+: real cross-page transition (header stays, content fades,
   the clicked story's photo grows into the article photo). Other browsers: a soft fade-in.
   ================================================ */
@view-transition { navigation: auto; }

.site-header { view-transition-name: site-header; }
.main-nav    { view-transition-name: main-nav; }
.art-hero img { view-transition-name: tnf-img; }

::view-transition-old(root) { animation: tnf-out .16s ease-in both; }
::view-transition-new(root) { animation: tnf-in .32s cubic-bezier(.2, .7, .2, 1) both; }
::view-transition-group(tnf-img) { animation-duration: .38s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(tnf-img), ::view-transition-new(tnf-img) { height: 100%; object-fit: cover; overflow: clip; }
::view-transition-group(site-header), ::view-transition-group(main-nav) { animation: none; }
::view-transition-old(site-header), ::view-transition-old(main-nav) { display: none; }
::view-transition-new(site-header), ::view-transition-new(main-nav) { animation: none; }

@keyframes tnf-out { to { opacity: 0; } }
@keyframes tnf-in  { from { opacity: 0; transform: translateY(10px); } }

/* Browsers without cross-page transitions: gentle fade-in of the page content */
@supports not (view-transition-name: none) {
  .site-main, .article-wrap, .container { animation: tnf-in .3s cubic-bezier(.2, .7, .2, 1) both; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .site-main, .article-wrap, .container { animation: none !important; }
}
