/* ============================================================
   VitaNova — Health & Wellness
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
  /* ---- Brand palette ----------------------------------------
     Deep teal carries trust and reads as clinical without being
     cold; ochre keeps the food/warmth side of the brand alive.
     ---------------------------------------------------------- */
  --clr-sage:       #1F5F5B;   /* primary  */
  --clr-sage-hover: #174744;
  --clr-sage-light: #4E8F8A;
  --clr-sage-pale:  #E6F1F0;
  --clr-sage-tint:  #D6E8E6;
  --clr-sage-ultra: #F3F9F8;

  --clr-amber:      #C6873A;   /* accent   */
  --clr-amber-text: #8A571F;   /* readable foreground on pale surfaces */
  --clr-amber-hover:#A96F2A;
  --clr-amber-light:#EBC894;
  --clr-amber-pale: #FBF3E7;

  --clr-plum:       #5F5A8C;
  --clr-plum-pale:  #EEEDF6;
  --clr-plum-tint:  #E3E1F0;
  --clr-sky:        #3D6E96;
  --clr-sky-pale:   #E9F1F7;

  /* ---- Semantic surfaces (swapped by the dark theme) -------- */
  --clr-text:       #1C2422;
  --clr-text-soft:  #52605D;
  --clr-text-muted: #65736F;
  --clr-border:     #DCE5E3;
  --clr-border-soft:#EAF0EF;
  --clr-white:      #FFFFFF;
  --clr-surface:    #FFFFFF;   /* cards, navbar, inputs */
  --clr-surface-2:  #F4F8F7;   /* subtle raised blocks  */
  --clr-off-white:  #F9FBFA;   /* page background       */
  --clr-dark:       #14211F;   /* headings              */
  --clr-panel-dark: #14211F;
  --clr-on-primary: #FFFFFF;   /* text on brand colour  */
  --clr-nav-bg:     rgba(255,255,255,.92);
  --clr-scrim:      rgba(20,33,31,.55);

  /* ---- Status ---------------------------------------------- */
  --clr-danger:     #C0392B;
  --clr-danger-pale:#FDEDEB;
  --clr-warn:       #8A6100;
  --clr-warn-pale:  #FFF6E0;
  --clr-warn-brd:   #F0D089;
  --clr-ok:         #1F5F5B;
  --clr-ok-pale:    #E6F1F0;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-arabic:  'IBM Plex Sans Arabic', 'DM Sans', system-ui, sans-serif;

  /* Spacing */
  --space-xs:  .25rem;
  --space-sm:  .5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;

  /* Radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   32px;
  --r-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(20,33,31,.06), 0 1px 2px rgba(20,33,31,.04);
  --shadow-md: 0 4px 16px rgba(20,33,31,.08), 0 2px 6px rgba(20,33,31,.05);
  --shadow-lg: 0 12px 40px rgba(20,33,31,.12), 0 4px 12px rgba(20,33,31,.06);

  /* Transitions */
  --ease: cubic-bezier(.25,.1,.25,1);
  --trans: .22s var(--ease);
}

/* ============================================================
   Dark theme — a token swap only, no component rules repeated
   ============================================================ */
[data-theme="dark"] {
  --clr-sage:       #5FB3AC;
  --clr-sage-hover: #7CC7C0;
  --clr-sage-light: #8FCFC9;
  --clr-sage-pale:  #16302E;
  --clr-sage-tint:  #1D403D;
  --clr-sage-ultra: #101F1E;

  --clr-amber:      #E0A868;
  --clr-amber-text: var(--clr-amber);
  --clr-amber-hover:#EDBB82;
  --clr-amber-light:#8A6534;
  --clr-amber-pale: #2A2015;

  --clr-plum:       #A49DD6;
  --clr-plum-pale:  #222033;
  --clr-plum-tint:  #2C2942;
  --clr-sky:        #7FB0D6;
  --clr-sky-pale:   #17242E;

  --clr-text:       #E4EBE9;
  --clr-text-soft:  #AFBCB9;
  --clr-text-muted: #A3B1AD;
  --clr-border:     #26332F;
  --clr-border-soft:#1D2825;
  --clr-white:      #131A18;
  --clr-surface:    #161F1D;
  --clr-surface-2:  #1B2523;
  --clr-off-white:  #0E1514;
  --clr-dark:       #F0F5F3;
  --clr-panel-dark: #080E0D;
  --clr-on-primary: #06110F;
  --clr-nav-bg:     rgba(22,31,29,.92);
  --clr-scrim:      rgba(0,0,0,.65);

  --clr-danger:     #F09A90;
  --clr-danger-pale:#2E1917;
  --clr-warn:       #E8C87A;
  --clr-warn-pale:  #2A2415;
  --clr-warn-brd:   #4A3D1C;
  --clr-ok:         #5FB3AC;
  --clr-ok-pale:    #16302E;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);

  color-scheme: dark;
}
[data-theme="dark"] img:not([src$=".svg"]) { filter: brightness(.92) contrast(1.02); }

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--clr-text);
  background: var(--clr-off-white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--clr-sage); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--clr-sage-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============================================================
   Typography
   ============================================================ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--clr-dark);
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--clr-text-soft); font-weight: 300; }

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.container--narrow { max-width: 780px; }
.container--wide   { max-width: 1400px; }

.section { padding-block: var(--space-4xl); }
.section--sm { padding-block: var(--space-2xl); }
.section--lg { padding-block: 6rem; }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--clr-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  transition: box-shadow var(--trans);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clr-dark);
}
.navbar__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--clr-sage);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-on-primary);
  font-size: 1.1rem;
}
.navbar__logo:hover { color: var(--clr-sage); }
.navbar__nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
  justify-content: center;
}
.navbar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  padding: .45rem .6rem;
  border-radius: var(--r-sm);
  font-size: .92rem;
  font-weight: 500;
  color: var(--clr-text-soft);
  transition: color var(--trans), background var(--trans);
}
.navbar__nav a:hover,
.navbar__nav a.active {
  color: var(--clr-sage);
  background: var(--clr-sage-pale);
}
.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.navbar__toggle {
  display: none;
  padding: .65rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--clr-text);
}
.navbar__toggle:hover { background: var(--clr-sage-pale); }
.navbar__mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--clr-border);
  padding: 1rem 1.5rem;
  gap: .25rem;
  background: var(--clr-surface);
}
.navbar__mobile.open { display: flex; max-height: calc(100dvh - 68px); overflow-y: auto; }
.navbar__mobile a {
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  color: var(--clr-text-soft);
}
.navbar__mobile a:hover,
.navbar__mobile a.active { background: var(--clr-sage-pale); color: var(--clr-sage); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--r-full);
  font-size: .92rem;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--trans);
  line-height: 1.4;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--clr-sage);
  color: var(--clr-on-primary);
  border-color: var(--clr-sage);
}
.btn--primary:hover {
  background: var(--clr-sage-hover);
  border-color: var(--clr-sage-hover);
  color: var(--clr-on-primary);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(31,95,91,.3);
}
.btn--outline {
  background: transparent;
  color: var(--clr-sage);
  border-color: var(--clr-sage);
}
.btn--outline:hover {
  background: var(--clr-sage);
  color: var(--clr-on-primary);
}
.btn--amber {
  background: var(--clr-amber);
  color: var(--clr-on-primary);
  border-color: var(--clr-amber);
}
.btn--amber:hover { background: var(--clr-amber-hover); border-color: var(--clr-amber-hover); color: var(--clr-on-primary); }
.btn--ghost {
  background: transparent;
  color: var(--clr-text-soft);
  border-color: var(--clr-border);
}
.btn--ghost:hover { background: var(--clr-sage-pale); color: var(--clr-sage); border-color: var(--clr-sage-pale); }
.btn--sm { padding: .45rem 1rem; font-size: .84rem; }
.btn--lg { padding: .9rem 2rem; font-size: 1rem; }
.btn--full { width: 100%; justify-content: center; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--clr-sage-ultra) 0%, var(--clr-sage-tint) 40%, var(--clr-amber-pale) 100%);
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; inset-inline-end: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31,95,91,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--clr-sage);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.hero__title {
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}
.hero__title em {
  color: var(--clr-sage);
  font-style: italic;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: var(--clr-text-soft);
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }
.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--clr-dark);
}
.hero__stat-label {
  font-size: .78rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__visual {
  position: relative;
}
.hero__image-wrap {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.hero__image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge-float {
  position: absolute;
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: .85rem 1.1rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .6rem;
}
.hero__badge-float--1 { bottom: -1rem; inset-inline-start: -1.5rem; }
.hero__badge-float--2 { top: 1rem; inset-inline-end: -1.5rem; }
.hero__badge-float-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.hero__badge-float-text .label {
  font-size: .7rem;
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero__badge-float-text .value {
  font-weight: 600;
  font-size: .9rem;
  color: var(--clr-dark);
}

/* ============================================================
   Categories
   ============================================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.category-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--clr-border);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-sage);
}
.category-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}
.category-card__name {
  font-weight: 600;
  font-size: .9rem;
  color: var(--clr-dark);
  margin-bottom: .25rem;
}
.category-card__count {
  font-size: .78rem;
  color: var(--clr-text-muted);
}

/* ============================================================
   Article Cards
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.article-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.article-card__image {
  container-type: inline-size;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--clr-sage-pale);
}
.article-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.article-card:hover .article-card__image img { transform: scale(1.05); }
.article-card__image > a { display: block; height: 100%; }

/* Editorial covers share the existing palette and never replace uploaded photos. */
.editorial-cover {
  --cover-surface: var(--clr-sage-pale);
  --cover-accent: var(--clr-sage);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: .4rem;
  min-width: 0;
  height: 100%;
  padding: clamp(.875rem, 1.5vw, 1.25rem);
  overflow: hidden;
  background: var(--cover-surface);
  color: var(--clr-text);
}
.editorial-cover--plum { --cover-surface: var(--clr-plum-pale); --cover-accent: var(--clr-plum); }
.editorial-cover--sky { --cover-surface: var(--clr-sky-pale); --cover-accent: var(--clr-sky); }
.editorial-cover--amber { --cover-surface: var(--clr-amber-pale); --cover-accent: var(--clr-amber-text); }
.editorial-cover__art {
  position: absolute;
  z-index: -1;
  width: 65%;
  height: 100%;
  inset-inline-end: -18%;
  top: 0;
  color: var(--cover-accent);
  opacity: .14;
}
.editorial-cover__edition {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .25rem .75rem;
  font-size: .65rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--clr-text-soft);
}
.editorial-cover__copy { min-width: 0; }
.editorial-cover__category {
  display: block;
  margin-bottom: .25rem;
  font-size: .7rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--clr-text-soft);
}
.editorial-cover__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  line-height: 1.35;
}
[dir="rtl"] .editorial-cover__title { font-family: var(--font-arabic); line-height: 1.55; }
.editorial-cover__reading { font-size: .65rem; line-height: 1.3; color: var(--clr-text-soft); }
.editorial-cover--large { min-height: 260px; height: auto; padding: clamp(1.5rem, 4vw, 3rem); }
.editorial-cover--large .editorial-cover__title { display: block; font-size: clamp(1.4rem, 3vw, 2.5rem); }

/* Nested cards can be narrower than the viewport (for example in the wellness panel). */
@container (max-width: 240px) {
  .editorial-cover { padding: .75rem; gap: .25rem; }
  .editorial-cover__edition > span:last-child,
  .editorial-cover__category { display: none; }
  .editorial-cover__title { -webkit-line-clamp: 2; }
}

.article-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* A compact editorial path, using the existing section rhythm and card language. */
.knowledge-to-plate {
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  background: var(--clr-sage-ultra);
}
.knowledge-to-plate .section-header { margin-bottom: 1.5rem; }
.knowledge-to-plate__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.knowledge-to-plate__steps > li { min-width: 0; }
.knowledge-to-plate__step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  background: var(--clr-surface);
  color: var(--clr-text);
  overflow-wrap: anywhere;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.knowledge-to-plate__step:hover { color: var(--clr-text); border-color: var(--clr-sage); box-shadow: var(--shadow-sm); }
.knowledge-to-plate__eyebrow { display: flex; align-items: center; gap: .5rem; font-size: .78rem; font-weight: 600; color: var(--clr-text-soft); }
.knowledge-to-plate__number { display: inline-grid; place-items: center; flex: 0 0 1.75rem; height: 1.75rem; border-radius: var(--r-full); background: var(--clr-sage-pale); color: var(--clr-sage); }
.knowledge-to-plate__step h3 { font-size: 1.15rem; margin: 0; }
.knowledge-to-plate__step p { font-size: .88rem; color: var(--clr-text-soft); margin: 0; }
.knowledge-to-plate__action { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .5rem; font-size: .85rem; font-weight: 600; color: var(--clr-sage); }
.knowledge-to-plate__note { margin: 1rem 0 0; font-size: .8rem; color: var(--clr-text-soft); }

.article-card__category {
  color: var(--clr-text);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-radius: var(--r-full);
  padding: .25rem .7rem;
  margin-bottom: .75rem;
}
.article-card__category:hover { color: var(--clr-text); }
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .6rem;
  line-height: 1.35;
  color: var(--clr-dark);
}
.article-card__title a { color: inherit; }
.article-card__title a:hover { color: var(--clr-sage); }
.article-card__excerpt {
  font-size: .9rem;
  color: var(--clr-text-soft);
  margin-bottom: 1rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
  color: var(--clr-text-muted);
  flex-wrap: wrap;
}
.article-card__meta-item { display: flex; align-items: center; gap: .3rem; }

/* ============================================================
   Diet Plan Cards
   ============================================================ */
.diet-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}
.plan-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  transition: all var(--trans);
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-sage-light);
}
.plan-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.plan-card__tag {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.plan-card__tag--age  { background: var(--clr-sky-pale);  color: var(--clr-sky); }
.plan-card__tag--goal { background: var(--clr-sage-pale); color: var(--clr-sage); }
.plan-card__tag--gender { background: var(--clr-plum-pale); color: var(--clr-plum); }
.plan-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--clr-dark);
}
.plan-card__title a { color: inherit; }
.plan-card__title a:hover { color: var(--clr-sage); }

.plan-card__desc {
  font-size: .9rem;
  color: var(--clr-text-soft);
  margin-bottom: 1.25rem;
}
.plan-card__link {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-sage);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.plan-card__link:hover { color: var(--clr-sage-light); }

/* ============================================================
   Mental Wellness Section
   ============================================================ */
.mental-section {
  background: linear-gradient(135deg, var(--clr-plum-pale), var(--clr-plum-tint));
  border-radius: var(--r-xl);
  padding: 3.5rem;
}
.mental-section__header { margin-bottom: 2rem; }
.mental-section__subtitle {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-plum);
  margin-bottom: .6rem;
}

/* ============================================================
   Newsletter Section
   ============================================================ */
.newsletter-section {
  background: var(--clr-sage);
  border-radius: var(--r-xl);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  bottom: -60px; inset-inline-end: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.newsletter-section h2, .newsletter-section p { color: var(--clr-on-primary); }
.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 1.5rem auto 0;
  gap: .5rem;
  background: var(--clr-surface);
  border-radius: var(--r-full);
  padding: .35rem .35rem .35rem 1.25rem;
}
.newsletter-form input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--clr-text);
  background: transparent;
}
.newsletter-form input::placeholder { color: var(--clr-text-muted); }
.newsletter-form .btn { flex-shrink: 0; }

/* ============================================================
   Trust Banner
   ============================================================ */
.trust-banner {
  background: var(--clr-amber-pale);
  border: 1px solid var(--clr-amber-light);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
.trust-banner__icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.trust-banner__text { font-size: .88rem; color: var(--clr-text-soft); line-height: 1.6; }
.trust-banner__text strong { color: var(--clr-text); }

/* ============================================================
   Article Single
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.article-content h2 { margin: 2rem 0 1rem; font-size: 1.5rem; }
.article-content h3 { margin: 1.5rem 0 .75rem; font-size: 1.2rem; }
.article-content p { margin-bottom: 1.25rem; color: var(--clr-text-soft); line-height: 1.8; }
.article-content ul, .article-content ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--clr-text-soft);
}
.article-content li { margin-bottom: .4rem; }
.article-content strong { color: var(--clr-text); }
.article-content em { color: var(--clr-sage); }

.article-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
}
.sidebar-card__heading {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin-bottom: 2rem;
  font-size: .88rem;
  color: var(--clr-text-muted);
}
.article-meta-bar span { display: flex; align-items: center; gap: .35rem; }

.key-points-box {
  background: var(--clr-sage-pale);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  border-inline-start: 4px solid var(--clr-sage);
}
.key-points-box__heading { font-size: 1.15rem; color: var(--clr-sage); margin-bottom: 1rem; }
.key-points-box li {
  padding-inline-start: 1.5rem;
  position: relative;
  margin-bottom: .5rem;
  color: var(--clr-text-soft);
  font-size: .95rem;
}
.key-points-box li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--clr-sage);
  font-weight: bold;
}

.recommendations-box {
  background: var(--clr-amber-pale);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin: 2rem 0;
  border-inline-start: 4px solid var(--clr-amber);
}
.recommendations-box__heading { font-size: 1.15rem; color: var(--clr-amber-text); margin-bottom: 1rem; }
.recommendations-box li {
  padding-inline-start: 1.5rem;
  position: relative;
  margin-bottom: .5rem;
  color: var(--clr-text-soft);
  font-size: .95rem;
}
.recommendations-box li::before {
  content: '→';
  position: absolute;
  inset-inline-start: 0;
  color: var(--clr-amber);
}

/* ============================================================
   Comments
   ============================================================ */
.comment {
  background: var(--clr-off-white);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--clr-border);
}
.comment__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .6rem;
}
.comment__avatar {
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  background: var(--clr-sage);
  color: var(--clr-on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: .9rem;
  flex-shrink: 0;
}
.comment__name { font-weight: 600; font-size: .92rem; }
.comment__date { font-size: .78rem; color: var(--clr-text-muted); }
.comment__body { font-size: .92rem; color: var(--clr-text-soft); }

/* ============================================================
   Forms
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; }
.contact-layout > * { min-width: 0; }
.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: .94rem;
  color: var(--clr-text);
  background: var(--clr-surface);
  transition: border-color var(--trans), box-shadow var(--trans);
  outline: none;
}
.form-control:focus {
  border-color: var(--clr-sage);
  box-shadow: 0 0 0 3px rgba(31,95,91,.12);
}
.form-control::placeholder { color: var(--clr-text-muted); }
.form-control.is-invalid { border-color: var(--clr-danger); }
.invalid-feedback {
  display: block;
  font-size: .8rem;
  color: var(--clr-danger);
  margin-top: .3rem;
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235A5E57' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-inline-end: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
}

/* ============================================================
   Alerts / Flash Messages
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  margin-bottom: 1.25rem;
  font-size: .92rem;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.alert--success { background: var(--clr-sage-pale); color: var(--clr-sage); border: 1px solid rgba(31,95,91,.2); }
.alert--error   { background: var(--clr-danger-pale); color: var(--clr-danger); border: 1px solid rgba(192,57,43,.28); }
.alert--info    { background: var(--clr-sky-pale); color: var(--clr-sky); border: 1px solid rgba(74,141,181,.2); }
.alert--warning { background: var(--clr-amber-pale); color: var(--clr-amber); border: 1px solid rgba(212,132,90,.2); }

/* ============================================================
   Disclaimer Box
   ============================================================ */
.disclaimer-box {
  background: var(--clr-warn-pale);
  border: 1px solid var(--clr-warn-brd);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: .75rem;
  font-size: .85rem;
  color: var(--clr-warn);
  line-height: 1.6;
}
.disclaimer-box__icon { font-size: 1.2rem; flex-shrink: 0; }

/* ============================================================
   Filters
   ============================================================ */
.filters-bar {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: .3rem; min-width: 160px; flex: 1; }
.filter-label { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--clr-text-muted); }

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 500;
  border: 1px solid var(--clr-border);
  color: var(--clr-text-soft);
  background: var(--clr-surface);
  transition: all var(--trans);
}
.pagination a:hover { background: var(--clr-sage-pale); color: var(--clr-sage); border-color: var(--clr-sage-pale); }
.pagination .active { background: var(--clr-sage); color: var(--clr-on-primary); border-color: var(--clr-sage); }
.pagination .disabled { opacity: .4; pointer-events: none; }

/* ============================================================
   Section Headers
   ============================================================ */
.section-header { margin-bottom: 2.5rem; }
.section-header--split { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.section-header--split > div { min-width: 0; }
.section-header--split > .btn { flex-shrink: 0; }
.section-header--centered { text-align: center; }
.section-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-sage);
  margin-bottom: .5rem;
}
.section-header p { color: var(--clr-text-soft); max-width: 560px; }
.section-header--centered p { margin-inline: auto; }

/* ============================================================
   Page Hero
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--clr-sage-ultra), var(--clr-sage-pale));
  padding: 3rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--clr-text-muted);
  margin-bottom: 1rem;
}
.page-hero__breadcrumb a { color: var(--clr-sage); }

/* ============================================================
   Badge / Tag
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge--sage   { background: var(--clr-sage-pale);  color: var(--clr-sage); }
.badge--amber  { background: var(--clr-amber-pale); color: var(--clr-amber); }
.badge--plum   { background: var(--clr-plum-pale);  color: var(--clr-plum); }
.badge--sky    { background: var(--clr-sky-pale);   color: var(--clr-sky); }
.badge--pending  { background: var(--clr-warn-pale); color: var(--clr-warn); }
.badge--approved { background: var(--clr-sage-pale); color: var(--clr-sage); }
.badge--rejected { background: var(--clr-danger-pale); color: var(--clr-danger); }

/* ============================================================
   Cookie Banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 2rem;
  max-width: 680px;
  width: calc(100% - 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cookie-banner.hidden { display: none; }
.cookie-banner__text { font-size: .9rem; color: var(--clr-text-soft); }
.cookie-banner__text strong { color: var(--clr-text); }
.cookie-banner__text a { color: var(--clr-sage); text-decoration: underline; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.cookie-banner__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cookie-banner__modal.hidden { display: none; }
.cookie-modal {
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: var(--clr-surface);
  border-radius: var(--r-xl);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.cookie-modal h3 { margin-bottom: 1rem; }
.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--clr-border);
}
.cookie-option:last-of-type { border-bottom: none; }
.cookie-option input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--clr-sage);
  margin-top: 2px;
  flex-shrink: 0;
}
.cookie-option label { font-size: .9rem; color: var(--clr-text-soft); }
.cookie-option label strong { color: var(--clr-text); display: block; margin-bottom: .2rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--clr-panel-dark);
  color: rgba(255,255,255,.7);
  padding-top: 4rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand .navbar__logo { color: #fff; margin-bottom: 1rem; }
.footer__brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer__heading {
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.8);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}
.footer__col ul li { margin-bottom: .5rem; }
.footer__col ul li a {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  transition: color var(--trans);
}
.footer__col ul li a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: .82rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer__disclaimer {
  font-size: .78rem;
  color: rgba(255,255,255,.8);
  padding: 1rem 0;
  border-top: 1px solid rgba(255,255,255,.06);
  line-height: 1.6;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--clr-panel-dark);
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.admin-sidebar__logo {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar__logo a {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
}
.admin-sidebar__nav {
  padding: 1rem;
  flex: 1;
}
.admin-sidebar__section-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255,255,255,.3);
  padding: .75rem .5rem .25rem;
}
.admin-sidebar__link {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .75rem;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--trans);
}
.admin-sidebar__link:hover { background: rgba(255,255,255,.07); color: var(--clr-on-primary); }
.admin-sidebar__link.active { background: var(--clr-sage); color: var(--clr-on-primary); }
.admin-sidebar__link-icon { width: 18px; text-align: center; font-size: 1rem; }

.admin-main { flex: 1; display: flex; flex-direction: column; background: var(--clr-surface-2); }
.admin-topbar {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-topbar h1 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }
.admin-content { padding: 2rem; flex: 1; }

.admin-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--clr-border);
  overflow: hidden;
}
.admin-card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-card__header h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 600; }
.admin-card__body { padding: 1.5rem; }

.stat-card {
  background: var(--clr-surface);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  border: 1px solid var(--clr-border);
}
.stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--clr-dark);
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-card__label { font-size: .85rem; color: var(--clr-text-muted); }
.stat-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: .9rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--clr-border);
  font-size: .9rem;
}
.admin-table th {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--clr-text-muted);
  background: var(--clr-off-white);
}
.admin-table tr:hover td { background: var(--clr-sage-ultra); }
.admin-table td:last-child { white-space: nowrap; }

.action-buttons { display: flex; gap: .4rem; align-items: center; }
.action-btn {
  padding: .35rem .7rem;
  border-radius: var(--r-sm);
  font-size: .8rem;
  font-weight: 600;
  transition: all var(--trans);
}
.action-btn--edit   { background: var(--clr-sky-pale);  color: var(--clr-sky); }
.action-btn--delete { background: var(--clr-danger-pale); color: var(--clr-danger); }
.action-btn--view   { background: var(--clr-sage-pale); color: var(--clr-sage); }
.action-btn--approve{ background: var(--clr-sage-pale); color: var(--clr-sage); }
.action-btn--reject { background: var(--clr-amber-pale); color: var(--clr-amber); }
.action-btn:hover { opacity: .8; }

/* ============================================================
   Utility
   ============================================================ */
.text-center { text-align: center; }
.text-right  { text-align: end; }
.text-muted  { color: var(--clr-text-muted); }
.text-soft   { color: var(--clr-text-soft); }
.text-sage   { color: var(--clr-sage); }
.text-amber  { color: var(--clr-amber); }
.text-sm     { font-size: .88rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }
.hidden { display: none; }
.divider { border: none; border-top: 1px solid var(--clr-border); margin: 2rem 0; }
.rounded { border-radius: var(--r-full); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: minmax(0, 1fr); }
  .navbar__nav { display: none; }
  .navbar__toggle { display: flex; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-sidebar--source-only { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .hero__badge-float { display: none; }
  .admin-sidebar { width: 220px; }
}

@media (max-width: 768px) {
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .diet-plans-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .mental-section { padding: 2rem; }
  .newsletter-section { padding: 2rem; }
  .newsletter-form { flex-direction: column; border-radius: var(--r-lg); padding: 1rem; }
  .newsletter-form input { padding: .5rem 0; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .section { padding-block: 3rem; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filters-bar { flex-direction: column; }
}

@media (max-width: 480px) {
  .navbar__actions > .btn { display: none; }
  .navbar__inner { gap: .5rem; }
  .navbar__actions { gap: .5rem; }
  .navbar > .container { padding-inline: 1rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__stats { gap: 1rem; }
  .cookie-banner { padding: 1.25rem; }
  .cookie-banner__actions { flex-direction: column; }
  .cookie-banner__actions .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   Google AdSense — Ad Slots Styling
   ============================================================ */

/* Wrapper label required by Google policy */
.adsense-wrapper {
  margin: 1.5rem 0;
  text-align: center;
}

.adsense-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--clr-text-muted);
  margin-bottom: .35rem;
  font-weight: 600;
}

/* Ensure ads don't break layout */
.adsbygoogle {
  display: block;
  min-height: 90px;
  background: var(--clr-off-white);
  border-radius: var(--r-sm);
}

/* Sidebar rectangle */
.adsense-wrapper--sidebar .adsbygoogle {
  min-height: 250px;
}

/* Between articles — fluid */
.adsense-wrapper--between {
  padding: 1.5rem 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  margin: 2rem 0;
}

/* ============================================================
   404 & Error Pages
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 15vw, 9rem);
  color: var(--clr-sage-pale);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.error-page__title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}
.error-page__desc {
  font-size: 1.05rem;
  color: var(--clr-text-soft);
  max-width: 440px;
  margin: 0 auto 2rem;
}

/* ============================================================
   AdSense — between articles grid items
   ============================================================ */
.articles-grid .adsense-between {
  grid-column: 1 / -1;
}

/* ============================================================
   Theme toggle (navbar control)
   ============================================================ */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  border: 1px solid var(--clr-border);
  background: var(--clr-surface);
  color: var(--clr-text-soft);
  flex: none;
  transition: color var(--trans), border-color var(--trans), background var(--trans);
}
.theme-toggle:hover { color: var(--clr-sage); border-color: var(--clr-sage); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ============================================================
   RTL / Arabic
   ============================================================ */
[dir="rtl"] { font-family: var(--font-arabic); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
  font-family: var(--font-arabic);
  font-weight: 600;
  line-height: 1.35;
}
[dir="rtl"] .article-content { line-height: 1.9; }
[dir="rtl"] .hero__title em { font-style: normal; color: var(--clr-sage); }
/* mirror the few glyph-based affordances */
[dir="rtl"] .pagination svg,
[dir="rtl"] svg[data-arrow],
[dir="rtl"] .breadcrumb-separator { transform: scaleX(-1); }
[dir="rtl"] .form-select { background-position: left 1rem center; }
[dir="rtl"] .recommendations-box li::before { content: '←'; }
input[type="email"], input[type="url"], input[type="tel"], code, pre {
  direction: ltr;
  unicode-bidi: isolate;
}
bdi, time { unicode-bidi: isolate; }

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 2000;
  padding: .7rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--clr-sage);
  color: var(--clr-on-primary);
  font-weight: 500;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; color: var(--clr-on-primary); }

:focus-visible {
  outline: 3px solid var(--clr-sage);
  outline-offset: 2px;
  border-radius: 3px;
}
.btn--primary:focus-visible,
.pagination .active:focus-visible { outline-color: var(--clr-amber); }
.footer :focus-visible { outline-color: #8FCFC9; }

/* only hide from sighted users, never from screen readers */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (prefers-contrast: more) {
  :root { --clr-text-muted: var(--clr-text-soft); --clr-border: var(--clr-text-muted); }
}

/* keep the ad slots from collapsing the layout while they load */
.ad-slot { min-height: 90px; contain: layout paint; }

/* ============================================================
   Language toggle
   ============================================================ */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 44px;
  gap: .4rem;
  padding-inline: .85rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: .85rem;
  font-weight: 500;
  color: var(--clr-text-soft);
  background: var(--clr-surface);
  white-space: nowrap;
  flex: none;
  transition: color var(--trans), border-color var(--trans);
}
.lang-toggle:hover { color: var(--clr-sage); border-color: var(--clr-sage); }
.lang-toggle__compact { display: none; }
@media (max-width: 560px) { .lang-toggle { padding-inline: .6rem; font-size: .8rem; } }
@media (max-width: 350px) {
  .navbar__inner { gap: .25rem; }
  .navbar__logo { gap: .4rem; }
  .navbar__actions { gap: .25rem; }
  .lang-toggle { gap: .25rem; padding-inline: .375rem; min-width: 44px; justify-content: center; }
  .lang-toggle__name { display: none; }
  .lang-toggle__compact { display: inline; }
}

/* links that sit on the brand-coloured newsletter / footer panels */
.newsletter-link {
  color: rgba(255,255,255,.8);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.newsletter-link:hover { color: #fff; }
.trust-banner__link {
  color: var(--clr-amber);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pagination .disabled { opacity: .4; cursor: default; }

/* ═══════════════════════════════════════════════════════════════
   WORLD DISHES
   Macro colours: protein = sky, carbs = amber, fat = plum.
   Logical properties only, so the layout mirrors in RTL.
   ═══════════════════════════════════════════════════════════════ */
.region-block { margin-bottom: 2.75rem; }
.region-block__title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--clr-border);
}
.country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: .85rem;
}
.country-tile {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .9rem 1rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  color: inherit;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.country-tile:hover {
  border-color: var(--clr-sage-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.country-tile__flag { font-size: 1.9rem; line-height: 1; }
.country-tile__name { font-weight: 600; color: var(--clr-dark); line-height: 1.25; }
.country-tile__count { font-size: .78rem; color: var(--clr-text-muted); }

.dish-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.dish-card {
  display: flex;
  flex-direction: column;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem;
  color: inherit;
  transition: border-color var(--trans), transform var(--trans), box-shadow var(--trans);
}
.dish-card:hover {
  border-color: var(--clr-sage-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.dish-card__country { font-size: .78rem; color: var(--clr-text-muted); margin-bottom: .35rem; }
.dish-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--clr-dark);
  margin-bottom: .45rem;
}
.dish-card__desc { font-size: .88rem; color: var(--clr-text-soft); margin-bottom: 1rem; flex: 1; }
.dish-card__cal { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .6rem; }
.dish-card__cal strong { font-size: 1.5rem; color: var(--clr-dark); font-variant-numeric: tabular-nums; }
.dish-card__cal span { font-size: .8rem; color: var(--clr-text-muted); }

/* Stacked bar showing where the calories come from */
.macro-bar {
  display: flex;
  height: 8px;
  border-radius: var(--r-full);
  overflow: hidden;
  background: var(--clr-border-soft);
  gap: 2px;
}
.macro-bar > span { display: block; height: 100%; }
.macro-bar--lg { height: 14px; }
.macro-protein { background: var(--clr-sky); }
.macro-carbs   { background: var(--clr-amber); }
.macro-fat     { background: var(--clr-plum); }

.macro-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .55rem;
  font-size: .78rem;
  color: var(--clr-text-soft);
}
.macro-legend i {
  display: inline-block;
  width: .6rem; height: .6rem;
  border-radius: 2px;
  margin-inline-end: .3rem;
  vertical-align: baseline;
}

/* Nutrition panel on the dish page */
.nutrition-panel {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.nutrition-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 1.5rem;
  margin-bottom: 1.25rem;
}
.nutrition-panel__kcal { font-size: 2.6rem; font-weight: 700; color: var(--clr-dark); line-height: 1; font-variant-numeric: tabular-nums; }
.nutrition-panel__kcal small { font-size: .95rem; font-weight: 500; color: var(--clr-text-muted); margin-inline-start: .3rem; }
.nutrition-panel__serving { font-size: .88rem; color: var(--clr-text-soft); }
.macro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1.25rem;
}
.macro-stat {
  border-radius: var(--r-md);
  padding: .9rem 1rem;
  border-inline-start: 4px solid;
}
.macro-stat--protein { background: var(--clr-sky-pale);   border-color: var(--clr-sky); }
.macro-stat--carbs   { background: var(--clr-amber-pale); border-color: var(--clr-amber); }
.macro-stat--fat     { background: var(--clr-plum-pale);  border-color: var(--clr-plum); }
.macro-stat__label { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--clr-text-soft); }
.macro-stat__value { font-size: 1.35rem; font-weight: 700; color: var(--clr-dark); font-variant-numeric: tabular-nums; }
.macro-stat__pct { font-size: .78rem; color: var(--clr-text-muted); }
.nutrition-panel__per100 {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--clr-border-soft);
  font-size: .85rem;
  color: var(--clr-text-soft);
}

@media (max-width: 480px) {
  .macro-stats { grid-template-columns: 1fr; }
  .country-grid { grid-template-columns: repeat(2, 1fr); }
  .country-tile { flex-direction: column; text-align: center; gap: .4rem; }
}

/* Page header with a photo beside the text (World Dishes) */
.page-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.page-hero__photo {
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 7 / 5;
}
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .page-hero__split { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Dish photo at the top of a card (only when one was uploaded) */
.dish-card__photo {
  margin: -1.4rem -1.5rem 1.1rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--clr-sage-pale);
}
.dish-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Diet plan photo at the top of a card (only when one was uploaded) */
.plan-card__photo {
  display: block;
  margin: -2rem -2rem 1.25rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--clr-sage-pale);
}
.plan-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Country flags (SVG images, so they also show on Windows) */
.flag {
  display: inline-block;
  width: 1.35em;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
  vertical-align: -0.15em;
  object-fit: cover;
}
.flag--none { box-shadow: none; text-align: center; }
.country-tile__flag { display: inline-flex; flex-shrink: 0; }
.country-tile__flag .flag { width: 44px; border-radius: 5px; vertical-align: middle; }
.title-with-flag .flag { width: .95em; margin-inline-end: .15em; vertical-align: -0.05em; }

[data-theme="dark"] .footer { border-top: 1px solid var(--clr-border); }

/* ============================================================
   PAGE TRANSITIONS & LOADING
   ============================================================ */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; }

.page-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  z-index: 10000;
  height: 3px;
  width: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--clr-sage), var(--clr-amber));
}
.page-progress.is-loading {
  opacity: 1;
  width: 88%;
  transition: width 8s cubic-bezier(.08,.8,.2,1);
}
.page-progress.is-done {
  width: 100%;
  opacity: 0;
  transition: width .2s ease-out, opacity .3s ease .15s;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal:focus-within,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .page-progress { display: none; }
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ============================================================
   Navbar: frosted glass when scrolling
   ============================================================ */
:root { --clr-nav-glass: rgba(255,255,255,.55); --clr-nav-glass-border: rgba(255,255,255,.35); }
[data-theme="dark"] { --clr-nav-glass: rgba(22,31,29,.55); --clr-nav-glass-border: rgba(255,255,255,.08); }

.navbar {
  transition: background-color .3s ease, border-color .3s ease, box-shadow var(--trans);
}
.navbar.scrolled {
  background: var(--clr-nav-glass);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: var(--clr-nav-glass-border);
}
/* keep it solid when the mobile menu is open, so the links stay readable */
.navbar.scrolled:has(.navbar__mobile.open) { background: var(--clr-nav-bg); }
/* old browsers without blur: stay solid */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .navbar.scrolled { background: var(--clr-nav-bg); }
}

/* Adjacent half-gaps keep the homepage section rhythm consistent. */
.home-page { --home-section-space: 2.5rem; }
.home-page > .section { padding-block: var(--home-section-space); }
.home-page .section-header { margin-bottom: 1.75rem; }
.home-articles { background: var(--clr-surface); }
.newsletter-section .newsletter-link { color: inherit; }
.hero__copy, .hero__visual, .footer__grid > * { min-width: 0; }
.hero__subtitle { text-wrap: pretty; }
.footer__col ul li a { display: inline-block; padding-block: .25rem; }
.footer input::placeholder { color: rgba(255,255,255,.75); }
@media (max-width: 1024px) {
  .home-page { --home-section-space: 1.75rem; }
  .hero { padding-block: 3rem; }
  .hero__grid { gap: 2rem; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .articles-grid, .diet-plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .home-page { --home-section-space: 1.25rem; }
  .hero { padding-block: 2.5rem; }
  .hero__subtitle { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero__actions { margin-bottom: 1.5rem; }
  .category-card { padding: 1.25rem .75rem; }
}
/*----*/
/* Article table of contents — compact, collapsible */
.article-toc {
  margin-bottom: 1.75rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md);
  border-inline-start: 3px solid var(--clr-sage);
}
.article-toc summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1rem;
  cursor: pointer;
  list-style: none;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--clr-sage);
  user-select: none;
}
.article-toc summary::-webkit-details-marker { display: none; }
.article-toc summary::after {
  content: "";
  margin-inline-start: auto;
  width: .45rem;
  height: .45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.article-toc details[open] summary::after { transform: rotate(-135deg); }
.article-toc ol {
  list-style: none;
  margin: 0;
  padding: 0 1rem .85rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.article-toc li { margin: 0; }
.article-toc a {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 999px;
  background: var(--clr-sage-pale);
  color: var(--clr-text-soft);
  font-size: .82rem;
  line-height: 1.35;
  transition: background-color .2s ease, color .2s ease;
}
.article-toc a:hover,
.article-toc a:focus-visible { background: var(--clr-sage); color: #fff; }

/* land below the sticky navbar, scroll smoothly */
#article-summary, #main-points, #article-body,
#recommendations, #disclaimer-note, #comments { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Article author & primary source card */
.source-card{background:var(--clr-surface);border:1px solid var(--clr-border);border-radius:var(--r-lg);overflow:hidden}
.source-card__author{display:flex;align-items:center;gap:.8rem;padding:1.1rem 1.2rem;background:linear-gradient(135deg,var(--clr-sage-pale),transparent)}
.source-card__avatar{flex:none;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--clr-sage);color:#fff;font-weight:700;font-size:1rem;box-shadow:0 0 0 3px var(--clr-surface),0 0 0 5px var(--clr-sage-pale)}
.source-card__label{display:block;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--clr-sage);margin-bottom:.15rem}
.source-card__name{display:block;font-weight:700;font-size:.95rem;color:var(--clr-text);line-height:1.3}
.source-card__role{display:block;font-size:.8rem;color:var(--clr-text-soft)}
.source-card__ref{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.2rem;border-top:1px dashed var(--clr-border);color:var(--clr-text);transition:background-color .2s}
.source-card__ref:hover{background:var(--clr-sage-pale)}
.source-card__ref-icon{flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;background:var(--clr-amber-pale);color:var(--clr-amber)}
.source-card__ref-body{min-width:0;flex:1}
.source-card__ref-name{display:block;font-weight:600;font-size:.88rem;line-height:1.35}
.source-card__ref-domain{display:block;font-size:.75rem;color:var(--clr-text-soft);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-card__arrow{flex:none;color:var(--clr-text-soft);transition:transform .2s}
.source-card__ref:hover .source-card__arrow{transform:translate(2px,-2px);color:var(--clr-sage)}
[dir=rtl] .source-card__arrow{transform:scaleX(-1)}
[dir=rtl] .source-card__ref:hover .source-card__arrow{transform:scaleX(-1) translate(2px,-2px)}
.source-card--inline{display:none;margin:1.25rem 0 0}
@media (max-width:1024px){.article-sidebar .source-card{display:none}.source-card--inline{display:block}}

/* Dish page hero — soft editorial */
.dish-hero { padding: 1.25rem 0 1rem; }
.dish-hero .page-hero__breadcrumb { margin-bottom: 1.1rem; }
.dish-hero__photo { position: relative; margin: 0; height: clamp(260px, 42vw, 480px); border-radius: 32px 32px 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.dish-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); animation: dishZoom 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes dishZoom { from { transform: scale(1.08); opacity: .4; } to { transform: scale(1.02); opacity: 1; } }
.dish-hero__head { position: relative; text-align: center; max-width: 720px; margin: -7rem auto 0; padding: 0 1rem; animation: dishRise .8s .15s cubic-bezier(.2,.7,.2,1) both; }
.dish-hero--no-photo .dish-hero__head { margin-top: 1rem; }
@keyframes dishRise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.dish-hero__country { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .95rem .4rem .55rem; border-radius: 999px; background: color-mix(in srgb, var(--clr-surface) 78%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid color-mix(in srgb, var(--clr-border) 70%, transparent); color: var(--clr-sage); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 6px 18px -10px rgba(0,0,0,.3); transition: transform .25s ease, box-shadow .25s ease; }
.dish-hero__country:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(0,0,0,.35); color: var(--clr-sage); }
.dish-hero__country .flag { width: 1.4em; border-radius: 3px; }
.dish-hero__head h1 { margin: .9rem 0 .2rem; font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1.02; letter-spacing: -.01em; }
.dish-hero__alt { margin: 0; color: var(--clr-text-soft); font-style: italic; }
.dish-hero__line { display: block; width: 56px; height: 3px; margin: 1.1rem auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--clr-sage), var(--clr-amber)); }
.dish-hero__stats { display: flex; justify-content: center; flex-wrap: wrap; margin: 1.4rem auto 0; padding: .35rem; width: fit-content; border-radius: 999px; background: var(--clr-surface); border: 1px solid var(--clr-border); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.dish-hero__stat { display: flex; flex-direction: column; align-items: center; padding: .45rem 1.4rem; line-height: 1.15; }
.dish-hero__stat + .dish-hero__stat { border-inline-start: 1px solid var(--clr-border); }
.dish-hero__stat strong { font-size: 1.25rem; color: var(--clr-text); }
.dish-hero__stat span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-text-soft); }
.dish-hero__stat--kcal strong { color: var(--clr-sage); }
@media (max-width: 640px) {
  .dish-hero__photo { border-radius: 22px 22px 0 0; }
  .dish-hero__head { margin-top: -4.5rem; }
  .dish-hero__stats { border-radius: 18px; }
  .dish-hero__stat { padding: .4rem .9rem; }
}
@media (prefers-reduced-motion: reduce) { .dish-hero__photo img, .dish-hero__head { animation: none; } }
/* photo credit sits in the opaque top corner (the bottom of the photo fades out) */
.dish-hero__credit { position: absolute; top: .75rem; inset-inline-end: .75rem; max-width: calc(100% - 1.5rem); padding: .25rem .65rem; border-radius: 999px; background: rgba(0,0,0,.5); color: #fff; font-size: .7rem; line-height: 1.3; }

/* ============================================================
   Admin searchable select
   ============================================================ */
.combo { position: relative; width: 100%; }
.combo__field { position: relative; }
.combo__input { padding-inline-end: 2.4rem; }
.combo__clear { position: absolute; top: 50%; inset-inline-end: .45rem; transform: translateY(-50%); width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: 1.2rem; line-height: 1; color: var(--clr-text-muted); }
.combo__clear:hover, .combo__clear:focus-visible { background: var(--clr-surface-2); color: var(--clr-text); }
.combo__list { position: absolute; z-index: 50; top: calc(100% + 4px); inset-inline-start: 0; width: 100%; min-width: 300px; max-height: 300px; overflow-y: auto; margin: 0; padding: .3rem; list-style: none; background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.combo__option { display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem; border-radius: var(--r-sm); font-size: .88rem; color: var(--clr-text); cursor: pointer; }
.combo__option[hidden], .combo__none[hidden] { display: none; }
.combo__option.is-active { background: var(--clr-sage-pale); }
.combo__option[aria-selected="true"] { font-weight: 600; }
.combo__option .flag { width: 1.35em; flex-shrink: 0; }
.combo__sep { color: var(--clr-text-muted); }
.combo__name-ar { color: var(--clr-text-soft); }
.combo__count { margin-inline-start: auto; color: var(--clr-text-muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.combo__option--empty { color: var(--clr-text-muted); }
.combo__option--empty .flag { opacity: .5; }
.combo__none { padding: .6rem; font-size: .85rem; color: var(--clr-text-muted); }
/* let the dropdown escape cards that clip their content */
.admin-card:has(.combo) { overflow: visible; }

/* Country page hero — ambient flag glow */
.country-hero { position: relative; overflow: hidden; isolation: isolate; padding: 1.5rem 0 3.25rem; text-align: center; border-bottom: 1px solid var(--clr-border); }
.country-hero::before { content: ""; position: absolute; inset: -30% -10%; background: var(--flag, none) center / cover no-repeat; filter: blur(120px) saturate(1.2); opacity: .50; z-index: -2; }
.country-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 70% at 50% 35%, transparent 0%, color-mix(in srgb, var(--clr-bg) 55%, transparent) 70%), linear-gradient(180deg, transparent 30%, var(--clr-bg) 95%); z-index: -1; }
[data-theme="dark"] .country-hero::before { opacity: .12; }
.country-hero .page-hero__breadcrumb { justify-content: center; margin-bottom: 2rem; }
.country-hero__flag { display: inline-block; width: 96px; border-radius: 14px; overflow: hidden; line-height: 0; box-shadow: 0 0 0 4px var(--clr-surface), 0 18px 36px -14px rgba(0,0,0,.45); transform: rotate(-3deg); transition: transform .4s cubic-bezier(.2,.7,.2,1); animation: flagIn .9s cubic-bezier(.2,.7,.2,1) both; }
.country-hero__flag:hover { transform: rotate(0) scale(1.04); }
.country-hero__flag .flag { width: 100%; height: auto; display: block; margin: 0; }
.country-hero__flag .flag--none { font-size: 4rem; line-height: 1; }
@keyframes flagIn { from { transform: translateY(12px) rotate(-8deg); opacity: 0; } to { transform: rotate(-3deg); opacity: 1; } }
.country-hero__region { display: inline-block; margin-top: 1.4rem; padding: .3rem .85rem; border-radius: 999px; background: color-mix(in srgb, var(--clr-surface) 75%, transparent); border: 1px solid var(--clr-border); color: var(--clr-sage); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.country-hero__kicker { display: block; margin-top: 1rem; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--clr-text-soft); font-style: italic; }
[dir="rtl"] .country-hero__kicker { font-style: normal; }
.country-hero h1 { margin: .1rem 0 0; font-size: clamp(2.8rem, 7vw, 4.8rem); line-height: 1; letter-spacing: -.015em; }
.country-hero__intro { max-width: 620px; margin: 1.1rem auto 0; font-size: 1.05rem; line-height: 1.75; color: var(--clr-text-soft); }
.country-hero__stats { display: inline-flex; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; padding: .35rem; border-radius: 999px; background: var(--clr-surface); border: 1px solid var(--clr-border); box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
.country-hero__stat { padding: .45rem 1.3rem; line-height: 1.15; }
.country-hero__stat + .country-hero__stat { border-inline-start: 1px solid var(--clr-border); }
.country-hero__stat strong { display: block; font-size: 1.2rem; color: var(--clr-text); }
.country-hero__stat span { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--clr-text-soft); }
@media (max-width: 640px) { .country-hero { padding-bottom: 2.5rem; } .country-hero__flag { width: 76px; border-radius: 11px; } .country-hero__stats { border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .country-hero__flag { animation: none; } }
/* the page background variable is --clr-off-white; give the hero's fade its --clr-bg */
.country-hero { --clr-bg: var(--clr-off-white); }

/* Article and diet plan pages: long titles get a smaller heading */
.page-hero--detail h1 { font-size: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   Section hero with photo — the photo fades in behind the text
   (Articles, Diet Plans, World Dishes, About, Contact)
   ============================================================ */
.page-hero__split { position: relative; display: flex; align-items: center; min-height: clamp(300px, 30vw, 400px); }
.page-hero__split > div:first-child { position: relative; z-index: 1; max-width: 540px; }
.page-hero__split .page-hero__photo {
  position: absolute; inset-block: -3rem; inset-inline-end: 0; width: 62%;
  margin: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent 100%);
          mask-image: linear-gradient(to left, #000 45%, transparent 100%);
}
[dir="rtl"] .page-hero__split .page-hero__photo {
  -webkit-mask-image: linear-gradient(to right, #000 45%, transparent 100%);
          mask-image: linear-gradient(to right, #000 45%, transparent 100%);
}
.page-hero__split .page-hero__breadcrumb { display: inline-flex; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--clr-surface) 80%, transparent); border: 1px solid var(--clr-border); font-size: .75rem; margin-bottom: 1.4rem; }
.page-hero__split .section-label { display: flex; align-items: center; gap: .6rem; font-size: .72rem; letter-spacing: .14em; margin-bottom: .75rem; }
.page-hero__split .section-label::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--clr-amber); }
.page-hero__split h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--clr-sage); }
.page-hero__split .lead { font-size: 1rem; line-height: 1.7; }
@media (max-width: 768px) {
  .page-hero__split { display: block; min-height: 0; }
  .page-hero__split .page-hero__photo { position: relative; inset: auto; width: 100%; height: 220px; margin-top: 1.5rem; border-radius: var(--r-xl); -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   Diet plan page hero
   ============================================================ */
.plan-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(40% 60% at 95% 10%, color-mix(in srgb, var(--clr-amber) 16%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 100%, color-mix(in srgb, var(--clr-sage) 16%, transparent), transparent 70%),
    var(--clr-bg);
}
.plan-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
}
.plan-hero__text > * { animation: planRise .8s cubic-bezier(.2,.7,.2,1) both; }
.plan-hero__text > *:nth-child(2) { animation-delay: .08s; }
.plan-hero__text > *:nth-child(3) { animation-delay: .16s; }
.plan-hero__text > *:nth-child(4) { animation-delay: .24s; }
.plan-hero__text > *:nth-child(n+5) { animation-delay: .32s; }
@keyframes planRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.plan-hero__tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: .5rem 0 1.1rem; }
.plan-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -.015em;
}
.plan-hero__desc {
  max-width: 560px;
  margin: 1.1rem 0 0;
  font-size: 1.1rem; line-height: 1.8;
  color: var(--clr-text-soft);
}
.plan-hero__facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.plan-hero__fact {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .95rem .55rem .6rem;
  border-radius: 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  box-shadow: 0 8px 22px -16px rgba(0,0,0,.35);
}
.plan-hero__fact-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--clr-sage-pale); font-size: 1.05rem;
}
.plan-hero__fact strong { unicode-bidi: plaintext; display: block; font-size: 1rem; color: var(--clr-text); line-height: 1.15; }
.plan-hero__fact span { font-size: .75rem; color: var(--clr-text-soft); }
.plan-hero__cta { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.8rem; }
.plan-hero__cta svg { transition: transform .25s ease; }
.plan-hero__cta:hover svg { transform: translateY(3px); }

/* visual side */
.plan-hero__visual { position: relative; animation: planRise 1s .1s cubic-bezier(.2,.7,.2,1) both; }
.plan-hero__photo {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.plan-hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.plan-hero__visual:hover .plan-hero__photo img { transform: scale(1.04); }

/* "your day" card */
.plan-day {
  position: absolute;
  inset-inline-start: -2rem;
  bottom: -1.5rem;
  width: min(260px, 70%);
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: color-mix(in srgb, var(--clr-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--clr-border) 70%, transparent);
  box-shadow: 0 22px 44px -22px rgba(0,0,0,.45);
  animation: planFloat 7s ease-in-out infinite;
}
@keyframes planFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.plan-day__title { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--clr-sage); margin: 0 0 .6rem; }
.plan-day ol { list-style: none; margin: 0; padding: 0; position: relative; }
.plan-day ol::before {               /* timeline line */
  content: ""; position: absolute; top: .9rem; bottom: .9rem; inset-inline-start: 15px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(var(--clr-sage-pale), color-mix(in srgb, var(--clr-amber) 35%, transparent));
}
.plan-day li { position: relative; display: flex; align-items: center; gap: .7rem; padding: .3rem 0; font-size: .88rem; font-weight: 500; color: var(--clr-text); }
.plan-day li span {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  font-size: .95rem; z-index: 1;
}
/* no photo: the day card becomes the visual */
.plan-hero--no-photo .plan-day { position: relative; inset: auto; width: auto; max-width: 380px; margin-inline: auto; padding: 1.5rem 1.6rem; animation: none; }
.plan-hero--no-photo .plan-day li { font-size: 1rem; padding: .45rem 0; }

@media (max-width: 900px) {
  .plan-hero { padding: 1.5rem 0 3rem; }
  .plan-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .plan-hero__visual { max-width: 560px; width: 100%; margin-inline: auto; }
  .plan-day { inset-inline-start: .75rem; bottom: -1.25rem; }
}
@media (max-width: 520px) {
  .plan-day { position: relative; inset: auto; width: auto; margin: -2.5rem .75rem 0; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-hero__text > *, .plan-hero__visual, .plan-day { animation: none; }
}
/* the page background variable is --clr-off-white; give the hero background its --clr-bg */
.plan-hero { --clr-bg: var(--clr-off-white); }
