/* Small local additions for static search, navigation controls, and the 404 page. */
body.static-search-page,
body.static-error {
  margin: 0;
  min-height: 100vh;
  background: #f4f4f4;
  color: #161616;
  font-family: Arial, Helvetica, sans-serif;
}

.static-search-header {
  height: 68px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0a0a0a;
}

.static-search-header img {
  display: block;
  width: 190px;
  max-height: 48px;
  object-fit: contain;
}

.search-home-link,
.back-home {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.static-search-page main {
  width: min(100% - 40px, 900px);
  margin: 42px auto 80px;
}

.static-search-page h1,
.static-error h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
}

#static-search-form {
  display: flex;
  width: 100%;
  margin-bottom: 18px;
}

#static-search-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ccc;
  border-right: 0;
  border-radius: 0;
  padding: 15px 16px;
  font: inherit;
  background: #fff;
}

#static-search-form button {
  border: 0;
  border-radius: 0;
  padding: 0 24px;
  background: #ff5b00;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

#search-status {
  min-height: 1.4em;
  color: #666;
  font-size: 14px;
}

.search-result {
  display: grid;
  grid-template-columns: minmax(150px, 250px) 1fr;
  gap: 20px;
  margin: 0 0 16px;
  padding: 18px;
  background: #fff;
  border-bottom: 2px solid #ff5b00;
}

.search-result[hidden] { display: none !important; }

.search-result-image img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
}

.search-result-meta {
  margin: 0 0 7px;
  color: #ff5b00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.search-result h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.2;
}

.search-result h2 a {
  color: #111;
  text-decoration: none;
}

.search-result > div > p:last-child {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.55;
}

.static-embed-link {
  padding: 12px 16px;
  border-left: 4px solid #ff5b00;
  background: #f5f5f5;
}

body.static-search-open #mvp-search-wrap {
  z-index: 1000001;
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

body.static-menu-open #mvp-fly-wrap {
  z-index: 1000002;
  transform: translate3d(0, 0, 0);
}

body.static-menu-open::after {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(0, 0, 0, .58);
  content: "";
}

a.static-search-link {
  display: inline-block;
  float: right;
  padding: 15px 0;
  color: #555;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.static-error main {
  box-sizing: border-box;
  width: min(100% - 40px, 680px);
  margin: 10vh auto;
  padding: 48px;
  background: #fff;
  border-top: 5px solid #ff5b00;
}

.static-error img {
  display: block;
  width: 190px;
  max-height: 60px;
  object-fit: contain;
  margin-bottom: 42px;
}

.static-error p { color: #555; }
.static-error .back-home { display: inline-block; margin-top: 18px; padding: 13px 18px; background: #ff5b00; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 620px) {
  .static-search-header { height: 58px; padding: 0 16px; }
  .static-search-header img { width: 150px; max-height: 42px; }
  .static-search-page main { width: calc(100% - 28px); margin: 28px auto 52px; }
  #static-search-form button { padding: 0 15px; }
  .search-result { grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .search-result-image img { max-height: 210px; }
  .static-error main { width: calc(100% - 28px); margin: 7vh auto; padding: 30px 22px; }
}
