/* Questions as a chat with Troy, on every page that has them (Troy, 3 Nov 2026: "I want the faq questions all around
   the site to be like the chat box version. Makes the faq feel more personal"). Your question is the dark bubble on
   the right; his answer is the paper one on the left, with his photo, after a moment of typing. */
.qa.qa--chat { display: grid; gap: 14px; padding: 0; border: 0; background: none; box-shadow: none; transform: none; }
.qa.qa--chat details { padding: 0; border: 0; background: none; }
.qa.qa--chat summary { position: relative; display: block; width: fit-content; max-width: min(88%, 460px); margin-left: auto; padding: 13px 48px 13px 18px; border-radius: 22px 22px 6px 22px; background: var(--ink); color: #fffdf9;
  font: 700 16px/1.35 var(--font-display); letter-spacing: -.01em; list-style: none; cursor: pointer; transition: transform .25s var(--settle), background .25s; }
.qa.qa--chat summary::-webkit-details-marker { display: none; }
.qa.qa--chat summary::before { content: none; }
.qa.qa--chat summary::after { content: "+"; position: absolute; right: 12px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 15px/1 var(--font-mono); transition: rotate .3s var(--settle); }
.qa.qa--chat details[open] summary { background: #6b32c2; }
.qa.qa--chat details[open] summary::after { content: "+"; rotate: 45deg; }
.qa.qa--chat summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
@media (hover: hover) { .qa.qa--chat summary:hover { transform: translateY(-2px); } }
.qa.qa--chat .answer { position: relative; width: fit-content; max-width: min(calc(100% - 50px), 520px); margin: 12px 0 0 50px; padding: 13px 16px; border-radius: 22px 22px 22px 6px; background: #fffdf9; color: var(--ink);
  border: 1px solid #0d102414; box-shadow: 0 14px 30px -24px #0d102480; font-size: 15px; line-height: 1.5; }
.qa.qa--chat .answer::before { content: ""; position: absolute; left: -50px; bottom: 0; width: 38px; height: 38px; border-radius: 50%; background: #d9d2c6 url(/assets/img/troy-photo-144.webp?v=487db05f) center / cover; box-shadow: 0 0 0 2px #fffdf9; }
.qa.qa--chat .answer a { color: #5b25b0; }
.qa.qa--chat .answer p { margin: 0; }
.qa.qa--chat .answer p + * { margin-top: 10px; }
.qa.qa--chat .board__table th { color: #5b5d70; }
.qa.qa--chat .board__table td { color: var(--ink); }
/* On a dark section (Home), the question bubbles turn a lighter night blue. */
.env-ink .qa.qa--chat summary { background: #2c3152; box-shadow: inset 0 0 0 1px #ffffff1f; }
.env-ink .qa.qa--chat details[open] summary { background: #6b32c2; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.reduce-motion) .qa.qa--chat details[open] .answer { animation: chat-in .35s var(--settle) both; transform-origin: 0 100%; }
  html:not(.reduce-motion) .qa.qa--chat details[open] .answer::after { content: "• • •"; position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: #fffdf9; color: #8b8478;
    font: 700 16px/1 var(--font-body); letter-spacing: 3px; animation: chat-typing .45s ease-in-out 2 alternate, chat-typed .2s .85s forwards; }
}
@keyframes chat-in { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes chat-typing { to { color: #d7cfc4; } }
@keyframes chat-typed { to { opacity: 0; visibility: hidden; } }
