/* Donald Street Health Centre — V22.1 mobile accessibility layer.
   Presentation only. Does not change patient links, D1, OneSignal or the Control Centre. */
.hub-text-size-control {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  margin-left: auto;
  border: 1.5px solid #b8d7ed;
  border-radius: 12px;
  background: #eef6ff;
  color: #124b81;
  font: 850 16px/1 ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  letter-spacing: -.01em;
  cursor: pointer;
  touch-action: manipulation;
}
.hub-text-size-control[aria-pressed="true"] {
  background: #155a9a;
  border-color: #155a9a;
  color: #fff;
}
.hub-text-size-control:focus-visible { outline: 3px solid #246da9; outline-offset: 3px; }

@media (max-width: 599px) {
  /* Keep the top bar usable at narrow phone widths. */
  .topbar { gap: 8px; padding-left: 15px; padding-right: 15px; }
  .topbar .brand { flex: 1 1 auto; gap: 7px; min-width: 0; }
  .topbar .clinic-logo { max-width: 100%; width: clamp(148px, 40vw, 178px); }
  .topbar .hub-version { font-size: 10px; line-height: 1.3; white-space: normal; max-width: 86px; }
  .content { padding-left: 18px; padding-right: 18px; }

  /* Main experience: comfortable 16px reading size rather than 11–13px. */
  .frame { font-size: 16px; }
  #home .hero p { font-size: 16px !important; line-height: 1.58 !important; }
  .v21-greeting span, .section-heading .small { font-size: 14px; line-height: 1.45; }
  .v21-greeting strong, .section-heading h2 { font-size: 20px; line-height: 1.3; }
  .v21-quick-actions button { min-height: 126px; padding: 15px 14px; }
  .v21-quick-actions button strong { font-size: 16px; line-height: 1.4; }
  .v21-quick-actions button small { font-size: 14px; line-height: 1.4; }
  .tile-title { font-size: 16px; line-height: 1.4; }
  .tile-sub { font-size: 14px; line-height: 1.5; }
  .tile { min-height: 150px; }
  .care-note b { font-size: 15px; }
  .care-note span { font-size: 14px; line-height: 1.65; }
  .footer-note { font-size: 13px; line-height: 1.6; }
  .primary-action { font-size: 16px; min-height: 52px; }
  .page-head h1 { font-size: clamp(27px, 7vw, 33px); }
  .page-head p, #updates .page-head p { font-size: 16px; line-height: 1.6; }
  .page-back { font-size: 14px; min-height: 44px; }
  .page-head .page-tag, .eyebrow, .info-kicker { font-size: 12px; }
  .info-card h3, .team h3 { font-size: 17px; line-height: 1.35; }
  .info-card p, .small-panel, .list-compact, .team p { font-size: 15.5px; line-height: 1.58; }
  .action-link { font-size: 16px; line-height: 1.45; min-height: 54px; }
  .v18-banner p, .v18-story p { font-size: 15px; line-height: 1.65; }
  .v18-story h3 { font-size: 17px; }
  .v18-meta { font-size: 12px; }

  /* Announcements and their expandable instructions. */
  #updates .v22-list-heading h2 { font-size: 21px; }
  #updates .v22-list-order { font-size: 12px; }
  #updates .v22-article h3, #updates .v22-article:first-child h3 { font-size: 19px; }
  #updates .v22-article p { font-size: 16px; line-height: 1.65; }
  #updates .v22-readmore { font-size: 15px !important; min-height: 40px; }
  #updates .v22-cardtop small { font-size: 12px; }
  #updates .v22-badge { font-size: 11px; }
  #updates .v22-empty { font-size: 15px; }
  #updates .v22-setting-heading strong { font-size: 16px; }
  #updates .v22-setting-heading small { font-size: 14px; }
  #updates .v22-howto > summary { font-size: 15px; min-height: 44px; }
  #updates .v22-howto-body p { font-size: 15.5px; }
  #updates .v22-howto-body button { font-size: 15px; min-height: 44px; }
  #updates .v22-assurance { font-size: 14px; line-height: 1.6; }
  #updates .v22-more-links > summary { font-size: 15px; min-height: 44px; }
  #updates .v22-setting-content .clinic-push p,
  .clinic-push p { font-size: 15.5px; line-height: 1.65; }
  .clinic-push button { font-size: 15px; min-height: 44px; }
  .clinic-push .clinic-push-status { font-size: 14px; }
  .v21-help-accordion summary strong { font-size: 16px; }
  .v21-help-accordion summary small { font-size: 14px; }
  .v21-help-content p { font-size: 15px; line-height: 1.65; }
  .v21-help-assurance { font-size: 14px; }

  /* Accessible bottom navigation with five items. */
  nav.nav button { font-size: 13px; font-weight: 800; line-height: 1.25; min-height: 54px; }
  .nav { padding-left: 5px; padding-right: 5px; }
  #home #home-notice b { font-size: 16px; }
  #home #home-notice p { font-size: 15px; line-height: 1.62; }
  #home #home-notice .home-notice-cta { font-size: 14px; }
  #home #home-notice .home-notice-eyebrow { font-size: 11px; }
}
@media (max-width: 359px) {
  .topbar .hub-version { display: none; }
  .content { padding-left: 15px; padding-right: 15px; }
  .v21-quick-actions button { padding: 12px; }
  nav.nav button { font-size: 12px; }
}

/* Optional patient-selected large print: retained on this device. */
html.hub-large-text .frame { font-size: 18px; }
html.hub-large-text #home .hero p { font-size: 18px !important; }
html.hub-large-text .v21-quick-actions button strong,
html.hub-large-text .tile-title { font-size: 18px; }
html.hub-large-text .v21-quick-actions button small,
html.hub-large-text .tile-sub { font-size: 16px; }
html.hub-large-text .page-head p,
html.hub-large-text #updates .page-head p,
html.hub-large-text .info-card p,
html.hub-large-text .small-panel,
html.hub-large-text .list-compact,
html.hub-large-text .action-link,
html.hub-large-text .team p { font-size: 18px; }
html.hub-large-text .care-note span,
html.hub-large-text .v18-story p,
html.hub-large-text .v18-banner p { font-size: 17px; }
html.hub-large-text #updates .v22-article p { font-size: 18px; }
html.hub-large-text #updates .v22-readmore { font-size: 17px !important; }
html.hub-large-text #updates .v22-setting-heading strong,
html.hub-large-text #updates .v22-howto > summary,
html.hub-large-text #updates .v22-more-links > summary { font-size: 17px; }
html.hub-large-text #updates .v22-setting-heading small,
html.hub-large-text #updates .v22-howto-body p,
html.hub-large-text .clinic-push p,
html.hub-large-text .v21-help-content p { font-size: 17px; }
html.hub-large-text .clinic-push button { font-size: 17px; }
html.hub-large-text .primary-action { font-size: 18px; }
html.hub-large-text nav.nav button { font-size: 14px; }
html.hub-large-text #home #home-notice p { font-size: 17px; }
html.hub-large-text #home #home-notice b { font-size: 18px; }
html.hub-large-text #home #home-notice .home-notice-cta { font-size: 16px; }
html.hub-large-text .v21-greeting span,
html.hub-large-text .section-heading .small { font-size: 16px; }
