/* ==========================================================================
   Diet Plans — extends Health Hub design system
   ========================================================================== */

/* ── Fruit snack cells in week plan ─────────────────────────── */
.diet-week-snack-col {
  min-width: 160px;
  vertical-align: top;
}

.diet-snack-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.diet-snack-cell__plan {
  font-size: 0.78rem;
  color: var(--cacao-light, #8a6f5c);
  line-height: 1.3;
}

.diet-snack-cell__fruit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest, #2C5E3B);
}

.diet-snack-cell__kcal {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cacao-light, #8a6f5c);
}

.diet-snack-cell__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.diet-snack-log-btn,
.diet-snack-pick-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(44, 94, 59, 0.25);
  background: rgba(44, 94, 59, 0.08);
  color: var(--forest, #2C5E3B);
  cursor: pointer;
}

.diet-snack-log-btn {
  background: var(--forest, #2C5E3B);
  color: #fff;
  border-color: var(--forest, #2C5E3B);
}

.diet-snack-log-btn:hover,
.diet-snack-pick-btn:hover {
  opacity: 0.9;
}

/* ── Fruit picker modal ─────────────────────────────────────── */
.diet-fruit-picker {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.diet-fruit-picker.hidden {
  display: none;
}

.diet-fruit-picker-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 20, 0.45);
}

.diet-fruit-picker-panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 70vh;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 20px 16px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.diet-fruit-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.diet-fruit-picker-header h3 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: var(--forest, #2C5E3B);
}

.diet-fruit-picker-close {
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--cacao-light, #8a6f5c);
  line-height: 1;
}

.diet-fruit-picker-sub {
  font-size: 0.8rem;
  color: var(--cacao-light, #8a6f5c);
  margin: 0 0 12px;
}

.diet-fruit-picker-list {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.diet-fruit-pick-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid #e8e4d8;
  border-radius: 12px;
  background: var(--cream-light, #FDFBF7);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.diet-fruit-pick-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f0e8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diet-fruit-pick-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.diet-fruit-pick-item__emoji {
  font-size: 1.4rem;
}

.diet-fruit-pick-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.diet-fruit-pick-item__name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--forest, #2C5E3B);
}

.diet-fruit-pick-item__kcal {
  font-size: 0.75rem;
  color: var(--cacao-light, #8a6f5c);
}

.diet-fruit-pick-item__action {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--forest, #2C5E3B);
}

@media (min-width: 640px) {
  .diet-fruit-picker {
    align-items: center;
  }
  .diet-fruit-picker-panel {
    border-radius: 20px;
    margin: 20px;
  }
}

/* ── Hero ──────────────────────────────────────────────────── */
.diet-hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.diet-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.diet-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(30, 68, 41, 0.92) 0%,
    rgba(44, 94, 59, 0.55) 45%,
    rgba(44, 94, 59, 0.25) 100%
  );
}
.diet-hero__content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
  width: 100%;
}
.diet-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: var(--sp-3);
}
.diet-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin: 0 0 var(--sp-3);
}
.diet-hero__title em {
  font-style: italic;
  color: var(--honey-light);
}
.diet-hero__sub {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  line-height: 1.7;
  margin: 0;
}

/* ── Diet selector cards ───────────────────────────────────── */
.diet-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-5);
}
.diet-select-card {
  --card-color: var(--forest);
  background: var(--white);
  border: 2px solid var(--cream-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  transition: transform var(--tr-fast), box-shadow var(--tr-fast), border-color var(--tr-fast);
  position: relative;
}
.diet-select-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--tr);
  z-index: 2;
}
.diet-select-card:hover,
.diet-select-card.active {
  border-color: var(--card-color);
  box-shadow: var(--sh-md);
  transform: translateY(-4px);
}
.diet-select-card:hover::before,
.diet-select-card.active::before {
  transform: scaleX(1);
}
.diet-select-card__img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--cream-dark);
}
.diet-select-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.diet-select-card:hover .diet-select-card__img {
  transform: scale(1.06);
}
.diet-select-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 60%);
}
.diet-select-card__icon {
  position: absolute;
  bottom: 10px;
  left: 12px;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.diet-select-card__active-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--forest);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.diet-select-card__body {
  padding: var(--sp-4);
}
.diet-select-card__label {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--cacao);
  margin-bottom: 6px;
  line-height: 1.3;
}
.diet-select-card__tagline {
  font-size: var(--text-xs);
  color: var(--cacao-light);
  line-height: 1.5;
}

/* ── Plan header extras ────────────────────────────────────── */
.diet-plan-hero-img {
  width: 88px;
  height: 88px;
  border-radius: var(--r-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--cream-dark);
  box-shadow: var(--sh-sm);
}
.diet-plan-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.diet-category-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--honey-dark);
  background: var(--honey-light);
  padding: 4px 12px;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-2);
}
.diet-active-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.35);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--forest);
  margin-bottom: var(--sp-5);
}
.diet-active-banner.hidden {
  display: none;
}
.diet-active-banner svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}
.diet-sidebar-status {
  font-size: var(--text-sm);
  color: var(--cacao-light);
  margin: 0 0 var(--sp-2);
  font-weight: 500;
}
.diet-sidebar-status.is-active {
  color: var(--forest);
  font-weight: 700;
}
.diet-sidebar-hint {
  font-size: var(--text-xs);
  color: var(--cacao-light);
  line-height: 1.5;
}

#diet-activity-block.hidden {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .diet-hero {
    min-height: 280px;
  }
  .diet-hero__content {
    padding: 2.5rem 1.25rem 2rem;
  }
  .diet-select-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-3);
  }
  .diet-select-card__img-wrap {
    height: 110px;
  }
  .hh-plan-header__left {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .diet-select-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Gym Fuel (inside Diet page)
   ========================================================================== */

.diet-mode-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 94, 59, 0.1);
  padding: 10px 16px;
}

.capacitor-native .diet-mode-bar {
  top: calc(52px + env(safe-area-inset-top, 0px));
}

.diet-mode-bar__inner {
  display: flex;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto;
}

.diet-mode-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(44, 94, 59, 0.18);
  background: var(--white, #fff);
  color: var(--cacao, #5A4032);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.diet-mode-btn i {
  width: 18px;
  height: 18px;
}

.diet-mode-btn.active {
  background: var(--forest, #2C5E3B);
  border-color: var(--forest, #2C5E3B);
  color: #fff;
}

/* ── Fitness Hub hero (taller + readable like Health Hub) ── */
.fh-hero {
  min-height: 520px;
  align-items: center;
  background: #1a3a2a;
}

.fh-hero .diet-hero__bg {
  object-fit: cover;
  object-position: center 28%;
}

.fh-hero .diet-hero__overlay {
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(12, 28, 18, 0.92) 0%,
    rgba(26, 58, 42, 0.78) 48%,
    rgba(10, 20, 14, 0.55) 100%
  );
}

.fh-hero .diet-hero__content {
  z-index: 2;
  padding: 4.5rem 2rem 3.25rem;
}

.fh-hero .diet-hero__eyebrow {
  background: rgba(241, 196, 15, 0.16);
  border: 1px solid rgba(241, 196, 15, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  color: #F1C40F !important;
  text-shadow: none;
}

.fh-hero .diet-hero__title {
  color: #ffffff !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
}

.fh-hero .diet-hero__title em {
  color: #F1C40F !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.fh-hero .diet-hero__sub {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  max-width: 640px;
}

/* Stats strip tagline (was unstyled / almost invisible) */
.hh-stats__tagline,
.fh-stats .hh-stats__tagline {
  margin: 0 0 0.85rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff !important;
  opacity: 1;
}

.fh-stats .hh-stat__num {
  color: #F1C40F !important;
}

.fh-stats .hh-stat__label {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* ── Fitness Hub section banners ── */
.fh-sec-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 210px;
  margin: 0 0 1.35rem;
  box-shadow: 0 8px 24px rgba(44, 94, 59, 0.14);
  background: #1a3a2a;
}

.fh-sec-banner--goals {
  min-height: 230px;
}

.fh-sec-banner--sm {
  min-height: 132px;
  max-height: 148px;
  margin: 0 0 1rem;
  border-radius: 14px;
}

.fh-sec-banner--fuel {
  min-height: 190px;
}

/* Shakes banner: keep a tidy crop (image is very wide/close-up) */
#gf-sec-shakes .fh-sec-banner--sm {
  min-height: 120px;
  max-height: 128px;
}

#gf-sec-shakes .fh-sec-banner__img {
  object-position: center 42%;
  transform: scale(1.02);
}

.fh-sec-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.fh-sec-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 28, 18, 0.9) 0%,
    rgba(26, 58, 42, 0.78) 52%,
    rgba(20, 40, 28, 0.48) 100%
  );
}

.fh-sec-banner__copy {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.5rem;
  max-width: 36rem;
}

.fh-sec-banner--sm .fh-sec-banner__copy {
  padding: 1.1rem 1.2rem;
}

.fh-sec-banner__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #F1C40F !important;
  margin-bottom: 0.4rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.fh-sec-banner__title {
  margin: 0 0 0.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 3.6vw, 2rem);
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.2;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.fh-sec-banner__title em {
  font-style: italic;
  color: #F1C40F !important;
}

.fh-sec-banner__title--sm {
  font-size: 1.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
}

.fh-sec-banner__sub {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95) !important;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.fh-sec-banner--sm .fh-sec-banner__sub {
  font-size: 0.84rem;
}

@media (max-width: 768px) {
  .fh-hero {
    min-height: 420px;
  }
  .fh-hero .diet-hero__content {
    padding: 3rem 1.25rem 2rem;
  }
  .fh-sec-banner { min-height: 180px; }
  .fh-sec-banner--goals { min-height: 190px; }
  .fh-sec-banner--sm { min-height: 130px; }
  .fh-sec-banner--fuel { min-height: 160px; }
}

@media (max-width: 560px) {
  .fh-hero {
    min-height: 380px;
  }
  .fh-sec-banner { min-height: 160px; }
  .fh-sec-banner--sm { min-height: 120px; }
}

/* ── Gym Fuel colour system (match AFRIFIT brand; always readable on cream) ── */
#gym-fuel-root,
#gym-fuel-root .gf-wrap,
.gf-wrap {
  --gf-forest: #2C5E3B;
  --gf-matcha: #7E9F3D;
  --gf-cacao: #5A4032;
  --gf-cacao-mid: #6B4F3F;
  --gf-cream: #FDFBF7;
  --gf-white: #ffffff;
  color: #5A4032;
  padding-bottom: 2.5rem;
}

#gym-fuel-root h2,
#gym-fuel-root h3,
#gym-fuel-root h4,
#gym-fuel-root p,
#gym-fuel-root li,
#gym-fuel-root span,
#gym-fuel-root strong,
#gym-fuel-root a,
#gym-fuel-root button {
  opacity: 1;
}

.gf-header {
  text-align: center;
  padding: 1.5rem 0 0.75rem;
}

.gf-header__eyebrow,
#gym-fuel-root .hh-section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2C5E3B !important;
}

.gf-header__title,
#gym-fuel-root .hh-section-header__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #2C5E3B !important;
  margin: 0.35rem 0;
}

.gf-header__title em,
#gym-fuel-root .hh-section-header__title em {
  font-style: italic;
  color: #7E9F3D !important;
}

.gf-header__sub,
#gym-fuel-root .hh-section-header__sub {
  max-width: 36rem;
  margin: 0 auto;
  color: #5A4032 !important;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
}

.gf-weight-card {
  background: #ffffff;
  border: 1.5px solid rgba(44, 94, 59, 0.18);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 1rem 0;
}

.gf-weight-card__label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #2C5E3B !important;
  margin-bottom: 8px;
}

.gf-weight-card__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gf-weight-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(44, 94, 59, 0.28);
  font-size: 1.05rem;
  font-weight: 600;
  color: #5A4032 !important;
  background: #FDFBF7 !important;
  -webkit-text-fill-color: #5A4032;
}

.gf-weight-input::placeholder {
  color: #7a5a48 !important;
  opacity: 0.85;
  -webkit-text-fill-color: #7a5a48;
}

.gf-weight-card__hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #5A4032 !important;
}

.gf-phase-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0.75rem 0 1rem;
}

.gf-phase-btn {
  border: 1.5px solid rgba(44, 94, 59, 0.28);
  background: #ffffff !important;
  border-radius: 14px;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  color: #2C5E3B !important;
}

.gf-phase-btn__title {
  display: block;
  font-weight: 800;
  color: #2C5E3B !important;
  font-size: 0.98rem;
}

.gf-phase-btn__sub {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5A4032 !important;
  opacity: 1 !important;
  margin-top: 2px;
}

.gf-phase-btn:not(.active) {
  background: #ffffff !important;
  color: #2C5E3B !important;
}

.gf-phase-btn:not(.active) .gf-phase-btn__title {
  color: #2C5E3B !important;
}

.gf-phase-btn:not(.active) .gf-phase-btn__sub {
  color: #5A4032 !important;
}

.gf-phase-btn.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
}

.gf-phase-btn.active .gf-phase-btn__title,
.gf-phase-btn.active .gf-phase-btn__sub {
  color: #ffffff !important;
  opacity: 1 !important;
}

body[data-gf-phase="cut"] .gf-phase-btn.active {
  background: #2C5E3B !important;
}

body[data-gf-phase="maintain"] .gf-phase-btn.active {
  background: #5A4032 !important;
  border-color: #5A4032 !important;
}

.gf-targets {
  background: linear-gradient(135deg, rgba(44, 94, 59, 0.1), rgba(126, 159, 61, 0.12));
  border: 1px solid rgba(44, 94, 59, 0.12);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 1rem;
  color: #5A4032 !important;
}

.gf-targets__eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2C5E3B !important;
}

.gf-targets__sub {
  margin: 4px 0 10px;
  color: #5A4032 !important;
  font-size: 0.95rem;
  font-weight: 600;
}

.gf-targets__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gf-targets__stat {
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(44, 94, 59, 0.1);
}

.gf-targets__val {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
  color: #2C5E3B !important;
}

.gf-targets__lab {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5A4032 !important;
}

.gf-targets__note,
.gf-targets__prompt,
.gf-targets__disc {
  font-size: 0.85rem;
  color: #5A4032 !important;
  line-height: 1.45;
  margin: 10px 0 0;
  font-weight: 500;
}

.gf-targets__disc {
  font-size: 0.75rem;
  color: #6B4F3F !important;
}

.gf-engagement {
  margin-bottom: 1rem;
}

.gf-engage-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gf-engage-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(44, 94, 59, 0.14);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  color: #5A4032 !important;
}

.gf-engage-card span {
  font-size: 0.7rem;
  color: #2C5E3B !important;
  text-transform: uppercase;
  font-weight: 700;
}

.gf-engage-card strong {
  font-size: 0.82rem;
  color: #5A4032 !important;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 700;
}

.gf-engage-card--link {
  text-decoration: none;
  background: rgba(241, 196, 15, 0.2) !important;
  border-color: rgba(241, 196, 15, 0.45);
}

.gf-section-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gf-section-nav::-webkit-scrollbar {
  display: none;
}

.gf-chip {
  flex: 0 0 auto;
  border: 1.5px solid rgba(44, 94, 59, 0.3);
  background: #ffffff !important;
  color: #5A4032 !important;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.gf-chip:not(.active) {
  color: #5A4032 !important;
  background: #ffffff !important;
}

.gf-chip.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
  color: #ffffff !important;
}

.gf-panel {
  min-height: 120px;
  color: #5A4032 !important;
}

.gf-plan-intro-card {
  background: rgba(44, 94, 59, 0.04);
  border: 1px solid rgba(44, 94, 59, 0.1);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.gf-plan-intro-card__header {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #2C5E3B !important;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.gf-plan-intro-card__header::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F1C40F;
}

.gf-plan-intro {
  font-size: 0.92rem;
  color: #5A4032 !important;
  line-height: 1.6;
  margin: 0 0 1rem;
  font-weight: 500;
}

.gf-plan-macros-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #5A4032 !important;
  font-size: 0.88rem;
  line-height: 1.6;
  font-weight: 500;
}

.gf-plan-macros-list li {
  margin-bottom: 0.35rem;
}

.gf-plan-macros-list strong {
  color: #2C5E3B !important;
  font-weight: 700;
}

.gf-slot {
  margin-bottom: 1.5rem;
}

.gf-slot__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.gf-slot__title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #2C5E3B !important;
  margin: 0;
}

.gf-slot__meta {
  font-size: 0.78rem;
  font-weight: 600;
  color: #5A4032 !important;
  background: rgba(44, 94, 59, 0.1);
  border: 1px solid rgba(44, 94, 59, 0.14);
  padding: 3px 8px;
  border-radius: 999px;
}

.gf-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 700px) {
  .gf-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

.gf-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(44, 94, 59, 0.14);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #5A4032 !important;
  min-width: 0;
}

.gf-card--highlight {
  border-color: #7E9F3D;
  box-shadow: 0 6px 20px rgba(44, 94, 59, 0.1);
}

.gf-card__media {
  height: 180px;
  background: linear-gradient(145deg, #e8f0e4, #f7f3ea);
  overflow: hidden;
  flex-shrink: 0;
}

/* Shakes: taller frame; stock photos have lots of empty space around glasses */
#gf-sec-shakes .gf-card__media,
#gf-panel-shakes .gf-card__media {
  height: 200px;
}

.gf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Crop in on the glass so shakes don’t look tiny / zoomed-out */
#gf-sec-shakes .gf-card__media img,
#gf-panel-shakes .gf-card__media img {
  object-position: center 42%;
  transform: scale(1.28);
  transform-origin: center 40%;
}

/* Shake of the day: bigger hero crop */
.gf-shake-day .gf-card__media {
  height: 240px;
}

.gf-shake-day .gf-card__media img {
  object-position: center 45%;
  transform: scale(1.42);
  transform-origin: center 42%;
}

.gf-card__media--ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gf-card__emoji {
  font-size: 2rem;
}

.gf-card__ph-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5A4032 !important;
}

.gf-card__body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #ffffff;
  color: #5A4032 !important;
}

.gf-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #5A4032 !important;
  line-height: 1.3;
}

.gf-slot__title,
.gf-block__title {
  color: #2C5E3B !important;
  font-weight: 800;
}

.gf-card__notes,
.gf-card__ing,
.gf-plan-intro {
  color: #5A4032 !important;
  opacity: 1 !important;
  font-weight: 500;
}

.gf-block {
  margin: 1.75rem 0 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(44, 94, 59, 0.14);
}

.gf-block__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin: 0 0 1rem;
  color: #2C5E3B !important;
  font-weight: 700;
}

.gf-stack .gf-panel {
  display: block !important;
}

.fh-crosslinks-wrap {
  background: var(--surface-2, #fafafa);
  border-radius: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light, #e8edf3);
}

.fh-crosslinks {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .fh-crosslinks {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fh-crosslink {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface, #fff);
  border: 1.5px solid rgba(44, 94, 59, 0.12);
  text-decoration: none;
  color: var(--cacao, #5A4032);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.fh-crosslink:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(44, 94, 59, 0.1);
  border-color: var(--forest, #2C5E3B);
}

.fh-crosslink__icon {
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(44, 94, 59, 0.05);
  padding: 10px;
  border-radius: 12px;
}

.fh-crosslink div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fh-crosslink strong {
  color: var(--forest, #2C5E3B);
  font-size: 1rem;
  transition: color 0.2s;
}

.fh-crosslink span {
  font-size: 0.8rem;
  color: var(--cacao, #5A4032);
  opacity: 0.85;
  line-height: 1.4;
}

.gf-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(44, 94, 59, 0.12);
  color: #2C5E3B !important;
}

.gf-card__tag--hot {
  background: rgba(241, 196, 15, 0.3);
  color: #5A4032 !important;
}

.gf-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.gf-macros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gf-macro {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(90, 64, 50, 0.1);
  color: #5A4032 !important;
}

.gf-macro--cal { background: rgba(241, 196, 15, 0.28); color: #5A4032 !important; }
.gf-macro--p { background: rgba(52, 152, 219, 0.18); color: #1a5a8a !important; }
.gf-macro--c { background: rgba(241, 196, 15, 0.22); color: #5A4032 !important; }
.gf-macro--f { background: rgba(230, 126, 34, 0.18); color: #8a4b10 !important; }

.gf-card__notes,
.gf-card__ing {
  margin: 0;
  font-size: 0.85rem;
  color: #5A4032 !important;
  line-height: 1.5;
  font-weight: 500;
}

.gf-card__ing strong {
  color: #2C5E3B !important;
}

.gf-card__actions {
  margin-top: 4px;
}

.gf-ing-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: #5A4032 !important;
  line-height: 1.5;
  font-weight: 500;
}

.gf-alt {
  background: rgba(126, 159, 61, 0.12);
  border-radius: 10px;
  padding: 10px;
  font-size: 0.84rem;
  color: #5A4032 !important;
}

.gf-alt strong {
  color: #2C5E3B !important;
}

.gf-alt p {
  margin: 4px 0 0;
  line-height: 1.4;
  color: #5A4032 !important;
}

.gf-budget-pick,
.gf-protein-need {
  background: rgba(44, 94, 59, 0.08);
  border: 1px solid rgba(44, 94, 59, 0.12);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #5A4032 !important;
  font-weight: 500;
}

.gf-budget-pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gf-budget-pick__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #2C5E3B !important;
}

.gf-budget-pick strong {
  color: #5A4032 !important;
  font-size: 0.95rem;
}

.gf-filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.gf-avoid {
  margin-top: 1rem;
  padding: 12px;
  background: rgba(192, 57, 43, 0.06);
  border-radius: 12px;
}

.gf-avoid h4 {
  margin: 0 0 8px;
  color: #a04030;
  font-size: 0.9rem;
}

.gf-avoid ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--cacao, #5A4032);
  line-height: 1.5;
}

.gf-timing-block {
  margin-bottom: 1.75rem;
}

/* Gym Fuel week table reuses Health Hub .hh-week-* styles */
.gf-hh-week {
  margin-top: 0.25rem;
}

#gym-fuel-root .hh-week-table th {
  background: #2C5E3B;
  color: #ffffff !important;
}

#gym-fuel-root .hh-week-table td {
  color: #5A4032 !important;
  font-weight: 500;
}

#gym-fuel-root .hh-week-day {
  color: #2C5E3B !important;
  font-weight: 800;
}

#gym-fuel-root .hh-week-note {
  color: #5A4032 !important;
  font-weight: 500;
}

#gym-fuel-root .hh-plan-meals__title {
  color: #2C5E3B !important;
}

.gf-footer-note,
.gf-empty {
  color: #5A4032 !important;
  font-weight: 500;
}

.gf-planner-cta p {
  color: #5A4032 !important;
  font-weight: 700;
}

.gf-week-day__grid {
  display: grid;
  gap: 8px;
}

.gf-week-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.82rem;
  color: var(--cacao, #5A4032);
}

.gf-week-cell__lab {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: capitalize;
  color: var(--cacao-light, #8a6f5c);
}

.gf-planner-cta {
  margin-top: 1.25rem;
  padding: 16px;
  border-radius: 14px;
  background: rgba(241, 196, 15, 0.12);
  text-align: center;
}

.gf-planner-cta p {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--cacao, #5A4032);
}

.gf-footer-note,
.gf-empty {
  font-size: 0.8rem;
  color: var(--cacao-light, #8a6f5c);
  line-height: 1.45;
  margin-top: 1.5rem;
}

@media (max-width: 560px) {
  .gf-targets__grid {
    grid-template-columns: 1fr;
  }
  .gf-engage-cards {
    grid-template-columns: 1fr;
  }
  .gf-weight-card__row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Web dark theme only: keep Gym Fuel cards cream for brand contrast.
   Native dark is handled fully in native-app.css. */
html.theme-dark:not(.capacitor-native) #gym-fuel-root,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-wrap {
  color: #5A4032 !important;
}

html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-card,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-weight-card,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-week-day,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-engage-card,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-phase-btn:not(.active),
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-chip:not(.active) {
  background: #ffffff !important;
  border-color: rgba(44, 94, 59, 0.18) !important;
  color: #5A4032 !important;
}

html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-card__title,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-slot__title,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-block__title,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .hh-section-header__title,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-phase-btn:not(.active) .gf-phase-btn__title {
  color: #2C5E3B !important;
}

html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-card__notes,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-card__ing,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-plan-intro,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-phase-btn:not(.active) .gf-phase-btn__sub,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .hh-section-header__sub,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-weight-input {
  color: #5A4032 !important;
  -webkit-text-fill-color: #5A4032;
  background-color: #FDFBF7;
}

html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-phase-btn.active,
html.theme-dark:not(.capacitor-native) #gym-fuel-root .gf-chip.active {
  background: #2C5E3B !important;
  border-color: #2C5E3B !important;
  color: #ffffff !important;
}

html.theme-dark #gym-fuel-root .gf-phase-btn.active .gf-phase-btn__title,
html.theme-dark #gym-fuel-root .gf-phase-btn.active .gf-phase-btn__sub,
html.capacitor-native.theme-dark #gym-fuel-root .gf-phase-btn.active .gf-phase-btn__title,
html.capacitor-native.theme-dark #gym-fuel-root .gf-phase-btn.active .gf-phase-btn__sub {
  color: #ffffff !important;
}