/* faq page: own rules from home-sample/faq-sample-6 */
/* =================== Parent FAQ (sample 1) =================== */

  /* Hero: the words on the left; on the right a plain "find an answer" card with the topic list under it */
  .hero--faq .wrap { min-height: min(600px, calc(100vh - 86px)); padding-bottom: 64px; }
  .hero--faq h1 { max-width: 13ch; }
  .find { justify-self: center; width: min(100%, 460px); background: var(--white); border-radius: 26px; padding: 26px 26px 12px; box-shadow: 0 0 0 1px var(--line), 0 34px 60px -44px rgba(76,28,8,.5); }
  .find label { display: block; margin: 0 0 12px; font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.3rem; line-height: 1.25; color: var(--deep); }
  .find-box { position: relative; }
  .find-box svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--warm); pointer-events: none; }
  .find input {
    width: 100%; min-height: 54px; padding: 12px 16px 12px 46px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream, #FFF9F0);
    font: inherit; font-size: 1.05rem; color: var(--deep); -webkit-appearance: none; appearance: none;
  }
  .find input::placeholder { color: var(--warm); opacity: .85; }
  .find input:focus { outline: none; border-color: var(--current); box-shadow: 0 0 0 3px var(--swell); }
  .find-count { min-height: 1.5em; margin: 10px 2px 0; font-size: .95rem; color: var(--warm); }
  .find-count a { color: var(--current); font-weight: 700; text-underline-offset: 3px; }
  .find nav { margin-top: 6px; border-top: 1px solid var(--line); }
  .find nav a { display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: center; padding: 14px 0; text-decoration: none; color: var(--deep); }
  .find nav a + a { border-top: 1px solid var(--line); }
  .find nav strong { font-family: var(--display); font-variation-settings: "SOFT" 100, "opsz" 36; font-weight: 600; font-size: 1.12rem; line-height: 1.25; }
  .find nav .n { font-size: .9rem; color: var(--warm); }
  .find nav svg { width: 18px; height: 18px; color: var(--current); transition: translate .3s var(--ease-out); }
  .find nav a:hover svg { translate: 3px 0; }
  .find nav a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; border-radius: 8px; }
  .motion .find { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease-out) .35s, transform 1.1s var(--ease-out) .35s; }
  .hero-in .find { opacity: 1; transform: none; }

  /* The answers: a slim sticky topic index beside one readable column of questions */
  .answers { padding: 100px 0 96px; }
  .answers .wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; align-items: start; max-width: 1180px; }
  .toc { position: sticky; top: 112px; }
  .toc p { margin: 0 0 10px; font-weight: 700; color: var(--deep); }
  .toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
  .toc a { position: relative; display: block; padding: 8px 0 8px 18px; text-decoration: none; color: var(--warm); line-height: 1.35; transition: color .2s ease; }
  .toc a::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--swell); transform: scaleY(0); transition: transform .3s var(--ease-out); }
  .toc a:hover, .toc a.on { color: var(--deep); }
  .toc a.on { font-weight: 700; }
  .toc a.on::before { transform: none; }
  .toc a:focus-visible { outline: 3px solid var(--swell); outline-offset: 2px; border-radius: 6px; }
  .toc .toc-call { margin: 28px 0 0; font-weight: 400; font-size: .98rem; line-height: 1.55; color: var(--warm); }
  .toc .toc-call a { display: inline; padding: 0; color: var(--current); font-weight: 700; white-space: nowrap; }
  .toc .toc-call a::before { display: none; }

  .faq-group + .faq-group { margin-top: 72px; }
  .faq-group h2 { margin: 0 0 18px; font-size: clamp(1.75rem, 2.8vw, 2.3rem); }
  .faq-group[hidden] { display: none; }

  .qa details { border-bottom: 1px solid var(--line); }   /* anchor offset comes from the site-wide scroll-padding-top */
  .qa details:first-child { border-top: 1px solid var(--line); }
  .qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-weight: 700; font-size: 1.15rem; line-height: 1.35; color: var(--deep); }
  .qa summary::-webkit-details-marker { display: none; }
  /* each question is an h3 (for the page outline and answer engines) but reads like the rest of the row */
  .qa summary h3 { margin: 0; font: inherit; letter-spacing: inherit; color: inherit; }
  .qa summary:hover { color: var(--current); }
  .qa summary:focus-visible { outline: 3px solid var(--swell); outline-offset: 4px; border-radius: 8px; }
  .qa .pm { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--glide-soft); transition: background-color .3s ease, transform .45s var(--ease-out); }
  .qa .pm::before, .qa .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: var(--deep); }
  .qa .pm::after { transform: rotate(90deg); }
  .qa details[open] .pm { background: var(--swell); transform: rotate(45deg); }
  .qa details > div { padding: 0 54px 26px 0; }
  .qa p { margin: 0; font-size: 1.08rem; line-height: 1.65; max-width: 62ch; }
  .qa p + p, .qa p + ul, .qa ul + p { margin-top: 12px; }
  .qa ul { margin: 0; padding: 0 0 0 1.2em; max-width: 62ch; font-size: 1.08rem; line-height: 1.6; }
  .qa ul li + li { margin-top: 4px; }
  .qa .note { font-size: .98rem; color: var(--warm); }
  .qa .link { display: inline-block; margin-top: 12px; font-weight: 700; }
  .qa a { color: var(--current); text-underline-offset: 3px; }
  .no-match { margin: 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--deep); }
  .no-match[hidden] { display: none; }
  /* smooth open/close where the browser supports animating details */
  .motion .qa details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete; }
  .motion .qa details[open]::details-content { block-size: auto; }
  :root { interpolate-size: allow-keywords; }

  @media (prefers-reduced-motion: reduce) { .find nav svg, .toc a::before { transition: none; } }
  @media (max-width: 1000px) {
    .answers .wrap { grid-template-columns: 1fr; gap: 0; max-width: 920px; }
    .toc { display: none; }
  }
  @media (max-width: 820px) {
    .find { width: 100%; justify-self: start; }
  }
  @media (max-width: 560px) {
    .hero--faq .wrap { padding-bottom: 48px; }
    .find { padding: 20px 18px 8px; border-radius: 22px; }
    .answers { padding: 72px 0; }
    .faq-group + .faq-group { margin-top: 56px; }
    .qa summary { font-size: 1.08rem; padding: 20px 0; }
    .qa details > div { padding-right: 0; }
  }
