/* Goal hub pages — /blog/*-dishes.html; index — /blog/dishes.html (with dishes/shared/dish-nutrition.css) */

/* Width/padding: see dish-nutrition.css main:not(.dish-layout) */

.goal-page-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .goal-page-layout {
    grid-template-columns: minmax(200px, 240px) 1fr;
    gap: 2rem;
  }
}

.goal-page-layout__primary {
  min-width: 0;
}

.goal-hub-sidebar {
  margin: 0;
  padding: 1.1rem 1.15rem;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
}

@media (min-width: 900px) {
  .goal-hub-sidebar {
    position: sticky;
    top: 1rem;
  }
}

.goal-hub-sidebar__nav {
  margin: 0;
}

.goal-hub-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.goal-hub-sidebar__list > li {
  margin: 0;
}

.goal-hub-sidebar__item {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--header-bg);
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.goal-hub-sidebar__item:hover {
  text-decoration: none;
  background: var(--accent-soft);
  border-color: var(--border);
  color: var(--accent);
}

.goal-hub-sidebar__item--hub {
  text-align: center;
  padding: 0.7rem 0.75rem;
  background: var(--accent-soft);
  border: 1.5px solid var(--border);
  margin-bottom: 0.35rem;
}

.goal-hub-sidebar__item--hub:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(22, 101, 52, 0.1);
}

.goal-hub-sidebar__item--current {
  background: rgba(22, 163, 74, 0.12);
  border-color: var(--accent);
  color: var(--header-bg);
  cursor: default;
}

.goal-hub {
  margin-bottom: 0;
}

.goal-hub 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.65rem;
  color: var(--header-bg);
}

.goal-hub__lede {
  font-size: clamp(0.95rem, 2.8vw, 1rem);
  color: var(--text-muted);
  margin: 0 0 clamp(1.25rem, 4vw, 1.65rem);
  max-width: 42rem;
  line-height: 1.55;
}

.goal-dish-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.goal-dish-card {
  margin: 0;
}

.goal-dish-card__link {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.goal-dish-card__link:hover {
  text-decoration: none;
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(22, 101, 52, 0.12);
}

/* Side-by-side thumbnail + body is too narrow on phones; stack so title and
   macros never collide with the image. */
@media (max-width: 639px) {
  .goal-dish-card__link {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .goal-dish-card__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .goal-dish-card__body {
    width: 100%;
  }

  .goal-dish-card__title {
    font-size: 1.05rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
}

.goal-dish-card__photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--accent-soft);
  border: 1px solid var(--border);
}

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

.goal-dish-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.goal-dish-card__title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--header-bg);
  line-height: 1.25;
}

.goal-dish-card__link:hover .goal-dish-card__title {
  color: var(--accent);
}

.goal-dish-card__nutrition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .goal-dish-card__nutrition {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.goal-dish-card__stat {
  text-align: center;
  padding: 0.5rem 0.35rem;
  background: var(--accent-soft);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.goal-dish-card__stat-value {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--header-bg);
  line-height: 1.1;
}

.goal-dish-card__stat--cal .goal-dish-card__stat-value {
  color: var(--accent);
}

.goal-dish-card__stat-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 600;
}

.goal-empty {
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  text-align: center;
}

.dishes-goals-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2.5vw, 0.9rem);
}

.dishes-goals-list > li {
  margin: 0;
}

.dishes-goals-list__label {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--header-bg);
}

.dishes-goals-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  min-height: 3.25rem;
  padding: 1.05rem clamp(1.15rem, 4vw, 1.45rem);
  background: var(--card-bg);
  border-radius: 14px;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(22, 101, 52, 0.06);
  text-decoration: none;
}

@media (max-width: 380px) {
  .dishes-goals-list a {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    min-height: 0;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }

  .dishes-goals-list__count {
    white-space: normal;
  }
}

.dishes-goals-list a:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(22, 101, 52, 0.12);
}

.dishes-goals-list a:hover .dishes-goals-list__label {
  color: var(--accent);
}

.dishes-goals-list__count {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
