@font-face {
  font-family: Rubik;
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/rubik.woff2') format('woff2');
}

body { border-top: 0; }
html { scroll-padding-top: 115px; overflow-y: scroll; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 5px solid #d3482e;
  border-bottom: 1px solid #dcdedb;
  background: #f7f6f2;
  color: #172337;
  font: 550 13px/1.4 Rubik, system-ui, sans-serif;
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 1360px;
  min-height: 88px;
  margin: 0 auto;
  padding: 18px 44px;
}

.site-header .site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 19px;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.site-brand img { width: 30px; height: 30px; }

.site-header .site-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 24px;
  margin: 0 0 0 auto;
  padding: 0;
  width: auto;
  order: initial;
}

.site-header .site-nav a {
  color: inherit;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-nav a:hover { color: #d3482e; }

.site-header .site-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 16px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #172337;
  border-radius: 30px;
  background: #172337;
  color: #fff;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .site-portal:hover { background: #2b3d57; }
.site-header a:focus-visible { outline: 3px solid #247e8f; outline-offset: 4px; }
.skip-link { z-index: 40; }

@media (max-width: 900px) {
  .site-header-inner { gap: 20px; padding: 16px 24px; }
  .site-header .site-nav { gap: 16px; }
  .site-header .site-brand { font-size: 17px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 145px; }
  .site-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 12px;
    min-height: 112px;
    padding: 14px 18px;
  }
  .site-header .site-brand { font-size: 15px; gap: 8px; }
  .site-brand img { width: 25px; height: 25px; }
  .site-header .site-portal { grid-column: 2; grid-row: 1; padding: 10px 13px; font-size: 12px; gap: 8px; }
  .site-header .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
  }
  .site-header .site-nav a { font-size: 12px; }
}
