* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* =====================================================
   START NAVBAR STYLING
   ===================================================== */

/* General body settings */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Logo size */
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}

/* Dropshadow behind logo */
.brand-logo {
  filter: drop-shadow(0 0 6px rgba(31, 126, 168, 0.35));
  transition: transform 0.25s ease, filter 0.25s ease;
}

/* Enhance Logo on navbar on hover */
.brand:hover .brand-logo {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px rgba(31, 126, 168, 0.6));
}


/* Navbar styling */
.navbar {
    background-color: #333;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    z-index: 1000; /* Ensure navbar stays on top */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow for better visibility */
    display: flex;
    align-items: center; /* Center align items vertically */
}

/* LINKS SPACING */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links {
    list-style-type: none;
    margin: 0;
    padding: 5px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Center align items vertically */
    flex-wrap: wrap; /* Allow items to wrap */
}

/* Enhance navbar links */
.nav-links a {
  position: relative;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.5rem;
  transition: color 0.25s ease;
  color: #ffffff;  /* White font color for better contrast */
  text-decoration: none;
  padding: 0.25rem 0;
}

/* CLEAN UNDERLINE HOVER EFFECT */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #1f7ea8;
  transition: width 0.25s ease;
}

/* CLEAN UNDERLINE HOVER EFFECT */
.nav-links a:hover::after {
  width: 100%;
}

/* ACTIVE LINK EFFECT */
.nav-links a.active {
  color: #1f7ea8;
  font-weight: 700;
}

.nav-item {
    position: relative;
    margin-right: 20px; /* Space between items */
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    text-align: center;
    font-weight: bold;
}

.nav-item:hover > .nav-link {
    background-color: #575757;
}

/* More Menu: Initially hidden */
.more-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #000000;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 200px;
}

.more-menu li {
    padding: 5px;
    text-decoration: none;
}

/* ACTIVE LINK EFFECT */
.more-menu a.active {
  color: #1f7ea8;
  font-weight: 700;
}

.more-menu li a {
    color: white;
    padding: 2px;
    text-decoration: none;
}

.more-menu li a:hover {
    background-color: #575757;
}

/* Show the "More" menu when hovered or focused */
.more:hover > .more-menu,
.more:focus-within > .more-menu {
    display: block;
}

/* Responsive Styles for Mobile and Tablet */
@media (max-width: 768px) {
    /* Show the "More" button on small screens (mobile or tablet) */
    .more {
        display: block;
        width: 100%;
    }

    /* Initially hide the full menu inside the "More" dropdown */
    .more-menu {
        display: none;
        width: 100%;
    }

    /* Show the full menu inside the "More" dropdown when it's active */
    .more.active .more-menu {
        display: block;
    }

    /* Hide all other nav links except the "More" button on small screens */
    .nav-item:not(.more) {
        display: none; /* Hide all links except "More" */
    }

    /* For small mobile screens, ensure the menu behaves responsively */
    @media (max-width: 480px) {
        .nav-links {
            flex-direction: column; /* Stack items vertically */
        }
    }
}

/* Show "More" link only on mobile/tablet, hide it on large screens */
@media (min-width: 769px) {
    .more {
        display: none; /* Hide the "More" link on large screens */
    }
}

/* Hide all other links when the "More" link is visible */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Hide all links except "More" */
    }
}

/* =======================================================
   END NAVBAR STYLING
   ===================================================== */

/* =====================================================
   START TICKER (FIXED + READABLE)
   ===================================================== */

.ticker-wrapper {
  position: fixed;
  bottom: 0;          /* 👈 move to bottom */
  left: 0;
  width: 100%;
  height: 52px;
  overflow: hidden;
  background: rgba(11, 45, 58, 0.35); /* transparent */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 10;
  padding: 0 0.5rem;
}

.ticker {
  height: 100%;
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  padding-left: 100%;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  line-height: 1.6;
  color: #e6f4fa;
}

/* SCROLL ANIMATION */
@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

/* =====================================================
   END TICKER (FIXED + READABLE)
   ===================================================== */

/* =====================================================
   PAGE HERO 
   ===================================================== */

.page-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem;

  background-image: url("../images/backgrounds/bg-desktop.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top;
  background-attachment: fixed;
  background-color: #0e0e0e;
  overflow: hidden; /* important */
}

/* SIDE FADE / GRADIENT OVERLAY */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(14, 14, 14, 1) 0%,
    rgba(14, 14, 14, 0) 18%,
    rgba(14, 14, 14, 0) 82%,
    rgba(14, 14, 14, 1) 100%
  );
  z-index: 1;
  pointer-events: none; /* 👈 key */
}

/* CONTENT ABOVE OVERLAY */
.page-hero > * {
  position: relative;
  z-index: 2;
}


/* =====================================================
   TABLET BACKGROUND
   ===================================================== */

@media (max-width: 1024px) {
  .page-hero {
    background-image: url("../images/backgrounds/bg-tablet.webp");
    background-size: cover;
    background-position: top center; /* Ensure the background image stays aligned at the top */
  }
}

/* =====================================================
   MOBILE BACKGROUND CENTERED
   ===================================================== */

@media (max-width: 768px) {
  .page-hero {
    padding: 1.25rem;

    background-image: url("../images/backgrounds/bg-mobile.webp");
    background-size: cover;
    background-position: top center; /* Ensure the background image stays aligned at the top */
  }
}

/* =====================================================
   START ENTER BUTTON - INDEX PAGE
   ===================================================== */

.index-page .enter-btn {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1.2rem 3.5rem;
  color: #0b2d3a;
  text-decoration: none;
  background: #ffffff;
  border-radius: 999px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    z-index: 50;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.index-page .enter-btn:hover {
  transform: translateY(-3px);
  background: #f4f6f8;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.index-page .enter-btn:active {
  transform: translateY(0);
}

/* =====================================================
   END ENTER BUTTON
   ===================================================== */

/* =====================================================
   START FORM FORMATTING FOR FUTURES PAGE
   ===================================================== */

.form-section {
  position: absolute; /* Keep this if you want it positioned absolutely */
  top: 100px; /* Adjust as needed */
  width: 100%;
  max-height: 80vh; /* Set a max height (adjust as needed) */
  overflow-y: auto; /* Enable vertical scrolling within the form container */
  margin-bottom: 20px; /* Add margin at the bottom of the container */
  z-index: 500;
}

.form-section,
.submission-results {
  background: rgba(37, 24, 151, 0.432);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 2rem;
  max-width: 720px;
  width: 100%;
  color: #d0e2ea;
  z-index: 500;
}

.investor-form label,
fieldset label {
  display: block;
  margin-top: 0.75rem;
}

fieldset {
  border: none;
  margin-top: 1.5rem;
}

legend {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

button {
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.answer-block {
  margin-bottom: 1.5rem;
}

.answer {
  font-weight: 600;
}
/* =====================================================
   END FORM FORMATTING FOR FUTURES PAGE
   ===================================================== */

/* =====================================================
   HERO
   ===================================================== */

.hero-page {
  min-height: 100vh;
}

.hero {
  min-height: 100vh;
  background: var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.hero p {
  max-width: 500px;
  margin-bottom: 2rem;
  color: #d0e2ea;
}

/* =====================================================
   BUTTONS
   ===================================================== */

.primary-btn {
  display: inline-block;
  background: white;
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
}

.primary-btn:hover {
  background: #e6eef2;
}

/* =====================================================
   PAGE STRUCTURE
   ===================================================== */

.page-header {
  padding: 4rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.page-header.dark {
  background: var(--navy);
  color: white;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--gray-text);
}

.page-header.dark p {
  color: #c9dde6;
}

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.card {
  border: 1px solid #e2e6ea;
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* CONTENT */
.content-section {
  padding: 3rem 2rem;
  max-width: 900px;
  margin: auto;
}

.text-link {
  display: inline-block;
  margin-top: 2rem;
  text-decoration: none;
  color: var(--blue-accent);
}

/* ===============================
  START INVOICE PAGE – REMOVE BULLETS
   =============================== */

.invoice-page .invoice-container ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

.invoice-page .invoice-container li {
  padding-left: 0;
}

/* ===============================
   END INVOICE PAGE – REMOVE BULLETS
   =============================== */

/* =========================================
   ORDERS PAGE – TABLE STYLING (FINAL)
   ========================================= */

.orders-page .submission-results {
  max-width: 1200px;
  width: 100%;
  min-height: 75vh;     /* 👈 makes table area taller by default */
  max-height: 92vh;    
}

.orders-page .table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  margin-top: 1.5rem;
}

/* Base table */
.orders-page table {
  width: 100%;
  min-width: 900px; /* forces horizontal scroll on small screens */
  border-collapse: collapse;
  background: rgba(6, 12, 104, 0.35);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

/* Headers */
.orders-page th {
  background: rgba(31, 126, 168, 0.85);
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

/* Cells */
.orders-page td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

/* Zebra striping */
.orders-page tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

/* Hover highlight */
.orders-page tbody tr:hover {
  background: rgba(31, 126, 168, 0.25);
}

/* Troll column styling */
.orders-page td.troll-response {
  color: #db8605;
  font-weight: 600;
  font-style: italic;
}

/* Mobile tightening */
@media (max-width: 768px) {
  .orders-page th,
  .orders-page td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}

/* Orders page ONLY – troll column */
.orders-page .orders-table th:last-child {
  background: rgba(219, 134, 5, 0.9);
  color: #ffffff;
  font-weight: 700;
  border-left: 2px solid rgba(255, 255, 255, 0.45);
}

.orders-page .orders-table td:last-child {
  background: rgba(219, 134, 5, 0.15);
  color: #ffddaa;
  font-weight: 600;
  font-style: italic;
  border-left: 2px solid rgba(255, 255, 255, 0.35);
}


/* Hover state still readable */
.orders-page table tbody tr:hover td:last-child {
  background: rgba(219, 134, 5, 0.3);
}
/* =========================================
   END ORDERS PAGE – TABLE STYLING
   ========================================= */



/* ===============================
 Start perfect score - results page
=============================== */

.perfect-score {
  background: rgba(31,126,168,0.35);
  font-weight: 700;
  border-left: 4px solid #1f7ea8;
}

/* ===============================
 End perfect score -results page
=============================== */

/* =========================================
   START RESULTS PAGE – TABLE STYLING ONLY
   ========================================= */

.results-page .submission-results {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* Scroll wrapper already exists – reinforce it */
.results-page .table-scroll {
  width: 100%;
  margin-bottom: 2rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Table base */
.results-page table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: rgba(6, 12, 104, 0.35);
  backdrop-filter: blur(6px);
  color: #ffffff;
}

/* ===============================
   RESULTS – THIS WEEK'S ANSWERS TABLE
   =============================== */

/* ===============================
   RESULTS – ANSWERS TABLE (TROLL)
   =============================== */

.results-page .answers-table tr.troll-response {
  background: rgba(219, 134, 5, 0.35);
  border-left: 4px dashed #db8605;
}

/* Question cell */
.results-page .answers-table tr.troll-response td:first-child {
  color: #ffd28a;              /* warm orange */
  font-weight: 700;
}

/* Answer cell */
.results-page .answers-table tr.troll-response td:last-child {
  color: #ffddaa;
  font-weight: 700;
}

/* Optional emphasis if it is last row */
.results-page .answers-table tbody tr:last-child.troll-response {
  background: rgba(219, 134, 5, 0.45);
}

/* ===============================
   RESULTS PAGE – ALLOW HORIZONTAL SCROLL
   =============================== */

.results-page .page-hero {
  overflow-x: visible;
  overflow-y: visible;
}

.results-page th,
.results-page td {
  white-space: nowrap;
}

/* Table headers */
.results-page th {
  background: rgba(31, 126, 168, 0.85);
  color: #ffffff;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Cells */
.results-page th,
.results-page td {
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.75rem 1rem;
  white-space: nowrap;
}

/* Zebra striping */
.results-page tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.06);
}

/* Hover highlight */
.results-page tbody tr:hover {
  background: rgba(31, 126, 168, 0.25);
}

/* Perfect score highlight */
.results-page .perfect-score {
  background: rgba(46, 204, 113, 0.25) !important;
  font-weight: 700;
}

/* Mobile tightening */
@media (max-width: 768px) {
  .results-page th,
  .results-page td {
    padding: 0.6rem;
    font-size: 0.85rem;
  }
}

.results-page .results-actions,
.orders-page .results-actions {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0 2rem;
}

.results-page .generate-btn,
.orders-page .generate-btn {
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  cursor: pointer;
}
/* =========================================
   END RESULTS PAGE – TABLE STYLING ONLY
   ========================================= */

   /* =========================================
   START FUTURES PAGE
   ========================================= */
   .futures-page fieldset.troll-question {
    border: 2px dashed #db8605;
    background: rgba(255, 0, 0, 0.05);
}


/* =========================================
   END FUTURES PAGE
   ========================================= */

   /* ===============================
   RESULTS – SUBMISSIONS TABLE
   =============================== */

.results-page .submissions-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.results-page .submissions-table th {
  background: rgba(31, 126, 168, 0.85);
}

.results-page .submissions-table tr.troll-response {
  background: rgba(219, 134, 5, 0.2);
}

/* ===============================
   RESULTS – SUBMISSIONS MATRIX
   =============================== */

.results-page .submissions-matrix {
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
}

/* Base cell */
.results-page .submissions-matrix td,
.results-page .submissions-matrix th {
  text-align: center;
  white-space: nowrap;
}

/* Investor column */
.results-page .submissions-matrix .investor-name {
  font-weight: 700;
  text-align: left;
}

/* Correct / Incorrect */
.results-page .score-cell.correct {
  background: rgba(46, 204, 113, 0.35); /* green */
  font-weight: 700;
}

.results-page .score-cell.incorrect {
  background: rgba(231, 76, 60, 0.35); /* red */
  font-weight: 700;
}

/* Missing answer */
.results-page .score-cell.missing {
  opacity: 0.4;
}

/* Troll column */
.results-page .troll-column {
  background: rgba(219, 134, 5, 0.85);
}

.results-page .troll-cell.correct {
  background: rgba(219, 134, 5, 0.45);
}

.results-page .troll-cell.incorrect {
  background: rgba(219, 134, 5, 0.25);
}

/* ===============================
   RESULTS – MATRIX TROLL CELLS
   =============================== */

/* Normal correct / incorrect already handled */

/* Troll + Correct */
.results-page .submissions-matrix td.score-cell.correct.troll-cell {
  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.45),
    rgba(219, 134, 5, 0.45)
  );
  font-weight: 800;
}

/* Troll + Incorrect */
.results-page .submissions-matrix td.score-cell.incorrect.troll-cell {
  background: linear-gradient(
    135deg,
    rgba(231, 76, 60, 0.45),
    rgba(219, 134, 5, 0.45)
  );
  font-weight: 800;
}

/* Optional: stronger border for troll column */
.results-page .submissions-matrix td.troll-cell {
  border-left: 2px dashed #db8605;
}

/* ===============================
   RESULTS PAGE – VERTICAL SCROLL FIX
   =============================== */

.results-page .page-hero {
  align-items: flex-start;        /* allow content to grow downward */
  padding-top: 120px;             /* clear fixed navbar */
}

.results-page .submission-results {
  max-height: calc(100vh - 160px); /* viewport minus nav + padding */
  overflow-y: auto;               /* ENABLE vertical scrolling */
  overflow-x: hidden;
}

.results-page .table-scroll {
  overflow-x: auto;
  overflow-y: visible;
}

/* ===============================
   RESULTS – LEADERBOARD
   =============================== */

.results-page .leaderboard-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
}

.results-page .leaderboard-table th {
  background: rgba(31, 126, 168, 0.85);
  font-weight: 700;
}

.results-page .leaderboard-table td,
.results-page .leaderboard-table th {
  text-align: center;
}

.results-page .leaderboard-table td:nth-child(2) {
  text-align: left;
  font-weight: 600;
}

/* ===============================
   YEARLY LEADERBOARD
   =============================== */

.results-page .yearly-leaderboard th {
  background: rgba(60, 160, 100, 0.85); /* green accent */
}

.results-page .yearly-leaderboard td:nth-child(2) {
  font-weight: 700;
}

/* =========================================
   CHRONICLES PAGE – TIMELINE STYLING
   Scoped + League Thursday Theme
   ========================================= */

.chronicles-page {
  color: #d0e2ea;
}

/* ===============================
   FILTER CONTROLS
   =============================== */

.chronicles-page .filters {
  background: rgba(6, 12, 104, 0.35);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.chronicles-page .filters label {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9dde6;
  display: block;
  margin-bottom: 0.35rem;
}

.chronicles-page .filters input {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.1);
  color: #ffffff;
  font-size: 0.9rem;
}

.chronicles-page .filters input::placeholder {
  color: rgba(255,255,255,0.6);
}

/* ===============================
   TIMELINE WRAPPER
   =============================== */

.chronicles-page .timeline {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===============================
   TIMELINE EVENT CARD
   =============================== */

.chronicles-page .event {
  background: rgba(6, 12, 104, 0.35);
  backdrop-filter: blur(6px);
  border-left: 4px solid #1f7ea8;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chronicles-page .event:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

/* ===============================
   EVENT INNER LAYOUT
   =============================== */

.chronicles-page .event-inner {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.chronicles-page .event-text {
  flex: 1;
}

/* ===============================
   EVENT IMAGE
   =============================== */

.chronicles-page .event-image img {
  max-width: 180px;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ===============================
   EVENT TYPOGRAPHY
   =============================== */

.chronicles-page .event-year {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f7ea8;
  letter-spacing: 0.04em;
}

.chronicles-page .event-title {
  font-size: 1.1rem;
  margin: 0.3rem 0 0.5rem;
  font-weight: 600;
  color: #ffffff;
}

.chronicles-page .event-meta {
  font-size: 0.85rem;
  color: #c9dde6;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.chronicles-page .event-description {
  font-size: 0.95rem;
  color: #e6f4fa;
  line-height: 1.55;
}

/* ===============================
   NO RESULTS STATE
   =============================== */

.chronicles-page .no-results {
  text-align: center;
  font-style: italic;
  color: #c9dde6;
  margin-top: 2rem;
  opacity: 0.8;
}

/* ===============================
   MOBILE ADJUSTMENTS
   =============================== */

@media (max-width: 600px) {

  .chronicles-page .event-inner {
    flex-direction: column;
  }

  .chronicles-page .event-image img {
    max-width: 100%;
    width: 100%;
  }

  .chronicles-page .event {
    padding: 1.1rem;
  }
}

/* ================================
       START AUDIBLES PAGE
    ================================= */

  body.audibles-page .page-hero {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.342),
      rgba(0, 0, 0, 0.342)
    ),
    url('../images/chronicles-images/chronicles-bg.png')
    center / cover no-repeat fixed;
}

    .audibles-page .chronicles-wrapper {
      max-width: 900px;
      margin: 0 auto;
      padding: 80px 20px 120px;
    }

    .audibles-page .chronicles-audio {
      text-align: center;
      margin-bottom: 50px;
    }

    .audibles-page .chronicles-audio button {
      background: linear-gradient(145deg, #2a1e14, #1b120b);
      color: #f5e7c6;
      border: 1px solid #6a4a2c;
      padding: 14px 22px;
      font-size: 1rem;
      letter-spacing: 1px;
      cursor: pointer;
      border-radius: 6px;
      margin: 0 6px;
      transition: all 0.25s ease;
    }

    .audibles-page .chronicles-audio button:hover {
      background: #3a2818;
    }

    .audibles-page .chronicles-title {
      text-align: center;
      font-size: 2.4rem;
      letter-spacing: 2px;
      margin-bottom: 10px;
      color: #f5e7c6;
    }

    .audibles-page .chronicles-subtitle {
      text-align: center;
      font-style: italic;
      opacity: 0.85;
      margin-bottom: 60px;
      color: #e0d6c3;
    }

    .audibles-page .chronicles-text {
      font-family: Georgia, serif;
      font-size: 1.05rem;
      line-height: 1.9;
      background: radial-gradient(
        circle at top,
        rgba(28, 20, 13, 0.88),
        rgba(14, 10, 7, 0.88)
      );
      padding: 50px 45px;
      border: 1px solid #3a2a1b;
      box-shadow:
        inset 0 0 60px rgba(0,0,0,0.6),
        0 20px 60px rgba(0,0,0,0.6);
      white-space: pre-line;
      color: #e6e1d6;
      max-height: 40vh;        /* 👈 controls visible height */
      overflow-y: auto;        /* 👈 enables scrollbar */
      overflow-x: hidden;
    }

    @media (max-width: 700px) {
      .audibles-page .chronicles-text {
        padding: 35px 25px;
      }
    }

    /* ================================
       END AUDIBLES PAGE
    ================================= */

/* =====================================================
   START INDEX PAGE — FULL STYLES (SCOPED)
   ===================================================== */

/* ---------- BASE ---------- */

.index-page {
  background: #0b0b0b;
  color: #f4f4f4;
}

/* =====================================================
   HERO (REUSES .page-hero BACKGROUND)
   ===================================================== */

.index-page .page-hero.index-hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  color: #f4f4f4;
}

/* Readability overlay (uniform) */
.index-page .page-hero.index-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

/* Ensure content sits above overlays */
.index-page .page-hero.index-hero > * {
  position: relative;
  z-index: 3;
}

/* ---------- HERO TYPOGRAPHY ---------- */

.index-page .index-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
}

.index-page .index-hero .tagline {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.index-page .index-hero .subtext {
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* =====================================================
   HERO ACTION BUTTONS
   ===================================================== */

.index-page .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.index-page .hero-btn {
  padding: 0.75rem 1.75rem;
  border: 1px solid #f4f4f4;
  color: #f4f4f4;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  transition: all 0.2s ease;
}

.index-page .hero-btn:hover {
  background: #f4f4f4;
  color: #0b0b0b;
}

.index-page .hero-btn.primary {
  background: #f4f4f4;
  color: #0b0b0b;
}

.index-page .hero-btn.primary:hover {
  background: transparent;
  color: #f4f4f4;
}

/* =====================================================
   SHARED SECTION STYLES
   ===================================================== */

.index-page .index-section {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.index-page .index-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =====================================================
   HERO → SECTION FADE TRANSITION
   ===================================================== */

.index-page .page-hero.index-hero::after {
  /* keep your existing overlay */
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.55) 60%,
      rgba(11, 11, 11, 0.9) 85%,
      rgba(11, 11, 11, 1) 100%
    );
}

/* =====================================================
   THIS WEEK
   ===================================================== */

.index-page .this-week .week-card {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.index-page .week-label {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.index-page .week-info {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* =====================================================
   FEATURED CHRONICLE
   ===================================================== */

.index-page .featured-chronicle .chronicle-feature {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.index-page .chronicle-text h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.index-page .chronicle-text p {
  opacity: 0.75;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Center the Chronicle CTA button */
.index-page .featured-chronicle .chronicle-text {
  text-align: center;
}

/* =====================================================
   MOBILE TUNING
   ===================================================== */

@media (max-width: 600px) {
  .index-page .index-hero {
    padding: 3rem 1.25rem;
  }

  .index-page .index-section {
    padding: 4rem 1.25rem;
  }
}

/* =====================================================
   END INDEX PAGE — FULL STYLES (SCOPED)
   ===================================================== */

   /* ================================
   START LEGAL PAGE – APPLICATION LIST
================================ */

/* ==================================================
   LEGAL PAGE – APPLICATIONS + MODAL (FINAL)
================================================== */

/* ---------- Layout Safety ---------- */

body {
  overflow-x: hidden;
}

.legal-page {
  min-height: auto;
}

/* ---------- Applications Grid ---------- */

.legal-page .application-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Tablet */
@media (max-width: 900px) {
  .legal-page .application-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 520px) {
  .legal-page .application-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Titles ---------- */

.legal-page .legal-title {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}

.legal-page .legal-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

/* ---------- Section Containers ---------- */

.legal-page .legal-section {
  margin-bottom: 5rem;
}

.legal-page .legal-section-header {
  margin-bottom: 2.5rem;
}

.legal-page .legal-section-title {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal-page .legal-placeholder {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 3rem;
  color: rgba(255,255,255,0.7);
}

/* ---------- Application Cards ---------- */

.legal-page .application-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid #0A2540;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  color: #0A2540;
  background: #ffffff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.legal-page .application-card:hover {
  background: #0A2540;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ==================================================
   PDF MODAL – HARD FIX (NO WHITE SPACE)
================================================== */

.legal-page .pdf-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  display: none;
  pointer-events: none;   /* 👈 ADD THIS */
}

.legal-page .pdf-modal.active {
  display: block;
  pointer-events: auto;  /* 👈 ADD THIS */
}

.legal-page .pdf-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.legal-page .pdf-modal-content {
  position: relative;
  width: 92%;
  max-width: 1100px;
  height: 90vh;
  margin: 5vh auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.legal-page .pdf-modal iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.legal-page .pdf-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 2rem;
  color: #ffffff;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

/* =========================================
   START LEGAL PAGE
   ========================================= */

.legal-page .page-hero {
  min-height: calc(100vh - 52px); /* subtract ticker height */
  align-items: flex-start;
  padding-top: 120px;   /* navbar clearance */
  padding-bottom: 2rem;
  background-attachment: scroll;
}

.legal-page.page-hero {
  background-attachment: scroll;
}

/* Lock page scroll when PDF modal is open */
body.modal-open {
  overflow: hidden;
}

/* =========================================
   END LEGAL PAGE
   ========================================= */

   /* ===============================
   START TROLLMOMENTS PAGE
   =============================== */

/* =========================================================
   Troll Moments Page (trollmoments.php)
   Scoped 100% to .trollmoments-page
   ========================================================= */

/* ---------- Page Base ---------- */

.trollmoments-page {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  color: #ffffff;
}

/* ---------- Upload Controls ---------- */

.trollmoments-page .upload-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  margin-bottom: 3rem;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;

  background: linear-gradient(
    135deg,
    rgba(30, 80, 160, 0.25),
    rgba(20, 60, 120, 0.18)
  );

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  box-shadow:
    inset 0 0 0 1px rgba(120,170,255,.25),
    0 20px 40px rgba(0,0,0,.45);
}

.trollmoments-page .upload-panel button {
  appearance: none;
  border: none;
  width: 100%;
  max-width: 260px;
  padding: .75rem 1.4rem;
  border-radius: 999px;

  background: linear-gradient(135deg, #1f2f55, #172744);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: .3px;
  cursor: pointer;

  transition: transform .25s ease, box-shadow .25s ease;
}

.trollmoments-page .upload-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,.6);
}

.trollmoments-page #toggleAudio {
  background: linear-gradient(135deg, #2a4ea0, #1c3b7d);
}

/* ---------- Upload Modal ---------- */

.trollmoments-page .modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;

  background: radial-gradient(
    circle at top,
    rgba(0,0,0,.75),
    rgba(0,0,0,.95)
  );
}

.trollmoments-page .modal.hidden {
  display: none;
}

.trollmoments-page .upload-form {
  width: 100%;
  max-width: 460px;
  padding: 2.25rem;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(15, 35, 70, .95),
    rgba(8, 20, 45, .98)
  );

  box-shadow:
    0 35px 90px rgba(0,0,0,.7),
    inset 0 0 0 1px rgba(120,170,255,.25);

  animation: trollModalIn .35s ease;
}

.trollmoments-page .upload-form h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.trollmoments-page .upload-form input[type="text"],
.trollmoments-page .upload-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: .75rem .85rem;

  background: rgba(5, 15, 35, .9);
  border: 1px solid rgba(120,170,255,.3);
  border-radius: 10px;

  color: #ffffff;
}

.trollmoments-page .upload-form textarea {
  resize: vertical;
  min-height: 80px;
}

.trollmoments-page .upload-form input:focus,
.trollmoments-page .upload-form textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120,170,255,.25);
}

.trollmoments-page .upload-form input[type="file"] {
  margin-bottom: 1.25rem;
  color: #d0e0ff;
}

.trollmoments-page .actions {
  display: flex;
  gap: 1rem;
}

.trollmoments-page .actions button {
  flex: 1;
  padding: .75rem;
  border-radius: 999px;
  font-weight: 600;
}

.trollmoments-page .actions button[type="button"] {
  background: transparent;
  border: 1px solid rgba(120,170,255,.4);
}

/* ---------- Media Grid ---------- */

.trollmoments-page .media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  width: 100%;
}

/* ---------- Media Containers ---------- */

.trollmoments-page .media-column {
  max-height: 70vh;
  overflow-y: auto;

  padding: 1.75rem;
  border-radius: 20px;

  background: linear-gradient(
    180deg,
    rgba(30, 80, 160, 0.22),
    rgba(20, 60, 120, 0.15)
  );

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    inset 0 0 0 1px rgba(120,170,255,.25),
    0 25px 60px rgba(0,0,0,.4);
}

/* ---------- Section Headings ---------- */

.trollmoments-page .media-column h2 {
  position: sticky;
  top: 0;
  z-index: 2;

  margin-bottom: 1.25rem;
  padding-bottom: .75rem;

  background: linear-gradient(
    180deg,
    rgba(20,60,120,.95),
    rgba(20,60,120,.85),
    transparent
  );

  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

/* ---------- Media Cards ---------- */

.trollmoments-page .media-card {
  background: rgba(10, 25, 55, .65);
  border: 1px solid rgba(120,170,255,.3);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.25rem;

  transition: transform .25s ease, box-shadow .25s ease;
}

.trollmoments-page .media-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.6);
}

.trollmoments-page .media-card:last-child {
  margin-bottom: 0;
}

.trollmoments-page .media-card video,
.trollmoments-page .media-card audio {
  width: 100%;
  border-radius: 12px;
}

.trollmoments-page .media-card span {
  display: block;
  margin-top: .6rem;
  font-size: .8rem;
  color: rgba(255,255,255,.85);
  word-break: break-word;
}

/* ---------- Scrollbar ---------- */

.trollmoments-page .media-column::-webkit-scrollbar {
  width: 8px;
}

.trollmoments-page .media-column::-webkit-scrollbar-thumb {
  background: rgba(120,170,255,.4);
  border-radius: 8px;
}

/* ---------- Mobile Layout ---------- */

@media (max-width: 900px) {
  .trollmoments-page .media-grid {
    grid-template-columns: 1fr;
  }

  .trollmoments-page .videos { order: 1; }
  .trollmoments-page .audio  { order: 2; }

  .trollmoments-page .media-column {
    max-height: none;
  }
}

/* ---------- Animations ---------- */

@keyframes trollModalIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   Troll Moments — Audio Helper Text
   ========================================= */

.trollmoments-page .audio-helper-text {
  max-width: 420px;
  margin: 0.25rem 0 0.75rem 0;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #ffffff;
  opacity: 0.9;
  font-style: italic; /* 👈 add this */
  text-align: center;
}

   /* ===============================
   END TROLLMOMENTS PAGE
   =============================== */
