.health-guides {
  --guide-forest: #123a2f;
  --guide-sage: #eaf0e5;
  --guide-line: #ccd8c8;
  --guide-muted: #405a4e;
  font-family: "Between Visits Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
  scroll-margin-block-start: 1rem;
}

.health-guides-frame {
  background: var(--guide-sage);
  border: 1px solid var(--guide-line);
  border-radius: 14px;
  overflow: hidden;
}

.health-guides-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #dfe8dc;
  border-bottom: 1px solid var(--guide-line);
}

.health-guides-playback, .health-guides-topics {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.health-guides-control, .health-guides-topic, .health-guide-tab {
  min-height: 44px;
  background: transparent;
  color: var(--guide-forest);
  border: 1px solid transparent;
  padding: 0.45rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
}

.health-guides-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-color: #829a8b;
  border-radius: 6px;
  background: #f7faf4;
}

.health-guides-control svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.health-guides-control .guide-pause-icon,
.health-guides-control.is-playing .guide-play-icon { display: none; }

.health-guides-control.is-playing .guide-pause-icon { display: block; }
.health-guides-topic { border-radius: 999px; }
.health-guides-topic[aria-current="true"] {
  background: #fff;
  border-color: var(--guide-forest);
  box-shadow: inset 0 -2px var(--guide-forest);
}

.health-guides-control:hover, .health-guides-topic:hover, .health-guide-tab:hover { background: #fff; }

.health-guides :is(a, button, h2, [role="tabpanel"]):focus-visible {
  outline: 3px solid #315d47;
  outline-offset: 2px;
}

.health-guide-slide {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  min-height: 27rem;
}

.health-guides.is-ready .health-guide-slide:not([hidden]) .health-guide-art svg {
  animation: health-guide-reveal 240ms ease-out;
}

@keyframes health-guide-reveal {
  from { opacity: 0.35; }
  to { opacity: 1; }
}

.health-guide-art {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: radial-gradient(ellipse at 64% 42%, #25584b, #123c31 68%, #10342a);
}

.health-guide-art svg {
  display: block;
  width: min(84%, 19rem);
  height: auto;
}

.health-guide-copy {
  min-width: 0;
  padding: clamp(1.4rem, 3.8vw, 3rem);
}

.health-guide-copy .eyebrow {
  color: var(--guide-muted);
  margin-bottom: 0.8rem;
}

.health-guide-copy h2 {
  margin: 0 0 0.6rem;
  color: var(--guide-forest);
  font-family: "Between Visits Serif", Georgia, serif;
  font-size: clamp(2.35rem, 4.5vw, 3.6rem);
  letter-spacing: -0.034em;
}

.health-guide-intro { color: var(--guide-muted); }

.health-guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 1.05rem 0 0.8rem;
}

.health-guide-tab {
  border-color: #829a8b;
  border-radius: 6px;
  background: #f7faf4;
}

.health-guide-tab[aria-selected="true"] {
  background: var(--guide-forest);
  border-color: var(--guide-forest);
  color: #fff;
}

.health-guide-panel { min-height: 6.75rem; }
.health-guide-panel h3 { margin: 0 0 0.3rem; }
.health-guide-panel a, .health-guide-sources a { font-weight: 700; }
.health-guide-panel .btn { margin-top: 0.65rem; }

.health-guide-panel.is-help {
  border-left: 3px solid #996410;
  padding-left: 0.8rem;
}

.health-guide-sources, .health-guide-actions, .health-guides-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.95rem;
}

.health-guide-sources { margin-top: 0.85rem; }
.health-guide-actions { margin-top: 0.85rem; }

.health-guides-footer {
  justify-content: space-between;
  margin-top: 0.65rem;
  color: var(--guide-muted);
  font-size: 0.9375rem;
}

.health-guides-footer a { font-weight: 700; }

@media (max-width: 900px) {
  .health-guides-controls { flex-direction: column; align-items: stretch; }
  .health-guides-topics { justify-content: space-between; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .health-guides-controls { gap: 0.5rem; padding: 0.7rem; }
  .health-guides-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .health-guides-topic { padding-inline: 0.25rem; }
  .health-guide-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .health-guide-art { padding: 0.5rem; }
  .health-guide-art svg { width: min(45%, 9.5rem); }
  .health-guide-copy { padding: 1.3rem 1.1rem; }
  .health-guide-panel { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .health-guides.is-ready .health-guide-slide:not([hidden]) .health-guide-art svg { animation: none; }
}
