@charset "utf-8";

/* Header-only polish: intentionally scoped to the top logo row. */
#header {
  overflow: hidden;
  border-top: 4px solid #0a54a4;
  border-bottom: 1px solid #e4ecf5;
  background: #fff;
}

#header .inner {
  height: 126px;
  background-position: right center;
  background-size: auto 100%;
}

#header .inner > .mod {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
}

#header .head-left,
#header .head-right {
  float: none;
}

#header .head-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

#header .sitelogo {
  float: none;
  margin: 0;
  line-height: 0;
}

#header .sitelogo a {
  display: block;
}

#header .sitelogo img {
  display: block;
  width: 330px !important;
  height: auto !important;
  max-width: min(42vw, 330px);
  object-fit: contain;
}

#header .head-right {
  width: auto;
  margin: 0;
  padding-left: 24px;
}

#header .site-lang ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#header .site-lang ul li.links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid #dce7f3;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #48627f;
  font-size: 13px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

#header .site-lang ul li.links a:hover,
#header .site-lang ul li.links a:focus {
  border-color: #9ec3e9;
  background: #f1f7ff;
  color: #0a54a4;
}

@media screen and (max-width: 999px) {
  #header .inner {
    height: auto;
    background-position: right top;
  }

  #header .inner > .mod {
    min-height: 0;
    flex-direction: column;
    padding: 14px 0 12px;
  }

  #header .head-left,
  #header .head-right {
    width: 100%;
    padding: 0;
    text-align: center;
  }

  #header .sitelogo img {
    width: min(330px, 82vw) !important;
    max-width: none;
    margin: 0 auto;
  }

  #header .head-right {
    margin-top: 10px;
  }

  #header .site-lang ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 480px) {
  #header .inner > .mod {
    padding-top: 8px;
  }

  #header .sitelogo img {
    width: min(300px, 88vw) !important;
  }
}