/* FAQ page — institutional layout, grouped accordions */

body.faq-page {
  background: var(--bg-0);
  color: var(--t2);
}

/* Hero */
.faq-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--b1);
  background:
    radial-gradient(ellipse 100% 70% at 50% -20%, rgba(201, 168, 76, 0.12), transparent 58%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}
.faq-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 180, 73, 0.35), transparent);
  pointer-events: none;
}
.faq-hero-in {
  position: relative;
  padding: 88px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
}
.faq-hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--t1);
  margin-top: 18px;
  max-width: none;
  text-wrap: balance;
}
.faq-hero h1 em {
  font-style: normal;
  color: inherit;
}
.faq-hero-lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--t2);
  max-width: 52ch;
  margin-top: 18px;
}
.faq-hero-aside {
  display: grid;
  gap: 14px;
}
.faq-hero-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--b2);
  border-radius: 10px;
  background: rgba(17, 21, 28, 0.72);
  backdrop-filter: blur(8px);
}
.faq-hero-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.faq-hero-card strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 6px;
}
.faq-hero-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--t3);
  margin: 0;
}
.faq-hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.faq-hero-cta .btn-ghost {
  box-shadow: inset 0 0 0 1px rgba(224, 180, 73, 0.35);
  color: var(--t1);
}

/* Shell */
.faq-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 56px 32px 96px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: clip;
}

/* Category nav */
.faq-nav {
  position: sticky;
  top: 84px;
}
.faq-nav-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t4);
  margin-bottom: 14px;
}
.faq-nav-list {
  list-style: none;
  border-left: 1px solid var(--b1);
}
.faq-nav-list a {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--t3);
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease;
}
.faq-nav-list a:hover,
.faq-nav-list a.is-active {
  color: var(--t1);
  border-left-color: var(--gold);
}
.faq-nav-list .c {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--t4);
  margin-left: 6px;
}

/* Search */
.faq-searchwrap {
  position: sticky;
  top: 64px;
  z-index: 200;
  border-bottom: 1px solid var(--b1);
  background: rgba(11, 14, 19, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.faq-searchwrap-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
}
.faq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  height: 48px;
  border: 1px solid var(--b2);
  border-radius: 10px;
  background: var(--bg-2);
}
.faq-search svg {
  width: 18px;
  height: 18px;
  color: var(--t4);
  flex-shrink: 0;
}
.faq-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--t1);
  font-family: var(--font);
  font-size: 15px;
  outline: none;
}
.faq-search input::placeholder { color: var(--t4); }
.faq-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--t3);
  cursor: pointer;
}
.faq-search-clear.show { display: inline-flex; }
.faq-search-clear svg { width: 16px; height: 16px; }
.faq-search-meta {
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--t4);
}
.faq-search-meta b { color: var(--t2); }

.faq-card.is-hidden,
.faq-section.is-hidden { display: none; }

.faq-empty {
  display: none;
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--b2);
  border-radius: 12px;
  margin-top: 24px;
}
.faq-empty.show { display: block; }
.faq-empty svg {
  width: 40px;
  height: 40px;
  color: var(--t4);
  margin-bottom: 16px;
}
.faq-empty h3 {
  font-size: 1.2rem;
  color: var(--t1);
  margin-bottom: 8px;
}
.faq-empty p {
  font-size: 15px;
  color: var(--t2);
  margin-bottom: 20px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.faq-hl {
  background: var(--gold-dim);
  color: var(--t1);
  border-radius: 2px;
  padding: 0 2px;
}

/* Sections */
.faq-main {
  min-width: 0;
}
.faq-section {
  scroll-margin-top: 88px;
  margin-bottom: 48px;
}
.faq-section:last-child {
  margin-bottom: 0;
}
.faq-section-head {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--b1);
}
.faq-section-num {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.faq-section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 600;
  color: var(--t1);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.faq-section-intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--t2);
  margin-top: 10px;
  max-width: 62ch;
}
.faq-section-intro a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Accordion cards */
.faq-stack {
  display: grid;
  gap: 10px;
}
.faq-card {
  border: 1px solid var(--b1);
  border-radius: 10px;
  background: var(--bg-2);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.faq-card:hover {
  border-color: var(--b2);
}
.faq-card[open] {
  border-color: rgba(224, 180, 73, 0.28);
  box-shadow: 0 0 0 1px rgba(224, 180, 73, 0.08);
}
.faq-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--t1);
  user-select: none;
}
.faq-card summary::-webkit-details-marker {
  display: none;
}
.faq-card summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--b2);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  margin-top: 1px;
  transition: transform 0.16s ease, background 0.16s ease;
}
.faq-card[open] summary::after {
  content: "−";
  background: var(--gold-dim);
}
.faq-card-body {
  padding: 0 20px 20px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--t2);
  max-width: 72ch;
}
.faq-card-body p {
  margin: 0 0 12px;
}
.faq-card-body p:last-child {
  margin-bottom: 0;
}
.faq-card-body a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq-card-body a:hover {
  color: var(--t1);
}
.faq-card-body ul {
  margin: 0 0 12px;
  padding-left: 1.1rem;
}
.faq-card-body li {
  margin-bottom: 6px;
}
.faq-card-body li:last-child {
  margin-bottom: 0;
}

/* Bottom CTA */
.faq-bottom-cta {
  margin-top: 56px;
  padding: 28px 32px;
  border: 1px solid var(--b2);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(224, 180, 73, 0.08), transparent 55%),
    var(--bg-2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-bottom-cta h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.faq-bottom-cta p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--t2);
  max-width: 46ch;
  margin: 0;
}
.faq-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .faq-hero-in {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 72px 0 56px;
  }
  .faq-hero h1 {
    max-width: none;
  }
  .faq-shell {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 40px;
  }
  .faq-nav {
    position: static;
  }
  .faq-nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-left: none;
  }
  .faq-nav-list a {
    padding: 8px 12px;
    margin-left: 0;
    border: 1px solid var(--b1);
    border-radius: 999px;
    border-left: 1px solid var(--b1);
    font-size: 12px;
  }
  .faq-nav-list a.is-active {
    border-color: rgba(224, 180, 73, 0.35);
    background: var(--gold-dim);
  }
}

@media (max-width: 640px) {
  .faq-shell,
  .faq-searchwrap-in {
    padding-left: 20px;
    padding-right: 20px;
  }
  .faq-card summary {
    font-size: 15px;
    padding: 16px;
  }
  .faq-card-body {
    padding: 0 16px 16px;
    font-size: 14px;
  }
  .faq-bottom-cta {
    padding: 22px 20px;
  }
}
