/* === HEADER LAYOUTS (PRO) === */
body.header-layout-center .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}
body.header-layout-center .header-inner > nav {
  order: -1;
  display: flex;
  justify-content: flex-start;
}
body.header-layout-center .header-inner > .logo {
  justify-content: center;
}
body.header-layout-center .header-inner > .header-actions {
  justify-content: flex-end;
}
@media (max-width: 991px) {
  body.header-layout-center .header-inner {
    display: flex;
    justify-content: space-between;
  }
}

body.header-layout-stacked .site-header {
  padding: 30px 0 0 0;
}
body.header-layout-stacked .header-inner {
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}
body.header-layout-stacked .header-inner > .logo {
  margin: 0 auto;
}
body.header-layout-stacked .header-inner > nav {
  width: 100%;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
body.dark-mode.header-layout-stacked .header-inner > nav {
  border-color: rgba(255,255,255,0.05);
}
body.header-layout-stacked .nav-menu {
  justify-content: center;
}
body.header-layout-stacked .header-actions {
  position: absolute;
  top: 30px;
  left: clamp(24px, 5vw, 60px);
  right: clamp(24px, 5vw, 60px);
  display: flex;
  pointer-events: none;
}
body.header-layout-stacked .header-actions > * {
  pointer-events: auto;
}
body.header-layout-stacked .header-actions .js-search-toggle {
  order: -1;
  margin-right: auto;
}

@media (max-width: 991px) {
  body.header-layout-stacked .site-header {
    padding: 20px 0;
  }
  body.header-layout-stacked .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }
  body.header-layout-stacked .header-actions {
    position: static;
    left: auto;
    right: auto;
    pointer-events: auto;
  }
  body.header-layout-stacked .header-actions .js-search-toggle {
    order: 0;
    margin-right: 0;
  }
}

/* === SPLIT HERO === */
.hero-split {
  display: flex;
  width: 100%;
  height: calc(100vh - 80px);
  height: 80svh;
  overflow: hidden;
  position: relative;
}
.hero-split-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 60px 40px;
  text-decoration: none;
  overflow: hidden;
}
.hero-split:hover .hero-split-panel:not(:hover) .hero-split-overlay {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(2px);
}
.hero-split-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}
.hero-split-panel:hover .hero-split-bg {
  transform: scale(1.05);
}
.hero-split-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%);
  transition: background 0.6s ease, backdrop-filter 0.6s ease;
  z-index: 2;
}
.hero-split-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  width: 100%;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-split-panel:hover .hero-split-content {
  transform: translateY(0);
}
.hero-split-cat {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  margin-bottom: 15px;
  display: block;
  opacity: 0.8;
}
.hero-split-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 400;
  margin: 0 0 20px;
  color: #fff;
}
.hero-split-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px;
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}
.hero-split-panel:hover .hero-split-btn {
  background: #fff;
  color: #000;
}
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    height: auto;
  }
  .hero-split-panel {
    min-height: 50vh;
  }
}

/* === FEED LAYOUTS (PRO) === */

/* 1. Asymmetrical Bento Box Feed */
@media (min-width: 992px) {
    :not(.layout-has-sidebar) > .feed-layout-bento-box {
        grid-template-columns: repeat(4, 1fr) !important;
        grid-auto-rows: 280px;
        gap: 24px !important;
    }
    :not(.layout-has-sidebar) > .feed-layout-bento-box .post-card.d1 {
        grid-column: span 2;
        grid-row: span 2;
    }
    :not(.layout-has-sidebar) > .feed-layout-bento-box .post-card.d4,
    :not(.layout-has-sidebar) > .feed-layout-bento-box .post-card.d5 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

/* Make Bento Box feed cards look like Hero Bento cards (Image background, text overlay) */
.feed-layout-bento-box .post-card {
    border: none !important;
    background: var(--charcoal);
    border-radius: 20px;
    overflow: hidden;
    min-height: 280px;
}
.feed-layout-bento-box .post-card > a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 32px;
    z-index: 1;
    text-decoration: none;
}
.feed-layout-bento-box .post-card-img-wrap {
    position: absolute;
    inset: -5%;
    width: 110%;
    height: 110%;
    margin: 0 !important;
    z-index: 1;
}
.feed-layout-bento-box .post-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}
.feed-layout-bento-box .post-card > a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}
.feed-layout-bento-box .post-card > a:hover::after {
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
}
.feed-layout-bento-box .post-card-body {
    position: relative;
    z-index: 3;
    padding: 0 !important;
}
.feed-layout-bento-box .post-card-title,
.feed-layout-bento-box .post-card-title a {
    color: #fff !important;
    margin-bottom: 10px;
}
.feed-layout-bento-box .post-card.d1 .post-card-title {
    font-size: clamp(28px, 3.2vw, 44px);
}
.feed-layout-bento-box .post-card-snippet {
    color: rgba(255,255,255,0.75);
    margin-bottom: 16px;
}
.feed-layout-bento-box .post-card-meta {
    color: rgba(255,255,255,0.65);
}
.feed-layout-bento-box .post-card-meta a {
    color: rgba(255,255,255,0.9);
}
.feed-layout-bento-box .post-card-tag {
    display: inline-block;
    background: rgba(0,0,0,0.5);
    color: var(--sage-light);
    backdrop-filter: blur(4px);
    border: none;
    margin-bottom: 12px;
}

/* Match the 6px image radius from the hero news grid */
.feed-layout-bento .post-card-img-wrap img,
.feed-layout-bento .post-card-img-wrap {
    border-radius: 6px;
}

/* Minimal category pills to match the hero newspaper layout */
.feed-layout-newspaper .post-card-tag {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent !important;
    border: none;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--terracotta) !important;
    margin-bottom: 12px;
}


/* === PRO LAYOUTS (MIGRATED) === */

/* === PRO HEADER LAYOUTS === */
body.header-layout-center .header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

body.header-layout-center .header-inner>nav {
  order: -1;
  display: flex;
  justify-content: flex-start;
}

body.header-layout-center .header-inner>.logo {
  justify-content: center;
}

body.header-layout-center .header-inner>.header-actions {
  justify-content: flex-end;
}

@media (max-width: 991px) {
  body.header-layout-center .header-inner {
    display: flex;
    justify-content: space-between;
  }
}

body.header-layout-stacked .site-header {
  padding: 30px 0 0 0;
}

body.header-layout-stacked .header-inner {
  flex-direction: column;
  justify-content: center;
  gap: 30px;
}

body.header-layout-stacked .header-inner>.logo {
  margin: 0 auto;
}

body.header-layout-stacked .header-inner>nav {
  width: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode.header-layout-stacked .header-inner>nav {
  border-color: rgba(255, 255, 255, 0.05);
}

body.header-layout-stacked .nav-menu {
  justify-content: center;
}

body.header-layout-stacked .header-actions {
  position: absolute;
  top: 30px;
  right: clamp(24px, 5vw, 60px);
}

@media (max-width: 991px) {
  body.header-layout-stacked .site-header {
    padding: 20px 0;
  }

  body.header-layout-stacked .header-inner {
    flex-direction: row;
    justify-content: space-between;
  }

  body.header-layout-stacked .header-actions {
    position: static;
  }
}

/* === HEADER LAYOUT: CENTERED LOGO === */
body.header-layout-center .header-inner {
  position: relative;
}

body.header-layout-center .header-actions {
  position: static;
  /* allow children to be absolute relative to header-inner */
}

body.header-layout-center .hamburger {
  display: flex !important;
  position: absolute;
  left: clamp(24px, 5vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
}

/* Hamburger to X icon toggle is handled via .hamburger-icon / .close-icon CSS above */

/* Hide extra cart icon by default */
.header-cart-icon {
  display: none;
}

/* Centered Layout: Cart Icon logic */
body.header-layout-center .nav-menu .menu-item-cart {
  display: none !important;
}

body.header-layout-center .header-cart-icon {
  display: inline-flex !important;
  align-items: center;
  position: relative;
  text-decoration: none;
}

body.header-layout-center .header-cart-icon .matcha-cart-count {
  position: absolute;
  top: 0;
  right: -4px;
  background: var(--sage);
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
}

/* Slide-out Menu (From Left) */
body.header-layout-center .nav-menu {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  transform: translateX(-100%);
  width: 320px;
  max-width: 100vw;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  background: rgba(250, 248, 244, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 100px 40px 40px;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 9999;
}

body.dark-mode.header-layout-center .nav-menu {
  background: rgba(26, 26, 26, 0.98);
}

body.header-layout-center .site-header.mobile-menu-open .nav-menu {
  transform: translateX(0);
}

body.header-layout-center .nav-menu li {
  width: 100%;
  text-align: left;
}

body.header-layout-center .nav-menu a {
  font-size: 16px;
  padding: 12px 0;
}

body.header-layout-center .nav-menu .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-left: 2px solid var(--sage-pale);
  background: transparent;
  padding: 0 0 0 16px;
  margin-top: 8px;
  display: none;
  width: 100%;
}

body.header-layout-center .nav-menu li.menu-item-has-children.toggled-on>.sub-menu {
  display: flex;
  flex-direction: column;
}

@media (max-width: 991px) {
  body.header-layout-center .header-inner {
    justify-content: space-between;
  }

  body.header-layout-center .hamburger {
    position: static;
    transform: none;
  }
}



/* === SPLIT HERO === */
.hero-split {
  display: flex;
  width: 100%;
  height: calc(100vh - 80px);
  height: 80svh;
  min-height: 560px;
  overflow: hidden;
  position: relative;
}

/* No flex resizing — just overlay dimming on the non-hovered panel */
.hero-split-panel {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 60px 48px;
  text-decoration: none;
  overflow: hidden;
  will-change: opacity;
}

/* Darken inactive panel smoothly — no layout shift */
.hero-split:hover .hero-split-panel:not(:hover) .hero-split-overlay {
  background: rgba(0, 0, 0, 0.72);
}

.hero-split-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.hero-split-panel:hover .hero-split-bg {
  transform: scale(1.04);
}

.hero-split-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.82) 0%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.0) 100%);
  will-change: background;
  transition: background 0.5s ease;
  z-index: 2;
}

/* Content — both panels always left-aligned */
.hero-split-content {
  position: relative;
  z-index: 3;
  color: #fff;
  width: 100%;
  max-width: 460px;
  text-align: center;
  will-change: transform;
  transform: translateY(10px);
  transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-split-panel:hover .hero-split-content {
  transform: translateY(0);
}

/* Category label — plain text, no pill */
.hero-split-cat {
  display: inline-block;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--sage-light);
  background: none;
  border: none;
  padding: 0;
}

/* Title */
.hero-split-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 70px);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 16px;
  color: #fff;
}

.hero-split-title em {
  font-style: italic;
}

/* Excerpt — fades in on hover */
.hero-split-excerpt {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
  will-change: opacity, transform;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease 0.08s, transform 0.4s ease 0.08s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-split-panel:hover .hero-split-excerpt {
  opacity: 1;
  transform: translateY(0);
}

/* Footer: author · date  [Read →] */
.hero-split-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: nowrap;
}

.hero-split-author {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  white-space: nowrap;
}

.hero-split-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.hero-split-sep {
  opacity: 0.4;
}

.hero-split-date {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* CTA — slides in from bottom-right on hover */
.hero-split-btn-inline {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
  will-change: opacity, transform;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease 0.12s, transform 0.35s ease 0.12s;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-split-panel:hover .hero-split-btn-inline {
  opacity: 1;
  transform: translateY(0);
}

/* Vertical divider — hidden */
.hero-split-divider {
  display: none;
}

/* ── Mobile ─────────────────────────────── */
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    height: 100svh;
  }

  .hero-split-panel {
    padding: 32px 24px;
  }

  .hero-split-excerpt,
  .hero-split-btn-inline {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-split-content {
    transform: translateY(0) !important;
    max-width: 100%;
  }

  .hero-split-divider {
    top: 50%;
    bottom: auto;
    left: 8%;
    right: 8%;
    width: auto;
    height: 1px;
    transform: translateY(-50%);
  }
}

/* Accessibility: Underline content links */
.entry-content p a,
.entry-content li a,
.comment-content p a,
.comment-content li a,
.sidebar-widget p a,
.sidebar-widget li a,
.footer-widget p a,
.footer-widget li a,
.in-feed-widget-container p a,
.in-feed-widget-container li a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content p a:hover,
.entry-content li a:hover,
.comment-content p a:hover,
.comment-content li a:hover,
.sidebar-widget p a:hover,
.sidebar-widget li a:hover,
.footer-widget p a:hover,
.footer-widget li a:hover,
.in-feed-widget-container p a:hover,
.in-feed-widget-container li a:hover {
  text-decoration: none;
}

/* ══════════════════════════════════════════
   NEWS GRID HERO
   Layout: 60% large feature | 40% 3-stack
   ══════════════════════════════════════════ */
.hero-news-grid {
  display: grid;
  grid-template-columns: 1fr 38%;
  width: 100%;
  height: calc(100vh - 80px);
  height: 80svh;
  min-height: 540px;
  overflow: hidden;
}

/* ── Featured (left) ── */
.hero-news-grid-featured {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  overflow: hidden;
}

.hero-news-grid-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  z-index: 1;
  animation: hero-ken-burns 25s ease-in-out alternate infinite;
}

.hero-news-grid-bg--placeholder {
  background: linear-gradient(135deg, #1e2a3a 0%, #0f172a 100%);
}

.hero-news-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.3) 45%,
      rgba(0, 0, 0, 0.0) 100%);
  z-index: 2;
}

.hero-news-grid-featured-content {
  position: relative;
  z-index: 3;
  padding: 48px 190px 48px 44px;
  color: #fff;
  will-change: transform;
  transform: translateY(8px);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-news-grid-featured:hover .hero-news-grid-featured-content {
  transform: translateY(0);
}

/* Category label */
.hero-news-grid-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.hero-news-grid-cat:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Featured title */
.hero-news-grid-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.2vw, 52px);
  font-weight: 400;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 14px;
}

/* Excerpt */
.hero-news-grid-excerpt {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta row */
.hero-news-grid-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.hero-news-grid-author {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.hero-news-grid-sep {
  opacity: 0.4;
}

.hero-news-grid-date,
.hero-news-grid-readtime {
  color: rgba(255, 255, 255, 0.55);
}

/* ── Right Stack (3 cards) ── */
.hero-news-grid-stack {
  display: flex;
  flex-direction: column;
  background: var(--bg-color);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 5;
  overflow: hidden;
}

/* Card */
.hero-news-grid-card {
  height: calc(80svh / 4);
  min-height: 135px;
  flex: none;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  gap: 20px;
  padding: 16px 24px;
  text-decoration: none;
  overflow: hidden;
  position: relative;
  transition: background 0.25s ease;
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
}

.hero-news-grid-card:last-child {
  border-bottom: none;
}

.hero-news-grid-card:hover {
  background: var(--cream);
}

.hero-news-grid-card.hero-ticker-item:hover {
  transform: none;
}



/* Card thumbnail */
.hero-news-grid-card-img {
  height: 100%;
  width: auto;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.hero-news-grid-card-img img,
.hero-news-grid-card-img--placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-news-grid-card-img--placeholder {
  background: var(--cream);
}

.hero-news-grid-card:hover .hero-news-grid-card-img img {
  transform: scale(1.06);
}

/* Card text body */
.hero-news-grid-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.hero-news-grid-card-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--sage);
  align-self: flex-start;
}

/* Multi-color Category Badges - Muted Pastel Palette */
.hero-news-grid-card:nth-child(4n+1) .hero-news-grid-card-cat {
  background: #e0f2fe;
  color: #0284c7;
}

/* Mint/Cyan */
.hero-news-grid-card:nth-child(4n+2) .hero-news-grid-card-cat {
  background: #f3e8ff;
  color: #9333ea;
}

/* Lavender/Purple */
.hero-news-grid-card:nth-child(4n+3) .hero-news-grid-card-cat {
  background: #ffedd5;
  color: #c2410c;
}

/* Peach/Orange */
.hero-news-grid-card:nth-child(4n+4) .hero-news-grid-card-cat {
  background: #dcfce7;
  color: #15803d;
}

/* Pale Green */

.hero-news-grid-card-title {
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.hero-news-grid-card:hover .hero-news-grid-card-title {
  color: var(--sage);
}

.hero-news-grid-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--charcoal-muted);
}

.hero-news-grid-card-meta .hero-news-grid-sep {
  opacity: 0.4;
}

/* ── Dark Mode ── */
body.dark-mode .hero-news-grid-stack {
  border-left-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .hero-news-grid-card {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}



body.dark-mode .hero-news-grid-card:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .hero-news-grid-card-title {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .hero-news-grid-card-cat {
  color: var(--sage-light);
}

body.dark-mode .hero-news-grid-card-meta {
  color: rgba(255, 255, 255, 0.45);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-news-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 55svh auto;
    height: auto;
  }

  .hero-news-grid-stack {
    border-top: 1px solid var(--border-light);
    box-shadow: none;
  }

  /* Target the inner track for horizontal scrolling */
  .hero-news-grid-stack .hero-ticker-window,
  .hero-news-grid-stack .hero-ticker-track {
    height: auto !important;
    min-height: auto !important;
  }

  .hero-news-grid-stack .hero-ticker-track {
    flex-direction: row !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    transform: none !important;
    /* disable JS vertical translation */
  }

  .hero-news-grid-stack .hero-ticker-track::-webkit-scrollbar {
    display: none;
  }

  .hero-news-grid-card {
    width: 85vw;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-bottom: none;
    border-right: 1px solid var(--border-light);
    grid-template-columns: 120px 1fr;
  }

  .hero-news-grid-card-body {
    padding: 20px 24px;
  }

  .hero-news-grid-featured-content {
    padding: 32px 28px;
  }

  .hero-news-grid-excerpt {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-news-grid-card {
    grid-template-columns: 80px 1fr;
  }

  .hero-news-grid-card-body {
    padding: 16px 20px;
  }
}

/* ══════════════════════════════════════════
   BENTO BOX HERO
   Layout: Interlocking 5-piece grid
   ══════════════════════════════════════════ */
.hero-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  height: calc(100vh - 80px);
  height: 80svh;
  min-height: 540px;
  max-height: 700px;
  padding-bottom: 32px;
}

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  overflow: hidden;
  border-radius: 20px;
  /* Apple-style rounding */
  padding: 32px;
  color: #fff;
  background: var(--charcoal);
  /* fallback */
}

.bento-card-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-card-square {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  will-change: transform;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover .bento-bg {
  transform: scale(1.04);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  transition: background 0.4s ease;
}

.bento-card:hover .bento-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0) 100%);
}

.bento-content {
  position: relative;
  z-index: 3;
  will-change: transform;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-card:hover .bento-content {
  transform: translateY(0);
}

.bento-cat {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
  color: var(--sage-light);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.bento-card:hover .bento-cat {
  color: #fff;
}

.bento-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 10px;
  color: #fff;
}

.bento-card-large .bento-title {
  font-size: clamp(28px, 3.2vw, 44px);
  margin-bottom: 16px;
}

.bento-excerpt {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 16px;
}

.bento-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.bento-author {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

/* ── Mobile Responsive ── */
@media (max-width: 900px) {
  .hero-bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    max-height: none;
  }

  .bento-card-large {
    grid-column: span 1;
    grid-row: span 1;
    height: 50vh;
  }

  .bento-card-square {
    grid-column: span 1;
    grid-row: span 1;
    height: 35vh;
  }

  .bento-card {
    border-radius: 12px;
    padding: 24px;
  }
}

/* ══════════════════════════════════════════
   PRO FEED LAYOUTS
   ══════════════════════════════════════════ */
/* List Layout */
.feed-layout-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.feed-layout-list .post-card {
  width: 100%;
}

.feed-layout-list .post-card>a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  text-decoration: none;
}

.feed-layout-list .post-card-img-wrap {
  width: 40%;
  aspect-ratio: 16/10;
  margin-bottom: 0;
}

.feed-layout-list .post-card-body {
  width: 60%;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .feed-layout-list .post-card>a {
    flex-direction: column;
  }

  .feed-layout-list .post-card-img-wrap,
  .feed-layout-list .post-card-body {
    width: 100%;
    padding: 0;
  }

  .feed-layout-list .post-card-img-wrap {
    margin-bottom: 20px;
  }
}

.feed-layout-list .widget-author {
  flex-direction: row;
  align-items: center;
  text-align: left;
  padding: 32px 40px;
  gap: 32px;
}

.feed-layout-list .widget-author-ring {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .feed-layout-list .widget-author {
    flex-direction: column;
    text-align: center;
  }
}
/* ==========================================================================
   PRO MEGA FOOTER
   ========================================================================== */
.mega-footer-pro {
  background-color: var(--charcoal);
  color: #fff;
  padding: 80px 0;
}

.mega-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.mega-footer-title {
  font-family: var(--font-serif);
  font-size: 48px;
  color: var(--cream);
  margin-bottom: 20px;
}

.mega-footer-desc {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
}

.mega-footer-form {
  display: flex;
  gap: 16px;
}

.mega-footer-form input {
  flex: 1;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-radius: 4px;
}

.mega-footer-form button {
  padding: 16px 32px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.mega-footer-form button:hover {
  background: #cc4a3a;
}

.mega-footer-links {
  display: flex;
  justify-content: space-around;
  gap: 40px;
}

.mega-col-title {
  font-family: var(--font-sans);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cream);
  margin-bottom: 24px;
}

.mega-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-footer-col ul li {
  margin-bottom: 16px;
}

.mega-footer-col ul li a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mega-footer-col ul li a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .mega-footer-grid {
    grid-template-columns: 1fr;
  }

  .mega-footer-links {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   PRO: STICKY SHARE BAR
   ========================================================================== */
.navid-sticky-share-bar {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  left: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
  background: var(--surface);
  padding: 12px;
  border-radius: 40px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-secondary);
  background: var(--background);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-btn:hover {
  transform: translateY(-2px);
  color: #fff;
}

.share-twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
}

.share-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
}

.share-linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
}

.share-copy:hover {
  background: var(--text-primary);
  border-color: var(--text-primary);
}

@media (max-width: 1024px) {
  .navid-sticky-share-bar {
    top: auto;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    padding: 8px 16px;
  }
}

/* ==========================================================================
   PRO: PROS & CONS BLOCK
   ========================================================================== */
.matcha-pros-cons-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.matcha-pros-cons-block h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.matcha-pros h3 {
  color: #10B981;
}

.matcha-cons h3 {
  color: #EF4444;
}

.matcha-pros-list,
.matcha-cons-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.matcha-pros-list li,
.matcha-cons-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.matcha-pros-list li::before,
.matcha-cons-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Green Checkmark */
.matcha-pros-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Red Cross */
.matcha-cons-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EF4444' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

@media (max-width: 768px) {
  .matcha-pros-cons-block {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ═══ WordPress Required CSS Classes ═══════════════════════ */
.sticky .entry-title::before {
  content: "\2605";
  margin-right: 6px;
  color: var(--sage);
}

.gallery-caption {
  display: block;
  font-size: 13px;
  color: var(--charcoal-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.bypostauthor>.comment-body {
  border-left: 3px solid var(--sage);
  padding-left: 16px;
}

/* ==========================================================================
   ADDITIONAL PRO HERO LAYOUTS (TICKER & BENTO)
   ========================================================================== */

