

.eq-chip {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border-radius: 0.875rem;
  padding: 0.875rem 1.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.25s ease;
}

.eq-chip:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 30px -4px rgba(56, 189, 248, 0.25);
}

.eq-chip {
  position: relative;
  overflow: visible;
}

.eq-chip-formula {
  position: relative;
  overflow: visible;
}

.math-var {
  display: inline-block;
  position: relative;
  cursor: pointer;
  padding: 0.05em 0.25em;
  margin: 0 0.08em;
  border-radius: 0.3rem;
  border-bottom: 2px dashed rgba(56, 189, 248, 0.75);
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  vertical-align: baseline;
  line-height: inherit;
}

.math-var:hover,
.math-var:focus,
.math-var.tooltip-pinned {
  background: rgba(56, 189, 248, 0.32);
  border-bottom: 2px solid #7dd3fc;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.55);
  outline: none;
}

.math-tooltip { display: none !important; }

.katex .vlist { pointer-events: none; }
.katex .math-var { pointer-events: auto; }

.link-internal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-internal:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
  transform: translateX(2px);
}

.link-external {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: 0.375rem;
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.85em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.link-external:hover {
  color: #f1f5f9;
  background: rgba(148, 163, 184, 0.2);
  border-color: #cbd5e1;
}

.accordion-toggle {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.accordion-toggle:hover {
  color: #38bdf8;
}

.accordion-content {
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

.accordion-content.collapsed {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #070c1a;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.2);
  border-radius: 1.25rem;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
  }
  50% {
    opacity: 0.85;
    transform: scale(1.02);
    filter: drop-shadow(0 0 25px rgba(56, 189, 248, 0.7));
  }
}

@keyframes dashFlow {
  to {
    stroke-dashoffset: -120;
  }
}

.flow-active {
  stroke-dasharray: 6, 6;
  animation: dashFlow 12s linear infinite;
}

.flow-fast {
  stroke-dasharray: 4, 4;
  animation: dashFlow 5s linear infinite;
}

.glow-cyan {
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
}

.glow-indigo {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.3);
}

.glow-emerald {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.25);
}

.glow-rose {
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.25);
}

.glow-amber {
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.25);
}

.glass-panel {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px -10px rgba(56, 189, 248, 0.22);
}

::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #060b18;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #38bdf8;
}

.tab-active {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.5) !important;
  box-shadow: 0 4px 15px -3px rgba(56, 189, 248, 0.25) !important;
}

.claim {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 5px;
  cursor: help;
}

.badge-calibrated {
  background: #10b981;
}

.claim-external {
  background: #38bdf8;
}

.badge-illustrative {
  background: #f59e0b;
}

.badge-proposed {
  background: #a855f7;
}

.cosmic-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 85% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
}

#math-tooltip-portal {
  position: fixed !important;
  z-index: 2147483000 !important;
  left: 0; top: 0;
  box-sizing: border-box;
  width: 310px;
  max-width: calc(100vw - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #070c1a;
  border: 1px solid rgba(56, 189, 248, 0.6);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 25px rgba(56, 189, 248, 0.4);
  border-radius: 0.85rem;
  padding: 0.9rem 1.05rem;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: normal;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  color: #f1f5f9;
}
#math-tooltip-portal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.exhibit-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  padding: 0.6rem 1.25rem;
  background: rgba(7, 12, 26, 0.94);
  border-bottom: 1px solid rgba(30, 41, 59, 0.9);
  backdrop-filter: blur(14px);
}
.exhibit-header .brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; flex-shrink: 0; }
.exhibit-header .brand-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #06b6d4, #4f46e5 55%, #34d399);
  box-shadow: 0 6px 18px -6px rgba(56, 189, 248, 0.5);
}
.exhibit-header .brand-kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #94a3b8; font-weight: 600; }
.exhibit-header .brand-title { font-size: 15px; font-weight: 800; color: #fff; line-height: 1.15; }
.exhibit-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; align-items: flex-end; flex: 1 1 auto; justify-content: flex-end; }
.nav-group { display: flex; flex-direction: column; gap: 0.2rem; }
.nav-group-label { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; font-weight: 700; padding-left: 0.35rem; }
.nav-group-row {
  display: flex; gap: 0.15rem; padding: 0.2rem;
  background: rgba(13, 21, 39, 0.9); border: 1px solid rgba(30, 41, 59, 0.9); border-radius: 0.7rem;
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap;
  padding: 0.32rem 0.6rem; border-radius: 0.5rem; border: 1px solid transparent;
  font-size: 12px; font-weight: 600; color: #94a3b8; text-decoration: none; cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab-btn i { font-size: 11px; }
.tab-btn:hover { color: #fff; background: rgba(30, 41, 59, 0.6); }
@media (max-width: 1100px) {
  .exhibit-nav { justify-content: flex-start; }
  .nav-group-row { overflow-x: auto; max-width: calc(100vw - 2.5rem); }
}

.claim-legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; font-size: 11px; color: #94a3b8; }
.claim-legend > span { display: inline-flex; align-items: center; }

main p { line-height: 1.65; }
.katex { font-size: max(1.15em, 14px); }

html, body { overflow-x: clip; }
@media (max-width: 640px) {
  main { padding: 0.75rem !important; }
  #breadcrumb-bar { padding-left: 0.75rem !important; padding-right: 0.75rem !important; flex-wrap: wrap; gap: 0.5rem; }
  .exhibit-header { padding: 0.5rem 0.75rem; }
}

.marker-tested { background: #10b981; }
.marker-implemented { background: #38bdf8; }
.marker-prototyped { background: #f472b6; }
.marker-planned { background: #a855f7; }
.marker-published { background: #e2e8f0; }
.marker-illustrative { background: #f59e0b; }

.exhibit-footer {
  margin-top: auto;
  border-top: 1px solid rgba(30, 41, 59, 0.9);
  background: rgba(7, 12, 26, 0.85);
  padding: 1.1rem 1.5rem 1.25rem;
  font-size: 12px; line-height: 1.55; color: #94a3b8;
}
.exhibit-footer a { color: #7dd3fc; text-decoration: underline; text-decoration-color: rgba(125, 211, 252, 0.4); text-underline-offset: 2px; }
.exhibit-footer a:hover { color: #fff; }
.footer-top {
  max-width: 1600px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.75rem 2rem;
}
.footer-project { max-width: 46rem; }
.footer-project p { margin: 0.2rem 0 0; }
.footer-name { display: flex; align-items: center; gap: 0.5rem; color: #e2e8f0; font-weight: 600; font-size: 13px; }
.footer-dot { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; flex-shrink: 0; }
.exhibit-footer .claim-legend { padding-top: 0.15rem; }
.footer-credits {
  max-width: 1600px; margin: 0.9rem auto 0; padding-top: 0.8rem;
  border-top: 1px solid rgba(30, 41, 59, 0.7);
}
.footer-credits h2 { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #64748b; font-weight: 700; margin: 0 0 0.4rem; }
.footer-credits ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 0.3rem 2rem; }
.footer-credits li { font-size: 11.5px; color: #8b9ab0; overflow-wrap: break-word; }
.footer-credits li:first-child { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .exhibit-footer { padding: 1rem 0.75rem 1.1rem; }
}
