/* The regular navigation and full section layouts are the default at larger sizes
   and in print. The phone controls enhance those same sections in place. */
.header nav.phone-destinations, .phone-section-toggle { display: none; }
.patient-home .mobile-hero-title, .patient-home .mobile-install-area { display: none; }

@media screen and (max-width: 850px) {
  .header.phone-ready { gap: .25rem; }
  .header.phone-ready:not(.menu-visible) nav.phone-destinations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    align-items: stretch;
    gap: .2rem;
    width: 100%;
    padding-top: .2rem;
    border-top: 1px solid var(--line);
  }
  .header nav.phone-destinations a {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .3rem;
    min-height: 44px;
    padding: .35rem .1rem;
    color: var(--navy);
    background: transparent;
    font: 500 .875rem/1.2 var(--sans);
    border-radius: .35rem;
    text-decoration: none;
  }
  .header nav.phone-destinations a[aria-current] {
    color: var(--ink);
    font-weight: 650;
    text-decoration: none;
  }
  .header .phone-destinations a[aria-current] span {
    text-decoration: underline;
    text-underline-offset: .17em;
    text-decoration-thickness: 1.5px;
  }
  .header .phone-destinations a:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: -2px;
  }
  @media (hover: hover) {
    .header nav.phone-destinations a:hover span {
      text-decoration: underline;
      text-underline-offset: .17em;
    }
  }
  .phone-destinations svg {
    width: 1.05rem; height: 1.05rem;
    fill: none; stroke: currentColor; stroke-width: 1.65;
    stroke-linecap: round; stroke-linejoin: round;
  }

  .home-daily-thought.wrap { margin-top: .75rem; padding: .55rem .85rem; }
  .home-daily-thought blockquote { font-size: 1.08rem; }
  .hero.patient-home {
    display: flex; flex-direction: column; align-items: stretch;
    gap: .8rem; padding-block: .9rem .8rem;
  }
  .patient-home .hero-copy {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    column-gap: .5rem;
  }
  .patient-home .hero-intro .welcome-top {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "caption ." "install breathing";
    align-items: stretch;
    gap: .25rem .5rem;
  }
  .patient-home .home-intro-label, .patient-home .hero-intro h1,
  .patient-home .hero-visual > div.image-caption, .patient-home .hero-intro > .home-welcome-text { display: none; }
  .patient-home .mobile-install-area {
    display: contents;
    color: #40545b; font: 500 .875rem/1.2 var(--sans);
  }
  .patient-home .mobile-install-area > span { grid-area: caption; }
  .patient-home .welcome-top :is(.home-install-app, .gentle-trigger) {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-width: 0; min-height: 3.25rem; margin: 0;
    padding: .55rem .65rem; border: 1px solid; border-radius: .65rem;
    font: 650 1rem/1.2 var(--sans);
    white-space: normal; text-align: center;
  }
  .patient-home .welcome-top .home-install-app {
    grid-area: install; background: #19384e; color: #fffbef; border-color: #19384e;
  }
  .patient-home .welcome-top .gentle-trigger {
    grid-area: breathing; background: #f3c967; color: #19384e; border-color: #94702c;
  }
  .patient-home .welcome-top :is(.home-install-app, .gentle-trigger):focus-visible {
    outline: 3px solid #19384e; outline-offset: 3px;
  }
  .patient-home .hero-visual .mobile-hero-title {
    display: block; margin: 0; right: .85rem; max-width: none;
    color: #fffdf6; font-family: var(--serif); font-weight: 400; line-height: 1.12;
    text-shadow: 0 1px 3px #162b31;
  }
  .patient-home .mobile-hero-title :is(span, em) { display: block; color: inherit; font-size: inherit; }
  .patient-home .hero-copy > :is(p,form,nav) { grid-column: 1/-1; }
  .patient-home .hero-copy > p { max-width: none; margin: .6rem 0 0; font-size: 1rem; line-height: 1.4; }
  .patient-home .hero-copy > .hero-note { margin-top: .25rem; font-size: .875rem; }
  .patient-home .home-search { width: 100%; max-width: none; margin: .85rem 0 .65rem; }
  .patient-home .home-search input { min-width: 0; font-size: 1rem; }
  .patient-home .home-quick-actions {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .4rem; margin: 0; max-width: none;
  }
  .patient-home .home-quick-action {
    flex-direction: row; align-items: center; gap: .5rem; min-width: 0;
    min-height: 3.15rem; padding: .45rem .55rem; border-radius: .65rem;
  }
  .patient-home .home-quick-icon { width: 1.4rem; height: 1.4rem; flex: 0 0 1.4rem; }
  .patient-home .home-quick-icon svg { width: 1rem; height: 1rem; }
  .patient-home .home-quick-copy strong { font-size: .875rem; line-height: 1.2; }
  .patient-home .home-quick-copy > span { display: none; }
  .patient-home .hero-media {
    align-self: stretch; max-width: none; gap: 0;
  }
  .patient-home .hero-visual {
    width: 100%; max-width: none; height: clamp(6.25rem, 19svh, 10rem);
    min-height: 0; border-radius: .85rem .85rem 0 0;
  }
  .patient-home .hero-sound {
    display: grid; grid-template-columns: minmax(0,1fr) auto;
    align-items: center; gap: .4rem .5rem;
    padding: .65rem .75rem; border-radius: 0 0 .85rem .85rem;
  }
  .patient-home .hero-sound-controls { display: contents; }
  .patient-home .hero-sound-heading,
  .patient-home .hero-sound-status,
  .patient-home .hero-sound audio,
  .patient-home .hero-sound-direct { grid-column: 1 / -1; margin: 0; }
  .patient-home .hero-sound-picker { grid-row: 2; grid-column: 1; margin: 0; }
  .patient-home .hero-sound-play { grid-row: 2; grid-column: 2; }
  .patient-home .hero-sound-stop { grid-row: 3; grid-column: 2; }
  .patient-home .hero-sound-volume { grid-row: 3; grid-column: 1; min-width: 0; }
  .patient-home .hero-visual:after { inset: 0; background: linear-gradient(20deg, #102629eb, #102629a8 33%, transparent 77%); }
  .patient-home .hero-visual .image-caption { bottom: .65rem; left: .85rem; font-size: 1.2rem; }

  .start-options.start-with-studio {
    display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem; margin-bottom: .8rem;
  }
  .start-options.start-with-studio > a {
    display: flex; flex-direction: column; align-items: stretch; gap: .45rem;
    padding: clamp(.6rem,2.65vw,.85rem); border-radius: .8rem; min-width: 0;
  }
  .start-with-studio .start-card-title { gap: .35rem; }
  .start-with-studio .topic-icon { width: 1.4rem; height: 1.4rem; border-radius: .45rem; }
  .start-with-studio .topic-icon svg { width: 1.12rem; height: 1.12rem; }
  .start-options.start-with-studio h2 { margin: 0; font-size: clamp(1rem,4.1vw,1.22rem); line-height: 1.18; }
  .start-options.start-with-studio p { margin: 0; font-size: .91rem; line-height: 1.38; }

  .phone-section-toggle {
    display: grid; grid-template-columns: minmax(0,1fr) 1rem;
    align-items: center; gap: .15rem .75rem;
    width: 100%; min-height: 3.35rem; margin: 0; padding: .65rem .85rem;
    border: 1px solid #c9d8cf; border-radius: .65rem; background: #f7faf6;
    color: #2c4c42; text-align: start; cursor: pointer; font: inherit;
  }
  .phone-section-toggle strong { font: 650 1rem/1.25 var(--sans); }
  .phone-section-toggle span { grid-column: 1; font: 400 .875rem/1.35 var(--sans); color: #4d655d; }
  .phone-section-toggle::after {
    content: ''; grid-column: 2; grid-row: 1 / 3; justify-self: center;
    width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  .phone-section-toggle[aria-expanded="true"]::after { transform: rotate(225deg); }
  .phone-section-toggle[aria-expanded="false"] + * { display: none !important; }
  #main > .phone-section-toggle { width: calc(100% - 40px); max-width: 100%; margin: .4rem auto; }
  .home-bottom.wrap { padding-block: 0 1rem; }
  .mobile-guide-drawer > summary {
    min-height: 4.5rem;
    padding: .9rem 1.1rem;
    row-gap: .25rem;
    background: #f5e2ad;
    border-color: #b79954;
    color: #203b50;
  }
  .mobile-guide-drawer > summary strong { font-size: 1.125rem; }
  .mobile-guide-drawer > summary span { color: inherit; }
  .mobile-guide-drawer summary::-webkit-details-marker { display: none; }
  .mobile-guide-drawer[open] > summary::after { transform: rotate(225deg); }
  .mobile-guide-drawer > section { margin-block: .9rem 0; }
  .home-bottom.wrap:not(:has(> .hb-guides)) { padding-block: 0; }
  .home-bottom .hb-help-now { margin-top: 1rem; }
  .footer-top > .phone-section-toggle { grid-column: 1 / -1; }
  .wrap.thought-entry-home { margin-block: .7rem; padding: 1rem; }
  .home-support-directory > .thought-entry-home { width: 100%; margin: 0; }
  .thought-entry-home h2 { font-size: 1.4rem; }
}
@media screen and (max-width: 600px) {
  .header nav.phone-destinations a { flex-direction: column; flex-wrap: nowrap; gap: .2rem; }
}
@media screen and (max-width: 370px) {
  .patient-home .hero-sound-heading { gap: .15rem .5rem; }
  .start-options.start-with-studio { grid-template-columns: 1fr; }

}

@media screen and (max-width: 300px) {
  .header.phone-ready:not(.menu-visible) nav.phone-destinations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header nav.phone-destinations a { flex-direction: row; gap: .35rem; }
}

#home-check-in, #featured-activities { scroll-margin-block-start: 1rem; }
