/* === TOP BAR — shared horizontal header across all pages === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,10,20,.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(160,174,192,.06);
  padding: 0 clamp(1rem, 3vw, 2rem);
}
.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 104px;
  gap: 1rem;
  padding-top: .75rem;
}
.topbar-title {
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  background: linear-gradient(135deg, #E2E8F0 30%, #16AA90 70%, #8B9DC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.topbar-favicon {
  height: 3.6rem;
  width: auto;
  flex-shrink: 0;
  opacity: .85;
}
.topbar-title em {
  font-style: normal;
  color: #E2E8F0;
}
.topbar-sub {
  font-size: .65rem;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  margin-top: .15rem;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  flex: 1;
}
.topbar-titles {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
/* Search results (shared) */
.search-results {
  display: none;
  position: relative;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  background: #0A0F1C;
  border: 1px solid rgba(160,174,192,.1);
  border-radius: 8px;
  margin-top: 4px;
  padding: .25rem;
  z-index: 200;
}
.search-results.open { display: block; }
.search-result {
  display: block;
  padding: .45rem .6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s;
}
.search-result:hover { background: rgba(255,255,255,.04); }
.search-result-title {
  font-size: .6rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-bottom: .1rem;
  line-height: 1.3;
}
.search-result-meta {
  font-size: .45rem;
  color: #4A5568;
  display: flex;
  gap: .5rem;
}
.search-result-mentions {
  color: #16AA90;
  font-weight: 600;
}
.search-no-results {
  padding: .6rem;
  font-size: .55rem;
  color: #4A5568;
  text-align: center;
}
.topbar-auth {
  display: none;
}
.topbar-btn {
  font-size: .6rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: all .2s;
  font-family: 'Outfit', system-ui, sans-serif;
}
.topbar-btn-ghost {
  color: #CBD5E0;
  border: 1px solid rgba(160,174,192,.15);
  background: transparent;
}
.topbar-btn-ghost:hover { color: #fff; border-color: rgba(160,174,192,.3); }
.topbar-btn-primary {
  color: #060A14;
  background: #16AA90;
  border: 1px solid #16AA90;
  font-weight: 700;
}
.topbar-btn-primary:hover { opacity: .9; }
.topbar-btn-account {
  display: none;
  color: #CBD5E0;
  border: 1px solid rgba(160,174,192,.15);
  background: rgba(160,174,192,.06);
}
.topbar-btn-account:hover { color: #fff; }

/* === INFO BAR — countdown + badges === */
.infobar {
  border-bottom: 1px solid rgba(160,174,192,.06);
  padding: 0 clamp(1rem, 3vw, 2rem);
  background: rgba(6,10,20,.5);
}
.infobar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 48px;
  gap: 1.5rem;
}

/* Countdown inside infobar */
.ib-countdown {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.ib-cd-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16AA90;
  animation: sbPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.ib-cd-label {
  font-size: .5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .75px;
  color: #16AA90;
}
.ib-cd-sep {
  width: 1px;
  height: 16px;
  background: rgba(160,174,192,.12);
  flex-shrink: 0;
}
.ib-cd-name {
  font-size: .55rem;
  font-weight: 500;
  color: #A0AEC0;
}
.ib-cd-timer {
  font-size: .65rem;
  font-weight: 800;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', 'Space Grotesk', monospace;
  letter-spacing: .5px;
  min-width: 10rem;
  font-variant-numeric: tabular-nums;
}
.ib-countdown.imminent .ib-cd-pulse { background: #F56565; }
.ib-countdown.imminent .ib-cd-label { color: #F56565; }
.ib-countdown.imminent .ib-cd-timer { color: #F56565; }

/* Badge strip inside infobar */
.ib-badges {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ib-badges-track {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  height: 100%;
  justify-content: center;
}
.ib-badges-track img {
  width: 24px;
  height: 24px;
  opacity: .45;
  filter: grayscale(.3);
  transition: opacity .3s, filter .3s;
  flex-shrink: 0;
}
.ib-badges-track img:hover { opacity: 1; filter: none; }


/* Divider between countdown and badges */
.ib-divider {
  width: 1px;
  height: 24px;
  background: rgba(160,174,192,.08);
  flex-shrink: 0;
}

/* === MOBILE TITLE (shown only on mobile where topbar is hidden) === */
.mobile-page-title {
  display: none;
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #E2E8F0 30%, #16AA90 70%, #8B9DC3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 .25rem;
}
.mobile-page-title em {
  font-style: normal;
  color: #E2E8F0;
}
.mobile-page-sub {
  display: none;
  font-size: .65rem;
  color: #718096;
  line-height: 1.5;
  margin: 0 0 .75rem;
}

/* Sidebar search (mobile) */
.sidebar-search {
  padding: .5rem .75rem;
  border-bottom: 1px solid rgba(160,174,192,.06);
}
.sidebar-search-input {
  width: 100%;
  padding: .45rem .65rem .45rem 2rem;
  border-radius: 8px;
  border: 1px solid rgba(160,174,192,.1);
  background: rgba(255,255,255,.03);
  color: #E2E8F0;
  font-size: .65rem;
  font-family: 'Outfit', system-ui, sans-serif;
  outline: none;
  transition: all .2s;
}
.sidebar-search-input::placeholder { color: #4A5568; }
.sidebar-search-input:focus {
  border-color: rgba(22,170,144,.3);
  background: rgba(255,255,255,.05);
}
.sidebar-search-wrap {
  position: relative;
}
.sidebar-search-wrap .topbar-search-icon {
  position: absolute;
  left: .5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  stroke: #4A5568;
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

/* News ticker */
#news-ticker {
  border-top: 1px solid rgba(22,170,144,.08);
  border-bottom: 1px solid rgba(22,170,144,.08);
  overflow: hidden;
  white-space: nowrap;
  height: 32px;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: ticker-scroll 120s linear infinite;
  width: max-content;
}
.ticker-item {
  font-size: .55rem;
  font-weight: 700;
  color: #CBD5E0;
  font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 32px;
}
.ticker-sep {
  color: #16AA90;
  margin: 0 1.5rem;
  font-size: .45rem;
  line-height: 32px;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* CTA banner — full width, flush against ticker */
#site-cta-banner {
  margin: 0 0 1rem 0 !important;
  border-radius: 0 !important;
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
  max-width: none !important;
  padding: .5rem clamp(1rem, 4vw, 2rem) !important;
  background: transparent !important;
}

/* === MOBILE: collapse topbar, show mobile title === */
@media (max-width: 768px) {
  .topbar { display: none; }
  .infobar { display: none; }
  #news-ticker { display: none !important; }
  .mobile-title-wrap { display: block !important; }
  .mobile-deadline-pill {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .6rem 1rem;
    margin: 0;
    background: linear-gradient(135deg, rgba(22,170,144,.12) 0%, rgba(22,170,144,.06) 100%);
    border-top: 1px solid rgba(22,170,144,.15);
    border-bottom: 1px solid rgba(22,170,144,.15);
    width: 100%;
  }
  .mdp-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16AA90;
    box-shadow: 0 0 8px rgba(22,170,144,.6);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
  }
  .mdp-label {
    font-size: .55rem;
    font-weight: 800;
    color: #16AA90;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: 'Space Grotesk', system-ui, sans-serif;
  }
  .mdp-timer {
    font-size: .75rem;
    font-weight: 800;
    color: #E2E8F0;
    font-family: 'JetBrains Mono', monospace;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
  }
  .mobile-page-title { display: block; text-align: center; }
  .mobile-page-sub { display: block; text-align: center; }

}
