/* Clato dish nutrition pages — shared by all /blog/dishes/*.html */
:root {
  --page-bg: #f0fdf4;
  --header-bg: #166534;
  --accent: #16a34a;
  --accent-soft: #ecfdf5;
  --text: #14532d;
  --text-muted: #4b5563;
  --card-bg: #ffffff;
  --border: #bbf7d0;
  --shadow: 0 12px 40px rgba(22, 101, 52, 0.12);
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--page-bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, var(--header-bg) 0%, #15803d 100%);
  color: #fff;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-bottom: 1.5rem;
  padding-left: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 5vw, 1.5rem), env(safe-area-inset-right, 0px));
  box-shadow: var(--shadow);
}

.site-header__inner {
  max-width: 1040px;
  margin: 0 auto;
}

.site-brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.site-nav {
  font-size: 0.9rem;
}

.site-nav a {
  color: #fff;
  opacity: 0.95;
}

/* Goal index (dishes.html), goal hub pages — not .dish-layout */
main:not(.dish-layout) {
  box-sizing: border-box;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: clamp(1.2rem, 4.5vw, 1.85rem);
  padding-bottom: clamp(1.5rem, 5vw, 2.75rem);
  padding-left: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-right, 0px));
}

main.dish-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: clamp(1.2rem, 4.5vw, 1.75rem);
  padding-bottom: clamp(2rem, 5vw, 3rem);
  padding-left: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-right, 0px));
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 880px) {
  main.dish-layout {
    grid-template-columns: minmax(0, 1fr) 17.5rem;
  }
}

.dish-layout__main {
  min-width: 0;
}

.dish-sidebar {
  min-width: 0;
}

@media (min-width: 880px) {
  .dish-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.dish-sidebar__block {
  margin-bottom: 1.25rem;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  padding: 1rem 1.05rem;
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
}

.dish-sidebar__block:last-child {
  margin-bottom: 0;
}

.dish-sidebar__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--header-bg);
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.dish-sidebar__hint {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.dish-sidebar__hint a {
  font-weight: 600;
}

.dish-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dish-sidebar__list li {
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.dish-sidebar__list li:last-child {
  margin-bottom: 0;
}

.dish-sidebar__list--compact li {
  font-size: 0.8rem;
}

.dish-hero {
  margin-bottom: 1.5rem;
}

.dish-hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 0.5rem;
  color: var(--header-bg);
}

.dish-photo {
  margin: 0 auto 1rem;
  max-width: 240px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 20px rgba(22, 101, 52, 0.08);
  background: var(--card-bg);
}

.dish-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dish-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dish-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag--diet {
  background: #fef3c7;
  color: #92400e;
}

.tag--macro {
  background: var(--accent-soft);
  color: var(--header-bg);
  border: 1px solid var(--border);
}

.nutrition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 520px) {
  .nutrition-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background: var(--card-bg);
  border-radius: 14px;
  padding: 1rem 0.85rem;
  text-align: center;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
}

.stat-card__value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--header-bg);
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-weight: 600;
}

.stat-card--cal .stat-card__value {
  color: var(--accent);
}

.desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.2rem;
  background: var(--card-bg);
  border-radius: 12px;
  border-left: 4px solid var(--accent);
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--header-bg);
  font-weight: 700;
  margin: 0 0 0.65rem;
}

.ingredient-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.ingredient-list li {
  margin-bottom: 0.35rem;
}

.ingredient-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text);
}

details.ingredients-full {
  margin-top: 1.25rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
}

details.ingredients-full summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--header-bg);
  font-size: 0.9rem;
}

.site-footer {
  max-width: 1040px;
  margin: clamp(1.25rem, 4vw, 2rem) auto 0;
  padding-top: clamp(1.1rem, 3vw, 1.5rem);
  padding-bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1.125rem, 5.5vw, 1.75rem), env(safe-area-inset-right, 0px));
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
