/* Styles migrated from index.html. */
:root {
    --background: #0D1B2A;
    --surface: #112240;
    --highlight: #1A2B4C;
    --truth: #28A745;
    --reliability: #3B6CED;
    --understanding: #D4AF37;
    --text: #FFFFFF;
    --text-muted: #7C8A9B;
    --heading: #FFFFF0;
    --shadow: rgba(0, 0, 0, 0.3);
    --bar-red: #FF4C4C;
    --bar-green: #28A745;
  }

  body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
  }

  /* 🧭 NAVBAR & MENU */
  nav.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--highlight);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    box-shadow: 0 2px 6px var(--shadow);
  }

  .nav-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--understanding);
  }

  .menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
    background: none;
    border: none;
  }

  .nav-links {
    display: flex;
    gap: 28px;
  }

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
  }

  .nav-links a:hover {
    color: var(--understanding);
  }
    .nav-logo img {
  height: 40px;
  width: 40px;
}
    .nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--text);
  font-size: 1.25rem;
}
    /* 🎨 TRU Bars */
  .divider-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
  }

  .divider-bar {
    display: flex;
    gap: 12px;
    width: 340px;
  }

  .divider-bar div {
    width: 108px;
    height: 6px;
    border-radius: 3px;
    box-shadow: 0 0 4px var(--shadow);
  }

  .truth { background-color: var(--truth); }
  .reliability { background-color: var(--reliability); }
  .understanding { background-color: var(--understanding); }

  .divider-labels {
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 340px;
    margin-top: 8px;
  }

  .divider-labels span {
    width: 108px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
  }

  @media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column; /* ✅ stack vertically */
    align-items: center;
    background-color: var(--highlight);
    position: absolute;
    top: 58px;
    left: 0;
    width: 100%;
    padding: 12px 0;
    gap: 12px;
    box-shadow: 0 3px 8px var(--shadow);
  }

  .nav-links.show {
    display: flex;
    animation: fadeSlideDown 0.3s ease;
  }

  .nav-links a {
    padding: 10px 0;
    width: 100%;
    text-align: center;
    font-size: 1rem;
  }

  @keyframes fadeSlideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
    #legal-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 27, 42, 0.95);
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: none;
}

#legal-popup > div {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--surface);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px var(--shadow);
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 500px) {
  #legal-popup > div {
    padding: 16px 12px;
    font-size: 0.95rem;
  }

  .important-link {
    display: block;
    text-align: center;
    margin-top: 16px;
  }
}

  /* ✅ YOUR ORIGINAL STYLES BELOW */
  .container {
    max-width: 960px;
    margin: 100px auto 0 auto;
    padding: 24px;
  }

  h1 {
    font-family: 'Playfair Display', serif;
    color: var(--understanding);
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
  }
  h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--understanding); /* golden highlight */
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 12px;
  text-align: center;
}
  p {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

  select {
    padding: 8px;
    margin-bottom: 16px;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--highlight);
  }

  table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--surface);
    margin-top: 12px;
  }

  th, td {
    padding: 12px;
    border-bottom: 1px solid var(--highlight);
    text-align: left;
  }

  .text-truth { color: var(--truth); }
  .text-reliability { color: var(--reliability); }
  .text-understanding { color: var(--understanding); }

  .total-score {
    font-weight: bold;
  }

  .positive-score { color: var(--bar-green); }
  .negative-score { color: var(--bar-red); }

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

  .bar-indicator {
    width: 10px;
    height: 24px;
    border-radius: 2px;
  }

  .bar-red {
    background-color: var(--bar-red);
  }

  .bar-green {
    background-color: var(--bar-green);
  }
    .match-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.match-nav-link:hover {
  color: var(--understanding);
}
 /* Style the link itself */
.important-link {
  color: var(--understanding);               /* Gold color from your theme */
  font-weight: 700;                          /* Bold for visibility */
  text-decoration: underline;                /* Underline to signal it's a link */
  text-underline-offset: 4px;                /* Adds spacing between text and underline */
  position: relative;                        /* Required for pseudo-elements */
  transition: color 0.3s ease, text-shadow 0.3s ease;  /* Smooth hover transitions */
}

/* Add a right-pointing arrow BEFORE the link text */
.important-link::before {
  content: '→ ';                             /* Arrow pointing right */
  display: inline-block;                     /* So we can animate it */
  margin-right: 6px;                         /* Space between arrow and text */
  transition: transform 0.3s ease;           /* Smooth movement on hover */
}

/* Add a left-pointing arrow AFTER the link text */
.important-link::after {
  content: ' ←';                             /* Arrow pointing left */
  display: inline-block;                     /* Enables transform */
  margin-left: 6px;                          /* Space between text and arrow */
  transition: transform 0.3s ease;           /* Smooth hover animation */
}

/* Animate the left-side arrow to move right on hover */
.important-link:hover::before {
  transform: translateX(4px);                /* Moves → arrow to the right */
}

/* Animate the right-side arrow to move left on hover */
.important-link:hover::after {
  transform: translateX(-4px);               /* Moves ← arrow to the left */
}

/* Add glow and optional color change on hover */
.important-link:hover {
  text-shadow: 0 0 8px var(--understanding); /* Subtle glow using gold tone */
  color: var(--truth);                       /* Optional: changes to green (truth color) */
}
    /* 📢 Shared Announcement Box Styles */
.announcement-box {
  background-color: var(--surface);
  padding: 24px;
  border-radius: 12px;
  margin: 24px auto;
  max-width: 960px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.7;
  letter-spacing: 0.1px;
  gap: 10px;
}

.announcement-box-mobile {
  background-color: var(--surface);
  padding: 20px 16px;
  border-radius: 12px;
  margin: 24px auto;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  max-width: 90%;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* 🟢 Label Color */
.announcement-label {
  color: var(--truth);
  font-weight: 600;
  font-size: 1.1rem;
}

/* 🔗 Strategic Link Styling */
.important-link {
  color: var(--understanding);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  position: relative;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.important-link::before {
  content: '→ ';
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.3s ease;
}

.important-link::after {
  content: ' ←';
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.important-link:hover::before {
  transform: translateX(4px);
}

.important-link:hover::after {
  transform: translateX(-4px);
}

.important-link:hover {
  text-shadow: 0 0 8px var(--understanding);
  color: var(--truth);
}

/* 📱 Mobile Layout */
@media (max-width: 768px) {
  .announcement-desktop {
    display: none;
  }

  .announcement-mobile {
    padding: 0;
    text-align: center;
  }

  .announcement-box-mobile .important-link {
    display: inline-block;
    margin: 6px 0;
  }
}

/* 💻 Desktop Layout */
@media (min-width: 769px) {
  .announcement-mobile {
    display: none;
  }
}
  /* 🦉 Flutter-style cards (Homepage feed) */
  .so-card {
    width: 100%;
    max-width: 960px;
    margin: 16px auto;
    padding: 16px;
    border-radius: 16px;
    border: 1.2px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(to bottom right, #0A0F1C, #1A2B4C);
    box-shadow: 0 10px 22px rgba(212, 175, 55, 0.16);
  }

  .so-card-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .so-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--understanding);
    margin: 0;
  }

  .so-card-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 6px 0 0 0;
  }

  .so-card-body {
    margin-top: 10px;
    font-family: 'Inter', sans-serif;
    color: var(--understanding);
    font-size: 0.98rem;
    line-height: 1.45;
    white-space: pre-wrap;
  }

  .so-card-body.italic {
    font-style: italic;
  }

  .so-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .so-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    background: rgba(13, 27, 42, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
  }

  .so-icon-btn:hover {
    transform: translateY(-1px);
    background: rgba(13, 27, 42, 0.35);
  }

  .so-icon {
    width: 18px;
    height: 18px;
    fill: var(--understanding);
  }

  .so-like {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 6px;
    color: var(--understanding);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    user-select: none;
  }

  .so-like .heart {
    width: 18px;
    height: 18px;
    fill: var(--understanding);
  }

  .so-like.liked .heart {
    fill: var(--understanding);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.35));
  }

  .so-toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    background: rgba(17, 34, 64, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--understanding);
    padding: 10px 14px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.35);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .so-toast.show {
    opacity: 1;
  }
  /* 📜 Footer */
  footer {
    text-align: center;
    padding: 24px 12px;
    font-size: 12px;
    color: #D4AF37;
    text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
    font-family: 'Inter', sans-serif;
  }

/* Homepage launch panel */
.home-launch {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 40px auto 0;
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 30%, rgba(59, 108, 237, 0.10), transparent 38%),
    linear-gradient(145deg, rgba(30, 52, 87, 0.94), rgba(13, 27, 42, 0.97) 58%, rgba(8, 21, 34, 0.98));
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(212, 175, 55, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-launch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.055), transparent 24% 76%, rgba(212, 175, 55, 0.04));
}

.home-launch__updates {
  padding: 20px 28px 22px;
  border-bottom: 1px solid rgba(167, 179, 193, 0.16);
  background: rgba(5, 15, 27, 0.20);
}

.home-launch__update-heading {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  text-align: center;
}

.home-launch__update-label {
  color: var(--truth);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.home-launch__timestamp {
  color: #9eabba;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-launch__update-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
}

.home-update-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  padding: 5px 18px;
  color: #d8dde6;
  font-family: 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

.home-update-item + .home-update-item {
  border-left: 1px solid rgba(167, 179, 193, 0.16);
}

.home-update-item__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--truth);
  box-shadow: 0 0 9px rgba(40, 167, 69, 0.72);
}

.home-launch__feature {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 52px 28px 48px;
  text-align: center;
}

.home-launch__feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(360px, 62%);
  height: 3px;
  transform: translateX(-50%);
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--truth), var(--reliability), var(--understanding));
  box-shadow: 0 0 13px rgba(212, 175, 55, 0.28);
}

.home-launch__eyebrow {
  margin: 0 0 10px;
  color: var(--truth);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-launch__feature h2 {
  margin: 0;
  color: var(--heading);
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
}

.home-launch__summary {
  max-width: 640px;
  margin: 18px auto 0;
  color: #bac4d0;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  text-wrap: balance;
}

.home-launch__principles {
  display: flex;
  justify-content: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 22px auto 0;
  color: var(--understanding);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-launch__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.home-launch__primary,
.home-launch__secondary {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 13px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.home-launch__primary {
  border: 1px solid var(--understanding);
  background: var(--understanding);
  color: #081522;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.18);
}

.home-launch__secondary {
  border: 1px solid rgba(212, 175, 55, 0.46);
  background: rgba(8, 21, 34, 0.40);
  color: var(--understanding);
}

.home-launch__primary:hover,
.home-launch__secondary:hover {
  transform: translateY(-1px);
}

.home-launch__primary:hover {
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.26);
}

.home-launch__secondary:hover {
  border-color: rgba(212, 175, 55, 0.78);
  background: rgba(26, 43, 76, 0.72);
}

.home-launch__primary:focus-visible,
.home-launch__secondary:focus-visible,
.home-launch__explore a:focus-visible,
.home-launch__utility a:focus-visible {
  outline: 3px solid rgba(67, 124, 255, 0.82);
  outline-offset: 3px;
}

.home-launch__explore {
  padding: 22px 28px;
  border-top: 1px solid rgba(167, 179, 193, 0.16);
  border-bottom: 1px solid rgba(167, 179, 193, 0.16);
  background: rgba(8, 21, 34, 0.28);
  text-align: center;
}

.home-launch__explore-label {
  display: block;
  margin-bottom: 12px;
  color: #8f9cad;
  font-family: 'Inter', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-launch__explore-links,
.home-launch__utility {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 0;
  flex-wrap: wrap;
}

.home-launch__explore a {
  padding: 1px 20px;
  color: #e9edf2;
  font-family: 'Inter', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.home-launch__explore a + a {
  border-left: 1px solid rgba(167, 179, 193, 0.30);
}

.home-launch__explore a:hover {
  color: var(--understanding);
}

.home-launch__utility {
  gap: 12px 24px;
  padding: 17px 22px 19px;
}

.home-launch__utility a {
  color: #9eabba;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.45;
  text-decoration-color: rgba(158, 171, 186, 0.48);
  text-underline-offset: 4px;
}

.home-launch__utility a:hover {
  color: var(--understanding);
}

@media (max-width: 640px) {
  .home-launch {
    margin-top: 28px;
    border-radius: 18px;
  }

  .home-launch__updates {
    padding: 18px 18px 16px;
  }

  .home-launch__update-heading {
    display: grid;
    gap: 4px;
    margin-bottom: 13px;
  }

  .home-launch__timestamp {
    font-size: 0.8rem;
  }

  .home-launch__update-list {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

  .home-update-item {
    justify-content: flex-start;
    padding: 9px 6px;
    text-align: left;
  }

  .home-update-item + .home-update-item {
    border-top: 1px solid rgba(167, 179, 193, 0.13);
    border-left: 0;
  }

  .home-launch__feature {
    padding: 42px 20px 38px;
  }

  .home-launch__feature h2 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
  }

  .home-launch__summary {
    font-size: 1rem;
    line-height: 1.65;
  }

  .home-launch__principles {
    display: grid;
    gap: 5px;
    font-size: 0.84rem;
  }

  .home-launch__actions {
    display: grid;
    width: 100%;
  }

  .home-launch__primary,
  .home-launch__secondary {
    width: 100%;
  }

  .home-launch__explore {
    padding: 21px 18px;
  }

  .home-launch__explore-links {
    display: grid;
    gap: 0;
  }

  .home-launch__explore a {
    padding: 9px 12px;
  }

  .home-launch__explore a + a {
    border-top: 1px solid rgba(167, 179, 193, 0.13);
    border-left: 0;
  }

  .home-launch__utility {
    display: grid;
    gap: 9px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-launch__primary,
  .home-launch__secondary {
    transition: none;
  }
}
