/* Mobile quick actions for informational pages without their own fixed actions.
   Added at build time; ordinary links remain useful without JavaScript. */
.clinic-info-mobile-actions{display:none}
@media(max-width:600px){
  body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px))!important}
  .clinic-info-mobile-actions{
    position:fixed;z-index:45;left:0;right:0;bottom:0;
    display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr) minmax(0,1fr);
    gap:7px;box-sizing:border-box;
    padding:9px max(12px,env(safe-area-inset-right,0px))
      calc(9px + env(safe-area-inset-bottom,0px))
      max(12px,env(safe-area-inset-left,0px));
    background:#f7faf6;border-top:1px solid #c5d9cb;
    box-shadow:0 -4px 18px rgba(14,51,39,.12)
  }
  .clinic-info-mobile-actions a{
    display:flex;align-items:center;justify-content:center;min-width:0;min-height:48px;
    box-sizing:border-box;padding:9px 4px;border-radius:9px;
    font:750 13px/1.45 system-ui,"Apple SD Gothic Neo",sans-serif;
    text-align:center;text-decoration:none;word-break:keep-all
  }
  .clinic-info-mobile-actions .clinic-info-call{color:#fff;background:#173e35;border:1px solid #173e35}
  .clinic-info-mobile-actions .clinic-info-book{color:#174937;background:#e0efe5;border:1px solid #80aa8c}
  .clinic-info-mobile-actions .clinic-info-directions{color:#174937;background:#fff;border:1px solid #b4cdbc}
  .clinic-info-mobile-actions a:focus-visible{outline:3px solid #a87931;outline-offset:2px}
}
@media print{.clinic-info-mobile-actions{display:none!important}body{padding-bottom:0!important}}

/* A keyboard-first shortcut keeps the information pages usable when the
   masthead is long. It appears only on focus and never covers the mobile bar. */
.clinic-info-skip-link{
  position:fixed;z-index:1000;top:8px;left:12px;
  transform:translateY(calc(-100% - 20px));
  padding:12px 17px;border:3px solid #a87931;border-radius:10px;
  background:#fff;color:#173e35;font:750 16px/1.4 system-ui,sans-serif;
  text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.17)
}
.clinic-info-skip-link:focus{transform:translateY(0)}
@media print{.clinic-info-skip-link{display:none!important}}

/* Mobile reading and menu refinement for the seven informational pages.
   Keep all original menu items reachable; no script, hidden links or altered
   medical text. The bottom actions remain unchanged. */
@media(max-width:600px){
  /* The full story index header used to compress its brand and links together. */
  body.stories-gallery header .inner{
    flex-wrap:wrap;align-items:center;row-gap:5px;
  }
  body.stories-gallery header nav{
    display:flex;flex:1 1 100%;min-width:0;max-width:100%;
    flex-wrap:nowrap;gap:9px;overflow-x:auto;overflow-y:hidden;
    overscroll-behavior-x:contain;scrollbar-width:thin;
    -webkit-overflow-scrolling:touch;padding:3px 2px 7px;
  }
  body.stories-gallery header nav a{
    flex:0 0 auto;min-height:48px;font-size:14px;padding:10px 12px;
    white-space:nowrap;
  }
  body.stories-gallery .story-card p,
  body.stories-gallery .story-card .story-match-excerpt{
    font-size:15px;line-height:1.8;
  }
  body.stories-gallery .story-card time,
  body.stories-gallery .story-topic-heading span{
    font-size:14px;
  }

  /* The doctor's navigation stays compact even on narrow phones. */
  body.doctor-gallery header .bar{align-items:stretch;row-gap:7px;}
  body.doctor-gallery header nav{
    width:100%;max-width:100%;min-width:0;
    display:flex;flex-wrap:nowrap;gap:12px;
    overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;
    overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;
    padding:2px 2px 6px;
  }
  body.doctor-gallery header nav a{
    flex:0 0 auto;min-height:48px;
    display:inline-flex;align-items:center;font-size:14px;
    white-space:nowrap;padding:7px 5px;
  }
  body.doctor-gallery .credentials span{font-size:14px;line-height:1.55;}
  body.doctor-gallery .note{font-size:15px;line-height:1.8;}

  /* Health topics already have usable wrap navigation and a skip link.
     Increase hit targets without replacing those existing features. */
  html.health-library body header .navlinks a{
    min-height:48px;font-size:14px;line-height:1.5;
  }
  html.health-library body main.article :is(p,li){
    font-size:max(16px,1rem);line-height:1.85;overflow-wrap:anywhere;
  }
  body.archive-gallery .archive-blog-group li a{
    font-size:15px;line-height:1.8;
  }
}
/* At phone text zoom, don't clip the navigation or fixed patient actions. */
@media(max-width:380px){
  .clinic-info-mobile-actions{gap:5px;padding-left:8px;padding-right:8px;}
  .clinic-info-mobile-actions a{font-size:12px;line-height:1.45;padding:8px 3px;}
}

/* A direct, accessible route to pre-visit checklists on long medical
   information pages. Reuses the same stylesheet already loaded by those
   pages; nothing is hidden from readers or search crawlers. */
.patient-checklist-jump{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;
 margin:18px 0 22px;padding:14px 16px;
 background:#f3f9f5;border:1px solid #cee1d4;border-radius:12px;
}
.patient-checklist-jump a{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:9px 15px;
 border:1px solid #336e59;border-radius:9px;
 background:#fff;color:#185843;font-weight:750;
 font-size:15px;line-height:1.45;text-decoration:none;
}
.patient-checklist-jump a:focus-visible{
 outline:3px solid #bd7319;outline-offset:3px;
}
.patient-checklist-jump span{font-size:14px;line-height:1.6;color:#466556;}
#visit-checklist{scroll-margin-top:25px;}
@media(max-width:600px){
 .patient-checklist-jump{padding:13px 12px;align-items:stretch;}
 .patient-checklist-jump a{flex:1 1 100%;}
 .patient-checklist-jump span{font-size:14px;}
}
@media print{.patient-checklist-jump{display:none!important}}
