/* Responsive enhancements for the original Dr. Surikov theme.
   Desktop layout remains as close as possible to the original CSS. */
html { -webkit-text-size-adjust: 100%; }
#center img { max-width: 100%; height: auto; }
#center a:focus-visible, #nav a:focus-visible, #footer a:focus-visible { outline: 2px solid #14343f; outline-offset: 3px; }
/* Original 100%-height center can grow to show long-form articles. */
@media (max-width: 960px) {
  #header { height: auto; background-repeat: repeat-x; }
  #header_wrapper { width: 100%; height: auto; min-height: 270px; padding-bottom: 16px; background-position: center top; }
  #nav { display: flex; flex-wrap: wrap; align-content: flex-start; width: 100%; height: auto; min-height: 64px; background: #222725; }
  #nav li { float: none; }
  #nav li a, #nav li a:visited { line-height: 22px; padding: 18px 11px; }
  #logo { position: relative; top: auto; left: auto; max-width: 90%; margin: 22px auto 0; }
  #slogan { position: relative; top: auto; right: auto; width: auto; height: auto; padding: 0 14px 18px; text-align: center; }
  #center { box-sizing: border-box; width: 100%; max-width: 860px; height: auto; padding: 35px 30px 45px; }
  #footer { height: auto; position: relative; left: auto; bottom: auto; }
  #footer_wrapper { box-sizing: border-box; width: 100%; max-width: 860px; height: auto; min-height: 230px; padding: 55px 30px 18px; overflow: hidden; }
}
@media (max-width: 620px) {
  #nav { justify-content: center; }
  #nav li { flex: 1 0 49%; }
  #nav li a, #nav li a:visited { min-height: 50px; padding: 11px 8px; line-height: 22px; font-size: 12px; }
  #header_wrapper { padding-bottom: 10px; }
  #logo { margin-top: 4px; background-size: contain; height: 100px; }
  #slogan { font-size: 19px; line-height: 25px; padding-bottom: 12px; }
  #center { padding: 26px 20px 32px; overflow-wrap: anywhere; }
  #center h3 { font-size: clamp(27px, 7vw, 40px); line-height: 1.06; margin-bottom: 22px; }
  #center img[style*="float: right"] { float: none !important; display: block; margin: 0 auto 20px !important; }
  #center div[style*="float: left"] { float: none !important; }
  #center div[style*="float: left"] > ul { float: none !important; margin-left: 0 !important; margin-bottom: 10px; }
  #footer_wrapper { padding: 35px 20px 16px; }
  #footer ul { width: 48%; height: auto; margin-bottom: 15px; }
  #footer ul#info { width: 100%; height: auto; clear: both; float: none; }
  #footer ul#info li.tel, #footer ul#info li.email { box-sizing: border-box; width: 100%; }
  #footer ul#info li.email a { font-size: 19px; }
  .copyright { clear: both; margin-top: 15px; }
  #center dl { max-width: 100%; }
}

/* GLP-1 page layout: readable headings and scrollable dosing table. */
#center.glp-page .page-title { font-size: clamp(28px, 4.1vw, 44px); line-height: 1.16; margin: 0 0 25px; }
#center.glp-page p { margin: 0 0 16px; }
#center.glp-page .glp-list { margin: 0 0 20px; padding-left: 18px; list-style-position: outside; }
#center.glp-page .glp-list li { padding-left: 0; margin: 0 0 9px; }
#center.glp-page h4 { margin: 28px 0 16px; font-size: 19px; line-height: 1.35; color: #14343f; }
#center.glp-page .glp-table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 25px; }
#center.glp-page .glp-table { border-collapse: collapse; width: 100%; min-width: 590px; font-size: 12px; line-height: 1.45; }
#center.glp-page .glp-table th, #center.glp-page .glp-table td { padding: 12px 10px; border: 1px solid #d6dcd9; text-align: left; vertical-align: top; }
#center.glp-page .glp-table th { background: #e9efeb; color: #14343f; font-weight: bold; }
#center.glp-page .glp-table tr:nth-child(even) { background: #f7f9f7; }
#center.glp-page .glp-table td:first-child, #center.glp-page .glp-table td:nth-child(2) { white-space: nowrap; }
/* Keep the longer replacement menu item within the original desktop bar. */
@media (min-width: 961px) { #nav li a, #nav li a:visited { padding-left: 9px; padding-right: 9px; font-size: 12px; } }
