:root {
  --gaia-leaf-200: #9bbd8f;
  --gaia-leaf-300: #80a977;
  --gaia-leaf-500: #5f8a55;
  --gaia-leaf-700: #375338;
  --gaia-nebula-300: #6f89b8;
  --gaia-nebula-500: #3f5a8a;
  --gaia-cosmic-glow: rgba(111, 137, 184, 0.16);
  --gaia-grove-glow: rgba(128, 169, 119, 0.2);
}

body.gaia-page .site-frame {
  background:
    linear-gradient(160deg, #0b0b09 0%, #17120f 36%, #101612 72%, #0c0b0a 100%);
}

body.gaia-page .site-header {
  border-color: rgba(200, 170, 100, 0.18) !important;
  background:
    linear-gradient(115deg, rgba(11, 11, 9, 0.94), rgba(23, 18, 15, 0.9) 48%, rgba(16, 22, 18, 0.92)),
    repeating-linear-gradient(90deg, rgba(232, 223, 200, 0.03) 0 1px, transparent 1px 4.6rem) !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

body.gaia-page .site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(212, 185, 106, 0.1), transparent),
    linear-gradient(115deg, transparent 0 24%, rgba(110, 151, 129, 0.08) 24.2% 24.5%, transparent 24.8% 100%);
}

body.gaia-page .site-header::after {
  width: min(32rem, 72vw);
  background: linear-gradient(90deg, transparent, rgba(110, 151, 129, 0.55), rgba(241, 212, 122, 0.72), rgba(167, 77, 54, 0.5), transparent);
}

body.gaia-page .site-header-inner {
  min-height: 4.8rem;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

body.gaia-page .site-brand-link {
  gap: 0;
  color: #efe1bd;
}

body.gaia-page .brand-monogram {
  display: none !important;
}

body.gaia-page .site-brand-link span span:first-child {
  color: #f1d47a !important;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(212, 185, 106, 0.22);
}

body.gaia-page .site-brand-link span span:last-child {
  color: #6e9781 !important;
}

body.gaia-page .site-header nav a {
  color: #a99769;
  border-color: transparent;
}

body.gaia-page .site-header nav a:hover,
body.gaia-page .site-header nav a[aria-current='page'] {
  color: #f1d47a;
  border-color: rgba(241, 212, 122, 0.58);
}

body.gaia-page .site-header .button-primary {
  border-radius: 2px;
  border-color: rgba(200, 170, 100, 0.28);
  background: rgba(11, 11, 9, 0.62);
  color: #f1d47a;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 173, 0.04);
}

body.gaia-page .site-header details summary {
  border-radius: 2px;
  border-color: rgba(200, 170, 100, 0.28);
  background: rgba(11, 11, 9, 0.68);
  color: #f1d47a;
  box-shadow: inset 0 0 0 1px rgba(255, 240, 173, 0.05), 0 12px 28px rgba(0, 0, 0, 0.32);
}

body.gaia-page .site-header details summary span {
  color: #6e9781;
}

body.gaia-page .site-header details > div {
  border-radius: 2px;
  border-color: rgba(200, 170, 100, 0.24);
  background:
    linear-gradient(160deg, rgba(11, 11, 9, 0.98), rgba(23, 18, 15, 0.96) 58%, rgba(16, 22, 18, 0.98));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.gaia-cosmos-shell {
  position: relative;
  isolation: isolate;
}

.gaia-cosmos-shell::before,
.gaia-cosmos-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gaia-cosmos-shell::before {
  background:
    radial-gradient(circle at 90% 12%, var(--gaia-cosmic-glow) 0%, transparent 42%),
    radial-gradient(circle at 14% 88%, var(--gaia-grove-glow) 0%, transparent 44%),
    linear-gradient(128deg, transparent 0 24%, rgba(95, 138, 85, 0.12) 24% 24.16%, transparent 24.16% 100%),
    linear-gradient(92deg, transparent 0 66%, rgba(111, 137, 184, 0.11) 66% 66.12%, transparent 66.12% 100%);
  opacity: 0.9;
}

.gaia-cosmos-shell::after {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.17) 0 0.16rem, transparent 0.18rem),
    radial-gradient(circle at 74% 16%, rgba(255, 255, 255, 0.14) 0 0.14rem, transparent 0.16rem),
    radial-gradient(circle at 62% 78%, rgba(255, 255, 255, 0.1) 0 0.12rem, transparent 0.14rem),
    radial-gradient(circle at 34% 62%, rgba(255, 255, 255, 0.09) 0 0.12rem, transparent 0.14rem);
  opacity: 0.62;
}

.gaia-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(95, 138, 85, 0.22);
  pointer-events: none;
}

.gaia-orbit-one {
  width: min(74vw, 780px);
  height: min(74vw, 780px);
  top: -10rem;
  right: -14rem;
  background: radial-gradient(circle, rgba(95, 138, 85, 0.16) 0%, rgba(95, 138, 85, 0) 66%);
}

.gaia-orbit-two {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  left: -4rem;
  bottom: -5rem;
  border-color: rgba(111, 137, 184, 0.2);
  background: radial-gradient(circle, rgba(111, 137, 184, 0.14) 0%, rgba(111, 137, 184, 0) 62%);
}

.gaia-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(204, 153, 103, 0.1), transparent 36%),
    radial-gradient(circle at left bottom, rgba(95, 127, 174, 0.08), transparent 38%),
    linear-gradient(168deg, rgba(8, 11, 16, 0.88), rgba(8, 11, 16, 0.68));
}

.gaia-panel::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -10%;
  width: 14rem;
  height: 14rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(95, 138, 85, 0.14) 0%, rgba(95, 138, 85, 0) 74%);
  pointer-events: none;
}

.gaia-mini-card,
.gaia-guide-card,
.gaia-reading-card,
.gaia-detail-card,
.gaia-thread-card,
.gaia-method-card,
.gaia-signal-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
}

.gaia-mini-label,
.gaia-guide-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cc9967;
}

.gaia-link-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(204, 153, 103, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #f1eeeb;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.62rem 1rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.gaia-link-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(204, 153, 103, 0.52);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
  color: #cc9967;
}

.gaia-grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gaia-grid-4 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gaia-pill-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.gaia-pill-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.66rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(204, 153, 103, 0.28);
  background: rgba(255, 255, 255, 0.03);
  color: #f1eeeb;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.gaia-pill-nav a:hover {
  border-color: rgba(204, 153, 103, 0.52);
  color: #cc9967;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

@media (max-width: 1100px) {
  .gaia-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gaia-grid-3,
  .gaia-grid-4 {
    grid-template-columns: 1fr;
  }
}
