:root {
  --river-bg: #0c0c0c;
  --river-bg-card: rgba(255, 255, 255, 0.05);
  --river-border: rgba(255, 255, 255, 0.1);
  --river-text: #ffffff;
  --river-text-muted: rgba(255, 255, 255, 0.6);
  --river-text-dim: rgba(255, 255, 255, 0.4);
  --river-accent: #ffda1a;
  --river-radius: 0.5rem;
}

/* ============================================================
   FAQ SECTION ON INDEX.HTML
   ============================================================ */

.river-faq-section {
  max-width: 100%;
  overflow-x: hidden;
  margin-top: 3rem;
  padding: 2rem 1rem 3rem;
  background-color: var(--river-bg);
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .river-faq-section {
    padding: 3rem 2rem 4rem;
  }
}

@media (min-width: 1024px) {
  .river-faq-section {
    padding: 4rem 2.5rem 5rem;
  }
}

/* ---- H1 Hero Title ---- */

.river-faq-section .river-hero-h1 {
  font-size: 2.5rem;
  line-height: 115%;
  letter-spacing: -0.8px;
  font-weight: 700;
  color: var(--river-text);
  margin: 0 0 0.5rem;
  max-width: 800px;
}

@media (min-width: 768px) {
  .river-faq-section .river-hero-h1 {
    font-size: 3.5rem;
    letter-spacing: -1.28px;
  }
}

@media (min-width: 1024px) {
  .river-faq-section .river-hero-h1 {
    font-size: 4rem;
  }
}

.river-faq-section .river-hero-h1 .river-accent-word {
  color: var(--river-accent);
}

.river-faq-section .river-hero-subtitle {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--river-text-muted);
  margin: 0 0 2.5rem;
  max-width: 560px;
}

/* ---- Accordion Items ---- */

.river-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 900px;
}

.river-accordion-item {
  background: var(--river-bg-card);
  border-radius: var(--river-radius);
  border: 1px solid var(--river-border);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.river-accordion-item.is-open {
  border-color: rgba(255, 218, 26, 0.3);
}

.river-accordion-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
  box-sizing: border-box;
}

.river-accordion-question h2 {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--river-text);
  margin: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .river-accordion-question h2 {
    font-size: 1.125rem;
  }
}

.river-accordion-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.river-accordion-item.is-open .river-accordion-icon {
  transform: rotate(180deg);
  color: var(--river-accent);
}

.river-accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.87, 0, 0.13, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.river-accordion-item.is-open .river-accordion-answer {
  max-height: 600px;
  padding-bottom: 1.25rem;
}

.river-accordion-answer h3 {
  font-size: 0.9375rem;
  line-height: 1.7;
  font-weight: 400;
  color: var(--river-text-muted);
  margin: 0;
}

/* ---- Internal Link Buttons ---- */

.river-internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
  align-items: center;
}

.river-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1.25rem;
  border-radius: 1000px;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.15px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (min-width: 768px) {
  .river-link-btn {
    padding: 0.625rem 1.5rem;
    font-size: 1rem;
  }
}

.river-link-btn-primary {
  background-color: #ffffff;
  color: #0c0c0c;
  border: none;
}

.river-link-btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.river-link-btn-primary:active {
  background-color: rgba(255, 255, 255, 0.6);
}

.river-link-btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: none;
}

.river-link-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.river-link-btn-secondary:active {
  background-color: rgba(255, 255, 255, 0.3);
}

/* ============================================================
   FAQ PAGE: faq/index.html
   ============================================================ */

.river-page {
  min-height: 100vh;
  background-color: var(--river-bg);
  color: var(--river-text);
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

.river-page-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--river-border);
  box-sizing: border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background-color: rgba(12, 12, 12, 0.8);
  position: sticky;
  top: 0;
  z-index: 50;
}

@media (min-width: 768px) {
  .river-page-header {
    padding: 1.25rem 2.5rem;
  }
}

.river-page-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--river-text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}

.river-page-logo img {
  width: 24px;
  height: 24px;
}

.river-page-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.river-page-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .river-page-main {
    padding: 4rem 2rem 6rem;
  }
}

.river-page-hero {
  margin-bottom: 3rem;
}

.river-page-h1 {
  font-size: 2.5rem;
  line-height: 115%;
  letter-spacing: -0.8px;
  font-weight: 700;
  color: var(--river-text);
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .river-page-h1 {
    font-size: 3rem;
    letter-spacing: -1px;
  }
}

.river-page-h1 .river-accent-word {
  color: var(--river-accent);
}

.river-page-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--river-text-muted);
  margin: 0;
  max-width: 640px;
}

.river-section-title {
  font-size: 1.375rem;
  line-height: 115%;
  letter-spacing: -0.4px;
  font-weight: 600;
  color: var(--river-text);
  margin: 0 0 1.25rem;
}

@media (min-width: 768px) {
  .river-section-title {
    font-size: 1.625rem;
  }
}

.river-faq-full {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.river-faq-full .river-accordion-item {
  max-width: 100%;
}

/* ---- Prose content blocks ---- */

.river-prose {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--river-text-muted);
}

.river-prose p {
  margin: 0 0 1rem;
}

.river-prose p:last-child {
  margin-bottom: 0;
}

.river-prose ul {
  margin: 0.5rem 0 1rem 1.25rem;
  padding: 0;
  list-style: disc;
}

.river-prose li {
  margin-bottom: 0.375rem;
}

.river-prose strong {
  color: var(--river-text);
  font-weight: 600;
}

/* ---- Page footer nav ---- */

.river-page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--river-border);
  align-items: center;
}

.river-page-footer-text {
  font-size: 0.875rem;
  color: var(--river-text-dim);
  margin: 0;
}

/* ============================================================
   ABOUT PAGE: about/index.html
   ============================================================ */

.river-about-section {
  margin-bottom: 3rem;
}

.river-about-section + .river-about-section {
  padding-top: 2rem;
  border-top: 1px solid var(--river-border);
}

.river-about-card {
  background: var(--river-bg-card);
  border: 1px solid var(--river-border);
  border-radius: var(--river-radius);
  padding: 1.5rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .river-about-card {
    padding: 2rem;
  }
}

.river-about-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--river-text);
  margin: 0 0 0.75rem;
  line-height: 1.4;
}

.river-about-card-text {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--river-text-muted);
  margin: 0;
}

.river-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .river-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .river-cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.river-stat-card {
  background: var(--river-bg-card);
  border: 1px solid var(--river-border);
  border-radius: var(--river-radius);
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.river-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--river-accent);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.river-stat-label {
  font-size: 0.875rem;
  color: var(--river-text-muted);
  line-height: 1.4;
}

.river-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .river-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.river-team-card {
  background: var(--river-bg-card);
  border: 1px solid var(--river-border);
  border-radius: var(--river-radius);
  padding: 1.25rem 1.5rem;
  box-sizing: border-box;
}

.river-team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--river-text);
  margin: 0 0 0.25rem;
}

.river-team-role {
  font-size: 0.875rem;
  color: var(--river-accent);
  margin: 0 0 0.5rem;
}

.river-team-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--river-text-muted);
  margin: 0;
}

/* ============================================================
   SHARED UTILITY OVERRIDES
   ============================================================ */

.river-divider {
  border: none;
  border-top: 1px solid var(--river-border);
  margin: 2rem 0;
}

.river-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 1000px;
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(255, 218, 26, 0.15);
  color: var(--river-accent);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.river-text-accent {
  color: var(--river-accent);
}

.river-text-muted {
  color: var(--river-text-muted);
}