/* FAQ PAGE ONLY */
@font-face {
  font-family: "Hobo";
  src: url("../fonts/HoboBT.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Base */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(ellipse at top,
      rgba(255, 0, 180, 0.15) 0%,
      transparent 45%),
    radial-gradient(ellipse at bottom,
      rgba(100, 255, 80, 0.18) 0%,
      transparent 55%),
    linear-gradient(180deg,
      #22003f 0%,
      #3a0068 30%,
      #5a0b8c 65%,
      #7be15a 100%);

  background-attachment: fixed;
}


/* Container */
.faq-container {
  width: min(92vw, 920px);
  margin: 0 auto;
  /* padding: 25px 18px 80px; */
}

/* Title image: sticky header */
.faq-title-img {
  display: block;
  margin: 62px auto 18px;
  max-width: 160px;
  height: auto;

  /* position: sticky; */
  /* top: 92px; */
  /* sits under fixed nav */
  z-index: 3;

  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.25));
}

/* Scroll region for Q&A (scrolls behind and fades) */
.faq-scroll {
  max-height: calc(100svh - 240px);
  overflow: auto;
  padding: 10px 0 0;
  -webkit-overflow-scrolling: touch;

  /* default: NO fade on load */
  -webkit-mask-image: none;
  mask-image: none;
}

/* only fade once user scrolls */
.faq-scroll.is-scrolled {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 100%);
}

.faq-category {
  color: #ffd83d;
  font-size: 1.25rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 2.2rem 0 0.8rem;
  padding-left: 0.1rem;
  font-family: "Hobo", sans-serif;
}

.faq-category:first-of-type {
  margin-top: 0;
}

/* Make FAQs readable on the busy BG */
.faq-list {
  background: rgba(54, 16, 92, 0.78);
  border: 2px solid rgba(255, 216, 0, 0.22);
  border-radius: 22px;
  padding: 28px 22px;
  /* backdrop-filter: blur(6px); */
}

/* Item spacing */
.faq-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Question row */
.faq-question {
  list-style: none;
  cursor: pointer;

  font-weight: 750;
  font-size: clamp(18px, 2.6vw, 22px);
  color: #5fe93e;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

/* Remove default marker */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  content: "";
}

/* Add + / – indicator */
.faq-question::after {
  content: "+";
  color: #ffd800;
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
  opacity: 0.9;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

/* Answer */
.faq-answer {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 70ch;
}

/* Link color (and hover for clarity) */
.faq-answer a {
  color: #ffd800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-answer a:hover {
  color: #00d01c;
}

/* search  */
.faq-search {
  width: min(860px, 90vw);
  display: block;
  margin: 0 auto 1.5rem;
  padding: 14px 20px;
  border-radius: 999px;
  border: 2px solid #4cff25;
  background: rgba(58, 10, 90, 0.8);
  color: white;
  font-size: 1rem;
  outline: none;
}

.faq-search::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.faq-search:focus {
  box-shadow: 0 0 0 3px rgba(76, 255, 37, 0.25);
}

.faq-no-results {
  display: none;
  text-align: center;
  color: white;
  padding: 3rem 1.5rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  cursor: pointer;
  background:
    linear-gradient(45deg, transparent 43%, #4cff25 43%, #4cff25 57%, transparent 57%),
    linear-gradient(-45deg, transparent 43%, #4cff25 43%, #4cff25 57%, transparent 57%);
}

/* Mobile */
@media (max-width: 600px) {
  .faq-title-img {
    max-width: 170px;
    /* slightly bigger */
    /* margin-bottom: 14px;
    top: 78px; */
    /* nav tends to be shorter on mobile */
  }

  .faq-scroll {
    max-height: calc(100svh - 215px);
  }
}

/* Small mobile tuning */
@media (max-width: 420px) {
  body {
    padding-top: 96px;
  }

  .faq-list {
    padding: 22px 16px;
    border-radius: 18px;
  }

  .faq-scroll {
    max-height: calc(100svh - 205px);
  }
}

.rotate-device {
  display: none;
}

@media (orientation: landscape) and (max-width: 1024px) {
  .rotate-device {
    display: flex;
    position: fixed;
    inset: 0;
    background: #2a004a;
    z-index: 99999;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }

  .rotate-message {
    color: #ffe600;
    font-size: 2rem;
    font-family: "Hobo BT", sans-serif;
  }

  body {
    overflow: hidden;
  }
}


@media (min-width: 420px) and (max-width: 440px) and (min-height: 880px) {
  .faq-container {
    padding-top: 145px;
  }

  .faq-title-img {
    margin-top: 18px;
  }
}