/*
 * Mishpacha — Homepage styles
 * Loaded only on front-page. Holds all section styles previously inlined
 * in template-parts/home/*.php. Mobile overrides live in responsive.css.
 *
 * Naming convention:
 *   Section ids:  #hero-section, #section-podcasts, #section-columnists, ...
 *   Element prefixes follow the existing template classes (hero-, pod-,
 *   col-, vid-, lat-, in-, fm-, contrib-, cta-, etc.)
 */

/* =============================================================
 * HERO v4 — Magazine cover style (Hila 2026-05-18)
 * Featured: full-bleed image with text overlay (eyebrow, headline,
 * dek, CTA). Frosted-glass band + dark gradient for legibility on
 * any photo. Secondary: 3 cards with images below.
 * ============================================================= */

#hero-section {
  background: var(--paper);
  padding: 48px 0 64px;
}
#hero-section .hero-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 88px;
}

/* ── Magazine cover (featured) ── */
.hero-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  color: #fff;
  background: #1a1a1a;
  margin-bottom: 64px;
}
.hero-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.hero-cover:hover .hero-cover-img { transform: scale(1.02); }

.hero-cover-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top,
      rgba(0,0,0,0.92) 0%,
      rgba(0,0,0,0.78) 22%,
      rgba(0,0,0,0.50) 45%,
      rgba(0,0,0,0.15) 75%,
      rgba(0,0,0,0)    100%);
}

.hero-cover-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 56px clamp(32px, 5vw, 72px);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}
/* Frosted-glass band behind the text — keeps eyebrow/dek legible on any photo */
.hero-cover-content::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  background: linear-gradient(to top,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.18) 50%,
    rgba(0,0,0,0)    100%);
  z-index: -1;
  mask-image: linear-gradient(to top, #000 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 60%, transparent 100%);
}

/* Typography */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.3;
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
  flex-shrink: 0;
}

/* On dark overlay, eyebrow becomes lighter red for contrast + adds shadow */
.hero-cover .hero-eyebrow {
  color: #ff6b6e;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.hero-cover .hero-eyebrow::before { background: #ff6b6e; }

.hero-headline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: #fff;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.35);
}

.hero-dek {
  margin: 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 640px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.hero-cta-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding-bottom: 4px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  color: #ff6b6e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid currentColor;
  transition: gap .15s ease;
}
.hero-cta-link svg {
  stroke: currentColor;
  transition: transform .15s ease;
}
.hero-cover:hover .hero-cta-link { gap: 14px; }
.hero-cover:hover .hero-cta-link svg { transform: translateX(4px); }

/* ── Secondary 3-up: cards with thumbnails ── */
.hero-secondary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.hero-sec-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  background: transparent;
}
.hero-sec-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
  margin-bottom: 4px;
}
.hero-sec-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.hero-sec-card:hover .hero-sec-thumb img { transform: scale(1.03); }

.hero-sec-card .hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  gap: 6px 10px;
  line-height: 1.35;
  /* Reserve 2 lines so titles below stay aligned across cards */
  min-height: 2.7em;
  align-content: flex-start;
}
.hero-sec-card .hero-eyebrow::before { width: 22px; }

.hero-sec-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--ink);
  transition: color .15s;
  min-height: 2.4em;
}
.hero-sec-card:hover .hero-sec-title { color: var(--red); }

.hero-sec-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-sec-author {
  color: var(--ink);
  font-weight: 600;
}
.hero-sec-date {
  color: rgba(29, 5, 6, 0.55);
  letter-spacing: 0.08em;
}
.hero-sec-meta .hero-sec-author + .hero-sec-date::before {
  content: "·";
  margin-right: 6px;
  color: rgba(29, 5, 6, 0.4);
}

/* ── Tablet ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-cover { aspect-ratio: 4 / 3; margin-bottom: 48px; }
  .hero-cover-content { padding: 40px 32px; }
  .hero-headline { font-size: clamp(32px, 4.6vw, 48px); }
  .hero-dek { font-size: 17px; }
  .hero-secondary { gap: 24px; }
  .hero-sec-title { font-size: 20px; }
}

/* ── Mobile — magazine cover treatment (portrait 4:5 with overlay) ── */
@media (max-width: 767px) {
  #hero-section { padding: 24px 0 40px; }
  #hero-section .hero-inner { padding: 0 16px; }

  .hero-cover {
    aspect-ratio: 4 / 5;
    margin-bottom: 32px;
    border-radius: 6px;
  }
  .hero-cover-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  /* Heavier bottom gradient — pulls headline forward on small screens */
  .hero-cover-overlay {
    background: linear-gradient(to top,
      rgba(0,0,0,0.95) 0%,
      rgba(0,0,0,0.85) 28%,
      rgba(0,0,0,0.55) 55%,
      rgba(0,0,0,0.15) 80%,
      rgba(0,0,0,0)    100%);
  }
  .hero-cover-content {
    position: absolute;
    inset: auto 0 0 0;
    padding: 28px 22px;
    gap: 10px;
    max-width: 100%;
  }
  .hero-cover-content::before { display: none; }

  /* Restore overlay-text styling on mobile */
  .hero-cover .hero-eyebrow { color: #ff6b6e; text-shadow: 0 1px 4px rgba(0,0,0,0.5); }
  .hero-cover .hero-eyebrow::before { background: #ff6b6e; }
  .hero-headline {
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.08;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.4);
  }
  /* Hide deck on mobile — too crowded, cover should be tight */
  .hero-dek { display: none; }

  .hero-secondary {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-sec-title { font-size: 22px; }
}

/* =============================================================
 * Section inner wrapper (shared by most home sections)
 * Mobile override (16px gutter) lives in responsive.css.
 * ============================================================= */
.mish-section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 88px;
}

/* =============================================================
 * Unified section header — editorial pattern used across homepage
 * Structure:
 *   <div class="hp-sec-head">
 *     <div>
 *       <span class="hp-eyebrow">Eyebrow</span>
 *       <h2 class="hp-sec-title">Section title.</h2>
 *       <p class="hp-sec-sub">Optional subtitle.</p>
 *     </div>
 *     <a class="hp-sec-link" href="...">All articles</a>
 *   </div>
 * ============================================================= */

.hp-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}
.hp-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--red);
}

.hp-sec-title {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 680px;
}

.hp-sec-sub {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.45;
  /* Solid grey instead of rgba alpha — keeps subpixel rendering crisp
     against the paper background. Hila (2026-06-04) flagged the previous
     treatment as soft / pixelated. Bumping weight + enabling
     optimizeLegibility tightens the strokes at body size. */
  color: #4A2326;
  font-weight: 500;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  max-width: 600px;
}

.hp-sec-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  padding-bottom: 4px;
}
.hp-sec-link::after {
  content: "→";
  transition: transform .2s ease;
}
.hp-sec-link:hover::after { transform: translateX(4px); }

/* Dark-bg variant (when section sits on dark background — same head but white text) */
.hp-sec-head--ink .hp-sec-title { color: #fff; }
.hp-sec-head--ink .hp-sec-sub   { color: rgba(255,255,255,0.55); }
.hp-sec-head--ink .hp-sec-link  { color: rgba(255,255,255,0.8); }

@media (max-width: 767px) {
  .hp-sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .hp-sec-title { font-size: 26px; }
  .hp-sec-sub   { font-size: 14px; }
  .hp-sec-link  { margin-top: 4px; }
}

/* CONTRIBUTORS section removed from homepage (merged into Columnists per Hila request 2026-05-18).
 * Template file moved to /backup/home_contributors.php. */

/* =============================================================
 * PODCASTS
 * ============================================================= */

#section-podcasts {
  background: var(--paper);
  padding: 64px 0;
}

/* Grid */
#section-podcasts .pod-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 22px;
}
#section-podcasts .pod-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Card */
#section-podcasts .pod-card {
  background: #fff;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  width: 410px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s ease, transform .2s ease;
}
#section-podcasts .pod-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
#section-podcasts .pod-card:hover .pod-name { color: var(--red); }
#section-podcasts .pod-logo {
  width: 165px;
  height: 187px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #737373;
}
#section-podcasts .pod-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#section-podcasts .pod-logo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #555);
  display: flex;
  align-items: center;
  justify-content: center;
}
#section-podcasts .pod-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 179px;
  justify-content: space-between;
}
#section-podcasts .pod-card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#section-podcasts .pod-name {
  font-family: var(--font-serif);
  font-weight: 600;
  /* Normalised with .lat-card-title per Hila (2026-06-04) — was 26px and
     slightly larger than The Latest, which read as inconsistent. */
  font-size: 22px;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
  transition: color .15s ease;
}
#section-podcasts .pod-desc {
  font-family: var(--font-body);
  /* Normalised with .lat-card-excerpt — was 15px and slightly smaller. */
  font-size: 16px;
  color: rgba(29, 5, 6, 0.7);
  margin: 0;
  line-height: 1.5;
}
#section-podcasts .pod-sep {
  width: 167px;
  height: 1px;
  background: #e5e5e5;
}
#section-podcasts .pod-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#section-podcasts .pod-eps {
  display: flex;
  align-items: center;
  gap: 6px;
}
#section-podcasts .pod-eps img {
  display: block;
}
#section-podcasts .pod-eps span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #6c6c6c;
  white-space: nowrap;
}
#section-podcasts .pod-play {
  display: block;
  flex-shrink: 0;
}

/* View All — mobile only (toggle in responsive.css) */
#section-podcasts .pod-view-all-mobile {
  display: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--red);
  text-decoration: underline;
  text-transform: capitalize;
  text-align: center;
  margin-bottom: 22px;
}

/* =============================================================
 * Newsletter Signup — site-wide reusable banner
 * Used wherever "subscribe to newsletter" appears (Podcasts section,
 * article sidebar, etc).
 * ============================================================= */
.hp-newsletter {
  background: #fbf7f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 38px;
  border-radius: 4px;
}
.hp-newsletter-info {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hp-newsletter-icon {
  display: block;
  flex-shrink: 0;
  color: var(--red);
}
.hp-newsletter-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.2;
}
.hp-newsletter-desc {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.4;
  color: rgba(29, 5, 6, 0.7);
  max-width: 540px;
}
.hp-newsletter-btn {
  flex-shrink: 0;
  background: var(--red);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 13px 28px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease;
}
.hp-newsletter-btn:hover { background: var(--red-dark); }

@media (max-width: 767px) {
  .hp-newsletter {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    gap: 16px;
  }
  .hp-newsletter-info { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hp-newsletter-title { font-size: 22px; }
  .hp-newsletter-btn { align-self: stretch; text-align: center; }
}

/* =============================================================
 * Pre-Footer Red Strip — full-width brand statement
 * ============================================================= */
.hp-prefooter {
  background: var(--red);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
.hp-prefooter-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 88px;
}
.hp-prefooter-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.hp-prefooter-sub {
  margin: 18px 0 0;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}
.hp-prefooter-logo {
  /* Inline brand-mark Mishpacha within the sentence */
  display: inline-block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: none;
  vertical-align: -2px;
  padding: 0 4px;
}

@media (max-width: 767px) {
  .hp-prefooter {
    padding: 48px 0;
  }
  .hp-prefooter-inner {
    padding: 0 24px;
  }
  .hp-prefooter-sub {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  .hp-prefooter-logo { font-size: 18px; vertical-align: -1px; }
}

/* =============================================================
 * LATEST STORIES — editorial paper section
 * ============================================================= */

#section-latest {
  background: var(--paper);
  padding: 64px 0;
}
#section-latest .mish-section-inner { position: relative; }

/* Section head: red eyebrow above serif title, view-all right */
#section-latest .lat-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 18px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--divider);
}
#section-latest .lat-header-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#section-latest .lat-header-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
#section-latest .lat-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
#section-latest .lat-view-all {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
}

/* Slider */
/* Grid layout pins both arrows to the same row as the clip — guaranteed
 * identical vertical/horizontal positioning. Negative margin-inline pulls
 * the wrapper outside `.mish-section-inner`'s 88px padding so the arrows
 * sit at the visual edge instead of overlapping the cards. */
#lat-wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  column-gap: 16px;
  align-items: start;
  margin-inline: -52px;
}
#lat-clip    {
  /* `overflow: clip` lets us extend the visual region for card shadows without
   * triggering scrollbars (unlike overflow-x/overflow-y mismatches). */
  overflow: clip;
  overflow-clip-margin: 24px;
  /* Fallback for older browsers that don't support overflow: clip — pad the
   * box so shadows have room, then pull the box back with negative margin. */
  padding: 8px 0 24px;
  margin: -8px 0 -24px;
}
#lat-track   {
  display: flex;
  gap: 32px;
  transition: transform 0.35s ease;
}

/* Arrows live in grid columns 1 and 3 of #lat-wrapper. margin-top anchors
 * the arrow vertical center to the thumbnail center:
 *   8px clip top-padding + 99.5px (half of 199px 3:2 thumb at 298px card)
 *   − 18px (half of 36px arrow) = 89.5px → 89px.
 * Grid placement guarantees both arrows share an identical computed top,
 * unaffected by transform subpixel rounding or directional CSS quirks. */
.lat-arrow {
  margin: 89px 0 0;
  padding: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--ink);
  transition: border-color .15s, color .15s;
}
.lat-arrow:hover { border-color: var(--ink); color: var(--red); }
.lat-arrow svg   { stroke: currentColor; }
#lat-prev { grid-column: 1; }
#lat-next { grid-column: 3; }

/* Card */
.lat-card {
  flex-shrink: 0;
  width: 298px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: inherit;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
.lat-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.lat-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}
.lat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.lat-card:hover .lat-thumb img { transform: scale(1.03); }

.lat-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 14px;
  flex: 1;
}

.lat-cat   { padding: 0; border: 0; }
.lat-cat span {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.35;
  display: block;
  /* Reserve 2 lines so the rest of the card content lines up across cards */
  min-height: 2.7em;
}

.lat-card-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
  min-height: 2.4em;
  transition: color .15s;
}
.lat-card:hover .lat-card-title { color: var(--red); }

.lat-card-excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  color: rgba(29, 5, 6, 0.75);
  flex: 1;
}

.lat-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.lat-issue { padding: 0; border: 0; }
.lat-issue span {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.lat-date {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(29, 5, 6, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* =============================================================
 * INSIDE (publications bar + cover + 3 numbered articles)
 * ============================================================= */

#section-inside {
  /* Warm cream tint (Hila 2026-06-04, strengthened 2026-06-08) — needs to read
     as a clearly cream block against the white #page-home-hybrid wrapper, the
     original #FBF7F3 was too close to white to register visually. */
  background: #F5EEDF;
  padding: 64px 0;
}

/* Cover + articles card — warm cream "this issue" wrapper */
#section-inside .inside-content-card {
  display: flex;
  gap: 33px;
  align-items: flex-start;
  padding: 36px;
  border-radius: 4px;
  background: #fbf7f3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
#section-inside .inside-cover {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
  width: 395px;
  height: 475px;
  border-radius: 5px;
  overflow: hidden;
  background: #ddd;
}
#section-inside .inside-cover--placeholder {
  background: #e0e0e0;
}
#section-inside .inside-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Articles column */
#section-inside .inside-articles {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
#section-inside .inside-issue-label {
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--red);
}
#section-inside .inside-article-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  padding-top: 10px;
}
#section-inside .inside-article-inner {
  display: flex;
  gap: 34px;
  align-items: flex-start;
  width: 100%;
}
#section-inside .inside-num {
  flex-shrink: 0;
  width: 72px;
}
#section-inside .inside-num span {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 52px;
  color: var(--red);
  line-height: 1;
}
#section-inside .inside-article-wrap {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  min-width: 0;
}
#section-inside .inside-divider {
  width: 1px;
  height: 100px;
  background: #e0e0e0;
  flex-shrink: 0;
}
#section-inside .inside-article-body {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}
#section-inside .inside-article-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 497px;
}
#section-inside .inside-article-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  /* Normalised with .lat-card-title per Hila (2026-06-04) — was 29px and
     visibly larger than The Latest / Podcasts. */
  font-size: 22px;
  color: var(--ink);
  line-height: 1.2;
}
/* Make the headline clickable per Hila (2026-06-04) — same target as the
   "read more" button, no underline, hover tints red. */
#section-inside .inside-article-title-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: color .15s;
}
#section-inside .inside-article-title-link:hover .inside-article-title {
  color: var(--red);
}
#section-inside .inside-article-excerpt {
  margin: 0;
  /* Switched from sans to body serif per Hila (2026-06-04) — the sans
     read as foreign next to the serif Latest/Podcasts excerpts. */
  font-family: var(--font-body);
  font-size: 16px;
  color: #5c5c5c;
  line-height: 1.5;
}
#section-inside .inside-read-more {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  margin-left: 16px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--red);
  text-transform: capitalize;
  transition: color .15s ease;
}
#section-inside .inside-read-more svg {
  transform: rotate(-90deg);
  transition: transform .2s ease;
}
/* Underline that slides in from left on hover */
#section-inside .inside-read-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 22px; /* leave space for the arrow */
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
#section-inside .inside-read-more:hover { color: var(--red-dark); }
#section-inside .inside-read-more:hover::after { transform: scaleX(1); }
#section-inside .inside-read-more:hover svg {
  transform: rotate(-90deg) translateY(-6px);
}

#section-inside .inside-article-sep {
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

/* Mobile view-all (toggle in responsive.css) */
#section-inside .inside-view-all-mobile {
  display: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--red);
  text-decoration: underline;
  text-transform: capitalize;
  text-align: center;
  width: 100%;
  margin-top: 24px;
}

/* FEATURED MUSIC section removed from homepage per Hila request 2026-05-18.
 * Template file moved to /backup/home_featured-music.php. */

/* =============================================================
 * COLUMNISTS
 * ============================================================= */

#section-columnists {
  background: var(--paper);
  padding: 64px 0;
}

#section-columnists .col-cards {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
#section-columnists .col-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border-radius: 4px;
  padding: 24px 16px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow .2s ease, transform .2s ease;
}
#section-columnists .col-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}
#section-columnists .col-photo-link {
  display: block;
  text-decoration: none;
  margin-bottom: 20px;
}
#section-columnists .col-photo {
  width: 129px;
  height: 129px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto;
}
#section-columnists .col-photo--placeholder {
  background: #d0d0d0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#section-columnists .col-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
#section-columnists .col-photo-link:hover .col-photo img { transform: scale(1.05); }

#section-columnists .col-name-link {
  text-decoration: none;
  display: block;
}
#section-columnists .col-name {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--ink);
  line-height: 1.3;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
}
#section-columnists .col-name-link:hover .col-name { color: var(--red); }

#section-columnists .col-divider {
  width: 107px;
  height: 1px;
  background: var(--red);
  margin: 12px auto;
  flex-shrink: 0;
}

/* Bottom block — vertically centers tag + excerpt within the remaining
 * space below name/divider, so text reads aligned across cards of differing
 * excerpt length. */
#section-columnists .col-bottom {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

#section-columnists .col-tag {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  color: #5c5c5c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

#section-columnists .col-excerpt-link {
  text-decoration: none;
}
#section-columnists .col-excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(29, 5, 6, 0.7);
  line-height: 1.5;
  transition: color .15s;
}
#section-columnists .col-excerpt-link:hover .col-excerpt { color: var(--ink); }

#section-columnists .col-view-all-mobile {
  display: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 18px;
  color: var(--red);
  text-decoration: underline;
  text-transform: capitalize;
  text-align: center;
  width: 100%;
}

/* =============================================================
 * EDITORIAL PICKS (formerly "Featured Videos" — repurposed as
 * editorially-curated weekly article selections, Hila 2026-05-18)
 * Dark Podcasts-hero-like background to break the page rhythm.
 * ============================================================= */

#section-videos {
  position: relative;
  background: #1D0506; /* ink — matches .pod-hero */
  color: #fff;
  padding: 72px 0 76px;
  overflow: hidden;
}
#section-videos::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 360px at 88% 20%, rgba(222,28,34,.18), transparent 60%),
    radial-gradient(700px 300px at 12% 100%, rgba(222,28,34,.12), transparent 55%);
}
#section-videos .mish-section-inner { position: relative; z-index: 1; }

/* Override hp-sec-head text colors on dark bg */
#section-videos .hp-sec-head { border-bottom-color: rgba(255,255,255,0.12); }
#section-videos .hp-sec-title { color: #fff; }
#section-videos .hp-sec-sub   { color: rgba(255,255,255,0.65); }
#section-videos .hp-eyebrow         { color: #ff6b6e; }
#section-videos .hp-eyebrow::before { background: #ff6b6e; }

#section-videos .vid-inner {
  display: flex;
  gap: 32px;
}

/* Featured (left) — image-with-overlay magazine-cover style */
#section-videos .vid-featured {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  width: 60%;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  flex-shrink: 0;
}
#section-videos .vid-featured-img,
#section-videos .vid-featured-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
#section-videos .vid-featured-fallback {
  background: linear-gradient(to bottom right, #4a5568, #1a202c);
}
#section-videos .vid-featured:hover .vid-featured-img,
#section-videos .vid-featured:hover .vid-featured-fallback {
  transform: scale(1.03);
}

#section-videos .vid-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 8, 19, 0.92) 0%, rgba(3, 8, 19, 0.55) 40%, rgba(3, 8, 19, 0) 75%);
}
#section-videos .vid-featured-body {
  position: relative;
  padding: 36px 32px;
}
#section-videos .vid-featured-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  color: #ff6b6e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  line-height: 1.35;
}
#section-videos .vid-featured-title {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 32px);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.005em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: color .2s ease;
}
#section-videos .vid-featured:hover .vid-featured-title { color: #ff6b6e; }
#section-videos .vid-featured-excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
#section-videos .vid-featured-body .vid-date {
  display: block;
  margin-top: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Side cards (right column) — translucent cards on dark bg */
#section-videos .vid-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
#section-videos .vid-side-card {
  display: flex;
  gap: 16px;
  align-items: stretch;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  flex: 1;
  min-height: 120px;
  transition: background .15s ease, border-color .15s ease, transform .2s ease;
}
#section-videos .vid-side-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
#section-videos .vid-side-thumb {
  position: relative;
  width: 150px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
#section-videos .vid-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
#section-videos .vid-side-card:hover .vid-side-thumb img { transform: scale(1.04); }
#section-videos .vid-side-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  padding: 16px 16px 16px 0;
  min-width: 0;
}
#section-videos .vid-side-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  color: #ff6b6e;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  line-height: 1.35;
  min-height: 2.7em;
}
#section-videos .vid-side-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
  transition: color .15s;
}
#section-videos .vid-side-card:hover .vid-side-title { color: #ff6b6e; }
#section-videos .vid-side-body .vid-date {
  display: block;
  margin-top: auto;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (max-width: 1023px) {
  #section-videos .vid-inner { flex-direction: column; }
  #section-videos .vid-featured { width: 100%; aspect-ratio: 16/9; }
  #section-videos .vid-side { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  #section-videos .vid-side-card { flex: 1 1 calc(50% - 7px); min-height: 140px; }
}
@media (max-width: 767px) {
  #section-videos { padding: 48px 0 56px; }
  #section-videos .vid-featured { aspect-ratio: 4/5; }
  #section-videos .vid-side-card { flex: 1 1 100%; }
}

/* =============================================================
 * Editor's Picks — single-story full-bleed (Hila 2026-06-04)
 *
 * Replaces the old 1+3 grid with a single dramatic photo-bleed
 * card based on the V2.1 "Beyond the Candle" treatment. Feeds from
 * the same ACF `editorial_picks` field — only the first pick is shown.
 * Old .vid-* rules above are kept for reference but no longer match
 * any markup. .ep-bleed-* is the active naming.
 * ============================================================= */

#section-videos.ep-bleed {
  position: relative;
  display: block;
  height: clamp(440px, 56vw, 560px);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
}
#section-videos.ep-bleed .ep-bleed-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .55;
  transition: opacity .3s, transform .9s;
}
#section-videos.ep-bleed:hover .ep-bleed-img {
  opacity: .7;
  transform: scale(1.03);
}
#section-videos.ep-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(29,5,6,.92) 0%, rgba(29,5,6,.6) 45%, rgba(29,5,6,.32) 72%, rgba(29,5,6,.6) 100%);
  pointer-events: none;
}
#section-videos.ep-bleed .ep-bleed-in {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 720px;
  padding: 48px 0;
}
#section-videos.ep-bleed .ep-bleed-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  width: fit-content;
}
#section-videos.ep-bleed .ep-bleed-eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--red);
}
#section-videos.ep-bleed .ep-bleed-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-wrap: balance;
  color: #fff;
}
#section-videos.ep-bleed .ep-bleed-deck {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 0 26px;
}
#section-videos.ep-bleed .ep-bleed-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 13px 24px;
  border-radius: 6px;
  width: fit-content;
  transition: background .15s, transform .15s;
}
#section-videos.ep-bleed:hover .ep-bleed-cta {
  background: var(--red-dark, #B20108);
  transform: translateY(-1px);
}
