/* CALIBRE Play - FAQ (/faq/). Template: parent page-faq.php, wrapped by the child
   page-faq.php, which adds the search box (.faq-find) and turns each .faqi into a
   <details> item. The no-JavaScript layout (h2 + p straight inside .faqi) is styled too. */

html body .wrap { width: 100%; max-width: 780px; padding: 36px 22px 96px; }
html body .wrap > h1 { font-size: clamp(34px, 6.4vw, 54px); line-height: 1.04; margin: 0 0 12px; }
html body .wrap > .lede { color: var(--play-muted); font-size: 17px; line-height: 1.55; margin: 0 0 24px; max-width: 52ch; }

/* ── search + open all */
html body .faq-find { margin: 0 0 16px; }
html body .faq-find label { display: block; font: 800 12px/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--play-muted); margin: 0 0 9px; }
html body .faq-find-row { display: flex; gap: 10px; }
html body .faq-find input[type="search"] {
  flex: 1; min-width: 0; height: 52px; margin: 0; padding: 0 14px 0 46px; font: 600 16px/1 var(--f-body);
  border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--play-water) 45%, var(--play-card-2));
  background: var(--play-card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236f9de0' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 15px 50% / 20px 20px;
  -webkit-appearance: none; appearance: none;
}
html body .faq-find input[type="search"]::-webkit-search-cancel-button { filter: invert(.8); }
html body .faq-all {
  flex: none; height: 52px; padding: 0 16px; border-radius: 12px; cursor: pointer;
  background: var(--play-card); color: var(--play-ink); border: 1.5px solid var(--play-line);
  font: 700 14px/1 var(--f-body); box-shadow: 0 4px 0 rgba(0, 0, 0, .35);
}
html body .faq-all:hover { border-color: var(--play-muted); }
html body .faq-all:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
html body .faq-count { margin: 8px 2px 0; min-height: 0; font: 500 13px/1.3 var(--f-data); color: var(--play-muted); }
html body .faq-count:empty { display: none; }
html body .faq-none { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; font-size: 15px; color: var(--play-ink);
  background: color-mix(in srgb, var(--play-electric) 12%, var(--play-card)); border: 1px solid color-mix(in srgb, var(--play-electric) 45%, var(--play-card)); }
html body .faq-none[hidden] { display: none; }

/* ── question cards; each takes a type colour for its outline and arrow */
html body .wrap > .faqi { --tone: var(--play-water); }
html body .wrap > .faqi:nth-of-type(4n+2) { --tone: var(--play-grass); }
html body .wrap > .faqi:nth-of-type(4n+3) { --tone: var(--play-psychic); }
html body .wrap > .faqi:nth-of-type(4n) { --tone: var(--play-electric); }
html body .wrap > .faqi {
  border: 1px solid var(--play-line); border-radius: 14px; background: var(--play-card); padding: 0; margin: 0 0 10px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35); scroll-margin-top: 90px; transition: border-color .15s, background-color .15s;
}
html body .wrap > .faqi:first-of-type { border-top: 1px solid var(--play-line); }
html body .wrap > .faqi[hidden] { display: none; }
html body .faqi h2 { font: 800 17px/1.35 var(--f-body); letter-spacing: 0; color: var(--play-ink); margin: 0; text-wrap: pretty; }
html body .faqi p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #d4d5ea; max-width: 64ch; }
html body .faqi a { color: var(--play-fire-ink); }
/* no-JavaScript layout */
html body .wrap > .faqi > h2 { padding: 16px 18px 0; }
html body .wrap > .faqi > p { padding: 8px 18px 18px; }
/* expandable layout */
html body .faqi summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 15px 18px; min-height: 58px; border-radius: 13px; }
html body .faqi summary::-webkit-details-marker { display: none; }
html body .faqi summary h2 { flex: 1; min-width: 0; }
html body .faqi summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin: 0 6px 5px 0;
  border-right: 2.5px solid var(--tone); border-bottom: 2.5px solid var(--tone); transform: rotate(45deg); transition: transform .2s ease;
}
html body .faqi details[open] > summary::after { transform: translateY(5px) rotate(-135deg); }
html body .faqi summary:hover { background: rgba(255, 255, 255, .03); }
html body .faqi summary:hover h2 { color: #fff; }
html body .faqi summary:focus-visible { outline: 3px solid var(--play-water); outline-offset: 2px; }
html body .faqi .faqa { padding: 0 18px 18px; }
html body .wrap > .faqi:has(details[open]) {
  background: color-mix(in srgb, var(--tone) 8%, var(--play-card));
  border-color: color-mix(in srgb, var(--tone) 55%, var(--play-card));
}

/* ── call to action: soft ghost-type panel, orange button */
html body .wrap > .cta {
  margin-top: 36px; padding: 24px; text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 22px;
  background: color-mix(in srgb, var(--play-ghost) 28%, var(--play-card)); border: 1.5px solid color-mix(in srgb, var(--play-ghost) 65%, var(--play-card));
  border-radius: 20px; box-shadow: 0 6px 0 rgba(0, 0, 0, .45);
}
html body .wrap > .cta > div { font: 400 clamp(22px, 3.6vw, 28px)/1.15 var(--f-display); color: var(--play-ink); max-width: 18ch; }
html body .wrap > .cta a {
  margin: 0; display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 12px; text-decoration: none;
  background: var(--play-fire); color: var(--play-on); font: 800 16px/1 var(--f-body); border: 2px solid rgba(0, 0, 0, .25); box-shadow: var(--play-shadow);
}
html body .wrap > .cta a:hover { background: #f18566; color: var(--play-on); }
html body .wrap > .cta a:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .45); }

/* ── small links at the end */
html body .legal-nav { margin-top: 40px; padding-top: 10px; border-top: 1px solid var(--play-line); display: flex; flex-wrap: wrap; gap: 0 22px; font-size: 14px; }
html body .legal-nav a { margin: 0; min-height: 44px; display: inline-flex; align-items: center; color: var(--play-muted); text-decoration: none; font-weight: 600; }
html body .legal-nav a:hover { color: var(--play-ink); text-decoration: underline; }

@media (max-width: 480px) {
  html body .wrap { padding-top: 28px; }
  html body .faq-all { padding: 0 12px; }
  html body .faqi summary { padding: 14px 15px; }
  html body .faqi .faqa { padding: 0 15px 16px; }
  html body .wrap > .cta { padding: 20px; }
  html body .wrap > .cta a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html body .faqi summary::after, html body .wrap > .faqi { transition: none; }
}

html body .faq-find input[type="search"]::placeholder { color: #8f92b8; opacity: 1; }   /* 4.7:1 on the input fill */
