/*
Theme Name: Heal and Happy
Theme URI: https://example.com/heal-and-happy
Author: OpenAI Codex
Description: A custom wellness magazine WordPress theme with curated homepage sections, automatic navigation pages, and customizable header/footer styles.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: heal-and-happy
*/

:root {
  --hh-background: #f5efe6;
  --hh-surface: #fffdf8;
  --hh-accent: #3f7d65;
  --hh-accent-dark: #254d3f;
  --hh-heading: #20362f;
  --hh-text: #4e5d57;
  --hh-border: #d8d0c3;
  --hh-header-bg: #fffaf2;
  --hh-header-text: #20362f;
  --hh-footer-bg: #23352f;
  --hh-footer-text: #f8f3ea;
  --hh-highlight: #f0c77f;
  --hh-soft: #e8dfd2;
  --hh-shadow: 0 18px 45px rgba(31, 51, 43, 0.08);
  --hh-radius-lg: 30px;
  --hh-radius-md: 20px;
  --hh-radius-sm: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(240, 199, 127, 0.18), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, var(--hh-background) 100%);
  color: var(--hh-text);
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

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

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

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--hh-header-bg) 92%, white 8%);
  color: var(--hh-header-text);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.content-width {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: grid;
  gap: 0.9rem;
  padding: 1rem 0;
}

.site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-accessibility {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 0.95rem;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  color: var(--hh-heading);
  box-shadow: inset 0 0 0 1px rgba(63, 125, 101, 0.08);
  cursor: pointer;
}

.header-accessibility__icon {
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(63, 125, 101, 0.12);
}

.header-accessibility__icon svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-accessibility__label {
  font-size: 0.84rem;
  font-weight: 700;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.site-branding__mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--hh-accent), var(--hh-accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  box-shadow: var(--hh-shadow);
}

.site-branding__text {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  color: var(--hh-header-text);
  letter-spacing: 0.01em;
}

.site-branding__tag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--hh-header-text) 70%, transparent);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: var(--hh-accent);
  color: #fff;
  font: inherit;
}

.menu-close {
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1rem;
  background: rgba(63, 125, 101, 0.12);
  color: var(--hh-heading);
  font: inherit;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.primary-navigation ul,
.footer-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-navigation .primary-menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
}

.primary-navigation {
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(63, 125, 101, 0.08);
  overflow: visible;
}

.primary-navigation .menu-item {
  position: relative;
  flex: 0 0 auto;
}

.menu-item__row {
  display: flex;
  align-items: center;
}

.primary-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.8rem 0.8rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  transition: 0.25s ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .menu-item:hover > .menu-item__row > a,
.primary-navigation .menu-item.is-open > .menu-item__row > a {
  background: var(--hh-accent);
  color: #fff;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-left: -0.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hh-header-text);
  cursor: pointer;
  transition: 0.25s ease;
}

.submenu-toggle::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.25s ease;
}

.menu-item-has-children:hover > .menu-item__row .submenu-toggle,
.menu-item-has-children.is-open > .menu-item__row .submenu-toggle {
  color: #fff;
  background: var(--hh-accent);
}

.menu-item-has-children:hover > .menu-item__row .submenu-toggle::before,
.menu-item-has-children.is-open > .menu-item__row .submenu-toggle::before {
  transform: rotate(225deg) translateY(-1px);
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 50%;
  z-index: 20;
  min-width: 340px;
  max-width: 360px;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.99), rgba(245, 239, 230, 0.97));
  border: 1px solid rgba(63, 125, 101, 0.16);
  border-radius: 26px;
  box-shadow: 0 26px 55px rgba(32, 54, 47, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.sub-menu .menu-item {
  width: 100%;
}

.sub-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: rgba(255, 253, 248, 0.98);
  border-top: 1px solid rgba(63, 125, 101, 0.14);
  border-left: 1px solid rgba(63, 125, 101, 0.14);
  transform: translateX(-50%) rotate(45deg);
}

.sub-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  padding: 0.9rem 2.2rem 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(63, 125, 101, 0.08);
  color: var(--hh-heading);
  box-shadow: 0 8px 18px rgba(32, 54, 47, 0.05);
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sub-menu a::after {
  content: "↗";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(32, 54, 47, 0.45);
  font-size: 0.95rem;
  transition: transform 0.22s ease, color 0.22s ease;
}

.sub-menu a:hover,
.sub-menu a:focus {
  background: rgba(63, 125, 101, 0.1);
  border-color: rgba(63, 125, 101, 0.2);
  color: var(--hh-accent-dark);
  transform: translateX(3px);
  box-shadow: 0 12px 22px rgba(32, 54, 47, 0.08);
}

.sub-menu a:hover::after,
.sub-menu a:focus::after {
  color: var(--hh-accent-dark);
  transform: translate(2px, -50%);
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* Prevent dropdown overflow on rightmost menu items */
.primary-navigation .menu-item:nth-last-child(-n+3) .sub-menu {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}

.primary-navigation .menu-item:nth-last-child(-n+3) .sub-menu::before {
  left: auto;
  right: 2rem;
  transform: rotate(45deg);
}

.primary-navigation .menu-item:nth-last-child(-n+3):hover > .sub-menu,
.primary-navigation .menu-item:nth-last-child(-n+3):focus-within > .sub-menu,
.primary-navigation .menu-item:nth-last-child(-n+3).is-open > .sub-menu {
  transform: translateX(0) translateY(0);
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  background: var(--hh-heading);
  color: #fff;
  font-weight: 600;
}

.site-main {
  padding-bottom: 4rem;
}

.hero {
  padding: 4.5rem 0 2.5rem;
}

.hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2rem;
  align-items: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 36px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 239, 230, 0.88)),
    linear-gradient(135deg, rgba(63, 125, 101, 0.08), transparent 60%);
  box-shadow: var(--hh-shadow);
}

.hero__eyebrow,
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(63, 125, 101, 0.14), rgba(240, 199, 127, 0.18));
  color: var(--hh-accent-dark);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid rgba(63, 125, 101, 0.15);
}

.section__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hh-accent);
  flex-shrink: 0;
}

.hero h1,
.section__title,
.page-header__title {
  margin: 1rem 0 0.8rem;
  color: var(--hh-heading);
  line-height: 1.08;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.hero__copy {
  font-size: 1.08rem;
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
}

.button-link--primary {
  background: var(--hh-accent);
  color: #fff;
}

.button-link--secondary {
  border: 1px solid var(--hh-border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--hh-heading);
}

.hero__aside {
  display: grid;
  gap: 1rem;
}

.hero-feature {
  padding: 1.25rem;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(35, 53, 47, 0.96), rgba(53, 83, 72, 0.94));
  color: #fff;
}

.hero-feature h2 {
  margin: 0 0 0.6rem;
  font-size: 1.35rem;
}

.hero-feature ul {
  margin: 0;
  padding-left: 1.2rem;
}

.hero-feature li + li {
  margin-top: 0.55rem;
}

.page-section {
  padding: 1.4rem 0 0;
}

.section {
  padding: 2.25rem 0;
}

.section--compact {
  padding-bottom: 0.4rem;
}

.section__head,
.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--hh-accent), var(--hh-highlight), transparent) 1;
}

.section__title,
.page-header__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section__title--small {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.section__description,
.page-header__description {
  max-width: 64ch;
  margin: 0;
  font-size: 1rem;
}

.section__link {
  font-weight: 700;
  color: var(--hh-accent-dark);
}

.home-admin-links,
.home-section-actions,
.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.home-admin-links {
  padding-top: 1.2rem;
}

.home-section-actions {
  margin-bottom: 1rem;
}

.category-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 230, 0.9));
  box-shadow: var(--hh-shadow);
  font-weight: 700;
  color: var(--hh-accent-dark);
  border: 1px solid rgba(63, 125, 101, 0.12);
}

.category-strip__icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 18%, transparent 20%),
    linear-gradient(135deg, var(--hh-accent), #8eb7a3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.category-strip__icon svg {
  width: 1rem;
  height: 1rem;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-strip__icon--health-topics {
  background: linear-gradient(135deg, #d26a6a, #ef9a8f);
}

.category-strip__icon--health-topics svg {
  fill: #fff;
  stroke: none;
}

.category-strip__icon--wellness {
  background: linear-gradient(135deg, #4f8d72, #8ec5a0);
}

.category-strip__icon--wellness svg {
  fill: rgba(255, 255, 255, 0.95);
  stroke: none;
}

.category-strip__icon--ayurveda {
  background: linear-gradient(135deg, #6b8f3d, #accf62);
}

.category-strip__icon--recipes {
  background: linear-gradient(135deg, #d3913a, #efc16f);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.cards-grid--section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ── TODAY'S PICKS – magazine lead layout ─────────────────────────── */
.todays-picks-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.todays-picks-grid__item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.todays-picks-grid__item--lead {
  grid-row: 1 / span 2;
}

.todays-picks-grid__item--lead .article-card {
  height: 100%;
}

.todays-picks-grid__item--lead .article-card__media {
  aspect-ratio: 4 / 3;
}

.todays-picks-grid__item--lead .article-card__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.todays-picks-grid .article-card,
.cards-grid--section .article-card,
.latest-reads-grid .article-card {
  border: 1px solid rgba(63, 125, 101, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 240, 0.92));
}

/* ── LATEST READS – full-width featured top + 3-col row ───────────── */
.latest-reads-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.latest-reads-grid > .article-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(200px, 42%) 1fr;
  flex-direction: unset;
  border-radius: var(--hh-radius-lg);
}

.latest-reads-grid > .article-card:first-child .article-card__media {
  aspect-ratio: unset;
  min-height: 280px;
  border-radius: var(--hh-radius-lg) 0 0 var(--hh-radius-lg);
}

.latest-reads-grid > .article-card:first-child .article-card__body {
  padding: 2rem 2rem 1.6rem;
}

.latest-reads-grid > .article-card:first-child .article-card__title {
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  line-height: 1.18;
}

.latest-reads-actions,
.voices-section__actions {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.latest-reads-actions__button,
.voices-section__button {
  min-height: 44px;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background 0.22s, color 0.22s;
}

.latest-reads-actions__button {
  background: #7eb8ab;
  color: #fff;
  box-shadow: 0 16px 30px rgba(126, 184, 171, 0.24);
}

section#voices-in-health {
  background: linear-gradient(160deg, #1e3430 0%, #243d37 50%, #1a2e2b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

section#voices-in-health .section__head {
  border-image: linear-gradient(to right, rgba(126, 184, 171, 0.7), rgba(240, 199, 127, 0.5), transparent) 1;
}

.voices-section {
  padding: 1rem 0 0.4rem;
  text-align: center;
}

.voices-section__header {
  max-width: 760px;
  margin: 0 auto 1.8rem;
}

.voices-section__eyebrow {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: #9ebfbb;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(158, 191, 187, 0.15);
  border-color: rgba(158, 191, 187, 0.3);
}

.voices-section__eyebrow::before {
  background: #9ebfbb;
}

.voices-section__title {
  margin: 0 0 0.7rem;
  color: #a8ddd7;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.voices-section__description {
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
  color: rgba(248, 243, 234, 0.72);
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.voice-card {
  position: relative;
  padding-top: 4.4rem;
}

.voice-card__avatar-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 86px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(32, 54, 47, 0.14);
  transform: translateX(-50%);
}

.voice-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.voice-card__body {
  height: 100%;
  padding: 2.8rem 1.4rem 1.4rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.voice-card__quote-mark {
  display: block;
  margin-bottom: 0.55rem;
  color: rgba(126, 184, 171, 0.5);
  font-size: 2.2rem;
  line-height: 1;
}

.voice-card__quote {
  min-height: 120px;
  margin: 0 0 1.35rem;
  color: rgba(248, 243, 234, 0.82);
  font-size: 0.98rem;
  line-height: 1.75;
  font-style: italic;
}

.voice-card__meta {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.voice-card__line {
  width: 18px;
  height: 2px;
  background: #7eb8ab;
}

.voice-card__name {
  margin: 0;
  color: #ffffff;
  font-size: 1.08rem;
}

.voice-card__role {
  margin: 0.3rem 0 0;
  color: #7eb8ab;
  font-size: 0.75rem;
}

.voice-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 40px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(126, 184, 171, 0.18);
  color: #a8ddd7;
  font-size: 0.82rem;
  font-weight: 700;
}

.cards-grid--stacked {
  grid-template-columns: 1fr;
}

.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--hh-radius-lg);
  background: color-mix(in srgb, var(--hh-surface) 94%, white 6%);
  box-shadow: var(--hh-shadow);
  border: 1px solid rgba(63, 125, 101, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 64px rgba(31, 51, 43, 0.15);
}

.article-card--horizontal {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
}

/* Image overlay label badge */
.article-card__image-tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hh-accent), var(--hh-accent-dark));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(31, 51, 43, 0.3);
}

/* Featured lead card accent */
.article-card--featured .article-card__body {
  background: linear-gradient(180deg, #fff 60%, rgba(232, 247, 242, 0.6));
}

.article-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.article-card__media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, rgba(20, 40, 30, 0.45), transparent);
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.article-card:hover .article-card__media::after {
  opacity: 0.6;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.04);
}

.article-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.25rem;
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hh-accent-dark);
}

.category-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-badges a,
.article-single__terms a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(63, 125, 101, 0.12);
  color: var(--hh-accent-dark);
}

.category-badges a:nth-child(3n + 1),
.article-single__terms a:nth-child(3n + 1) {
  background: rgba(63, 125, 101, 0.12);
}

.category-badges a:nth-child(3n + 2),
.article-single__terms a:nth-child(3n + 2) {
  background: rgba(240, 199, 127, 0.24);
}

.category-badges a:nth-child(3n),
.article-single__terms a:nth-child(3n) {
  background: rgba(35, 53, 47, 0.12);
}

.article-card__title {
  margin: 0;
  color: var(--hh-heading);
  font-size: 1.45rem;
  line-height: 1.24;
}

.article-card__title a {
  color: inherit;
}

.article-card__excerpt {
  margin: 0;
  color: color-mix(in srgb, var(--hh-text) 90%, white 10%);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.article-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(63, 125, 101, 0.12);
  color: var(--hh-accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
}

.section-band {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid rgba(63, 125, 101, 0.12);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(232, 223, 210, 0.35));
}

.section-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.section-band__item {
  padding: 1rem;
  border-radius: var(--hh-radius-md);
  background: rgba(255, 255, 255, 0.72);
}

.page-header {
  padding-top: 3.5rem;
}

.page-summary {
  margin-top: 2rem;
  padding: 1.4rem;
  border-left: 5px solid var(--hh-accent);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 var(--hh-radius-md) var(--hh-radius-md) 0;
}

.site-footer {
  margin-top: 4rem;
  background: var(--hh-footer-bg);
  color: var(--hh-footer-text);
}

.site-footer__inner {
  padding: 3rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr;
  gap: 1.8rem;
}

.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  color: inherit;
}

.site-footer__brand,
.site-footer__menu,
.site-footer__notice {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-navigation ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-navigation a {
  display: inline-flex;
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  color: rgba(248, 243, 234, 0.86);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.footer-navigation a:hover,
.footer-navigation a:focus {
  color: #fff;
  background: rgba(240, 199, 127, 0.14);
  transform: translateY(-1px);
}

.site-footer__notice p,
.site-footer__brand p {
  margin-bottom: 0;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.92rem;
}

.page-content {
  padding: 1rem 0 0;
}

.archive-list {
  display: grid;
  gap: 1.25rem;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pagination-wrap a,
.pagination-wrap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--hh-shadow);
}

.pagination-wrap .current {
  background: var(--hh-accent);
  color: #fff;
}

.search-panel {
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  border-radius: var(--hh-radius-md);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--hh-shadow);
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.search-form__input {
  flex: 1 1 280px;
  min-height: 48px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hh-border);
  border-radius: 999px;
  font: inherit;
}

.search-form__button {
  min-height: 48px;
  padding: 0.9rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--hh-accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
}

/* ── QUICK HEALTH CHECKS SECTION BACKGROUND ─────────────────────── */
section#quick-health-checks {
  background: linear-gradient(160deg, #eaf5f0 0%, #f6fcf9 45%, #e8f4ef 100%);
  border-top: 1px solid rgba(63, 125, 101, 0.12);
  border-bottom: 1px solid rgba(63, 125, 101, 0.12);
}

.checks-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.35rem;
  align-items: stretch;
}

.check-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--hh-radius-lg);
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(31, 51, 43, 0.08);
  border: 1px solid rgba(63, 125, 101, 0.1);
}

.check-card .article-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--hh-heading);
}

.check-card .article-card__excerpt {
  font-size: 0.9rem;
  color: var(--hh-text);
  margin: 0;
}

.check-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.check-form input,
.check-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--hh-border);
  border-radius: 14px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.check-result {
  margin-top: auto;
  padding: 0.9rem 1rem;
  border-radius: var(--hh-radius-md);
  background: rgba(63, 125, 101, 0.08);
  color: var(--hh-accent-dark);
  min-height: 64px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
  gap: 1.5rem;
  align-items: start;
}

.article-single {
  padding: 1.5rem;
  border-radius: var(--hh-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--hh-shadow);
}

.article-single__media {
  margin-bottom: 1.25rem;
  overflow: hidden;
  border-radius: 24px;
}

.article-single__media img {
  width: 100%;
  height: auto;
}

.article-single__meta,
.article-single__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  color: var(--hh-accent-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.article-single__footer {
  margin-top: 2rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--hh-border);
}

.content-sidebar {
  display: grid;
  gap: 1rem;
}

.author-line {
  font-size: 0.92rem;
  color: var(--hh-accent-dark);
}

.author-box,
.comments-area,
.not-found {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--hh-radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--hh-shadow);
}

.comments-title {
  margin-top: 0;
  color: var(--hh-heading);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 1rem;
}

.comment-list .comment {
  padding: 1rem 1.1rem;
  border-radius: var(--hh-radius-md);
  background: rgba(245, 239, 230, 0.65);
}

.comment-meta {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--hh-accent-dark);
}

.comment-content p:last-child {
  margin-bottom: 0;
}

.comment-respond label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--hh-heading);
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hh-border);
  border-radius: 18px;
  font: inherit;
  background: #fff;
}

.widget {
  padding: 1.25rem;
  border-radius: var(--hh-radius-md);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--hh-shadow);
}

.widget-title {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--hh-heading);
}

.widget ul {
  margin: 0;
  padding-left: 1.1rem;
}

.widget select,
.widget input,
.widget button {
  max-width: 100%;
}

/* ── WHY CHOOSE HEAL & HAPPY ─────────────────────────────────────── */
.why-choose {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 3.5rem;
  align-items: center;
}

.why-choose__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.why-choose__title {
  margin: 0.9rem 0 1rem;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--hh-accent);
}

.why-choose__description {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--hh-text);
  max-width: 38ch;
}

.why-choose__line {
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 1.6rem;
  background: linear-gradient(to right, var(--hh-accent), var(--hh-highlight));
  border-radius: 3px;
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.why-feature {
  padding: 1.6rem 1.4rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(63, 125, 101, 0.08);
  box-shadow: 0 6px 20px rgba(31, 51, 43, 0.05);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.why-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(31, 51, 43, 0.1);
}

.why-feature--accent {
  background: rgba(63, 125, 101, 0.05);
  border-color: rgba(63, 125, 101, 0.14);
}

.why-feature__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(63, 125, 101, 0.1);
  margin-bottom: 1.1rem;
}

.why-feature--accent .why-feature__icon-wrap {
  background: rgba(63, 125, 101, 0.15);
}

.why-feature__icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--hh-accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-feature__title {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hh-heading);
}

.why-feature--accent .why-feature__title {
  color: var(--hh-accent);
}

.why-feature__description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--hh-text);
}

.why-feature--accent .why-feature__description {
  color: var(--hh-accent);
  opacity: 0.85;
}

/* ── POPULAR READS – horizontal article cards ────────────────────── */
#popular-reads .cards-grid--section {
  grid-template-columns: 1fr;
  gap: 1rem;
}

#popular-reads .cards-grid--section .article-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  flex-direction: unset;
  border-radius: var(--hh-radius-md);
}

#popular-reads .cards-grid--section .article-card .article-card__media {
  aspect-ratio: unset;
  min-height: 180px;
  border-radius: var(--hh-radius-md) 0 0 var(--hh-radius-md);
}

#popular-reads .cards-grid--section .article-card .article-card__body {
  padding: 1.4rem 1.6rem;
}

/* ── HEALTH SHORTS – compact 2-column cards ─────────────────────── */
#health-shorts .cards-grid--section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#health-shorts .cards-grid--section .article-card__media {
  aspect-ratio: 2 / 1;
}

/* ── VOICE CARDS – hover lift on dark background ─────────────────── */
.voice-card {
  transition: transform 0.28s ease;
}

.voice-card:hover {
  transform: translateY(-4px);
}

.voice-card:hover .voice-card__body {
  box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
  border-color: rgba(126, 184, 171, 0.25);
}

.latest-reads-actions__button,
.voices-section__button {
  background: rgba(126, 184, 171, 0.22);
  color: #a8ddd7;
  border: 1px solid rgba(126, 184, 171, 0.3);
  box-shadow: none;
}

.latest-reads-actions__button:hover,
.voices-section__button:hover {
  background: rgba(126, 184, 171, 0.35);
  color: #ffffff;
}

/* ── SECTION BAND – quick-health-checks fancy ───────────────────── */
.page-section + .page-section {
  border-top: 1px solid rgba(63, 125, 101, 0.07);
}

/* ── ADMIN: front-end section toggle ────────────────────────────── */
.home-section-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(63, 125, 101, 0.2);
  background: rgba(255, 255, 255, 0.85);
  color: var(--hh-accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.home-section-toggle:hover {
  background: rgba(63, 125, 101, 0.08);
  border-color: var(--hh-accent);
}

.home-section-toggle__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hh-accent);
}

.home-section-toggle--hidden .home-section-toggle__dot {
  background: #ccc;
}

@media (max-width: 960px) {
  .site-header__inner {
    gap: 0;
  }

  .site-header__top {
    gap: 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 100%);
    height: 100vh;
    padding: 1rem;
    display: block;
    background: rgba(255, 250, 242, 0.98);
    box-shadow: -8px 0 32px rgba(32, 54, 47, 0.16);
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-x: visible;
  }

  .primary-navigation.is-open {
    transform: translateX(0);
  }

  .primary-navigation ul {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.82);
    border-radius: 24px;
  }

  .menu-item__row {
    justify-content: space-between;
  }

  .primary-navigation a {
    flex: 1 1 auto;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.7);
  }

  .submenu-toggle {
    width: 3rem;
    height: 3rem;
    margin-left: 0.5rem;
  }

  .sub-menu {
    position: static;
    min-width: 0;
    max-width: none;
    margin-top: 0.55rem;
    margin-left: 0.35rem;
    padding: 0.55rem;
    grid-template-columns: 1fr;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 18px;
    background: rgba(63, 125, 101, 0.07);
  }

  .sub-menu::before {
    display: none;
  }

  .menu-item-has-children.is-open > .sub-menu {
    display: grid;
  }

  .footer-navigation ul {
    grid-template-columns: 1fr;
  }

  .menu-close {
    display: inline-flex;
  }

  .header-cta {
    padding: 0.8rem 1rem;
  }

  .header-accessibility__label {
    display: none;
  }

  .hero__panel,
  .latest-reads-grid,
  .todays-picks-grid,
  .voices-grid,
  .cards-grid,
  .cards-grid--section,
  .section-band__grid,
  .site-footer__grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  /* Tablet: 2-column checks */
  .checks-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Why choose: stack vertically on tablet */
  .why-choose {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .why-choose__description {
    max-width: 100%;
  }

  /* Reset Today's Picks lead spanning */
  .todays-picks-grid__item--lead {
    grid-row: unset;
  }

  .todays-picks-grid__item--lead .article-card__media {
    aspect-ratio: 16 / 10;
  }

  .todays-picks-grid__item--lead .article-card__title {
    font-size: 1.3rem;
  }

  /* Reset Latest Reads featured card */
  .latest-reads-grid > .article-card:first-child {
    grid-column: unset;
    display: flex;
    grid-template-columns: unset;
    flex-direction: column;
  }

  .latest-reads-grid > .article-card:first-child .article-card__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
    border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
  }

  .latest-reads-grid > .article-card:first-child .article-card__body {
    padding: 1.25rem;
  }

  .latest-reads-grid > .article-card:first-child .article-card__title {
    font-size: 1.3rem;
  }

  /* Reset Popular Reads horizontal */
  #popular-reads .cards-grid--section .article-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
  }

  #popular-reads .cards-grid--section .article-card .article-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    border-radius: var(--hh-radius-lg) var(--hh-radius-lg) 0 0;
  }

  /* Reset Health Shorts */
  #health-shorts .cards-grid--section {
    grid-template-columns: 1fr;
  }

  .voice-card__quote {
    min-height: 0;
  }

  .article-card--horizontal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .site-footer__inner,
  .content-width {
    width: min(100% - 1.2rem, 1180px);
  }

  .hero {
    padding-top: 3rem;
  }

  .site-branding__tag {
    display: none;
  }

  .header-accessibility {
    padding: 0.7rem;
  }

  .hero__panel {
    border-radius: 24px;
  }

  .article-card__title {
    font-size: 1.25rem;
  }

  /* Mobile: single column checks */
  .checks-grid {
    grid-template-columns: 1fr;
  }

  /* Mobile: single column why-choose grid */
  .why-choose__grid {
    grid-template-columns: 1fr;
  }
}
