/* Delta Tango member directory — modern scheme + DT logo */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #070b14 !important;
  --ink-2: #0f172a !important;
  --ink-3: #1e293b !important;
  --paper: #f1f5f9 !important;
  --white: #ffffff !important;
  --line: #e2e8f0 !important;
  --line-soft: #f1f5f9 !important;
  --muted: #64748b !important;
  --lime: #f4b72b !important;
  --teal: #087bd3 !important;
  --cyan: #36a8ff !important;
  --soft: #ecfeff !important;
  --mono: 'DM Mono', ui-monospace, monospace !important;
  --sans: 'DM Sans', system-ui, sans-serif !important;
  --display: 'Manrope', system-ui, sans-serif !important;
}

body {
  font-family: var(--sans) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  background: var(--paper) !important;
  color: #0f172a !important;
}

/* ----- Top bar ----- */
.topbar {
  position: relative !important;
  z-index: 50 !important;
  height: auto !important;
  min-height: 56px !important;
  padding: 0.65rem 1.25rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem 1rem !important;
  background: #070b14 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(54, 168, 255, 0.12) !important;
  overflow: visible !important;
}
.topbar nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.15rem 0.55rem !important;
  margin-left: 0 !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  max-width: 100% !important;
}
.topbar nav a {
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  color: #94a3b8 !important;
  padding: 0.3rem 0.4rem !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
.topbar nav a:hover { color: #36a8ff !important; }
.topbar .snapshot-tag {
  flex: 0 0 auto !important;
}
.topbar .brand {
  flex: 0 0 auto !important;
}
.brand b {
  background: linear-gradient(90deg, #f4b72b, #36a8ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.brand-mark {
  border-color: rgba(54, 168, 255, 0.55) !important;
  box-shadow: 0 0 12px rgba(54, 168, 255, 0.25) !important;
}
.brand-mark i { background: linear-gradient(180deg, #36a8ff, #f4b72b) !important; }
.live-dot {
  background: #36a8ff !important;
  box-shadow: 0 0 12px rgba(54, 168, 255, 0.9) !important;
}
.snapshot-tag { color: #94a3b8 !important; }

/* ----- DT Logo (hero) ----- */
.dt-logo {
  width: 72px;
  height: 72px;
  margin-bottom: 1.35rem;
  position: relative;
}
.dt-logo svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px rgba(54, 168, 255, 0.45));
  animation: logoGlow 3.5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(54, 168, 255, 0.4)); }
  50% { filter: drop-shadow(0 0 26px rgba(244, 183, 43, 0.5)); }
}

/* ----- Hero ----- */
.hero {
  min-height: 540px !important;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(1.5rem, 6vw, 5rem) clamp(3rem, 6vw, 4rem) !important;
  background:
    radial-gradient(ellipse 50% 55% at 85% 40%, rgba(54, 168, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(244, 183, 43, 0.08), transparent 50%),
    radial-gradient(ellipse 30% 30% at 50% 0%, rgba(54, 168, 255, 0.06), transparent 50%),
    linear-gradient(145deg, #070b14 0%, #0f172a 45%, #0c1220 100%) !important;
}
.hero-grid {
  opacity: 0.1 !important;
  background-image:
    linear-gradient(rgba(54, 168, 255, 0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 168, 255, 0.25) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
}
.hero h1 {
  font-family: var(--display) !important;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem) !important;
  font-weight: 800 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.025em !important;
  color: #f8fafc !important;
}
.hero h1 em {
  font-style: normal !important;
  background: linear-gradient(105deg, #f4b72b 0%, #ffe3a1 40%, #36a8ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.hero-text {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: #94a3b8 !important;
  max-width: 32rem !important;
}
.eyebrow { color: #36a8ff !important; letter-spacing: 0.14em !important; font-weight: 500 !important; }
.eyebrow-line {
  background: linear-gradient(90deg, #36a8ff, transparent) !important;
}
.hero-link {
  border-bottom: 2px solid #f4b72b !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #f8fafc !important;
}
.hero-link span { color: #f4b72b !important; }
.hero-link:hover { color: #36a8ff !important; }

.heritage-card {
  border: 1px solid rgba(54, 168, 255, 0.35) !important;
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(244, 183, 43, 0.15),
    inset 0 0 0 3px rgba(54, 168, 255, 0.08) !important;
  background: linear-gradient(145deg, rgba(54, 168, 255, 0.1), rgba(244, 183, 43, 0.06)) !important;
  backdrop-filter: blur(8px) !important;
  border-radius: 8px !important;
}
.heritage-card::before,
.heritage-card::after { border-color: #f4b72b !important; }
.heritage-image { height: 148px !important; border-radius: 4px !important; }
.heritage-caption b { color: #f4b72b !important; }
.heritage-signal {
  border-color: rgba(54, 168, 255, 0.3) !important;
}
.heritage-signal span:nth-child(3) {
  background: #36a8ff !important;
  box-shadow: 0 0 22px rgba(54, 168, 255, 0.8) !important;
}

/* ----- Metrics ----- */
.metrics { gap: 1px !important; background: var(--line) !important; }
.metric-intro,
.metric-card { padding: clamp(1.5rem, 2.5vw, 2.25rem) 1.35rem !important; background: #fff !important; }
.metric-intro p {
  font-family: var(--display) !important;
  font-size: clamp(1.2rem, 2vw, 1.45rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
}
.metric-card strong {
  font-family: var(--display) !important;
  font-size: clamp(1.7rem, 3vw, 2.3rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}
.metric-card > span { font-size: 0.82rem !important; font-weight: 600 !important; }
.metric-card small { font-size: 0.75rem !important; line-height: 1.4 !important; color: #64748b !important; }
.metric-highlight {
  background: linear-gradient(165deg, #070b14 0%, #1e293b 100%) !important;
}
.metric-highlight strong {
  background: linear-gradient(90deg, #f4b72b, #36a8ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.metric-icon { color: #087bd3 !important; }
.metric-highlight .metric-icon { color: #f4b72b !important; }

.source-figure-note {
  padding: 1rem clamp(1.25rem, 4vw, 3.5rem) !important;
  font-size: 0.82rem !important;
  line-height: 1.55 !important;
  background: #ecfeff !important;
  color: #64748b !important;
}
.source-figure-note span { color: #087bd3 !important; }
.source-figure-note a { color: #087bd3 !important; }

/* ----- Sections ----- */
.section-wrap { padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3.5rem) !important; }
.section-heading h2 {
  font-family: var(--display) !important;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  color: #0f172a !important;
}
.section-heading h2 em {
  font-style: normal !important;
  color: #087bd3 !important;
}
.section-heading > p { font-size: 0.95rem !important; line-height: 1.6 !important; color: #64748b !important; }
.section-kicker {
  color: #087bd3 !important;
  letter-spacing: 0.14em !important;
  font-size: 0.68rem !important;
}

.geo-feature {
  border-radius: 16px !important;
  padding: clamp(1.75rem, 3vw, 2.25rem) !important;
  background: linear-gradient(160deg, #070b14 0%, #1e293b 100%) !important;
  border: 1px solid rgba(54, 168, 255, 0.12) !important;
}
.geo-feature h3 { font-family: var(--display) !important; font-weight: 800 !important; }
.feature-number strong {
  font-size: 2.4rem !important;
  font-family: var(--display) !important;
  color: #f4b72b !important;
}
.feature-rule { height: 6px !important; border-radius: 99px !important; background: rgba(255,255,255,0.08) !important; }
.feature-rule i {
  background: linear-gradient(90deg, #36a8ff, #f4b72b) !important;
  border-radius: 99px !important;
}

.country-chart {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  padding: 1.5rem !important;
  background: #fff !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
}
.bar-track { height: 10px !important; border-radius: 99px !important; background: #e2e8f0 !important; }
.bar-fill {
  background: linear-gradient(90deg, #087bd3, #36a8ff) !important;
  border-radius: 99px !important;
}
.bar-name { font-weight: 600 !important; font-size: 0.85rem !important; color: #0f172a !important; }
.bar-value { color: #087bd3 !important; font-weight: 500 !important; }

.explore-panel {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
  background: #fff !important;
}
.explore-controls { padding: 1.1rem 1.25rem !important; background: #f8fafc !important; }
.tabs { background: #e2e8f0 !important; padding: 0.3rem !important; border-radius: 10px !important; }
.tab {
  padding: 0.55rem 1rem !important;
  border-radius: 8px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
}
.tab.active { background: #fff !important; box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important; color: #0f172a !important; }
.tab.active span { background: #ecfeff !important; color: #087bd3 !important; }
.search-box {
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 0.5rem 0.9rem !important;
  background: #fff !important;
}
.search-box:focus-within {
  border-color: #36a8ff !important;
  box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.18) !important;
}
.browse-row { padding: 0.9rem 1.25rem !important; }
.browse-primary { font-size: 0.95rem !important; font-weight: 600 !important; color: #0f172a !important; }
.browse-value { color: #087bd3 !important; font-size: 0.88rem !important; }

.member-search-panel {
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  padding: 1.5rem !important;
  background: #f8fafc !important;
}
.member-query,
.year-filter select {
  border: 1.5px solid var(--line) !important;
  border-radius: 10px !important;
  padding: 0.7rem 1rem !important;
  font-size: 0.95rem !important;
  background: #fff !important;
}
.member-query:focus,
.year-filter select:focus {
  border-color: #36a8ff !important;
  box-shadow: 0 0 0 3px rgba(54, 168, 255, 0.18) !important;
  outline: none !important;
}
.member-results {
  gap: 1rem !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
}
.member-result {
  border-radius: 12px !important;
  border: 1px solid var(--line) !important;
  padding: 1.2rem 1.25rem !important;
  background: #fff !important;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s !important;
}
.member-result:hover {
  border-color: rgba(54, 168, 255, 0.4) !important;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-2px) !important;
}
.member-result-head h3 {
  font-family: var(--display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}
.member-call { color: #087bd3 !important; font-size: 0.88rem !important; font-weight: 500 !important; }
.member-detail span { font-size: 0.65rem !important; color: #94a3b8 !important; }
.member-detail b { font-size: 0.88rem !important; font-weight: 500 !important; color: #0f172a !important; }
.member-pagination button {
  border-radius: 8px !important;
  padding: 0.55rem 1.1rem !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--line) !important;
  color: #087bd3 !important;
  background: #fff !important;
}
.member-pagination button:hover:not(:disabled) {
  border-color: #36a8ff !important;
  background: #ecfeff !important;
}

.about-card {
  border-radius: 16px !important;
  padding: 1.5rem !important;
  border: 1px solid var(--line) !important;
  background: #fff !important;
}
.about-origin {
  background: linear-gradient(160deg, #070b14, #1e293b) !important;
  border-color: transparent !important;
}
.about-card h3 { font-family: var(--display) !important; font-weight: 700 !important; }
.about-origin .card-link { color: #f4b72b !important; }
.card-link { color: #087bd3 !important; }

.membership-layout {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid var(--line) !important;
}
.membership-price {
  background: linear-gradient(160deg, #070b14 0%, #1e293b 100%) !important;
  padding: 2rem !important;
}
.membership-price > strong {
  color: #f4b72b !important;
  font-family: var(--display) !important;
}
.primary-button {
  background: linear-gradient(135deg, #087bd3, #36a8ff) !important;
  border-radius: 10px !important;
  padding: 0.7rem 1.25rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35) !important;
  color: #fff !important;
  border: 0 !important;
}
.primary-button:hover { filter: brightness(1.08) !important; }
.secondary-link {
  border-radius: 10px !important;
  border: 1.5px solid var(--line) !important;
  padding: 0.7rem 1.25rem !important;
  font-weight: 600 !important;
  background: #fff !important;
}

.official-links {
  background: #070b14 !important;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3.5rem) !important;
}
.official-links > a {
  border-radius: 12px !important;
  padding: 1.25rem !important;
  border: 1px solid rgba(54, 168, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.03) !important;
}
.official-links > a:hover {
  border-color: rgba(244, 183, 43, 0.4) !important;
  background: rgba(244, 183, 43, 0.05) !important;
}

.footer {
  background: #070b14 !important;
  border-top: 1px solid rgba(54, 168, 255, 0.1) !important;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem) !important;
}
.footer a:hover { color: #36a8ff !important; }

@media (max-width: 900px) {
  .hero { min-height: auto !important; }
  .topbar nav { display: none !important; }
  .dt-logo { width: 56px; height: 56px; margin-bottom: 1rem; }
}

/* ---- Claim / report buttons & modal (prominent) ---- */
.member-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
  margin-top: 1rem !important;
  padding-top: 0.9rem !important;
  border-top: 1px solid #e2e8f0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.claim-btn {
  display: inline-flex !important;
  align-items: center !important;
  font: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 8px !important;
  border: 2px solid #087bd3 !important;
  background: #ecfeff !important;
  color: #075fa5 !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  line-height: 1.2 !important;
}
.claim-btn:hover {
  background: #cffafe !important;
  border-color: #075fa5 !important;
}
.claim-btn-muted {
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  color: #334155 !important;
}
.claim-btn-muted:hover {
  border-color: #64748b !important;
  background: #f1f5f9 !important;
}

.claim-modal[hidden] { display: none !important; }
.claim-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
}
.claim-modal-backdrop {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(7, 11, 20, 0.7) !important;
}
.claim-modal-panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(480px, 100%) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  background: #fff !important;
  border-radius: 16px !important;
  padding: 1.5rem 1.4rem 1.35rem !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4) !important;
  color: #0f172a !important;
}
.claim-close {
  position: absolute !important;
  top: 0.65rem !important;
  right: 0.75rem !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 1.5rem !important;
  color: #64748b !important;
  cursor: pointer !important;
}
.claim-modal-panel h2 {
  margin: 0 0 0.4rem !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.claim-lead { margin: 0 0 1rem !important; font-size: 0.88rem !important; color: #64748b !important; line-height: 1.5 !important; }
#claim-form label { display: block !important; font-size: 0.78rem !important; font-weight: 600 !important; color: #475569 !important; margin-bottom: 0.75rem !important; }
#claim-form input,
#claim-form select,
#claim-form textarea {
  display: block !important;
  width: 100% !important;
  margin-top: 0.3rem !important;
  padding: 0.55rem 0.7rem !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font: inherit !important;
  font-size: 0.9rem !important;
  color: #0f172a !important;
  background: #fff !important;
  box-sizing: border-box !important;
}
#claim-callsign { background: #f8fafc !important; color: #087bd3 !important; font-family: ui-monospace, monospace !important; }
.claim-optional { margin: 0.25rem 0 0.85rem !important; font-size: 0.85rem !important; color: #64748b !important; }
.claim-optional summary { cursor: pointer !important; font-weight: 600 !important; color: #087bd3 !important; }
.claim-note { font-size: 0.75rem !important; color: #94a3b8 !important; line-height: 1.45 !important; margin: 0 0 1rem !important; }
.claim-actions { display: flex !important; gap: 0.5rem !important; justify-content: flex-end !important; }
.claim-cancel {
  border: 1.5px solid #e2e8f0 !important;
  background: #fff !important;
  border-radius: 8px !important;
  padding: 0.55rem 1rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  color: #475569 !important;
}
.claim-submit {
  border: 0 !important;
  background: linear-gradient(135deg, #087bd3, #36a8ff) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 0.55rem 1.15rem !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
}
.claim-submit:disabled { opacity: 0.55 !important; }
.claim-status { margin: 0.85rem 0 0 !important; font-size: 0.85rem !important; }
.claim-status-ok { color: #059669 !important; }
.claim-status-err { color: #dc2626 !important; }


/* ---- Public gallery ---- */
.gallery-section { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
}
.gallery-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.gallery-item:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}
.gallery-item a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e2e8f0;
  display: block;
}
.gallery-item figcaption {
  padding: 0.65rem 0.75rem 0.8rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #334155;
}
.gallery-item figcaption strong {
  display: block;
  font-size: 0.88rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}
.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  padding: 2rem;
  margin: 0;
}


/* Keep the network introduction centered without the removed legacy image. */
.hero { justify-content: center !important; }
.hero-copy { width: min(100%, 760px) !important; max-width: 760px !important; text-align: center !important; }
.dt-logo { margin-left: auto !important; margin-right: auto !important; }
.eyebrow { justify-content: center !important; }
.hero-text { margin-left: auto !important; margin-right: auto !important; max-width: 540px !important; }
.hero-index { left: 50% !important; transform: translateX(-50%) !important; white-space: nowrap !important; }

/* ========== Contrast fixes: light text on dark panels ========== */
/* Body/default is dark text on light paper. Dark cards must force light text. */

.geo-feature,
.geo-feature * {
  color: #e2e8f0 !important;
}
.geo-feature h3,
.geo-feature #largest-country {
  color: #f8fafc !important;
}
.geo-feature .section-kicker,
.geo-feature .feature-top .section-kicker,
.geo-feature .feature-arrow {
  color: #f4b72b !important;
}
.geo-feature .feature-number strong,
.geo-feature #largest-count {
  color: #f4b72b !important;
}
.geo-feature .feature-number span,
.geo-feature .feature-bottom,
.geo-feature .feature-bottom span {
  color: #94a3b8 !important;
}
.geo-feature .feature-bottom span:first-child,
.geo-feature #largest-share {
  color: #36a8ff !important;
}
.geo-feature .feature-map,
.geo-feature .feature-map span {
  color: rgba(54, 168, 255, 0.15) !important;
}

.metric-highlight,
.metric-highlight * {
  color: #e2e8f0 !important;
}
.metric-highlight strong {
  background: linear-gradient(90deg, #f4b72b, #36a8ff) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.metric-highlight .metric-icon {
  color: #f4b72b !important;
}
.metric-highlight > span,
.metric-highlight small {
  color: #94a3b8 !important;
}

.membership-price,
.membership-price * {
  color: #e2e8f0 !important;
}
.membership-price .section-kicker {
  color: #36a8ff !important;
}
.membership-price > strong {
  color: #f4b72b !important;
}
.membership-price > span {
  color: #94a3b8 !important;
}
.membership-price .primary-button {
  color: #fff !important;
}
.membership-price .secondary-link {
  color: #e2e8f0 !important;
  border-color: rgba(255,255,255,0.2) !important;
  background: transparent !important;
}

.about-origin,
.about-origin * {
  color: #e2e8f0 !important;
}
.about-origin h3 {
  color: #f8fafc !important;
}
.about-origin .card-link,
.about-origin .card-index {
  color: #f4b72b !important;
}
.about-origin p {
  color: #94a3b8 !important;
}

.official-links,
.official-links * {
  color: #e2e8f0 !important;
}
.official-links .section-kicker {
  color: #36a8ff !important;
}
.official-links h2 {
  color: #f8fafc !important;
}
.official-links > a {
  color: #e2e8f0 !important;
}
.official-links > a small {
  color: #94a3b8 !important;
}
.official-links > a span,
.official-links > a i {
  color: #36a8ff !important;
}

.footer,
.footer * {
  color: #94a3b8 !important;
}
.footer .brand,
.footer .brand span {
  color: #e2e8f0 !important;
}
.footer a {
  color: #36a8ff !important;
}
.footer a:hover {
  color: #f4b72b !important;
}

/* Explore / countries / divisions list – ensure high contrast on light panel */
.explore-panel {
  background: #ffffff !important;
  color: #0f172a !important;
}
.list-header,
.list-footer {
  color: #64748b !important;
  background: #f8fafc !important;
  padding: 0.75rem 1.25rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.08em !important;
}
.list-footer b {
  color: #087bd3 !important;
}
.browse-list {
  background: #fff !important;
}
.browse-row {
  color: #0f172a !important;
  border-top: 1px solid #e2e8f0 !important;
}
.browse-row:hover {
  background: #f1f5f9 !important;
}
.browse-rank {
  color: #94a3b8 !important;
  font-family: var(--mono) !important;
  font-size: 0.75rem !important;
}
.browse-name,
.browse-primary {
  color: #0f172a !important;
  font-weight: 600 !important;
}
.browse-sub {
  color: #64748b !important;
}
.browse-value {
  color: #087bd3 !important;
  font-weight: 600 !important;
}
.browse-meter {
  background: #e2e8f0 !important;
  border-radius: 99px !important;
  height: 6px !important;
  overflow: hidden !important;
}
.browse-meter i {
  display: block !important;
  height: 100% !important;
  background: linear-gradient(90deg, #087bd3, #36a8ff) !important;
  border-radius: 99px !important;
}
.empty-state {
  color: #64748b !important;
  padding: 1.5rem 1.25rem !important;
}
.tab {
  color: #475569 !important;
}
.tab span {
  color: #64748b !important;
}
.tab.active {
  color: #0f172a !important;
  background: #fff !important;
}
.tab.active span {
  background: #ecfeff !important;
  color: #087bd3 !important;
}

/* Country bars chart */
.country-chart {
  background: #fff !important;
  color: #0f172a !important;
}
.bar-name {
  color: #0f172a !important;
}
.bar-value {
  color: #087bd3 !important;
}
.chart-heading h3 {
  color: #0f172a !important;
}
.chart-unit {
  color: #64748b !important;
}

/* Member results cards */
.member-results,
.member-search-panel {
  color: #0f172a !important;
}


}


/* ========== Gallery folder browser + grid ========== */
.gallery-folder-bar {
  margin: 0 0 1.25rem;
}
.gallery-folder-label {
  font-family: var(--mono), monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #087bd3;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}
.gallery-folder-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.gallery-folder-btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.gallery-folder-btn:hover {
  border-color: #36a8ff;
  background: #ecfeff;
  color: #087bd3;
}
.gallery-folder-btn.active {
  border-color: #087bd3;
  background: #087bd3;
  color: #fff;
}
.gallery-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.gallery-page-btn {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  color: #087bd3;
  cursor: pointer;
}
.gallery-page-btn:hover:not(:disabled) {
  border-color: #36a8ff;
  background: #ecfeff;
}
.gallery-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.gallery-pager-info {
  font-size: 0.85rem;
  color: #64748b;
}
.gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 1rem !important;
}
.gallery-item {
  margin: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  border: 1px solid #e2e8f0 !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
.gallery-item a {
  display: block !important;
  color: inherit !important;
  text-decoration: none !important;
}
.gallery-item img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  background: #e2e8f0 !important;
  display: block !important;
}
.gallery-item figcaption {
  padding: 0.55rem 0.7rem 0.7rem !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
  color: #64748b !important;
}
.gallery-item figcaption strong {
  display: block !important;
  font-size: 0.85rem !important;
  color: #0f172a !important;
  margin-bottom: 0.1rem !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}


/* ===== FINAL: banner above nav, not covered, not cropped ===== */
.dt-banner {
  display: block !important;
  position: relative !important;
  z-index: 100 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #018fd0 !important;
  line-height: 0 !important;
  text-align: center !important;
}
.dt-banner a {
  display: block !important;
  line-height: 0 !important;
}
.dt-banner img {
  display: block !important;
  width: 100% !important;
  max-width: 1100px !important;
  height: auto !important;
  max-height: 90px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.topbar {
  position: relative !important;
  z-index: 90 !important;
  top: auto !important;
  height: auto !important;
  min-height: 48px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0.4rem 0.75rem !important;
  background: #070b14 !important;
  flex-wrap: wrap !important;
}
.topbar nav {
  gap: 0.1rem 0.35rem !important;
}
.topbar nav a {
  font-size: 0.72rem !important;
  padding: 0.25rem 0.35rem !important;
}
@media (max-width: 720px) {
  .dt-banner img { max-height: 64px !important; }
}
