/* Keep the zAlive desktop layout, with navigation and tables usable on narrow screens. */
[hidden] { display: none !important; }
a:focus-visible, input:focus-visible, button:focus-visible { outline: 2px solid #9bc772; outline-offset: 2px; }
#header .nav li:focus-within > .sub-menu { display: block; }
@media (hover: hover) { #header .nav li:hover > .sub-menu { display: block; } }
.entry-content img { max-width: 100%; height: auto; }
.entry-content table { max-width: 100%; }
.entry-content td { overflow-wrap: anywhere; }
.restored-date { display: block; color: #565656; margin: -3px 0 10px; font-size: 12px; }
.course-history { color: #555; }
#local-search-results { padding-bottom: 1rem; }
#local-search-results h2 { font-size: 21px; line-height: 1.3; }
#searchbox input[type="search"] { box-sizing: border-box; height: 30px; }
@media (max-width: 979px) {
  #header .navbar .navbar-inner { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0 10px; }
  #header .navbar .brand { float: none; margin: 0; }
  #header .navbar .nav { float: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
  #header .navbar .nav > li { float: none; }
  #header .navbar #searchbox { float: none; margin: 4px 0 8px; }
  #header .navbar #searchbox input { max-width: calc(100vw - 145px); }
}
@media (max-width: 570px) {
  #header .navbar .navbar-inner { display: block; padding: 5px 6px; }
  #header .navbar .brand { display: block; padding: 8px 0; }
  #header .navbar .nav > li > a { padding: 6px 9px 6px 0; }
  #header .navbar .nav > li .sub-menu { display: none; }
  #header .navbar .nav > li:focus-within .sub-menu { display: block; }
  #header .navbar #searchbox { display: flex; }
  #content .main .article, #content .main .hentry { box-sizing: border-box; max-width: 100%; }
  .entry-content { min-width: 0; }
  .entry-content .alignleft, .entry-content .alignright { float: none; margin: 0 0 12px; }
  .entry-content table { display: block; overflow-x: auto; }
}

