/* A compact, optional path from the daily routine to symptom and ingredient science. */
.home-symptom-guide {
  width: 100%;
  min-width: 0;
  margin: 0 0 22px;
  padding: 15px 0 0;
  border-top: 1px solid #fffaf64d;
  color: #fffaf6;
  font-family: var(--sans);
}
.home-symptom-guide > p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 3px 6px;
  margin: 0 0 11px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}
.home-symptom-guide > p > span { font-weight: 400; }
.home-symptom-guide__buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}
.home-symptom-guide__button {
  --symptom-button-fill: #ffe1eb;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 64px;
  margin: 0;
  padding: 10px 13px 10px 10px;
  border: 1px solid #fffaf699;
  border-radius: 999px;
  background: var(--symptom-button-fill);
  box-shadow: 0 4px 0 #79002026, inset 0 1px 0 #ffffffb3;
  color: #790020;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}
.home-symptom-guide__button:nth-child(2) { --symptom-button-fill: #fff0ae; }
.home-symptom-guide__button:nth-child(3) { --symptom-button-fill: #fff8ec; }
.home-symptom-guide__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #79002014;
  border-radius: 50%;
  background: #790020;
  color: #fff8ed;
  box-shadow: 0 1px 2px #79002014;
}
.home-symptom-guide__icon svg { display: block; width: 19px; height: 19px; }
.home-symptom-guide__button > span:nth-child(2) { min-width: 0; overflow-wrap: normal; word-break: normal; }
.home-symptom-guide__arrow { font-size: 16px; font-weight: 400; line-height: 1; opacity: .7; }
.home-symptom-guide__button:hover { border-color: #fffaf6; box-shadow: 0 6px 0 #79002026, inset 0 1px 0 #fff; transform: translateY(-2px); }
.home-symptom-guide__button:active { box-shadow: 0 1px 0 #79002026; transform: translateY(1px); }
.home-symptom-guide__button:focus-visible { outline: 3px solid #fffaf6; outline-offset: 4px; }

/* Compact symptom guides: short summaries first, optional research below. */
.symptom-detail { --symptom-accent: #ffd4e1; width: min(860px, calc(100vw - 32px)); }
.symptom-detail__header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid #79002020;
  background: var(--symptom-accent);
}
.symptom-detail__symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 1px solid #79002025;
  border-radius: 20px;
  background: #fffaf6;
  color: #790020;
}
.symptom-detail__symbol svg { display: block; width: 35px; height: 35px; }
.symptom-detail__header > div { min-width: 0; }
.symptom-detail__header .eyebrow {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.symptom-detail__header h2 {
  margin: 0 0 7px;
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  overflow-wrap: normal;
}
.symptom-detail__header p:not(.eyebrow) { max-width: 64ch; margin: 0; font-family: var(--sans); font-size: 13px; line-height: 1.6; }
.symptom-detail__body { display: grid; gap: 14px; padding: 20px 24px; background: #fffaf6; color: #790020; }
.symptom-detail__body h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 22px; font-weight: 900; line-height: 1.2; letter-spacing: -.02em; }
.symptom-detail__body p, .symptom-detail__body li { font-family: var(--sans); font-size: 13px; line-height: 1.65; }
.symptom-detail__body a { color: inherit; text-underline-offset: 3px; }
.symptom-detail__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.symptom-detail__summary { min-width: 0; padding: 18px; border: 1px solid #7900201c; border-radius: 16px; background: #fff5ea; }
.symptom-detail__summary--ingredients { background: #fff2b4; }
.symptom-detail__short-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.symptom-detail__short-list li { margin: 0; }
.symptom-detail__short-list li + li { padding-top: 10px; border-top: 1px solid #79002016; }
.symptom-detail__short-list strong { display: block; margin-bottom: 3px; font-size: 13px; line-height: 1.4; }
.symptom-detail__role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.symptom-detail__role-grid li + li { padding: 0 0 0 15px; border-top: 0; border-left: 1px solid #79002020; }
.symptom-detail__process { min-width: 0; }
.symptom-detail__flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; counter-reset: symptom-step; list-style: none; }
.symptom-detail__flow li { min-width: 0; margin: 0; padding: 13px; border: 1px solid #7900201c; border-radius: 14px; background: #fff0f4; counter-increment: symptom-step; }
.symptom-detail__flow li::before { display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-bottom: 10px; border: 1px solid #79002025; border-radius: 50%; background: #fffaf6; font-size: 10px; font-weight: 700; content: counter(symptom-step, decimal-leading-zero); }
.symptom-detail__flow strong { display: block; margin-bottom: 5px; font-size: 13px; line-height: 1.4; }
.symptom-detail__flow span { display: block; font-size: 12px; line-height: 1.6; }
.symptom-detail__body .symptom-detail__care-line { margin: 0; padding: 11px 14px; border-left: 3px solid #ce7d92; border-radius: 0 10px 10px 0; background: #fff0f4; font-size: 12px; line-height: 1.65; }
.symptom-detail__care-line a { font-weight: 600; }
.symptom-detail__references { min-width: 0; border: 1px solid #79002025; border-radius: 14px; background: #fffefa; }
.symptom-detail__references > summary { min-height: 46px; padding: 13px 16px; border-radius: 13px; font-family: var(--sans); font-size: 13px; font-weight: 600; line-height: 1.5; cursor: pointer; }
.symptom-detail__references > summary::marker { color: #790020; }
.symptom-detail__references > summary:hover { background: #fff0f4; }
.symptom-detail__references > summary:focus-visible { outline: 3px solid #790020; outline-offset: 3px; }
.symptom-detail__reference-content { padding: 0 16px 16px; }
.symptom-detail__reference-content > p { margin: 0 0 12px; font-size: 12px; }
.symptom-detail .ingredient-detail__sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.symptom-detail .ingredient-detail__source { min-height: 48px; padding: 11px 12px; border-radius: 10px; }
.symptom-detail .ingredient-detail__source-label { font-size: 12px; line-height: 1.5; }
.symptom-detail .ingredient-detail__context { padding: 14px 24px; }
.symptom-detail .ingredient-detail__context-note { max-width: none; margin: 0; font-size: 11px; line-height: 1.6; }

@media (min-width: 750px) and (max-width: 1100px) {
  .home-symptom-guide { margin-bottom: 18px; padding-top: 13px; }
  .home-symptom-guide__button { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; padding: 9px 10px 9px 8px; font-size: 11px; }
  .home-symptom-guide__icon { width: 30px; height: 30px; }
  .home-symptom-guide__icon svg { width: 18px; height: 18px; }
  .home-symptom-guide__arrow { display: none; }
}
@media (min-width: 750px) and (max-width: 899px) {
  .home-symptom-guide__button { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 5px; min-height: 80px; padding: 8px 6px; border-radius: 18px; text-align: center; }
  .home-symptom-guide__icon { width: 28px; height: 28px; }
  .home-symptom-guide__button > span:nth-child(2) { display: flex; align-items: center; justify-content: center; min-height: 2.6em; }
}
@media (max-width: 749px) {
  .home-symptom-guide { grid-column: 1 / -1; margin: 0; padding-top: 12px; }
  .home-symptom-guide > p { gap: 2px 5px; margin-bottom: 9px; font-size: 11px; }
  .home-symptom-guide__buttons { gap: 8px; }
  .home-symptom-guide__button { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 6px; min-height: 78px; padding: 9px 6px; border-radius: 18px; font-size: 11px; line-height: 1.3; text-align: center; box-shadow: 0 3px 0 #79002026, inset 0 1px 0 #ffffffb3; }
  .home-symptom-guide__icon { width: 28px; height: 28px; }
  .home-symptom-guide__icon svg { width: 17px; height: 17px; }
  .home-symptom-guide__button > span:nth-child(2) { display: flex; align-items: center; justify-content: center; min-height: 2.6em; }
  .home-symptom-guide__arrow { display: none; }
}
@media (max-width: 700px) {
  .symptom-detail { width: calc(100vw - 20px); }
  .symptom-detail__header { grid-template-columns: 46px minmax(0, 1fr); gap: 13px; padding: 18px 16px; }
  .symptom-detail__symbol { width: 46px; height: 46px; border-radius: 15px; align-self: start; }
  .symptom-detail__symbol svg { width: 28px; height: 28px; }
  .symptom-detail__header .eyebrow { font-size: 8px; }
  .symptom-detail__header h2 { font-size: 29px; }
  .symptom-detail__header p:not(.eyebrow) { font-size: 12px; }
  .symptom-detail__body { gap: 12px; padding: 16px 13px; }
  .symptom-detail__columns { grid-template-columns: 1fr; gap: 12px; }
  .symptom-detail__summary { padding: 15px; border-radius: 14px; }
  .symptom-detail__body h3 { margin-bottom: 11px; font-size: 21px; }
  .symptom-detail__body p, .symptom-detail__body li { font-size: 12px; line-height: 1.65; }
  .symptom-detail__short-list { gap: 9px; }
  .symptom-detail__short-list li + li { padding-top: 8px; }
  .symptom-detail__role-grid { grid-template-columns: 1fr; }
  .symptom-detail__role-grid li + li { padding: 8px 0 0; border-left: 0; border-top: 1px solid #79002016; }
  .symptom-detail__flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .symptom-detail__flow li { padding: 12px; }
  .symptom-detail__flow li::before { margin-bottom: 7px; }
  .symptom-detail__flow strong { font-size: 12px; }
  .symptom-detail__flow span { font-size: 11px; }
  .symptom-detail__body .symptom-detail__care-line { padding: 10px 12px; font-size: 11px; }
  .symptom-detail__reference-content { padding-inline: 13px; }
  .symptom-detail .ingredient-detail__sources { grid-template-columns: 1fr; }
  .symptom-detail .ingredient-detail__context { padding: 12px 16px; }
  .symptom-detail .ingredient-detail__context-note { font-size: 10px; }
}
@media (max-width: 370px) {
  .home-symptom-guide__buttons { gap: 6px; }
  .home-symptom-guide__button { gap: 5px; min-height: 78px; padding: 8px 5px; }
  .home-symptom-guide__icon { width: 27px; height: 27px; }
  .home-symptom-guide__icon svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) { .home-symptom-guide__button, .home-symptom-guide__button:hover, .home-symptom-guide__button:active { transition: none; transform: none; } }
@media (forced-colors: active) {
  .home-symptom-guide__button:focus-visible, .symptom-detail__references > summary:focus-visible { outline-color: Highlight; }
  .symptom-detail__flow li::before { border-color: CanvasText; }
}
