/* FAQ — same sand page treatment as News */
.page-faq {
  --f-sand: #EFE1D5;
  --f-cream: #EFE1D5;
  --f-champagne: #EDC18B;
  --f-gold: #CA8627;
  --f-amber: #AF6A19;
  --f-brown: #896741;
  --f-sand-mid: #C6AC8D;
  --f-ink: #090909;
  --f-ease: cubic-bezier(.2, .8, .2, 1);
  background: var(--f-sand);
  color: var(--f-ink);
}
.page-faq .site-footer { --footer-curve: clamp(72px, 12vw, 120px); }
.page-faq .footer-curve { top: -2px; }
.page-faq .site-footer .footer-curve path { fill: var(--f-sand); }
.page-faq .site-header,
.page-faq .site-header.is-scrolled {
  background: rgba(10, 10, 10, .94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  border-bottom: 1px solid rgba(238, 192, 141, .2);
}
.faq-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent calc(100% - 180px), var(--f-sand) 100%),
    radial-gradient(circle at 92% 2%, rgba(237, 193, 139, .6), transparent 32%),
    radial-gradient(circle at 0% 42%, rgba(202, 134, 39, .14), transparent 34%),
    var(--f-sand);
  color: var(--f-ink);
  padding: calc(102px + clamp(2.2rem, 4.5vw, 4rem)) 0 clamp(4.5rem, 8vw, 7rem);
}
.faq-page a { color: inherit; }
.faq-inner {
  position: relative;
  z-index: 1;
  width: min(1920px, calc(100% - clamp(1.5rem, 3vw, 3rem)));
  margin: 0 auto;
}

.faq-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.faq-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0 0 .55rem;
  font-family: var(--font);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--f-brown);
}
.faq-kicker span {
  position: relative;
  width: clamp(1.7rem, 4vw, 2.65rem);
  height: 1px;
  background: currentColor;
  opacity: .8;
}
.faq-kicker span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.faq-title {
  margin: 0;
  font-family: var(--font-th);
  font-size: clamp(1.85rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--f-ink);
}
.faq-rule {
  display: block;
  width: 3.15rem;
  height: 3px;
  margin: .75rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--f-amber) 18%, var(--f-champagne) 50%, var(--f-gold) 82%, transparent);
  box-shadow: 0 0 10px rgba(202, 134, 39, .45);
}
.faq-sub {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  font-family: var(--font-th);
  font-size: clamp(.88rem, 1.1vw, 1rem);
  line-height: 1.75;
  color: var(--f-brown);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 112px;
  padding: 1.15rem 1rem 1rem;
  border-radius: 22px;
  background: #fffaf4;
  border: 1px solid rgba(198, 172, 141, .45);
  box-shadow: 0 14px 34px rgba(137, 103, 65, .08);
}
.faq-side-title {
  margin: .15rem .45rem .7rem;
  font-family: var(--font-th);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--f-ink);
}
.faq-cats { display: flex; flex-direction: column; gap: .15rem; }
.faq-cat {
  display: flex;
  align-items: center;
  gap: .7rem;
  width: 100%;
  min-height: 46px;
  padding: .55rem .8rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--f-ink);
  font-family: var(--font-th);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.faq-cat-icon,
.faq-panel-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-cat-icon { width: 28px; height: 28px; }
.faq-cat-icon img,
.faq-panel-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.faq-cat-label { min-width: 0; }
.faq-cat-name,
.faq-cat-count { display: inline; }
.faq-cat-count {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.faq-cat:hover:not(.is-active) { background: rgba(175, 106, 25, .1); }
.faq-cat.is-active {
  background: var(--f-amber);
  color: #fff;
  box-shadow: 0 8px 16px rgba(175, 106, 25, .28);
}
.faq-cat.is-active .faq-cat-icon img {
  filter: brightness(0) invert(1);
}
.faq-cat:focus-visible,
.faq-item summary:focus-visible,
.faq-search input:focus-visible {
  outline: 2px solid var(--f-amber);
  outline-offset: 2px;
}

.faq-board { position: relative; }
.faq-search {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: min(280px, 32%);
}
.faq-search svg {
  position: absolute;
  left: .85rem;
  top: 50%;
  width: 15px;
  height: 15px;
  color: var(--f-brown);
  transform: translateY(-50%);
  pointer-events: none;
}
.faq-search input {
  width: 100%;
  height: 40px;
  padding: 0 .9rem 0 2.3rem;
  border: 1px solid rgba(198, 172, 141, .7);
  border-radius: 12px;
  background: #fff;
  color: var(--f-ink);
  font-family: var(--font-th);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-search input:focus {
  border-color: var(--f-gold);
  box-shadow: 0 0 0 3px rgba(202, 134, 39, .2);
}

.faq-group[hidden],
.faq-item[hidden] { display: none !important; }
.faq-panel-head {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 40px;
  margin: 0 0 1rem;
  padding-right: min(300px, 36%);
  font-family: var(--font-th);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--f-ink);
}
.faq-panel-icon { width: 32px; height: 32px; }
.faq-panel-title { min-width: 0; }
.faq-list { display: flex; flex-direction: column; gap: .7rem; }

.faq-item {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(198, 172, 141, .4);
  box-shadow: 0 8px 22px rgba(137, 103, 65, .08);
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .95rem 1.1rem;
  list-style: none;
  cursor: pointer;
  font-family: var(--font-th);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--f-ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-q { flex: 1 1 auto; }
.faq-mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-family: var(--font);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1;
}
.faq-mark-q { background: var(--f-ink); color: var(--f-cream); }
.faq-mark-a { background: var(--f-gold); color: #fff; }
.faq-chevron {
  flex: none;
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--f-brown);
}
.faq-chevron svg {
  width: 18px;
  height: 18px;
  transition: transform .2s ease;
}
.faq-item[open] .faq-chevron svg { transform: rotate(180deg); }

.faq-answer {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .15rem 1.1rem 1.05rem;
}
.faq-answer-body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: .15rem;
  font-family: var(--font-th);
  font-size: clamp(1.05rem, 1.2vw, 1.18rem);
  line-height: 1.75;
  color: var(--f-brown);
}
.faq-answer-body > :first-child { margin-top: 0; }
.faq-answer-body p { margin: 0 0 .75rem; }
.faq-answer-body p:last-child,
.faq-answer-body ul:last-child,
.faq-answer-body ol:last-child { margin-bottom: 0; }
.faq-answer-body ul,
.faq-answer-body ol { margin: .35rem 0 .8rem 1.2rem; }
.faq-answer-body a { color: var(--f-amber); text-decoration: underline; text-underline-offset: .15em; }
.faq-answer-body a:hover { color: var(--f-ink); }
.faq-answer-body img {
  max-width: 100%;
  height: auto;
  margin: .6rem 0;
  border-radius: 12px;
}
.faq-answer-body h2,
.faq-answer-body h3,
.faq-answer-body h4 {
  margin: .9rem 0 .4rem;
  font-size: 1rem;
  color: var(--f-ink);
}

.faq-empty {
  display: none;
  margin: 1.5rem 0 0;
  padding: 1.4rem 1.2rem;
  border-radius: 16px;
  background: rgba(255, 253, 249, .7);
  text-align: center;
  font-family: var(--font-th);
  color: var(--f-brown);
}
.faq-empty.is-visible { display: block; }

@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .faq-search {
    position: static;
    width: 100%;
    margin-bottom: .9rem;
  }
  .faq-panel-head { padding-right: 0; }
  .faq-item summary,
  .faq-answer { padding-left: .9rem; padding-right: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-cat,
  .faq-chevron svg { transition: none; }
}
