/* Responsive patch — added June 2025 */
/* Makes the legacy fixed-width layout at least readable on mobile */

img {
  max-width: 100%;
  height: auto;
}

table {
  max-width: 100%;
}

#dr-foster-sidebar img,
#mini img,
#small_top_win img {
  max-width: 100%;
  height: auto;
}

/* Ensure page stays centered */
#wrap {
  margin: 0 auto;
}

/* Nav button sizing fix */
#menu .nav-main-btn {
  display: block;
  background-color: #000000;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: bold;
  font-family: arial, helvetica, sans-serif;
  line-height: 40px;
  height: 40px;
  padding: 0 10px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
}
#menu .nav-main-btn:hover {
  background-color: #333333;
  color: #ffffff !important;
}

/* Push page down so fixed nav doesn't cover content */
body {
  padding-top: 40px;
}

/* Dr. Foster fixed portrait in top nav */
#small_top_win {
  display: block !important;
  position: fixed;
  top: 42px;
  left: 50%;
  margin-left: -235px;
  z-index: 501;
}
#small_top_win img {
  border: 2px solid #1a3c6e;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  width: 111px;
  height: auto;
}

/* Top-left search container sizing */
#top_left_search_container {
  position: absolute;
  left: 0;
  height: 40px;
}

/* Search button alignment */
#top_left_search_container form,
#top_nav form {
  display: inline-block;
  vertical-align: top;
  height: 40px;
}
#top_left_search_container input[type="image"],
#top_nav input[type="image"] {
  vertical-align: middle;
  margin-top: 4px;
}

@media screen and (max-width: 768px) {
  body {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
  }

  #wrap {
    width: 100% !important;
    min-width: auto !important;
  }

  #top img,
  #middle img,
  #page_content img {
    max-width: 100%;
    height: auto;
  }

  #left,
  #right,
  #middle {
    float: none !important;
    width: 100% !important;
    padding: 0 10px;
    box-sizing: border-box;
  }

  #menu ul li {
    float: none;
    width: 100%;
  }

  #menu ul li a {
    display: block;
    padding: 10px;
    font-size: 16px;
  }

  #footer {
    width: 100% !important;
    padding: 10px;
    box-sizing: border-box;
  }

  .bot_nav_link {
    display: inline-block;
    padding: 4px 0;
  }

  #mini,
  #dr-foster-sidebar {
    width: 100% !important;
    height: auto !important;
    text-align: center;
  }

  #mini img,
  #dr-foster-sidebar img {
    max-width: 100%;
    height: auto;
  }

  #top_nav {
    height: auto !important;
    position: relative !important;
  }

  #small_top_win {
    display: none !important;
  }

  #top_nav_button1,
  #top_nav_button2,
  #top_nav_button3,
  #top_nav_button4 {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    float: none !important;
  }
}
