/* ---------------------------------------------------------------------------
   Footer FAQ — global block rendered by the mu-plugin `xinya-faq.php`
   Loaded on every page, just above the quote banner and the site footer.
   --------------------------------------------------------------------------- */

.shx-faq { border-top: 1px solid var(--line); }

.shx-faq__head { margin-bottom: 26px; }

.shx-faq__grid {
  display: grid;
  gap: 10px 32px;
  grid-template-columns: minmax(0, 1fr);
}

.shx-faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.shx-faq__item:hover { border-color: var(--navy); }

.shx-faq__item[open] {
  border-color: var(--navy);
  box-shadow: 0 1px 0 rgba(10, 31, 51, .05);
}

.shx-faq__q {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}

.shx-faq__q::-webkit-details-marker { display: none; }
.shx-faq__q::marker { content: ""; }

.shx-faq__num {
  flex: 0 0 20px;
  padding-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--muted);
}

.shx-faq__qt {
  flex: 1 1 auto;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.shx-faq__item[open] .shx-faq__qt { color: var(--navy); }

.shx-faq__mark {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  width: 14px;
  height: 14px;
}

.shx-faq__mark::before,
.shx-faq__mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--accent);
  transition: transform .2s ease, opacity .2s ease;
}

.shx-faq__mark::after { transform: rotate(90deg); }

.shx-faq__item[open] .shx-faq__mark::after {
  transform: rotate(0deg);
  opacity: 0;
}

.shx-faq__a {
  /* 18 (card padding) + 20 (number column) + 14 (gap) — aligns with the question text */
  padding: 0 18px 17px 52px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
}

.shx-faq__a p { margin: 0; max-width: 74ch; }

.shx-faq__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

.shx-faq__link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.shx-faq__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (min-width: 900px) {
  .shx-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  /* Odd number of items: let the last one run full width so no gap is left. */
  .shx-faq__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .shx-faq__q { padding: 13px 14px; gap: 10px; }
  .shx-faq__qt { font-size: 14.5px; }
  .shx-faq__a { padding: 0 14px 15px 44px; font-size: 14px; }
  .shx-faq__foot { margin-top: 22px; }
  .shx-faq__foot .shx-btn { width: 100%; text-align: center; }
}
