:root {
  --bg: #05070b;
  --bg-alt: #0b0f18;
  --card: #111827;
  --accent: #1E90FF;
  --accent-soft: rgba(30, 144, 255, 0.18);
  --border-soft: rgba(148, 163, 184, 0.28);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --separator: linear-gradient(90deg, #111827, #1E90FF, #111827);
  --radius-xl: 18px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, #020617 35%, #02040a 100%);
  color: var(--text-main);
}

body {
  display: flex;
  flex-direction: column;
}

/* Top / bottom separator bars */

.top-separator,
.bottom-separator {
  height: 3px;
  background-image: var(--separator);
  box-shadow: 0 0 18px rgba(30, 144, 255, 0.75);
  position: relative;
  z-index: 5;
}

.bottom-separator {
  box-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
}

/* Page shell */

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 18px 30px;
  gap: 18px;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, 0.16), transparent 55%),
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.9), transparent 60%),
    var(--bg-alt);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes pulse-blue {
  0% {
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(30, 144, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(30, 144, 255, 0);
  }
}

.brand-logo {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Removed border-radius/background/shadow to let the image fill the box */
  overflow: visible;
}

.brand-logo img {
  border-radius: 50%;
  animation: pulse-blue 2s infinite;
}

.brand-logo svg {
  display: block;
  color: #f9fafb;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 2.0rem;
  line-height: 0.9;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #e5e7eb;
  /* Unified color */
}

/* Removed .highlight and .pulse */

.brand-tagline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.8;
  margin-top: 4px;
}

/* Navigation */

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 0.82rem;
}

.site-nav .nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.12s ease;
}

.site-nav .nav-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scale(0.1);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
  color: var(--text-main);
  background-color: rgba(15, 23, 42, 0.9);
  border-color: var(--accent-soft);
  transform: translateY(-1px);
}

.site-nav .nav-link.nav-link-active {
  color: var(--text-main);
  border-color: var(--accent);
  background: linear-gradient(90deg,
      rgba(30, 144, 255, 0.2),
      rgba(15, 23, 42, 0.95));
}

.site-nav .nav-link.nav-link-active .dot {
  opacity: 1;
  transform: scale(1);
}

/* Layout */

.site-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: flex-start;
}

/* Content card */

.content {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.96));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  padding: 18px 18px 22px;
  box-shadow: var(--shadow-soft);
  min-height: 260px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.content-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.content-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.content-body {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cbd5f5;
}

.content-body p {
  margin: 0 0 10px;
}

/* Search form */

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.search-form input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background-color: rgba(15, 23, 42, 0.96);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
}

.search-form input[type="text"]::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.search-form input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(30, 144, 255, 0.45);
}

.search-form button[type="submit"] {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: linear-gradient(135deg, #1E90FF, #1b4f9f);
  color: #f9fafb;
  font-size: 0.86rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.1s ease,
    box-shadow 0.1s ease,
    filter 0.12s ease;
}

.search-form button[type="submit"]:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(24, 90, 160, 0.65);
}

.search-form button[type="submit"]:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Messages */

.hint {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 8px 0 4px;
}

.error {
  font-size: 0.86rem;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  margin: 8px 0 4px;
}

/* Results list */

.result-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-item {
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0 0, rgba(30, 144, 255, 0.16), transparent 50%),
    rgba(15, 23, 42, 0.98);
}

.result-title a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}

.result-title a:hover {
  text-decoration: underline;
}

.result-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.result-snippet {
  margin-top: 6px;
  font-size: 0.84rem;
  color: #cbd5f5;
}

/* Side panel */

.side-panel {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 18px;
  box-shadow: var(--shadow-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-panel-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.side-panel-highlight {
  font-size: 0.9rem;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: radial-gradient(circle at 0 0, rgba(30, 144, 255, 0.2), transparent 55%);
  color: #e5e7eb;
}

.side-panel-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Footer */

.site-footer {
  margin-top: 10px;
  padding: 10px 4px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.92;
}

.footer-left .footer-brand {
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.footer-right {
  display: flex;
  gap: 10px;
  align-items: center;
}

.footer-pill {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background-color: rgba(15, 23, 42, 0.95);
}

/* Responsive */

@media (max-width: 900px) {
  .site-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding-inline: 12px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}