/* Header geometry and colors taken from the VPS Tools page. Scoped to the header only. */
@font-face {
  font-family: TradeitHeaderSofia;
  src: url('/calculator/assets/ti-header-sofia-2176b732b7e4.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: TradeitHeaderIcons;
  src: url('/calculator/assets/fa-solid-900-DjKv4PhZ.woff2') format('woff2');
  font-style: normal;
  font-weight: 900;
  font-display: block;
}
.ti-tools-header {
  position: relative;
  z-index: 50;
  display: block;
  width: 100%;
  max-width: none;
  height: 72px;
  margin: 0;
  padding: 0;
  border: 0;
  background: #101015;
  color: #535866;
  font: 700 15px/1.55 TradeitHeaderSofia, 'Sofia Sans', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
.ti-tools-header, .ti-tools-header * { box-sizing: border-box; }
.ti-tools-header .ti-header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: min(1520px, 100vw - 48px);
  height: 72px;
  margin: 0 auto;
  padding: 0;
}
.ti-tools-header .ti-header-brand {
  display: inline-flex;
  align-items: center;
  min-width: 186px;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
}
.ti-tools-header .ti-header-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
}
.ti-tools-header .ti-header-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  color: #535866;
  font: inherit;
}
.ti-tools-header .ti-header-nav > a,
.ti-tools-header .ti-tools-dropdown > summary {
  display: inline-flex;
  align-items: center;
  min-width: 70px;
  height: 72px;
  margin: 0;
  padding: 0 18px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ti-tools-header a:hover,
.ti-tools-header .ti-tools-dropdown > summary:hover,
.ti-tools-header .ti-tools-dropdown[open] > summary { color: #fff; }
.ti-tools-header a:focus-visible,
.ti-tools-header summary:focus-visible {
  outline: 2px solid #8986fd;
  outline-offset: -4px;
  border-radius: 4px;
}
.ti-tools-header .ti-header-sell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  border-radius: 4px;
  background: #6fc34a;
}
.ti-tools-header .ti-header-bolt {
  display: inline-block;
  width: 10px;
  height: 10px;
  color: #111318;
  font: normal 900 10px/1 TradeitHeaderIcons;
  font-variant: normal;
  text-rendering: auto;
}
.ti-tools-header .ti-header-bolt::before { content: '\e0b7'; }
.ti-tools-header .ti-tools-dropdown { position: relative; }
.ti-tools-header .ti-tools-dropdown > summary { gap: 6px; list-style: none; }
.ti-tools-header .ti-tools-dropdown > summary::-webkit-details-marker { display: none; }
.ti-tools-header .ti-tools-chevron {
  display: block;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s ease;
}
.ti-tools-header .ti-tools-dropdown[open] .ti-tools-chevron { transform: rotate(180deg); }
.ti-tools-header .ti-tools-menu {
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  z-index: 1;
  width: min(390px, 100vw - 32px);
  max-height: min(600px, 100dvh - 88px);
  padding: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #252632;
  border-radius: 8px;
  background: #16161d;
  box-shadow: 0 16px 40px #0008;
}
.ti-tools-header .ti-tools-dropdown:not([open]) > .ti-tools-menu { display: none; }
.ti-tools-header .ti-tools-menu ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ti-tools-header .ti-tools-menu li { margin: 0; padding: 0; }
.ti-tools-header .ti-tools-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 4px;
  color: #a6a9b3;
  font: 600 15px/1.35 TradeitHeaderSofia, 'Sofia Sans', system-ui, sans-serif;
  text-decoration: none;
}
.ti-tools-header .ti-tools-menu a:hover,
.ti-tools-header .ti-tools-menu a:focus-visible { color: #fff; background: #252632; }
.ti-tools-header .ti-tools-menu .ti-tools-index {
  justify-content: space-between;
  margin-bottom: 6px;
  border-bottom: 1px solid #252632;
  border-radius: 0;
  color: #8986fd;
  font-weight: 700;
}
@media (max-width: 1400px) {
  .ti-tools-header .ti-header-inner { width: min(1180px, 100vw - 40px); }
}
@media (max-width: 980px) {
  .ti-tools-header { height: auto; }
  .ti-tools-header .ti-header-inner {
    width: min(720px, 100vw - 32px);
    height: auto;
    flex-wrap: wrap;
    gap: 20px;
    padding: 18px 0;
  }
  .ti-tools-header .ti-header-nav { order: 3; justify-content: space-between; width: 100%; }
  .ti-tools-header .ti-tools-menu { max-height: calc(100dvh - 188px); }
}
@media (max-width: 680px) {
  .ti-tools-header .ti-header-inner { width: min(100% - 24px, 480px); }
  .ti-tools-header .ti-header-brand { min-width: 0; }
  .ti-tools-header .ti-header-nav > a,
  .ti-tools-header .ti-tools-dropdown > summary { min-width: 0; height: 52px; padding: 0 8px; font-size: 14px; }
  .ti-tools-header .ti-tools-dropdown { position: static; }
  .ti-tools-header .ti-tools-menu { width: min(390px, 100%); max-height: calc(100dvh - 164px); }
}
@media (max-width: 380px) {
  .ti-tools-header .ti-header-nav > a,
  .ti-tools-header .ti-tools-dropdown > summary { padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .ti-tools-header .ti-tools-chevron { transition: none; }
}
