/* A single measure and gutter align the desktop header, welcome, and directories. */
:root {
  --home-measure: min(76rem, calc(100% - clamp(3rem, 7vw, 7rem)));
  --home-gutter: clamp(1rem, 2.25vw, 2rem);
  --home-ink: #203b50;
  --home-line: #c6d6d2;
}
#main > .wrap { width: var(--home-measure); margin-inline: auto; }
.header {
  width: 100%; max-width: none;
  padding-inline: 0;
}
.header > :is(.header-top, .main-nav) { width: var(--home-measure); margin-inline: auto; }
.header .main-nav { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: stretch; gap: .4rem; }
.header .main-nav .nav-tab {
  width: 100%; height: 100%; min-height: 46px; padding: .45rem;
  white-space: normal; text-align: center; line-height: 1.25;
}
.home-daily-thought.wrap {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: center;
  gap: .5rem clamp(1.25rem, 3vw, 2.25rem); margin-top: 1.1rem; padding: .85rem 1.25rem;
  border-radius: .5rem; border-inline-start-width: 4px;
}
.home-daily-thought .thought-dateline { display: grid; gap: .1rem; line-height: 1.35; }
.home-daily-thought .thought-dateline strong { font-size: 1rem; }
.home-daily-thought blockquote {
  margin: 0; padding-inline-start: clamp(1.25rem, 3vw, 2.25rem);
  border-inline-start: 1px solid #9ba8a8; font-size: 1.1rem;
}
.hero.patient-home {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "label label" "intro media" "feeling media" "goals goals" "activities activities";
  gap: 1.15rem var(--home-gutter); align-items: stretch;
  padding-block: clamp(1.75rem, 3.5vw, 3.25rem) 1.5rem;
}
.patient-home .home-intro-label { grid-area: label; margin: 0; color: #506b72; }
.patient-home .hero-intro { grid-area: intro; display: flex; flex-direction: column; align-self: stretch; }
.patient-home .hero-intro h1 { font-size: clamp(3rem, 4.8vw, 4.6rem); line-height: 1.02; margin: 0 0 .75rem; }
.patient-home .hero-intro .home-welcome-text { margin: 0; max-width: 40ch; margin-bottom: 1rem; color: #405e67; font-size: 1.1rem; line-height: 1.5; }
.patient-home .hero-intro .welcome-top {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch;
  gap: .65rem; margin-top: auto;
}
.patient-home .welcome-top :is(.gentle-trigger, .home-install-app) {
  width: 100%; min-height: 48px; margin: 0; padding: .65rem .75rem;
  display: inline-flex; align-items: center; justify-content: center;
  font: 650 1rem/1.25 var(--sans); border-radius: .6rem; text-align: center; white-space: normal;
}
.patient-home .welcome-top .gentle-trigger { margin: 0; color: #264c4d; background: #f2f6ef; border-color: #9cb6a8; }
.patient-home .hero-intro .mobile-install-area { display: grid; }
.patient-home .mobile-install-area > span { display: none; }
.patient-home .hero-media { grid-area: media; align-self: stretch; gap: 1.15rem; }
@supports (grid-template-rows: subgrid) {
  .patient-home .hero-media { display: grid; grid-template-rows: subgrid; }
}
.patient-home .hero-media .hero-visual {
  flex: 1 1 auto; height: auto; min-height: 13rem; border-radius: 6rem 6rem .7rem .7rem;
}
.patient-home .hero-visual > img { position: absolute; inset: 0; }
.patient-home .hero-media .hero-sound { flex: none; display: flex; flex-direction: column; justify-content: center; border-radius: .8rem; padding: clamp(.85rem, 1.6vw, 1.25rem); }
.patient-home .hero-resources { display: contents; }
.patient-home .feeling-check.home-feeling-finder {
  grid-area: feeling; margin: 0; padding: 1rem 1.15rem;
  border-color: var(--home-line); border-radius: .8rem; background: #f7faf5;
}
.patient-home .home-featured-activities {
  grid-area: activities; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem; margin: .4rem 0 0;
}
.home-featured-activities a { justify-content: flex-start; border-radius: .75rem; padding: 1rem; gap: .5rem; }
.home-support-directory {
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--home-gutter);
  align-items: stretch; margin-block: 0 2rem;
}
.home-support-directory > section {
  display: flex; flex-direction: column; min-width: 0; padding: clamp(1rem, 2vw, 1.5rem);
  background: #fffefa; border: 1px solid var(--home-line); border-radius: .8rem;
}
.home-support-directory .home-support-list { display: grid; grid-template-rows: repeat(3, 1fr); flex: 1; }
.home-support-directory h2, .home-desktop-audiences > h2 { color: var(--home-ink); margin: 0 0 .8rem; }
.home-desktop-audiences { margin-block: 0 2rem; }
.home-desktop-audiences .hb-people-layout { gap: var(--home-gutter); }
.home-desktop-audiences .hb-other-groups > summary { min-height: 48px; padding: .65rem 1.25rem; font-size: 1rem; }

.patient-home .home-goal-picker {
  grid-area: goals; margin: 0; background: #19384e; border-color: #19384e;
  border-inline-start-color: #cda85d; color: #f5d68d;
}
.patient-home .home-goal-picker h2 { color: inherit; }
.patient-home .home-goal-picker a:focus-visible { outline-color: #f5d68d; }
