:root {
  --site-header-bg: #022d3b;
  --site-header-text: #ffffff;
  --site-accent: #00f7ff;
  --site-logo-green: #61c33e;
  --site-border: rgba(0, 247, 255, 0.22);
  --site-footer-text: #c8d0d9;
}

.shared-site-header {
  width: 100%;
  box-sizing: border-box;
  background: rgba(2, 45, 59, 0.96);
  border-block: 1px solid var(--site-border);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  margin: 0 auto 24px;
  padding: 10px 18px;
}

.shared-site-header__content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.shared-site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  color: var(--site-header-text);
  text-decoration: none;
  border-radius: 8px;
}

.shared-site-logo .shared-site-logo__mark {
  display: block;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}

.shared-site-logo__name {
  font: 600 clamp(14px, 2.1vw, 22px)/1.2 'Segoe UI', sans-serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.shared-site-logo__accent { color: #61c33e; }

.shared-site-logo__domain {
  color: #c8d0d9;
  font-size: 0.72em;
  font-weight: 400;
  letter-spacing: 0;
}

.shared-site-logo:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: 5px;
}

.shared-site-nav {
  align-self: stretch;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1px;
  padding: 1px;
  border-block: 1px solid rgba(0, 247, 255, 0.24);
  background: rgba(0, 247, 255, 0.16);
}

.shared-site-nav a,
.shared-site-nav__context {
  min-height: 64px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 0;
  color: var(--site-header-text);
  font: 600 14px/1.2 'Segoe UI', sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.shared-site-nav__link {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  background: #023544;
  animation: shared-nav-arrive 480ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  animation-delay: calc(var(--nav-order, 0) * 55ms);
  transition: color 180ms ease, background-color 180ms ease,
    border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.shared-site-nav__market {
  padding-left: 31px !important;
  background: #023544;
}

/* A tiny rising candle echoes the chart mark in the logo. */
.shared-site-nav__market::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  width: 5px;
  height: 13px;
  border: 1px solid var(--site-logo-green);
  border-radius: 1px;
  background: rgba(97, 195, 62, 0.24);
  transform: translateY(-50%);
}

.shared-site-nav__market > span::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--site-logo-green);
}

.shared-site-nav__link--products {
  padding-right: 31px !important;
  background: #14543e;
  box-shadow: inset 3px 0 0 rgba(97, 195, 62, 0.72);
}

.shared-site-nav__link--products::after {
  content: '↗';
  position: absolute;
  right: 13px;
  color: #a3e58b;
  font-size: 15px;
  line-height: 1;
  transition: transform 180ms ease;
}

.shared-site-nav a:hover,
.shared-site-nav a:focus-visible {
  color: var(--site-accent);
  background: rgba(0, 247, 255, 0.1);
  box-shadow: inset 0 -3px 0 var(--site-accent);
  transform: none;
}

.shared-site-nav__link--products:hover,
.shared-site-nav__link--products:focus-visible {
  color: #ffffff;
  background: #1b6446;
  box-shadow: inset 3px 0 0 var(--site-logo-green), inset 0 -3px 0 var(--site-logo-green);
}

.shared-site-nav__link--products:hover::after,
.shared-site-nav__link--products:focus-visible::after {
  transform: translate(2px, -2px);
}

.shared-site-nav a:focus-visible {
  outline: 2px solid rgba(0, 247, 255, 0.65);
  outline-offset: 2px;
}

.shared-site-nav a[aria-current='page'],
.shared-site-nav__context {
  color: var(--site-accent);
  background: rgba(0, 247, 255, 0.1);
}

.shared-site-nav a[aria-current='page'] {
  box-shadow: inset 0 -3px 0 var(--site-accent);
}

.shared-site-nav .shared-site-nav__link--products[aria-current='page'] {
  color: #ffffff;
  background: #1b6446;
  box-shadow: inset 3px 0 0 var(--site-logo-green), inset 0 -3px 0 var(--site-logo-green);
}

.shared-site-footer {
  box-sizing: border-box;
  width: 100%;
  margin: 28px auto 0;
  padding: 18px;
  border-top: 1px solid var(--site-border);
  color: var(--site-footer-text);
  text-align: center;
  font: 14px/1.5 'Segoe UI', sans-serif;
}

.shared-site-footer a {
  color: var(--site-accent);
}

.site-data-status {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 20px;
  padding: 11px 16px;
  border-block: 1px solid rgba(0, 247, 255, 0.28);
  border-radius: 0;
  background: rgba(2, 45, 59, 0.88);
  color: #d9fbff;
  font: 600 14px/1.4 'Segoe UI', sans-serif;
  text-align: left;
}

.site-data-status[data-state='ready'] {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(20, 83, 45, 0.82);
  color: #dcfce7;
}

.site-data-status[data-state='error'] {
  border-color: rgba(248, 113, 113, 0.6);
  background: rgba(127, 29, 29, 0.9);
  color: #fee2e2;
}

.site-data-status__spinner {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--site-accent);
  border-radius: 50%;
  animation: site-data-status-spin 0.8s linear infinite;
}

.site-data-status:not([data-state='loading']) .site-data-status__spinner {
  display: none;
}

.site-data-status__retry {
  display: none;
  margin-left: 4px;
  padding: 6px 10px;
  border: 1px solid currentColor;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-data-status[data-state='error'] .site-data-status__retry {
  display: inline-flex;
}

.site-data-status__retry:hover,
.site-data-status__retry:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

@keyframes site-data-status-spin {
  to { transform: rotate(360deg); }
}

@keyframes shared-nav-arrive {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 720px) {
  .shared-site-header {
    padding: 10px;
  }

  .shared-site-header__content {
    flex-direction: column;
    gap: 12px;
  }

  .shared-site-logo {
    gap: 8px;
  }

  .shared-site-logo .shared-site-logo__mark {
    width: 48px;
    height: 48px;
  }

  .shared-site-logo__name {
    font-size: clamp(14px, 4.2vw, 20px);
  }

  .shared-site-nav {
    align-self: auto;
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shared-site-nav a,
  .shared-site-nav__context {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .shared-site-nav__market {
    padding-left: 27px !important;
  }

  .shared-site-nav__market::before {
    left: 11px;
  }

  .shared-site-nav__market > span::before {
    left: 14px;
  }

  .site-data-status {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-data-status__spinner { animation-duration: 1.6s; }

  .shared-site-nav__link {
    animation: none;
    transition: none;
  }

}

/* Let shared horizontal bands reach both edges of the visible page. */
body:has([data-site-header]) {
  padding-inline: 0;
}

body > .container:has([data-site-header]),
body > .main-content:has([data-site-header]) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-inline: 0;
}
