@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-300: #a5b4fc;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;
  --indigo-800: #3730a3;
  --indigo-900: #312e81;
  --indigo-950: #1e1b4b;
  --purple-50: #faf5ff;
  --purple-100: #f3e8ff;
  --purple-200: #e9d5ff;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; padding-bottom: 5rem; }

/* HEADER - bg-indigo-700 matching JournalLens */
.header {
  background: var(--indigo-700);
  border-bottom: 4px solid var(--indigo-900);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.header-brand img { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; box-shadow: 0 2px 4px rgba(0,0,0,0.2); filter: brightness(0) invert(1); }
.header-brand span { font-weight: 700; color: white; font-size: 1.125rem; }
.header-nav { display: flex; align-items: center; gap: 0.25rem; }
.header-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}
.header-nav a:hover { background: rgba(255,255,255,0.1); color: white; }
.header-ext { opacity: 0.7; }

/* FOOTER - bg-indigo-900 matching JournalLens */
.footer {
  background: var(--indigo-900);
  color: white;
  padding: 0.375rem 1rem;
  border-top: 1px solid var(--indigo-800);
  z-index: 40;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.footer-left { display: flex; align-items: center; gap: 0.75rem; }
.footer-version { font-weight: 600; color: var(--indigo-300); }
.footer-copy { color: var(--indigo-400); }
.footer-right { display: flex; align-items: center; gap: 1rem; }
.footer-right a { color: var(--indigo-300); text-decoration: none; transition: color 0.15s; }
.footer-right a:hover { color: white; }

/* FLOATING BAR - matching AICrossLinks */
.floating-bar {
  position: fixed;
  bottom: 3.5rem;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}
.floating-inner {
  pointer-events: auto;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border: 1px solid var(--gray-200);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.floating-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  padding-left: 0.5rem;
  padding-right: 0.25rem;
}
.floating-sep { width: 1px; height: 1.25rem; background: var(--gray-200); }
.pill {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s;
}
.pill svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.pill-label { display: none; }
@media (min-width: 768px) { .pill-label { display: inline; } }

/* Pill colors */
.pill.slate { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-300); }
.pill.slate:hover { background: var(--gray-200); }
.pill.slate.active { background: var(--gray-800); color: white; border-color: var(--gray-800); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.pill.indigo { background: var(--indigo-50); color: var(--indigo-700); border-color: var(--indigo-200); }
.pill.indigo:hover { background: var(--indigo-100); }
.pill.indigo.active { background: var(--indigo-600); color: white; border-color: var(--indigo-600); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.pill.purple { background: var(--purple-50); color: var(--purple-600); border-color: var(--purple-200); }
.pill.purple:hover { background: var(--purple-100); }
.pill.purple.active { background: var(--purple-600); color: white; border-color: var(--purple-600); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }
.pill.teal { background: var(--teal-50); color: var(--teal-600); border-color: var(--teal-200); }
.pill.teal:hover { background: var(--teal-100); }
.pill.teal.active { background: var(--teal-600); color: white; border-color: var(--teal-600); box-shadow: 0 2px 4px rgba(0,0,0,0.15); }

/* PAGE HEADER card */
.page-header { max-width: 1280px; margin: 1.5rem auto 0; padding: 0 1rem; }
.page-header-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-header-card img { width: 3rem; height: 3rem; border-radius: 0.5rem; }
.page-header-card h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); }
@media (max-width: 640px) { .page-header-card h1 { font-size: 1.25rem; } }
.page-header-card p { color: var(--gray-600); font-size: 0.875rem; }

/* HERO dark gradient */
.hero { max-width: 1280px; margin: 1.5rem auto 0; padding: 0 1rem; }
.hero-card {
  background: linear-gradient(to bottom right, #0f172a, var(--indigo-950), #0f172a);
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .hero-card { padding: 2rem; } }
.hero-card::before { content: ''; position: absolute; top: 0; right: 0; width: 16rem; height: 16rem; background: #818cf8; border-radius: 50%; filter: blur(48px); opacity: 0.1; }
.hero-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 12rem; height: 12rem; background: #a78bfa; border-radius: 50%; filter: blur(48px); opacity: 0.1; }
.hero-content { position: relative; z-index: 10; }
.hero-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.hero-top img { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; filter: brightness(0) invert(1); }
.hero-top h2 { font-size: 1.125rem; font-weight: 700; }
@media (min-width: 768px) { .hero-top h2 { font-size: 1.25rem; } }
.hero-top .subtitle { color: var(--indigo-300); font-size: 0.875rem; }
.hero-text { color: #d1d5db; font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }
@media (min-width: 768px) { .hero-text { font-size: 1rem; } }
.hero-text strong { color: white; font-weight: 600; }
.hero-note { color: var(--gray-400); font-size: 0.75rem; margin-top: 1rem; }

/* STAT BOXES */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-card {
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 0.75rem;
  padding: 0.75rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
@supports not (backdrop-filter: blur(8px)) { .stat-card { background: rgba(255,255,255,0.15); } }
.stat-value { font-size: 1.5rem; font-weight: 700; color: white; }
@media (min-width: 768px) { .stat-value { font-size: 1.875rem; } }
.stat-label { font-size: 0.75rem; color: var(--indigo-300); margin-top: 0.25rem; }

/* FEATURE CARDS */
.features-section { max-width: 1280px; margin: 0 auto; padding: 1.5rem 1rem 2rem; }
@media (min-width: 768px) { .features-section { padding-top: 2rem; } }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-200);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.feature-card.indigo:hover { border-color: var(--indigo-300); }
.feature-card.purple:hover { border-color: var(--purple-200); }
.feature-card.teal:hover { border-color: var(--teal-200); }
.feature-top { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1rem; }
.feature-icon { padding: 0.75rem; border-radius: 0.75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 1.75rem; height: 1.75rem; }
.feature-icon.indigo { background: var(--indigo-100); color: var(--indigo-600); }
.feature-icon.purple { background: var(--purple-100); color: var(--purple-600); }
.feature-icon.teal { background: var(--teal-100); color: var(--teal-600); }
.feature-title { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.feature-tag { font-size: 0.6875rem; padding: 0.125rem 0.5rem; background: var(--gray-100); color: var(--gray-600); border-radius: 9999px; font-weight: 500; }
.feature-desc { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin-bottom: 1.25rem; flex: 1; }
.feature-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem; border-radius: 0.5rem;
  color: white; font-size: 0.875rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.15s; width: fit-content;
}
.feature-btn svg { width: 1rem; height: 1rem; }
.feature-btn.indigo { background: var(--indigo-600); }
.feature-btn.indigo:hover { background: var(--indigo-700); }
.feature-btn.purple { background: var(--purple-600); }
.feature-btn.purple:hover { background: var(--purple-700); }
.feature-btn.teal { background: var(--teal-600); }
.feature-btn.teal:hover { background: var(--teal-700); }

/* PAGE SECTION */
.page-section { max-width: 1280px; margin: 1.5rem auto 0; padding: 0 1rem 2rem; }
.section-header { margin-bottom: 1.5rem; }
.section-header h1 { font-size: 1.5rem; font-weight: 700; }
.section-subtitle { color: var(--gray-600); font-size: 0.875rem; margin-top: 0.25rem; }

/* FINDER */
.finder-card {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-group textarea, .form-group input, .form-group select {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200); border-radius: 0.5rem;
  font-size: 0.875rem; font-family: inherit; background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group textarea:focus, .form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--indigo-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.form-group textarea { resize: vertical; }
.char-count { text-align: right; font-size: 0.75rem; color: var(--gray-400); margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.filters-toggle { margin-bottom: 1.25rem; }
.filters-toggle summary { cursor: pointer; font-size: 0.875rem; color: var(--indigo-600); font-weight: 500; padding: 0.5rem 0; }
.filters-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
@media (min-width: 1024px) { .filters-grid { grid-template-columns: repeat(4, 1fr); } }

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--indigo-600); color: white; border: none;
  padding: 0.75rem 2rem; border-radius: 0.5rem;
  font-size: 0.9375rem; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: background 0.15s; width: 100%;
}
.btn-primary:hover { background: var(--indigo-700); }

/* RESULTS */
.results { margin-top: 1.5rem; }
.results h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.result-card {
  background: white; border: 1px solid var(--gray-200);
  border-radius: 0.75rem; padding: 1rem 1.25rem;
  margin-bottom: 0.75rem; transition: border-color 0.15s;
}
.result-card:hover { border-color: var(--indigo-300); }
.result-card h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.result-meta { font-size: 0.8125rem; color: var(--gray-500); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.result-score { display: inline-block; background: var(--indigo-50); color: var(--indigo-700); font-weight: 600; font-size: 0.8125rem; padding: 0.125rem 0.5rem; border-radius: 9999px; }
.error-msg { margin-top: 1rem; padding: 0.75rem 1rem; background: #fef2f2; border: 1px solid #fecaca; border-radius: 0.5rem; color: #dc2626; font-size: 0.875rem; }

/* CHAT */
.chat-layout { display: flex; gap: 1.5rem; }
@media (max-width: 1023px) { .chat-layout { flex-direction: column; } }
.chat-main { flex: 1; min-width: 0; }
.chat-sidebar { width: 18rem; flex-shrink: 0; }
@media (max-width: 1023px) { .chat-sidebar { width: 100%; } }
.chat-container {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 600px;
  max-height: 70vh;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.chat-message { display: flex; }
.chat-message.user { justify-content: flex-end; }
.chat-message.assistant { justify-content: flex-start; }
.chat-bubble { max-width: 80%; padding: 0.75rem 1rem; border-radius: 1rem; font-size: 0.875rem; line-height: 1.6; }
.chat-message.user .chat-bubble { background: var(--indigo-600); color: white; border-bottom-right-radius: 0.25rem; }
.chat-message.assistant .chat-bubble { background: var(--gray-100); color: var(--gray-900); border-bottom-left-radius: 0.25rem; }
.chat-input-area { display: flex; gap: 0.5rem; padding: 1rem; border-top: 1px solid var(--gray-200); }
.chat-input-area input { flex: 1; padding: 0.75rem 1rem; border: 1px solid var(--gray-200); border-radius: 0.75rem; font-size: 0.875rem; font-family: inherit; }
.chat-input-area input:focus { outline: none; border-color: var(--indigo-600); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.chat-input-area .btn-primary { width: auto; padding: 0.75rem; border-radius: 0.75rem; }

/* QUICK QUESTIONS sidebar */
.quick-questions {
  background: white;
  border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 1rem;
  height: 100%;
  overflow-y: auto;
}
.quick-questions h2 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.quick-questions button {
  width: 100%;
  text-align: left;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid var(--gray-100);
  background: white;
  font-size: 0.8125rem;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 0.5rem;
  font-family: inherit;
}
.quick-questions button:hover { border-color: var(--indigo-200); background: var(--indigo-50); color: var(--indigo-700); }

/* CONTENT CARD */
.content-card {
  background: white; border-radius: 1rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 2rem;
}
.content-card h2 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-card h2:first-child { margin-top: 0; }
.content-card p { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.75rem; }
.content-card ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.content-card li { font-size: 0.875rem; color: var(--gray-600); line-height: 1.7; margin-bottom: 0.375rem; }
.content-card a { color: var(--indigo-600); text-decoration: none; }
.content-card a:hover { text-decoration: underline; }

/* SEARCH BOX */
.search-box { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-box input { flex: 1; padding: 0.625rem 1rem; border: 1px solid var(--gray-200); border-radius: 0.5rem; font-size: 0.875rem; font-family: inherit; background: white; }
.search-box input:focus { outline: none; border-color: var(--indigo-600); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
.search-box .btn-primary { width: auto; padding: 0.625rem 1.5rem; }

/* CLUSTER GRID */
.cluster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.cluster-card { background: white; border: 1px solid var(--gray-200); border-radius: 0.75rem; padding: 1.25rem; text-decoration: none; color: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
.cluster-card:hover { border-color: var(--indigo-300); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.cluster-card h3 { font-size: 0.9375rem; font-weight: 600; color: var(--gray-900); margin-bottom: 0.25rem; }
.cluster-card p { font-size: 0.8125rem; color: var(--gray-600); line-height: 1.5; }

/* JOURNAL TABLE */
.journal-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.journal-table th { text-align: left; padding: 0.625rem 0.75rem; background: var(--gray-50); border-bottom: 2px solid var(--gray-200); font-weight: 600; color: var(--gray-600); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.03em; }
.journal-table td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--gray-100); }
.journal-table tr:hover { background: var(--gray-50); }
.journal-table a { color: var(--indigo-600); text-decoration: none; font-weight: 500; }
.journal-table a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .header-nav a { font-size: 0.75rem; padding: 0.25rem 0.5rem; }
  .floating-inner { gap: 0.25rem; }
  .pill { padding: 0.25rem 0.5rem; }
  .floating-label { display: none; }
  .floating-sep { display: none; }
}

/* TOPIC CARDS (Explore page) */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.topic-card {
  background: white; border: 1px solid var(--gray-200); border-radius: 0.75rem;
  padding: 1.25rem; text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.topic-card:hover { border-color: var(--indigo-300); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.topic-card-header { display: flex; align-items: center; gap: 0.75rem; }
.topic-emoji { font-size: 1.75rem; }
.topic-name { font-size: 0.9375rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.topic-count { font-size: 0.75rem; color: var(--gray-500); }
.topic-subfields { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.topic-tag {
  font-size: 0.6875rem; padding: 0.125rem 0.5rem;
  background: var(--gray-100); color: var(--gray-600);
  border-radius: 9999px; font-weight: 500; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.topic-tag:hover, .topic-tag.active { background: var(--indigo-100); color: var(--indigo-700); }
.topic-preview { display: flex; flex-direction: column; gap: 0.125rem; }
.preview-name { font-size: 0.75rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-name::before { content: '\2022 '; color: var(--gray-300); }

/* Galaxy */
.galaxy-section { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--gray-200); }
.galaxy-container { background: var(--gray-50); border-radius: 0.75rem; border: 1px solid var(--gray-200); overflow: hidden; }
.galaxy-container canvas { display: block; }

/* Small button */
.btn-sm {
  display: inline-block; font-size: 0.75rem; font-weight: 500;
  padding: 0.25rem 0.625rem; border-radius: 0.375rem;
  background: var(--indigo-50); color: var(--indigo-700);
  text-decoration: none; transition: background 0.15s;
}
.btn-sm:hover { background: var(--indigo-100); }

/* GALAXY (Nebula Map) */
.galaxy-section { margin-bottom: 2.5rem; }
.galaxy-header { margin-bottom: 0.75rem; }
.galaxy-header h2 { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); }
.galaxy-container {
  border-radius: 1rem; overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  position: relative;
}
.galaxy-container canvas { display: block; }
.galaxy-breadcrumb {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 10;
  font-size: 0.75rem; color: rgba(255,255,255,0.6);
}
.galaxy-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.galaxy-breadcrumb a:hover { color: white; text-decoration: underline; }

/* Similar page header */
.page-section .page-header { margin: 0 0 1.5rem 0; padding: 0; max-width: none; }
.page-section .page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); margin: 0.5rem 0; line-height: 1.4; }
.page-section .page-header h1 em { font-style: italic; color: var(--indigo-700); }
.breadcrumb { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.breadcrumb a { color: var(--indigo-600); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.journal-meta {
  display: flex; flex-wrap: wrap; gap: 0; align-items: center;
  margin-top: 0.75rem; font-size: 0.8125rem; color: var(--gray-600);
}
.meta-item {
  display: inline-flex; align-items: center; padding: 0.25rem 0.75rem;
  border-right: 1px solid var(--gray-300); line-height: 1;
}
.meta-item:first-child { padding-left: 0; }
.meta-item:last-child { border-right: none; }
.meta-item strong { font-weight: 600; color: var(--gray-800); margin-right: 0.25rem; }
.oa-badge { color: #059669; font-weight: 600; }
.result-summary { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 1rem; }

/* Contact form (inside content-card) */
.contact-form { margin-top: 1rem; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-form label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.25rem; }
.contact-form .required { color: #dc2626; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--gray-300);
  border-radius: 0.375rem; font-size: 0.875rem; background: white;
  transition: border-color 0.15s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--indigo-400); box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.alert-success { background: #ecfdf5; border: 1px solid #6ee7b7; color: #065f46; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; }
