.guide-list {
  display: grid;
  gap: 12px;
}

.guide-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--n-color-border, #ddd6e1);
  border-radius: 18px;
  background: #fff;
}

.guide-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 17px 18px;
  list-style: none;
  cursor: pointer;
}

.guide-item summary::-webkit-details-marker { display: none; }
.guide-item summary > span:last-child { color: #8a8791; transition: transform 160ms ease; }
.guide-item[open] summary > span:last-child { transform: rotate(90deg); }
.guide-item small { display: block; margin-top: 4px; color: var(--n-color-text-secondary, #696476); font-size: 0.78rem; }
.guide-body { padding: 0 18px 18px; color: #515365; font-size: 0.92rem; line-height: 1.65; }
.guide-body p { margin: 0 0 12px; }

.guide-item-structured {
  border-radius: 18px;
  background: #fffdfb;
  box-shadow: 0 8px 24px rgba(51, 31, 60, 0.045);
}

.guide-item-structured > summary {
  min-height: 104px;
  padding: 18px;
  background: linear-gradient(145deg, #f8f5fb, #fff 68%, #f2f8f6);
}

.guide-item-structured[open] > summary {
  border-bottom: 1px solid var(--n-color-border, #ded7e2);
}

.guide-summary-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.guide-summary-copy > small {
  margin: 0;
  color: var(--n-color-brand-strong, #6b2db8);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-summary-copy > b {
  min-width: 0;
  color: #173d3b;
  font-size: 1.02rem;
  line-height: 1.32;
  overflow-wrap: anywhere;
}

.guide-summary-copy > span {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #686371;
  font-size: 0.77rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.guide-summary-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  justify-self: end;
  color: var(--n-color-brand-strong, #6b2db8) !important;
  font-size: 1.2rem;
}

.guide-course {
  min-width: 0;
}

.guide-course-body {
  min-width: 0;
  background: #fffdf9;
}

.guide-course-index {
  display: flex;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  margin: 0;
  padding: 13px 16px;
  border-bottom: 1px solid var(--n-color-border, #ded7e2);
  list-style: none;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.guide-course-index li {
  flex: 0 0 auto;
  max-width: 220px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f2f7f5;
  color: #315653;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide-course-index span { margin-right: 7px; color: #0c8078; font-variant-numeric: tabular-nums; }
.guide-course-sections { display: grid; min-width: 0; }
.guide-course-section { min-width: 0; padding: 19px 18px 21px; border-top: 1px solid var(--n-color-border, #ded7e2); }
.guide-course-section:first-child { border-top: 0; }
.guide-course-section-heading { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; min-width: 0; }
.guide-course-section-heading > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e4f3f0;
  color: #08776f;
  font-size: 0.7rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}
.guide-course-section-heading h3 { min-width: 0; margin: 3px 0 0; color: #173d3b; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.guide-course-blocks { display: grid; min-width: 0; gap: 13px; margin-top: 15px; }
.guide-course-paragraph { min-width: 0; margin: 0; color: #55515e; font-size: 0.9rem; line-height: 1.68; overflow-wrap: anywhere; }
.guide-course-list { display: grid; min-width: 0; gap: 8px; margin: 0; padding-left: 21px; color: #55515e; font-size: 0.9rem; line-height: 1.58; }
.guide-course-list li { min-width: 0; overflow-wrap: anywhere; }
.guide-course-list li::marker { color: #0c8078; }
.guide-course-steps { display: grid; min-width: 0; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-course-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); min-width: 0; gap: 10px; align-items: start; color: #4f4b57; font-size: 0.9rem; line-height: 1.55; counter-increment: guide-step; }
.guide-course-steps li::before { content: counter(guide-step); display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid #b9dcd6; border-radius: 8px; color: #08776f; font-size: 0.72rem; font-weight: 850; }
.guide-course-steps li > span { min-width: 0; overflow-wrap: anywhere; }
.guide-course-card { min-width: 0; padding: 15px; border: 1px solid #ddd3e5; border-radius: 14px; background: #fbf8fd; }
.guide-course-card h3 { margin: 0; color: #4d286c; font-size: 0.92rem; }
.guide-course-card p { margin: 7px 0 0; color: #5a5360; font-size: 0.86rem; line-height: 1.58; overflow-wrap: anywhere; }
.guide-course-emphasis { min-width: 0; padding: 14px 15px; border-radius: 14px; }
.guide-course-emphasis strong { display: block; margin-bottom: 6px; font-size: 0.72rem; letter-spacing: 0.045em; text-transform: uppercase; }
.guide-course-emphasis p { margin: 0; font-size: 0.86rem; line-height: 1.58; overflow-wrap: anywhere; }
.guide-course-remember { border: 1px solid #c8e0db; background: #edf7f4; color: #24514d; }
.guide-course-note { border: 1px solid #dcd6e1; background: #f7f5f8; color: #55505a; }
.guide-course-warning { border: 1px solid #ead8ae; background: #fff9ec; color: #684d1c; }

/* Authored caregiver content must never widen the mobile viewport. */
.nutrition-authored-content,
.nutrition-authored-content > *,
.nutrition-summary,
.nutrition-lists,
.nutrition-list,
.nutrition-consistency-card,
.nutrition-guidance-card,
.nutrition-hydration-card {
  min-width: 0;
  max-width: 100%;
}

.nutrition-consistency-card,
.nutrition-guidance-card,
.nutrition-hydration-card,
.nutrition-list {
  width: 100%;
}

.nutrition-phase-intro,
.nutrition-consistency-card strong,
.nutrition-guidance-card p,
.nutrition-hydration-card p,
.nutrition-list li {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Final mobile containment for clinician-authored diet content. */
.nutrition-page,
.nutrition-authored-content,
.nutrition-summary,
.nutrition-lists {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

.nutrition-authored-content {
  gap: 10px;
}

.nutrition-phase-intro {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
}

.nutrition-consistency-card,
.nutrition-guidance-card,
.nutrition-hydration-card,
.nutrition-list {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  padding: 14px 15px;
  overflow: hidden;
  border-radius: 12px;
}

.nutrition-consistency-card > span,
.nutrition-guidance-card > span,
.nutrition-hydration-card > span {
  font-size: 0.62rem;
  letter-spacing: 0.055em;
}

.nutrition-consistency-card strong {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  color: var(--n-color-brand-strong);
  font-family: var(--n-font-sans);
  font-size: 1.02rem;
  font-weight: 760;
  line-height: 1.38;
  letter-spacing: -0.015em;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.nutrition-guidance-card p,
.nutrition-hydration-card p {
  font-size: 0.84rem;
  line-height: 1.55;
  white-space: normal;
  overflow-wrap: anywhere;
}

.nutrition-lists {
  gap: 10px;
}

.nutrition-list h3 {
  font-size: 0.86rem;
}

.nutrition-list ul {
  gap: 5px;
  margin-top: 8px;
  padding-left: 1.05rem;
  font-size: 0.84rem;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .guide-list { gap: 10px; }
  .guide-item-structured > summary { min-height: 96px; padding: 16px; }
  .guide-course-index { padding: 11px 14px; }
  .guide-course-section { padding: 18px 16px 20px; }
  .guide-course-section-heading { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; }
  .guide-course-section-heading > span { width: 28px; height: 28px; }

  .nutrition-page {
    gap: 18px;
  }

  .nutrition-authored-content,
  .nutrition-authored-content > *,
  .nutrition-summary,
  .nutrition-lists,
  .nutrition-list,
  .nutrition-consistency-card,
  .nutrition-guidance-card,
  .nutrition-hydration-card {
    inline-size: 100%;
    max-inline-size: 100%;
    min-inline-size: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-item summary > span:last-child { transition: none; }
}