/* Homepage FAQ: the questions on the left, each marked with a small logo V,
   and the chosen answer in a night-blue panel on the right that crossfades
   when you pick another question. As the section arrives the two columns
   slide in from the sides and each V draws itself; the chosen question's V
   fills with the logo colours. Phones: an accordion with the same V marks.
   faq.js builds this from the plain list (which stays as is without JS).
   Chosen in faq-lab.html (option 3, with V marks). */
section.vh-faq.fq-on { padding-top: 32px; border-top: 0; --p: 1; }
/* Pulled up into the empty lower part of the chapter's last screen (same
   light background), so there is no long blank stretch after the field notes. */
section.vh-faq.fq-on { position: relative; z-index: 2; margin-top: calc(-1 * min(20vh, 190px)); }
.fq-split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 28px; align-items: start; margin-top: 36px; }
.fq-qs { display: flex; flex-direction: column; gap: 6px; transform: translateX(calc((1 - var(--p)) * -60px)); opacity: var(--p); }
.fq-tab { display: flex; gap: 14px; align-items: center; text-align: left; border: 0; background: none; padding: 13px 16px; border-radius: 12px; font: 600 16px/1.35 "Hanken Grotesk", sans-serif; color: #485362; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.fq-tab:hover { color: #09193E; }
.fq-tab[aria-selected="true"] { background: #fff; color: #09193E; box-shadow: 0 16px 34px -26px rgba(9, 25, 62, .45); }
.fq-tab:focus-visible, .fq-q:focus-visible { outline: 3px solid #7FAEF0; outline-offset: 2px; }

/* The V marks: drawn as they arrive, filled when chosen or open. */
.fq-vm { flex: none; width: 24px; height: 21px; }
.fq-vm svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fq-vm polygon { fill: transparent; stroke: #9DB2CF; stroke-width: 16; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--e, 1)); transition: fill .35s ease, stroke .35s ease; }
.fq-tab:hover .fq-vm polygon { stroke: #1A4F9C; }
.fq-tab[aria-selected="true"] .fq-vm .w, .fq-item.open .fq-vm .w { fill: #09193E; stroke: #09193E; }
.fq-tab[aria-selected="true"] .fq-vm .b, .fq-item.open .fq-vm .b { fill: #1A4F9C; stroke: #1A4F9C; }

.fq-panel { position: relative; display: grid; background: #09193E; border-radius: 22px; padding: 34px; min-height: 320px; transform: translateX(calc((1 - var(--p)) * 60px)); opacity: var(--p); }
.fq-pa { grid-area: 1 / 1; opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s ease; visibility: hidden; }
.fq-pa.on { opacity: 1; transform: none; visibility: visible; }
.fq-pa h3 { font: 600 22px/1.25 "Hanken Grotesk", sans-serif; color: #fff; margin: 0 0 14px; }
.fq-pa p { font-size: 15.5px; line-height: 1.7; color: rgba(255, 255, 255, .8); margin: 0; }
.fq-pa a { color: #7FAEF0; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(127, 174, 240, .4); }
.fq-pa a:hover { border-bottom-color: #7FAEF0; }

/* Phones: an accordion with the V marks. */
.fq-acc { display: none; flex-direction: column; gap: 10px; margin-top: 28px; }
.fq-item { background: #fff; border: 1px solid #E7ECF3; border-radius: 16px; opacity: clamp(0, calc(var(--e, 1) * 2), 1); transition: box-shadow .3s ease; }
.fq-item.open { box-shadow: 0 20px 40px -30px rgba(9, 25, 62, .4); }
.fq-q { width: 100%; display: flex; align-items: center; gap: 14px; padding: 17px 18px; border: 0; background: none; text-align: left; cursor: pointer; font: 600 16px/1.35 "Hanken Grotesk", sans-serif; color: #09193E; border-radius: 16px; }
.fq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.65, 0, .35, 1); }
.fq-a > div { overflow: hidden; min-height: 0; }
.fq-item.open .fq-a { grid-template-rows: 1fr; }
.fq-a p { margin: 0; padding: 0 18px 18px 56px; font-size: 15px; line-height: 1.7; color: #5A5670; }
.fq-a a { color: #1A4F9C; font-weight: 600; text-decoration: none; }

@media (max-width: 760px) {
  section.vh-faq.fq-on { padding-top: 24px; }
  .fq-split { display: none; }
  .fq-acc { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-qs, .fq-panel { transform: none !important; opacity: 1 !important; }
  .fq-vm polygon { stroke-dashoffset: 0 !important; }
  .fq-pa, .fq-a { transition: none; }
}

