/* Recipe Hub – Public CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ─── Global: disable automatic hyphenation ─── */
body.rh-site-body {
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}
body.rh-site-body h1,
body.rh-site-body h2,
body.rh-site-body h3,
body.rh-site-body h4,
body.rh-site-body p,
body.rh-site-body span,
body.rh-site-body a,
body.rh-site-body li,
body.rh-site-body button,
body.rh-site-body label,
body.rh-site-body td,
body.rh-site-body th,
body.rh-site-body div {
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
  hyphens: none !important;
}

/* ─── Recepten page header ─── */
.rh-recipes-page {
  padding-top: 48px;
  padding-bottom: 64px;
}
.rh-recipes-page__header {
  text-align: center;
  margin-bottom: 40px;
}
.rh-recipes-page__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #0F2419;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
.rh-recipes-page__sub {
  font-size: 1.05rem;
  color: #4a6555;
  margin: 0;
}

/* ─── CSS variables ─── */
:root {
  --rh-accent:       #2ECC9A;
  --rh-accent-dark:  #25A87E;
  --rh-accent-light: #E8FAF4;
  --rh-accent-rgb:   46, 204, 154;
  /* Hero gradient shades — very dark versions of the accent hue */
  --rh-hero-1:       #0F2419;
  --rh-hero-2:       #1A3A27;
  --rh-hero-3:       #1f5c3a;
  --rh-text:         #1A1A2E;
  --rh-muted:        #6B7280;
  --rh-border:       #E5E7EB;
  --rh-card-radius:  14px;
  --rh-shadow:       0 2px 8px rgba(0,0,0,.07);
  --rh-shadow-hover: 0 8px 24px rgba(0,0,0,.12);
}

.rh-recipe-grid-wrap,
.rh-single-recipe,
.rh-my-recipes,
.rh-login-wrap {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--rh-text);
}

/* ─── Filter bar ─── */
.rh-filter-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.rh-pill-filters { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rh-pill-group { display: flex; gap: 8px; flex-wrap: wrap; overflow-x: auto; }
.rh-pill {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rh-border);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--rh-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.rh-pill:hover { border-color: var(--rh-accent); color: var(--rh-accent); }
.rh-pill.active { background: var(--rh-accent); border-color: var(--rh-accent); color: #fff; }
.rh-search-wrap { min-width: 220px; }
.rh-search-input {
  width: 100%;
  border: 1.5px solid var(--rh-border);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border .15s;
  background: #fff;
}
.rh-search-input:focus { border-color: var(--rh-accent); box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb),.1); }

/* ─── Recipe grid ─── */
.rh-recipe-grid { display: grid; gap: 24px; }
.rh-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.rh-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.rh-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .rh-grid--cols-4 { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 768px) {
  .rh-grid--cols-3, .rh-grid--cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 500px) {
  .rh-recipe-grid { grid-template-columns: 1fr; }
}

/* ─── Recipe card ─── */
.rh-recipe-card {
  background: #fff;
  border-radius: var(--rh-card-radius);
  box-shadow: var(--rh-shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.rh-recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rh-shadow-hover);
}
.rh-recipe-card__image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #F3F4F6;
}
.rh-recipe-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.rh-recipe-card:hover .rh-recipe-card__image img { transform: scale(1.04); }
.rh-recipe-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: #D1D5DB;
}
.rh-recipe-card__image-placeholder svg { width: 40px; height: 40px; }

.rh-access-badge {
  position: absolute;
  top: 10px; right: 10px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}
.rh-access-badge--free { background: rgba(255,255,255,.85); color: var(--rh-text); backdrop-filter: blur(4px); }
.rh-access-badge--premium { background: var(--rh-accent); color: #fff; }

.rh-recipe-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rh-recipe-card__category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--rh-accent-dark); }
.rh-recipe-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rh-recipe-card__title a { text-decoration: none; color: var(--rh-text); }
.rh-recipe-card__title a:hover { color: var(--rh-accent-dark); }
.rh-recipe-card__meta { display: flex; gap: 12px; }
.rh-recipe-card__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--rh-muted);
}
.rh-recipe-card__meta-item svg { width: 14px; height: 14px; }
.rh-recipe-card__tags { display: flex; gap: 5px; flex-wrap: wrap; }
.rh-diet-tag {
  background: #F3F4F6;
  color: var(--rh-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}
.rh-recipe-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}
.rh-btn-ghost {
  font-size: 13px;
  font-weight: 600;
  color: var(--rh-accent-dark);
  text-decoration: none;
  border: 1.5px solid var(--rh-accent);
  border-radius: 7px;
  padding: 6px 14px;
  transition: all .15s;
}
.rh-btn-ghost:hover { background: var(--rh-accent); color: #fff; }
.rh-favorite-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--rh-muted);
  transition: color .15s, transform .15s;
}
.rh-favorite-btn:hover, .rh-favorite-btn--active { color: #EF4444; }
.rh-favorite-btn:hover { transform: scale(1.2); }
.rh-favorite-btn svg { width: 20px; height: 20px; display: block; }

/* ─── Grid footer ─── */
.rh-grid-footer { text-align: center; margin-top: 28px; }
.rh-load-more-btn {
  padding: 12px 28px;
  background: var(--rh-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.rh-load-more-btn:hover { background: var(--rh-accent-dark); }
.rh-grid-empty { text-align: center; padding: 32px; color: var(--rh-muted); grid-column: 1/-1; }

/* ─── Recipe Single Hero ─── */
.rh-recipe-hero {
  width: 100%;
  max-height: 420px;
  min-height: 280px;
  background-color: #1A1A2E;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 32px;
  display: flex;
  align-items: flex-end;
}
.rh-recipe-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
}
.rh-recipe-hero__content {
  position: relative;
  padding: 28px 32px;
  color: #fff;
  width: 100%;
}
.rh-recipe-hero__meta { margin-bottom: 6px; }
.rh-hero-cat {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: rgba(255,255,255,.2);
  padding: 3px 9px;
  border-radius: 5px;
}
.rh-recipe-hero__title { font-size: 30px; font-weight: 700; margin: 0 0 10px; line-height: 1.2; }
.rh-recipe-hero__details { display: flex; gap: 16px; font-size: 14px; opacity: .85; }
.rh-recipe-hero__details span { display: flex; align-items: center; gap: 5px; }

/* ─── Recipe layout ─── */
.rh-recipe-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
/* min-width: 0 prevents grid cells from overflowing their track */
.rh-recipe-main    { min-width: 0; }
.rh-recipe-sidebar { min-width: 0; }
@media (max-width: 900px) { .rh-recipe-layout { grid-template-columns: 1fr; } }

/* ─── Vitaminen highlights — pills met info-popup ─── */

/* Sectie-wrapper (header + bar) */
.rh-vitamins-section {
  margin-bottom: 24px;
}
.rh-vitamins-section__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.rh-vitamins-section__label {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}
.rh-vitamins-section__hint {
  font-size: 12px;
  color: #9CA3AF;
}

/* Flex-rij met alle pills */
.rh-vitamins-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ── Categorie-kleurvariabelen (fallback = groen accent) ── */
.rh-vitamin-pill--eye     { --vc: #6366f1; --vc-d: #4f46e5; --vc-bg: #eef2ff; }
.rh-vitamin-pill--omega   { --vc: #3b82f6; --vc-d: #2563eb; --vc-bg: #eff6ff; }
.rh-vitamin-pill--immune  { --vc: #f97316; --vc-d: #ea580c; --vc-bg: #fff7ed; }
.rh-vitamin-pill--protect { --vc: #a855f7; --vc-d: #9333ea; --vc-bg: #faf5ff; }
.rh-vitamin-pill--mineral { --vc: #d97706; --vc-d: #b45309; --vc-bg: #fffbeb; }
.rh-vitamin-pill--b       { --vc: #16a34a; --vc-d: #15803d; --vc-bg: #f0fdf4; }

/* Wrapper per vitamien */
.rh-vitamin-pill {
  --vc:    var(--rh-accent);
  --vc-d:  var(--rh-accent-dark);
  --vc-bg: var(--rh-accent-light);
  position: relative;
  display: inline-flex;
  align-items: stretch;
}

/* Label-deel (link of span) */
.rh-vitamin-pill__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--vc);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px 7px 13px;
  border-radius: 999px 0 0 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, filter .15s;
  line-height: 1;
  letter-spacing: .01em;
}
.rh-vitamin-pill__emoji { font-size: 14px; line-height: 1; }

/* Pill zonder info-knop: volledig rond */
.rh-vitamin-pill--simple .rh-vitamin-pill__label {
  border-radius: 999px;
  padding-right: 13px;
}
.rh-vitamin-pill__label:hover { filter: brightness(.9); color: #fff; }

/* "i" knop */
.rh-vitamin-pill__plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  background: var(--vc-d);
  color: #fff;
  border: none;
  border-radius: 0 999px 999px 0;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  cursor: pointer;
  transition: filter .15s;
  padding: 0;
  flex-shrink: 0;
}
.rh-vitamin-pill__plus:hover { filter: brightness(.85); }

/* ── Info-popup ── */
.rh-vitamin-popup {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff;
  border: 1.5px solid #E5E7EB;
  border-top: 3px solid var(--vc);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.07);
  min-width: 240px;
  max-width: 300px;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  overflow: hidden;
}
.rh-vitamin-popup.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Pijltje naar beneden */
.rh-vitamin-popup::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: #fff;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.08));
}

/* Popup header */
.rh-vitamin-popup__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px 10px;
  background: var(--vc-bg);
  border-bottom: 1px solid #F3F4F6;
}
.rh-vitamin-popup__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}
.rh-vitamin-popup__title {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rh-vitamin-popup__name {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* Categorie-badge in popup */
.rh-vitamin-popup__cat {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 7px;
  border-radius: 20px;
  line-height: 1.5;
  background: var(--vc);
  color: #fff;
  align-self: flex-start;
}
.rh-vitamin-popup__close {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(0,0,0,.07);
  border: none;
  color: #6B7280;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .12s;
}
.rh-vitamin-popup__close:hover { background: rgba(0,0,0,.14); }

/* Popup body */
.rh-vitamin-popup__text {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
  margin: 0;
  padding: 12px 14px 14px;
}
.rh-vitamin-popup__check {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--vc);
}

@media (max-width: 480px) {
  .rh-vitamin-popup { min-width: 210px; max-width: 280px; }
}

/* ─── Ingredients ─── */
.rh-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.rh-section-header h2 { font-size: 20px; font-weight: 700; margin: 0; }
.rh-serving-scaler {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rh-muted);
}
.rh-scaler-btn {
  width: 28px; height: 28px;
  background: none;
  border: 1.5px solid var(--rh-border);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.rh-scaler-btn:hover { border-color: var(--rh-accent); color: var(--rh-accent); }
.rh-scaler-value { font-weight: 700; font-size: 15px; color: var(--rh-text); min-width: 24px; text-align: center; }
.rh-ingredient-list { list-style: none; margin: 0; padding: 0; }
.rh-ingredient-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rh-border);
  font-size: 14px;
}
.rh-ingredient-item:last-child { border-bottom: none; }
.rh-ingredient-amount { font-weight: 600; color: var(--rh-text); min-width: 36px; }
.rh-ingredient-unit { color: var(--rh-muted); min-width: 60px; font-size: 13px; }
.rh-ingredient-name { flex: 1; }

/* ─── Steps ─── */
.rh-steps { margin-top: 28px; }
.rh-steps h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.rh-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rh-border);
}
.rh-step:last-child { border-bottom: none; }
.rh-step__number {
  width: 36px; height: 36px;
  background: var(--rh-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.rh-step__content { flex: 1; }
.rh-step__instruction { font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
.rh-step__tip {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid #F59E0B;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: #92400E;
  line-height: 1.5;
}
.rh-step__tip-label { font-weight: 600; margin-right: 4px; }

/* ─── Video ─── */
.rh-video-wrap { margin-top: 28px; }
.rh-video-wrap h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.rh-video-embed { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 10px; }
.rh-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ─── Access gate ─── */
.rh-access-gate { position: relative; margin-top: 24px; }
.rh-access-gate__blur { filter: blur(4px); pointer-events: none; user-select: none; opacity: .5; }
.rh-access-gate__card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  max-width: 340px;
  width: 90%;
  z-index: 10;
}
.rh-access-gate__icon { margin-bottom: 12px; }
.rh-access-gate__icon svg { width: 40px; height: 40px; margin: 0 auto; display: block; }
.rh-access-gate__card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.rh-access-gate__card p { font-size: 14px; color: var(--rh-muted); margin-bottom: 16px; }
.rh-btn-primary-pub {
  display: inline-flex;
  background: var(--rh-accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.rh-btn-primary-pub:hover { background: var(--rh-accent-dark); color: #fff; }

/* ─── Sidebar ─── */
.rh-recipe-sidebar { display: flex; flex-direction: column; gap: 20px; }
.rh-sidebar-card {
  background: #fff;
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--rh-shadow);
  position: sticky;
  top: 80px;
}
.rh-sidebar-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

/* ─── Donut chart ─── */
.rh-donut-svg { width: 140px; height: 140px; display: block; margin: 0 auto 12px; }
.rh-macro-legend { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rh-macro-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--rh-muted); }
.rh-macro-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ─── Details list ─── */
.rh-details-list { list-style: none; margin: 0; padding: 0; }
.rh-details-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--rh-border); font-size: 13px; }
.rh-details-list li:last-child { border-bottom: none; }
.rh-details-list span { color: var(--rh-muted); }

/* ─── Sidebar actions ─── */
.rh-sidebar-actions { padding: 16px; }
.rh-favorite-btn-full {
  width: 100%;
  padding: 10px 16px;
  background: #FFF5F5;
  border: 1.5px solid #FECACA;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #EF4444;
  cursor: pointer;
  transition: all .15s;
}
.rh-favorite-btn-full:hover, .rh-favorite-btn-full.rh-favorite-btn--active {
  background: #EF4444; color: #fff; border-color: #EF4444;
}

/* ─── My recipes tabs ─── */
.rh-my-recipes__tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--rh-border); margin-bottom: 24px; }
.rh-my-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--rh-muted);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rh-my-tab.active { color: var(--rh-accent); border-bottom-color: var(--rh-accent); }
.rh-tab-count { background: var(--rh-border); border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.rh-my-tab.active .rh-tab-count { background: var(--rh-accent-light); color: var(--rh-accent-dark); }

.rh-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--rh-muted);
}
.rh-empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; display: block; }
.rh-empty-state h3 { font-size: 18px; font-weight: 600; color: var(--rh-text); margin-bottom: 8px; }
.rh-empty-state p { font-size: 14px; max-width: 360px; margin: 0 auto 16px; }

/* ─── Login ─── */
.rh-login-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 40px 16px; }
.rh-login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 32px rgba(0,0,0,.1);
  text-align: center;
}
.rh-login-logo { margin-bottom: 20px; }
.rh-login-logo svg { margin: 0 auto; display: block; }
.rh-login-form h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.rh-login-sub { font-size: 14px; color: var(--rh-muted); margin-bottom: 20px; }
.rh-login-note { font-size: 12px; color: var(--rh-muted); margin-top: 16px; }
.rh-login-loading { padding: 24px 0; }
.rh-login-loading h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.rh-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--rh-border);
  border-top-color: var(--rh-accent);
  border-radius: 50%;
  animation: rhSpin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes rhSpin { to { transform: rotate(360deg); } }
.rh-field-group { margin-bottom: 16px; text-align: left; }
.rh-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 5px; color: #374151; }
.rh-input {
  width: 100%;
  border: 1.5px solid var(--rh-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border .15s;
  box-sizing: border-box;
}
.rh-input:focus { border-color: var(--rh-accent); box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb),.1); }

.rh-login-prompt { font-size: 14px; }
.rh-login-prompt a { color: var(--rh-accent); }
.rh-already-logged-in { font-size: 14px; color: var(--rh-muted); }

/* ─── Recipe intro ─── */
.rh-recipe-intro { font-size: 15px; line-height: 1.7; margin-bottom: 24px; color: var(--rh-text); }
.rh-ingredients { margin-bottom: 28px; }

/* ════════════════════════════════════════════════════════════════════════════
   STANDALONE LAYOUT  (header · nav · main · footer)
   ════════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

.rh-site-body {
  margin: 0;
  padding: 0;
  background: #F9FAFB;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1A1A2E;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─── */
.rh-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.rh-site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ─── Logo ─── */
.rh-site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  color: #1A1A2E;
  white-space: nowrap;
  flex-shrink: 0;
}
.rh-site-logo:hover { color: #1A1A2E; }
.rh-site-logo__img {
  max-height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

/* ─── Desktop nav ─── */
.rh-site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.rh-nav-link {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  text-decoration: none;
  transition: all .15s;
}
.rh-nav-link:hover { color: #1A1A2E; background: #F3F4F6; }
.rh-nav-link--active { color: var(--rh-accent) !important; background: var(--rh-accent-light); }

/* ─── Header actions ─── */
.rh-site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.rh-nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--rh-accent);
  text-decoration: none;
  transition: background .15s;
  white-space: nowrap;
}
.rh-nav-btn:hover { background: var(--rh-accent-dark); color: #fff; }
.rh-nav-btn--ghost { background: transparent; color: var(--rh-accent); border: 1.5px solid var(--rh-accent); }
.rh-nav-btn--ghost:hover { background: var(--rh-accent); color: #fff; }

/* ─── User menu ─── */
.rh-user-menu { position: relative; }
.rh-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid #E5E7EB;
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #1A1A2E;
  transition: border-color .15s;
}
.rh-user-btn:hover { border-color: var(--rh-accent); }
.rh-user-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--rh-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rh-user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-user-dropdown {
  display: none;
  position: absolute;
  right: 0; top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  min-width: 168px;
  overflow: hidden;
  z-index: 200;
}
.rh-user-dropdown--open { display: block; }
.rh-user-dropdown a {
  display: block;
  padding: 10px 16px;
  font-size: 14px;
  color: #1A1A2E;
  text-decoration: none;
  transition: background .1s;
}
.rh-user-dropdown a:hover { background: #F9FAFB; }
.rh-dropdown-divider { height: 1px; background: #E5E7EB; margin: 4px 0; }

/* ─── Mobile menu button ─── */
.rh-mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #1A1A2E;
  line-height: 0;
}

@media (max-width: 768px) {
  .rh-mobile-menu-btn { display: block; }
  .rh-site-header__inner { position: relative; }
  .rh-site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #E5E7EB;
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    z-index: 99;
  }
  .rh-site-nav--open { display: flex; }
  .rh-nav-link { padding: 10px 14px; width: 100%; }
  .rh-user-name { display: none; }
}

/* ─── Main content ─── */
.rh-site-main {
  min-height: calc(100vh - 64px - 88px);
  padding: 40px 0 60px;
}
.rh-site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 600px) {
  .rh-site-container { padding: 0 16px; }
  .rh-site-main { padding: 24px 0 48px; }
}

/* ─── Footer ─── */
.rh-site-footer {
  background: #fff;
  border-top: 1px solid #E5E7EB;
  padding: 28px 0;
}
.rh-site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.rh-site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: #1A1A2E;
}
.rh-site-footer__nav { display: flex; gap: 20px; flex-wrap: wrap; }
.rh-site-footer__nav a {
  font-size: 13px;
  color: #6B7280;
  text-decoration: none;
  transition: color .15s;
}
.rh-site-footer__nav a:hover { color: #1A1A2E; }
.rh-site-footer__copy { font-size: 12px; color: #9CA3AF; margin: 0; }

/* ─── Cook mode button ─── */
/* ─── Cook mode toggle switch ─── */
.rh-cook-mode-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  margin-top: 10px;
  border: 1.5px solid var(--rh-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--rh-muted);
  transition: background .2s, border-color .2s, color .2s;
  box-sizing: border-box;
}
.rh-cook-mode-toggle-wrap.rh-cook-mode-active {
  background: #FFFBEB;
  border-color: #F59E0B;
  color: #D97706;
}
.rh-cook-mode-toggle-wrap.rh-cook-mode-active svg { stroke: #F59E0B; }

/* Toggle switch (reusable) */
.rh-toggle-switch {
  margin-left: auto;
  position: relative;
  display: inline-block;
  width: 44px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}
.rh-toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.rh-toggle-slider {
  position: absolute;
  inset: 0;
  background: #D1D5DB;
  border-radius: 26px;
  transition: background .22s;
}
.rh-toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.rh-toggle-input:checked + .rh-toggle-slider { background: #F59E0B; }
.rh-toggle-input:checked + .rh-toggle-slider::before { transform: translateX(18px); }
.rh-toggle-input:focus-visible + .rh-toggle-slider { outline: 2px solid var(--rh-accent); outline-offset: 2px; }

/* Legacy button — kept for smooth transition, hidden by new toggle */
.rh-cook-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  margin-top: 10px;
  border: 1.5px solid var(--rh-border);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--rh-muted);
  cursor: pointer;
  transition: all .2s;
}
.rh-cook-mode-btn:hover { border-color: #F59E0B; color: #D97706; }
.rh-cook-mode-btn--active { background: #FFFBEB; border-color: #F59E0B; color: #D97706; }
.rh-cook-mode-btn--active svg { stroke: #F59E0B; }

/* ─── Recipe card — stretched link (whole card clickable) ─── */
.rh-recipe-card--clickable { position: relative; cursor: pointer; }
.rh-card-stretched-link { position: static; }
.rh-card-stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
.rh-recipe-card--clickable .rh-btn-ghost,
.rh-recipe-card--clickable .rh-favorite-btn {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   Weekly menu cards — herontworpen
   Structuur:
     .rh-menu-week              5-kolommen grid
       .rh-menu-row             kaart per dag (hover-wrapper)
         .rh-menu-card          link / lege div
           .rh-menu-card__thumb foto met dag-pill + gradient overlay
             .rh-menu-card__day dag-afkorting pill (bovenlinks)
           .rh-menu-card__body  titel + footer
             .rh-menu-card__title
             .rh-menu-card__footer
               .rh-menu-card__time   ⏱ bereidingstijd
               .rh-menu-card__cat    categorie-pill
   ═══════════════════════════════════════════════════════════ */

/* ── 5-kolommen grid ── */
.rh-menu-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: start;
}

/* ── Kaart-wrapper ── */
.rh-menu-row {
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 20px rgba(0,0,0,.07);
  transition: box-shadow .24s, transform .24s;
  display: flex;
  flex-direction: column;
}
.rh-menu-row:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.07);
  transform: translateY(-6px);
}

/* ── Link / lege wrapper ── */
.rh-menu-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

/* ── Foto met overlay ── */
.rh-menu-card__thumb {
  position: relative;
  width: 100%;
  height: 185px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #dde8e2;
  overflow: hidden;
}

/* Gradient onderaan voor diepte & leesbaarheid */
.rh-menu-card__thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.0)  30%,
    rgba(0,0,0,.42) 100%
  );
  pointer-events: none;
}

/* Lege foto: geen gradient */
.rh-menu-card__thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #e8f4ee, #d4ead9);
}
.rh-menu-card__thumb--empty::after { display: none; }

/* ── Dag-afkorting pill (bovenlinks op foto) ── */
.rh-menu-card__day {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  background: var(--rh-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px 4px;
  border-radius: 40px;
  line-height: 1;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  backdrop-filter: blur(2px);
}

/* ── Dag-naam onder de foto (volledige naam op de pagina) ── */
.rh-menu-card__dayname {
  position: absolute;
  bottom: 11px;
  left: 12px;
  z-index: 2;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1;
}

/* ── Kaart-body ── */
.rh-menu-card__body {
  flex: 1;
  padding: 14px 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* ── Receptnaam ── */
.rh-menu-card__title {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ── Footer: tijd + categorie ── */
.rh-menu-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  min-width: 0;
}
.rh-menu-card__time {
  font-size: 11px;
  color: #9CA3AF;
  white-space: nowrap;
  flex-shrink: 0;
}
.rh-menu-card__cat {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--rh-accent);
  background: var(--rh-accent-light);
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

/* ── Lege kaart ── */
.rh-menu-card--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 240px;
  padding: 28px 12px;
  text-align: center;
  background: linear-gradient(135deg, #f7faf8, #f0f4f2);
  cursor: default;
  height: 100%;
}
.rh-menu-card__empty-icon { font-size: 30px; opacity: .3; line-height: 1; }
.rh-menu-card--empty .rh-menu-card__title {
  font-size: 12px;
  font-weight: 500;
  color: #9CA3AF;
  overflow: visible;
  -webkit-line-clamp: unset;
  flex: 0;
}

/* ── Responsive: horizontaal scrollen onder 960px ── */
@media (max-width: 960px) {
  .rh-menu-week {
    grid-template-columns: repeat(5, minmax(172px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
    gap: 12px;
  }
  .rh-menu-row { scroll-snap-align: start; }
  .rh-menu-card__thumb { height: 155px; }
}
@media (max-width: 600px) {
  .rh-menu-week { grid-template-columns: repeat(5, minmax(148px, 1fr)); gap: 10px; }
  .rh-menu-card__thumb { height: 130px; }
  .rh-menu-card__body  { padding: 10px 11px 12px; gap: 8px; }
  .rh-menu-card__title { font-size: 12.5px; }
  .rh-menu-card__day   { font-size: 8.5px; padding: 4px 8px; }
}

/* ════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY & RESPONSIVENESS  (older-user optimisations)
   ════════════════════════════════════════════════════════════════════════
   Goals:
   • Minimum 16 px for all body-level text
   • Touch targets ≥ 44 × 44 px on mobile
   • Generous line-height and letter-spacing
   ════════════════════════════════════════════════════════════════════════ */

/* Base font size bump — applies to the entire plugin layout */
.rh-site-body {
  font-size: 16px;
  line-height: 1.65;
}

/* Recipe card: bigger title + meta */
.rh-recipe-card__title    { font-size: 16px; }
.rh-recipe-card__meta-item{ font-size: 13px; }
.rh-recipe-card__body     { padding: 18px; gap: 10px; }

/* Recipe single: bigger body text */
.rh-recipe-intro       { font-size: 16px; line-height: 1.75; }
.rh-step__instruction  { font-size: 16px; line-height: 1.7; }
.rh-ingredient-item    { font-size: 15px; padding: 11px 0; }
.rh-section-header h2,
.rh-steps h2           { font-size: 20px; }

/* Sidebar: bigger labels */
.rh-sidebar-card h3  { font-size: 15px; }
.rh-details-list li  { font-size: 14px; padding: 10px 0; }
.rh-macro-item       { font-size: 13px; }

/* Login form */
.rh-login-form h2  { font-size: 24px; }
.rh-login-sub      { font-size: 15px; }
.rh-input          { font-size: 16px; padding: 12px 14px; }
.rh-label          { font-size: 14px; }

/* Buttons – always ≥ 44 px height, text vertically centered */
.rh-btn-primary-pub,
.rh-load-more-btn,
.rh-nav-btn,
.rh-favorite-btn-full,
.rh-cook-mode-btn,
.rh-cook-mode-toggle-wrap,
.rh-add-to-list-btn,
.rh-btn-ghost {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Nav links – comfortable tap target */
.rh-nav-link {
  padding: 10px 14px;
  font-size: 15px;
}

/* User dropdown – larger rows */
.rh-user-dropdown a {
  padding: 12px 16px;
  font-size: 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Search input */
.rh-search-input {
  padding: 11px 16px;
  font-size: 16px;
}

/* Pill filters – easy to tap */
.rh-pill {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

/* My-recipes tabs */
.rh-my-tab {
  padding: 12px 18px;
  font-size: 15px;
  min-height: 44px;
}

/* ── Mobile-specific overrides (≤ 768 px) ── */
@media (max-width: 768px) {

  /* Header */
  .rh-site-header__inner { height: 56px; }
  .rh-mobile-menu-btn {
    padding: 8px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .rh-site-nav { top: 56px; }

  /* Scaler buttons: large touch area */
  .rh-scaler-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
    border-radius: 8px;
  }
  .rh-scaler-value { font-size: 17px; min-width: 32px; }

  /* Section layout */
  .rh-serving-scaler {
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Hero title */
  .rh-recipe-hero__title  { font-size: 22px; }
  .rh-recipe-hero__content{ padding: 20px; }
  .rh-recipe-hero { min-height: 240px; }

  /* Recipe card grid */
  .rh-recipe-card__body  { padding: 14px; }
  .rh-recipe-card__title { font-size: 15px; }

  /* Sidebar full-width buttons */
  .rh-favorite-btn-full,
  .rh-cook-mode-btn,
  .rh-cook-mode-toggle-wrap { padding: 13px 16px; font-size: 15px; }

  /* Login card */
  .rh-login-card { padding: 28px 20px; }

  /* Footer nav: stack on mobile */
  .rh-site-footer__inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .rh-site-footer__nav   { gap: 12px; }
  .rh-site-footer__nav a { font-size: 15px; padding: 4px 0; }

  /* Profile grid */
  .rh-profile-wrap { padding: 24px 14px 60px; }

  /* Weekly menu page */
  .rh-wmp-wrap { padding: 24px 14px 60px; }
}

/* ── Very small screens (≤ 480 px) ── */
@media (max-width: 480px) {
  .rh-pill-group    { gap: 6px; }
  .rh-filter-wrap   { flex-direction: column; }
  .rh-search-wrap   { min-width: 0; width: 100%; }
  .rh-search-input  { border-radius: 8px; }

  .rh-recipe-hero__title  { font-size: 19px; }
  .rh-step__number        { width: 32px; height: 32px; font-size: 14px; }

  .rh-login-card { border-radius: 12px; padding: 24px 16px; }

  /* Access gate card: extra bottom clearance on tiny screens */
  .rh-access-gate { min-height: 320px; }
}

/* ── Recipe single — dedicated responsiveness ── */

/* ≤ 900 px: single column layout */
@media (max-width: 900px) {

  /* Sidebar: no longer sticky, becomes a normal block below main */
  .rh-sidebar-card {
    position: static !important;
    top: auto !important;
  }

  /* Reduce gap between main and sidebar when stacked */
  .rh-recipe-layout { gap: 24px; }

  /* Ingredients heading + scaler: stack so scaler doesn't get squeezed */
  .rh-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Hero */
  .rh-recipe-hero__content { padding: 20px 16px; }

  /* Ingredients: slightly larger, more tap-friendly rows */
  .rh-ingredient-item   { font-size: 15px; padding: 12px 0; }
  .rh-ingredient-amount { font-size: 15px; }
  .rh-ingredient-unit   { min-width: 44px; font-size: 13px; }

  /* Steps */
  .rh-step__instruction { font-size: 16px; line-height: 1.65; }

  /* Donut chart: shrink to not dominate the card */
  .rh-donut-svg { width: 110px; height: 110px; }

  /* Macro legend: 3 items in a row is too cramped → 1 per row */
  .rh-macro-legend { grid-template-columns: 1fr; gap: 6px; }
  .rh-macro-item   { font-size: 13px; }

  /* Access gate: absolute card can clip on short screens → give
     the container enough min-height so the card always fits */
  .rh-access-gate         { min-height: 280px; }
  .rh-access-gate__card   { padding: 22px 18px; max-width: 92%; }

  /* Cook-mode toggle */
  .rh-cook-mode-toggle-wrap { min-height: 52px; }
}

/* ≤ 600 px: phones */
@media (max-width: 600px) {

  /* Hero */
  .rh-recipe-hero        { min-height: 190px; max-height: 300px; }
  .rh-recipe-hero__title { font-size: 20px; }
  .rh-recipe-hero__details { font-size: 13px; gap: 10px; flex-wrap: wrap; }

  /* Recipe layout: tighter gap on phones */
  .rh-single-recipe .rh-recipe-layout { gap: 16px; }

  /* Steps: smaller number circle to give instruction more space */
  .rh-step        { gap: 10px; }
  .rh-step__number { width: 30px; height: 30px; font-size: 13px; flex-shrink: 0; }
  .rh-step__tip    { font-size: 13px; padding: 8px 12px; }

  /* Sidebar cards: tighter padding */
  .rh-sidebar-card { padding: 16px; }

  /* Ingredient unit column: reduce min-width on very small screens */
  .rh-ingredient-unit { min-width: 36px; }

  /* Scaler: ensure buttons have full touch target */
  .rh-serving-scaler { gap: 10px; }
  .rh-scaler-btn     { width: 40px; height: 40px; border-radius: 8px; font-size: 18px; }

  /* Video embed: standard responsive — already correct, just ensure no overflow */
  .rh-video-wrap { margin-top: 20px; }
}

/* ≤ 400 px: very small phones (SE, older Android) */
@media (max-width: 400px) {
  .rh-recipe-hero__title { font-size: 18px; }
  .rh-recipe-hero__content { padding: 16px 12px; }
  .rh-ingredient-item { font-size: 14px; }
  .rh-step__instruction { font-size: 15px; }
}

/* =========================================================
   LOGIN GATE OVERLAY  (rh-gate-)
   ========================================================= */

/* Prevent background scroll while gate is open */
body:has(.rh-gate) { overflow: hidden; }

.rh-gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 20, 12, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rh-gate-in .3s ease both;
}

@keyframes rh-gate-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rh-gate__card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 32px 96px rgba(0,0,0,.30), 0 4px 20px rgba(0,0,0,.12);
  padding: 48px 44px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: rh-gate-card-in .38s cubic-bezier(.22,.68,0,1.18) both;
}

@keyframes rh-gate-card-in {
  from { opacity: 0; transform: translateY(28px) scale(.96); }
  to   { opacity: 1; transform: none; }
}

.rh-gate__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.rh-gate__badge {
  display: inline-block;
  background: var(--rh-accent-light, #E8FAF4);
  color: var(--rh-accent, #2ECC9A);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 50px;
  margin-bottom: 22px;
}

.rh-gate__title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0F2419;
  margin: 0 0 10px;
  letter-spacing: -.35px;
  line-height: 1.2;
}
.rh-gate__title span { color: var(--rh-accent, #2ECC9A); }

.rh-gate__sub {
  font-size: .95rem;
  color: #6B7280;
  margin: 0 0 26px;
  line-height: 1.65;
}

.rh-gate__field { margin-bottom: 12px; }

.rh-gate__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #0F2419;
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.rh-gate__input:focus {
  border-color: var(--rh-accent, #2ECC9A);
  box-shadow: 0 0 0 3px rgba(var(--rh-accent-rgb, 46,204,154), .15);
}
.rh-gate__input::placeholder { color: #9CA3AF; }

.rh-gate__btn {
  width: 100%;
  padding: 15px 20px;
  background: var(--rh-accent, #2ECC9A);
  color: #0F2419;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(var(--rh-accent-rgb, 46,204,154), .38);
  transition: background .18s, transform .15s, box-shadow .18s;
  margin-bottom: 16px;
}
.rh-gate__btn:hover:not(:disabled) {
  background: var(--rh-accent-dark, #27b585);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--rh-accent-rgb, 46,204,154), .48);
}
.rh-gate__btn:disabled { opacity: .6; cursor: default; transform: none; }

.rh-gate__note {
  font-size: 12px;
  color: #9CA3AF;
  margin: 4px 0 0;
  line-height: 1.5;
}

/* ── Succes-staat ── */
.rh-gate__success-icon {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 18px;
  display: block;
  animation: rh-bounce .5s cubic-bezier(.22,.68,0,1.4);
}
@keyframes rh-bounce {
  0%   { transform: scale(.7); }
  60%  { transform: scale(1.18); }
  100% { transform: scale(1); }
}
.rh-gate__success-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F2419;
  margin: 0 0 10px;
}
.rh-gate__success-sub {
  font-size: .95rem;
  color: #4B5563;
  margin: 0 0 10px;
  line-height: 1.65;
}
.rh-gate__success-sub strong { color: #0F2419; }
.rh-gate__success-hint {
  font-size: 12px;
  color: #9CA3AF;
  margin: 0;
}

@keyframes rh-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .rh-gate__card  { padding: 36px 22px 28px; border-radius: 20px; }
  .rh-gate__title { font-size: 1.45rem; }
}
