#mobile-contact-bar {
  display: none;
}

@media screen and (max-width: 640px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-width: 0;
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
    overflow-x: hidden;
  }

  #wrapper {
    box-sizing: border-box;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #header {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    background: none !important;
  }

  #header a,
  #header img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  #topnav {
    width: 100% !important;
    height: auto !important;
    margin: 0 0 14px !important;
  }

  #topnav ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
  }

  #topnav li {
    display: block;
    box-sizing: border-box;
    flex: 0 0 50%;
  }

  #topnav li:last-child {
    flex-basis: 100%;
  }

  #topnav li a {
    display: flex !important;
    float: none !important;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-height: 44px;
    height: auto !important;
    margin: 2px !important;
    padding: 7px 5px !important;
    border-radius: 4px;
    background: #087eae !important;
    background-image: none !important;
    box-shadow: none !important;
    line-height: 1.45 !important;
    text-align: center;
  }

  #topnav li a:hover,
  #topnav li a:focus {
    background: #066b95 !important;
    background-image: none !important;
  }

  #container,
  #main,
  #sidebar,
  #footer,
  #footer .inner {
    box-sizing: border-box;
    width: auto !important;
    max-width: 100% !important;
  }

  #container {
    margin: 0;
    padding: 0;
  }

  #main,
  #sidebar {
    display: block;
    float: none !important;
    padding: 12px 14px !important;
  }

  #main {
    font-size: 15px;
    line-height: 1.8;
  }

  #main h2 {
    min-height: 40px;
    margin-bottom: 8px;
    padding: 9px 8px 9px 40px;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }

  #main h3 {
    min-height: 30px;
    padding: 5px 6px 8px 15px;
    line-height: 1.5;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  #main p {
    padding: 12px 4px 18px !important;
  }

  #main ul,
  #main ol,
  #footer ul,
  #footer ol {
    box-sizing: border-box;
    margin-left: 24px;
    padding-right: 4px;
  }

  img,
  iframe,
  video {
    box-sizing: border-box;
    max-width: 100% !important;
  }

  img {
    height: auto !important;
  }

  #main img.alignleft,
  #main img.alignright,
  #main .alignleft,
  #main .alignright {
    display: block;
    float: none !important;
    margin: 8px auto !important;
    padding: 0 !important;
  }

  .easingslider {
    width: 100% !important;
    max-width: 100% !important;
  }

  .easingslider .easingslider-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .easingslider-arrows-outside .easingslider-prev {
    left: 0 !important;
  }

  .easingslider-arrows-outside .easingslider-next {
    right: 0 !important;
    left: auto !important;
  }

  .easingslider-arrows-hover .easingslider-prev,
  .easingslider-arrows-hover .easingslider-next {
    opacity: 0.8 !important;
    transform: none !important;
  }

  .box {
    float: none !important;
    box-sizing: border-box;
    width: auto !important;
    max-width: 260px;
    margin: 14px auto !important;
  }

  p.button a {
    margin: 0 !important;
  }

  #sidebar p,
  #sidebar center {
    max-width: 100%;
  }

  #sidebar li {
    margin: 0 0 1px !important;
  }

  #sidebar li a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 40px;
    padding-top: 5px;
    padding-bottom: 5px;
    line-height: 1.45;
  }

  #sidebar .sidemenu-years {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0 !important;
    padding: 8px 0 2px !important;
  }

  #sidebar .sidemenu-years li {
    margin: 0 !important;
    border: 0;
  }

  #sidebar .sidemenu-years li a {
    justify-content: center;
    min-height: 40px;
    padding: 4px !important;
    border: 1px solid #c5e0ec;
    border-radius: 4px;
    background: none !important;
    text-align: center;
  }

  #footer {
    clear: both;
    padding: 14px;
  }

  #footer #logo {
    float: none;
    width: auto;
    padding: 0;
    text-align: center;
  }

  address {
    box-sizing: border-box;
    padding: 14px 12px 18px;
    line-height: 1.6;
  }

  table {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  pre,
  code {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .legacy-contact input[type="text"],
  .legacy-contact input[type="tel"],
  .legacy-contact input[type="email"],
  .legacy-contact input[type="file"],
  .legacy-contact textarea,
  .legacy-contact button {
    box-sizing: border-box;
    max-width: 100%;
    font-size: 16px;
  }

  .legacy-contact input[type="text"],
  .legacy-contact input[type="tel"],
  .legacy-contact input[type="email"],
  .legacy-contact input[type="file"],
  .legacy-contact textarea {
    width: 100%;
  }

  #mobile-contact-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid #b9d7e5;
    background: rgba(255, 255, 255, 0.97);
  }

  #mobile-contact-bar a {
    display: flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 48px;
    padding: 8px 6px;
    border-radius: 4px;
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
  }

  #mobile-contact-bar a:first-child {
    background: #087eae;
  }

  #mobile-contact-bar a:last-child {
    background: #c83b32;
  }
}
