/* FAQ page (templates/site/faq.html). The questions themselves use .acc-item from site.css. */

/* search box inside the blue hero */
.fq-search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(600px, 100%);
  height: 58px;
  margin: 34px auto 0;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  box-shadow: 0 26px 50px -24px rgba(2, 16, 38, 0.7);
  transition: box-shadow 0.2s;
}
.fq-search:focus-within { box-shadow: 0 26px 50px -24px rgba(2, 16, 38, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.35); }
.fq-search svg { width: 21px; height: 21px; flex: none; color: var(--blue); }
.fq-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16.5px; }
.fq-search input::placeholder { color: var(--muted-2); }

.fq-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }

/* topics on the side, the one you're reading is marked */
.fq-groups { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); }
.fq-groups a {
  padding: 10px 14px;
  border-radius: 11px;
  color: var(--text);
  font: 500 15px/1.4 var(--font-head);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.fq-groups a:hover { background: var(--bg-alt); color: var(--ink); }
.fq-groups a.is-on { background: var(--blue-soft); color: var(--blue); }

.fq-group { margin-bottom: 48px; }
.fq-group:last-of-type { margin-bottom: 0; }
.fq-group h2 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 23px; font-weight: 600; }
.fq-group h2::before { content: ""; width: 4px; height: 22px; border-radius: 4px; background: var(--grad); }
.acc-item mark { padding: 0 2px; border-radius: 4px; background: color-mix(in oklab, var(--blue) 20%, transparent); color: inherit; }
.fq-none { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--text); font-size: 16.5px; text-align: center; }

@media (max-width: 991px) {
  .fq-layout { grid-template-columns: 1fr; gap: 24px; }
  .fq-groups {
    position: sticky;
    top: var(--header-h);
    z-index: 5;
    display: flex;
    gap: 6px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 10px var(--gutter);
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg);
    scrollbar-width: none;
  }
  .fq-groups a { flex: none; padding: 7px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14.5px; }
  .fq-groups a.is-on { border-color: transparent; background: var(--grad); color: #fff; }
}
@media (max-width: 575px) {
  .fq-search { height: 54px; }
  .acc-item summary { padding: 16px 16px; font-size: 16px; }
  .acc-body > div { padding: 0 16px 18px; }
}
