/* Styles migrated from feed.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);
    box-sizing: border-box;
  }

  #perch-feed-list .so-card {
    max-width: 820px;
  }

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

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

  .so-post-subject {
    margin: 2px 0 10px;
    color: var(--heading);
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
  }

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

  .so-author-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
  }

  .so-author-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.25);
    flex-shrink: 0;
  }

  .so-author-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
    text-align: left;
  }

  .so-author-name {
    display: block;
    color: var(--text-muted);
  }

  .so-author-time {
    display: block;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 2px;
  }

  .feed-card-brand-mark {
    width: 86px;
    height: auto;
    object-fit: contain;
    margin-left: auto;
    flex-shrink: 0;
  }

  .so-card-body {
    margin-top: 10px;
    max-width: 720px;
    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-feed-section-spacer {
    height: 16px;
  }

  @media (max-width: 768px) {
    #perch-feed-list .so-card {
      max-width: calc(100% - 24px);
    }

    .so-card-body {
      max-width: 100%;
    }
  }

  .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;
  }
    /* 🖼️ Optional image attached to a Perch post */
.so-post-media {
  width: 100%;
  max-width: 480px;
  margin: 18px auto 2px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.30);
  background: #0A0F1C;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.30);
}

.so-post-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .so-post-media {
    max-width: 100%;
    margin-top: 14px;
    border-radius: 12px;
  }
}

/* Give the feed the full useful width of a phone screen. */
@media (max-width: 600px) {
  .site-page.site-page--owl-feed {
    padding-right: 10px;
    padding-left: 10px;
  }

  .site-page--owl-feed > .container {
    width: 100%;
    max-width: none;
    margin-top: 28px;
    padding-right: 0;
    padding-left: 0;
  }

  #perch-feed-section,
  #perch-feed-list {
    width: 100%;
  }

  #perch-feed-list .so-card {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding: 16px 14px;
  }

  .so-card-title-row {
    gap: 8px;
  }

  .so-author-row {
    gap: 6px;
  }

  .feed-card-brand-mark {
    width: 70px;
  }

  .so-actions {
    gap: 6px;
  }

  .so-icon-btn {
    width: 34px;
    height: 34px;
  }

  .so-card-body {
    font-size: 1rem;
    line-height: 1.5;
  }
}

/* The Perch: compact app-style feed cards with expandable details. */
.site-page--owl-feed > .container {
  width: 100%;
  max-width: 900px;
  margin: 12px auto 0;
  padding: 8px 24px 24px;
}

.perch-page-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.perch-page-mark {
  box-sizing: border-box;
  width: 58px;
  height: 58px !important;
  padding: 5px;
  border: 1px solid rgba(212, 175, 55, 0.48);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(17, 34, 64, 0.72));
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), 0 0 14px rgba(212, 175, 55, 0.12);
  object-fit: contain;
}

.site-page--owl-feed .perch-page-heading h1 {
  margin: 0;
  color: var(--understanding);
  font-family: "Owl Times", "Times New Roman", serif !important;
  font-size: clamp(2.2rem, 6vw, 3rem) !important;
  line-height: 1.05;
}

.site-page--owl-feed .divider-section {
  margin-top: 22px;
  margin-bottom: 24px;
}

#perch-feed-section {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.perch-page-intro {
  margin: 0 auto 12px;
  color: #b3bdc9;
  font-size: 1.03rem;
  line-height: 1.5;
}

.perch-refresh-row {
  margin-bottom: 18px;
  text-align: center;
}

.perch-refresh-button,
.perch-copy-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 13px;
  background: rgba(17, 34, 64, 0.6);
  color: var(--understanding);
  cursor: pointer;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

#perch-feed-list .perch-post {
  max-width: 820px;
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(17, 34, 64, 0.86) 42%, rgba(13, 27, 42, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34), 0 0 22px rgba(212, 175, 55, 0.1);
}

.perch-post-summary {
  display: block;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.perch-post-summary::-webkit-details-marker {
  display: none;
}

.perch-post-summary::marker {
  content: "";
}

.perch-post-summary:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.58);
  outline-offset: -4px;
}

.perch-post-summary .so-author-row {
  margin: 0 0 16px;
}

.perch-post-summary .so-author-avatar {
  width: 48px;
  height: 48px;
}

.perch-post-summary .so-author-meta {
  color: #b3bdc9;
  font-size: 0.94rem;
}

.perch-post-summary .so-author-name {
  color: #f0f0eb;
  font-size: 1.12rem;
  font-weight: 700;
}

.perch-post-summary .so-author-time {
  color: #a7b3c1;
  font-size: 0.88rem;
}

.perch-post-summary .feed-card-brand-mark {
  width: 108px;
}

.perch-summary-main {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 32px;
  gap: 16px;
  align-items: center;
}

.perch-summary-image {
  grid-column: 1;
  width: 104px;
  height: 104px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 14px;
  background: #0a0f1c;
  object-fit: cover;
}

.perch-summary-main .so-post-subject {
  grid-column: 2;
  margin: 0;
  color: #f0f0eb;
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  line-height: 1.18;
}

.perch-summary-main .so-post-subject:first-child {
  grid-column: 1 / 3;
}

.perch-summary-chevron {
  display: grid;
  grid-column: 3;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--understanding);
  transition: transform 170ms ease;
}

.perch-summary-chevron svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.3;
}

.perch-post[open] .perch-summary-chevron {
  transform: rotate(180deg);
}

.perch-post-details {
  padding: 18px;
  border-top: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(7, 18, 33, 0.28);
}

.perch-post-details .so-card-body {
  max-width: none;
  color: #e8d27e;
  font-size: 1rem;
  line-height: 1.55;
}

.perch-full-post-action {
  margin-top: 16px;
  text-align: center;
}

.so-helpful-btn,
.perch-post-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 13px;
  background: rgba(17, 34, 64, 0.58);
  color: var(--understanding);
  cursor: pointer;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.so-helpful-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 9px;
  border-color: transparent;
  background: transparent;
}

.so-helpful-btn:hover,
.perch-post-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(212, 175, 55, 0.12);
}

.so-helpful-btn:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.so-helpful-btn.liked {
  border-color: rgba(212, 175, 55, 0.48);
  background: rgba(212, 175, 55, 0.12);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.12);
}

.so-helpful-icon,
.perch-post-action-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.perch-post-action-button {
  min-width: 150px;
  padding: 9px 16px;
}

@media (max-width: 420px) {
  .so-helpful-btn {
    font-size: 0.86rem;
  }
}

@media (max-width: 600px) {
  .site-page--owl-feed > .container {
    margin-top: 12px;
    padding-right: 0;
    padding-left: 0;
  }

  .perch-page-mark {
    width: 52px;
    height: 52px !important;
  }

  .site-page--owl-feed .perch-page-heading h1 {
    font-size: 2.15rem !important;
  }

  #perch-feed-list .perch-post {
    padding: 0;
  }

  .perch-post-summary,
  .perch-post-details {
    padding: 15px 14px;
  }

  .perch-post-summary .so-author-row {
    margin-bottom: 13px;
  }

  .perch-post-summary .so-author-avatar {
    width: 44px;
    height: 44px;
  }

  .perch-post-summary .feed-card-brand-mark {
    width: 82px;
  }

  .perch-summary-main {
    grid-template-columns: 86px minmax(0, 1fr) 28px;
    gap: 11px;
  }

  .perch-summary-image {
    width: 86px;
    height: 86px;
    border-radius: 12px;
  }

  .perch-summary-main .so-post-subject {
    font-size: clamp(1.18rem, 6vw, 1.48rem);
  }

  .perch-summary-chevron {
    width: 28px;
    height: 28px;
  }

  .perch-summary-chevron svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 360px) {
  .perch-summary-main {
    grid-template-columns: 74px minmax(0, 1fr) 26px;
    gap: 9px;
  }

  .perch-summary-image {
    width: 74px;
    height: 74px;
  }

  .perch-post-summary .feed-card-brand-mark {
    width: 70px;
  }
}
