/* Responsive additions to the preserved Landscape theme. */
#wrap, #header, #nav, #footer-widgeted, #footer {
  width: 100%;
  max-width: 850px;
}

#header, #header #title-area, #header #title-area #title,
#header #title-area #title a {
  width: 100%;
  max-width: 850px;
  height: auto;
  aspect-ratio: 850 / 80;
}

#header #title-area, #header #title-area #title {
  background: none;
}

#header #title-area #title a {
  background-size: 100% auto;
  background-repeat: no-repeat;
}

#inner {
  box-sizing: border-box;
  width: 100%;
}

#content-sidebar-wrap,
.sidebar-content #content-sidebar-wrap,
.content-sidebar #content-sidebar-wrap {
  width: 100%;
}

#content, .content-sidebar #content, .sidebar-content #content {
  width: 75%;
  overflow-wrap: break-word;
}

#sidebar {
  width: 22.5%;
}

.full-width-content #content {
  width: 100%;
}

#content img, #sidebar img, .wp-caption {
  max-width: 100%;
  height: auto;
  box-sizing: border-box;
}

#content iframe {
  max-width: 100%;
  height: auto;
  aspect-ratio: 500 / 281;
}

#content h1, #content h2, #content h3 {
  line-height: 1.3;
}

#inner a, #inner a:visited {
  color: #246971;
}

#inner .entry-content a, #inner .blogroll a,
#footer-widgeted a, #footer .gototop a {
  text-decoration: underline;
  text-underline-offset: .15em;
}

#inner a:hover {
  color: #17494f;
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #167b90;
  outline-offset: 3px;
}

#nav a:focus-visible, #nav button:focus-visible, #nav input:focus-visible,
#footer-widgeted a:focus-visible, #footer a:focus-visible {
  outline-color: #9de4f0;
  outline-offset: -3px;
}

.skip-link, .skip-link:visited {
  position: absolute;
  top: 0;
  left: -10000px;
  z-index: 10000;
  padding: 12px 18px;
  color: #fff;
  background: #222;
}

.skip-link:focus {
  left: 0;
}

#nav {
  height: auto;
  min-height: 30px;
}

#nav .menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  float: none;
}

#nav .menu > li {
  float: none;
  position: relative;
}

#nav li.menu-item-has-children {
  display: flex;
  align-items: center;
}

#nav .menu-item-has-children > a {
  padding-right: 8px;
}

#nav .submenu-toggle {
  box-sizing: border-box;
  display: block;
  width: 28px;
  min-height: 30px;
  padding: 0;
  color: #fff;
  background: #333;
  border: 0;
  font: inherit;
  cursor: pointer;
}

#nav .submenu-toggle:hover, #nav .submenu-toggle[aria-expanded="true"] {
  background: #222;
}

#nav li > ul.sub-menu {
  display: none;
  top: 100%;
  left: 0;
  width: 210px;
  background: #222;
  z-index: 100;
}

#nav li > ul.sub-menu li, #nav li > ul.sub-menu a {
  box-sizing: border-box;
  width: 100%;
}

#nav li > ul.sub-menu a {
  padding: 10px 12px;
  font-size: 12px;
}

#nav:not(.menu-enhanced) li:hover > ul.sub-menu,
#nav:not(.menu-enhanced) li:focus-within > ul.sub-menu,
#nav.menu-enhanced li > ul.sub-menu:not([hidden]) {
  display: block;
}

#nav .menu > li.search {
  float: none;
  margin: 0 10px 0 auto;
  padding: 3px 0;
}

#nav .searchform {
  display: flex;
  float: none;
  padding: 0;
  gap: 4px;
}

#nav .s {
  box-sizing: border-box;
  width: 160px;
  min-width: 0;
  font-size: 11px;
}

#nav .s::placeholder {
  color: #dedede;
  opacity: 1;
}

#nav .searchsubmit {
  cursor: pointer;
}

#homepage {
  width: 100%;
  height: auto;
}

#rotator {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 533;
}

#rotator:not(.slideshow-ready) > :not(:first-child),
#rotator .site-slide[hidden] {
  display: none;
}

#rotator .site-slide {
  width: 100%;
  height: 100%;
}

#rotator img, #rotator a {
  display: block;
  width: 100%;
  height: auto;
}

#rotator a:focus-visible {
  outline-offset: -4px;
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  font-size: 12px;
}

.slideshow-controls button {
  min-height: 36px;
  padding: 6px 12px;
  color: #333;
  background: #f5f5f5;
  border: 1px solid #777;
  font: inherit;
  cursor: pointer;
}

.slideshow-controls button:hover {
  background: #e6e6e6;
}

.slideshow-status {
  min-width: 42px;
  text-align: center;
}

#footer-widgeted {
  display: flex;
}

#footer-widgeted > div {
  box-sizing: border-box;
  flex: 1;
  width: auto;
  float: none;
  min-width: 0;
}

#footer {
  height: auto;
}

#footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
}

#footer .gototop, #footer .creds {
  width: auto;
  float: none;
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }

  #inner {
    padding: 16px;
    border-width: 3px;
  }

  #content, .content-sidebar #content, .sidebar-content #content,
  #sidebar, #content-sidebar-wrap {
    width: 100%;
    float: none;
  }

  #sidebar {
    display: block;
    clear: both;
    padding-top: 24px;
    font-size: 14px;
  }

  #nav .menu {
    align-items: stretch;
  }

  #nav li a {
    padding: 12px;
  }

  #nav .submenu-toggle {
    min-height: 44px;
    width: 36px;
  }

  #nav .menu > li.search {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 4px 12px 12px;
  }

  #nav .s {
    flex: 1;
    width: 100%;
    padding: 8px;
    font-size: 16px;
    min-height: 44px;
  }

  #nav .searchsubmit {
    padding: 8px 14px;
    font-size: 14px;
    min-height: 44px;
  }

  .slideshow-controls {
    gap: 6px;
  }

  .slideshow-controls button {
    min-height: 44px;
    padding: 6px 10px;
  }

  #footer-widgeted {
    display: block;
    font-size: 14px;
  }

  #footer-widgeted > div {
    padding: 16px;
  }

  #footer .wrap {
    flex-direction: column;
    gap: 0;
    padding: 0 16px 16px;
  }

  #footer .creds {
    text-align: left;
  }
}
