@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@900&family=Roboto+Mono:wght@400;700&display=swap");

:root {
  --ecosystem-nav-height: 64px;
  --ecosystem-nav-bg: #19312e;
  --ecosystem-nav-bg-strong: #142825;
  --ecosystem-nav-accent: #42a9a3;
  --ecosystem-nav-text: rgba(255, 255, 255, 0.7);
  --ecosystem-nav-text-strong: rgba(255, 255, 255, 0.96);
  --ecosystem-nav-border: rgba(255, 255, 255, 0.11);
  --ecosystem-nav-max-width: 1280px;
  --ecosystem-nav-z: 1000;
}

.eco-nav,
.eco-nav * {
  box-sizing: border-box;
}

.eco-nav {
  position: sticky;
  top: 0;
  z-index: var(--ecosystem-nav-z);
  width: 100%;
  min-height: var(--ecosystem-nav-height);
  color: var(--ecosystem-nav-text-strong);
  border-bottom: 1px solid var(--ecosystem-nav-border);
  background:
    linear-gradient(110deg, rgba(55, 147, 146, 0.2), transparent 42%),
    rgba(25, 49, 46, 0.98);
  box-shadow: 0 8px 26px rgba(9, 25, 22, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.eco-nav__inner {
  position: relative;
  display: flex;
  width: min(var(--ecosystem-nav-max-width), calc(100% - 48px));
  min-height: var(--ecosystem-nav-height);
  align-items: center;
  gap: 24px;
  margin-inline: auto;
}

.eco-nav__brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--ecosystem-nav-text-strong);
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 0.105em;
  line-height: 1;
  text-decoration: none;
}

.eco-nav__brand-mark {
  width: 9px;
  height: 9px;
  border: 2px solid #9dd5b8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(157, 213, 184, 0.1);
}

.eco-nav__brand[aria-current] .eco-nav__brand-mark {
  background: #9dd5b8;
  box-shadow: 0 0 0 5px rgba(157, 213, 184, 0.18);
}

.eco-nav__links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
}

.eco-nav__link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 2px 0;
  color: var(--ecosystem-nav-text);
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 150ms ease;
}

.eco-nav__link::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: #91d4c8;
  transform: scaleX(0);
  transition: transform 150ms ease;
}

.eco-nav__link:hover,
.eco-nav__link[aria-current] {
  color: var(--ecosystem-nav-text-strong);
}

.eco-nav__link:hover::after,
.eco-nav__link[aria-current]::after {
  transform: scaleX(1);
}

.eco-nav__cta {
  min-height: 34px;
  padding: 0 15px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: var(--ecosystem-nav-accent);
}

.eco-nav__cta::after {
  display: none;
}

.eco-nav__cta:hover {
  color: #fff;
  background: #399b96;
}

.eco-nav__utilities {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.eco-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.eco-nav__toggle-lines,
.eco-nav__toggle-lines::before,
.eco-nav__toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.eco-nav__toggle-lines {
  position: relative;
}

.eco-nav__toggle-lines::before,
.eco-nav__toggle-lines::after {
  position: absolute;
  left: 0;
  content: "";
}

.eco-nav__toggle-lines::before { top: -6px; }
.eco-nav__toggle-lines::after { top: 6px; }

.eco-nav__toggle[aria-expanded="true"] .eco-nav__toggle-lines { background: transparent; }
.eco-nav__toggle[aria-expanded="true"] .eco-nav__toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.eco-nav__toggle[aria-expanded="true"] .eco-nav__toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.eco-nav a:focus-visible,
.eco-nav button:focus-visible {
  outline: 3px solid rgba(145, 212, 200, 0.72);
  outline-offset: 3px;
}

/* Geo News uses a separate public ecosystem row plus its local section road. */
html.is-browser .geo-section-nav {
  top: var(--ecosystem-nav-height);
  z-index: calc(var(--ecosystem-nav-z) - 1);
  box-shadow: 0 5px 18px rgba(18, 31, 23, 0.1);
}

html.is-browser .geo-section-nav .site-nav__burger {
  display: none !important;
}

html.is-app .eco-nav {
  display: none;
}

@media (max-width: 940px) {
  :root { --ecosystem-nav-height: 58px; }

  .eco-nav__inner {
    width: min(100% - 28px, var(--ecosystem-nav-max-width));
    min-height: var(--ecosystem-nav-height);
    gap: 10px;
  }

  .eco-nav__brand { margin-right: auto; }
  .eco-nav__toggle { display: inline-flex; }

  .eco-nav__links {
    position: absolute;
    top: 100%;
    right: -14px;
    left: -14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 7px 14px 11px;
    border: 1px solid var(--ecosystem-nav-border);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: var(--ecosystem-nav-bg-strong);
    box-shadow: 0 18px 30px rgba(9, 25, 22, 0.26);
  }

  .eco-nav__links.is-open { display: flex; }

  .eco-nav__link {
    width: 100%;
    min-height: 46px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
  }

  .eco-nav__link::after { display: none; }
  .eco-nav__link[aria-current] { color: #a8ddd3; }

  .eco-nav__cta {
    width: max-content;
    min-height: 38px;
    margin-top: 8px;
    border-bottom: 0;
  }

  html.is-browser .geo-section-nav .site-nav__inner {
    width: 100%;
    min-height: 52px;
    gap: 14px;
    padding-inline: 14px;
  }

  html.is-browser .geo-section-nav .site-nav__logo {
    font-size: 15px;
  }

  html.is-browser .geo-section-nav .site-nav__links {
    position: static;
    display: flex !important;
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding: 0 0 0 4px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    scrollbar-width: thin;
  }

  html.is-browser .geo-section-nav .navlink {
    width: auto;
    flex: 0 0 auto;
    padding: 16px 10px;
    border: 0;
    font-size: 10px;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  .eco-nav__brand { font-size: 19px; }
  .eco-nav__utilities .tb-pill { display: none !important; }
  .eco-nav__utilities .cart-pill { min-width: auto; height: 38px; padding-inline: 11px; }

  html.is-browser .geo-section-nav .site-nav__logo {
    max-width: 64px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eco-nav *,
  .eco-nav *::before,
  .eco-nav *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
