/* The questions page, in the guide's window (css/guide.css): a question is a
   card like an option's (14 px question over 12 px other ways to ask it), its
   answer opens under it. The "ask your own AI" page is three numbered steps. */

.qas { display: grid; gap: 4px; max-width: 1100px; }
.qa { border-radius: 4px; background: var(--card); border: 1px solid var(--line); transition: background-color .15s, box-shadow .3s; min-width: 0; }
.qa:hover { background: var(--card-h); }
.qa.glow { animation: glow 1.6s ease-out; }
.qa-head { all: unset; box-sizing: border-box; width: 100%; min-height: 52px; display: grid; grid-template-columns: minmax(0, 1fr) 16px; gap: 16px; align-items: center; padding: 12px 16px; cursor: pointer; border-radius: 4px; }
.qa-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qa-tx { min-width: 0; display: grid; gap: 2px; }
.qa-tx b { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.qa-tx small { font-size: 12px; line-height: 16px; color: var(--ink-3); overflow-wrap: anywhere; }
.qa.open .opt-chev { transform: rotate(180deg); }
.qa-a { padding: 12px 16px 12px; border-top: 1px solid var(--line); animation: more .3s cubic-bezier(.2, .8, .2, 1); }
.qa-a p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.6; max-width: 78ch; color: var(--ink); overflow-wrap: anywhere; }
.qa-see { font-size: 12.5px; color: var(--ink-3); }
.qa-see a { color: var(--accent); text-decoration: none; }
.qa-see a:hover { text-decoration: underline; }
.qa-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.qa-links a.opt-link { text-decoration: none; }

/* A small button, like the mod's standard buttons. */
.btn-s { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--line); border-bottom-color: var(--line-2); background: var(--card); color: var(--ink); font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-s:hover { background: var(--card-h); }
.btn-s svg { width: 15px; height: 15px; color: var(--ink-2); flex: none; }
.btn-s.done { color: var(--green); }
.btn-s.done svg { color: var(--green); }
.btn-s:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Ask your own AI: the three steps, numbered because they are done in order. */
.ai-steps { list-style: none; counter-reset: step; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; max-width: 1100px; }
.ai-steps > li { counter-increment: step; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); }
.ai-steps > li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--sans); background: var(--accent-bg); color: var(--accent); }
.ai-steps h2 { font: 600 15px/22px var(--sans); margin: 2px 0 4px; letter-spacing: 0; text-shadow: none; }
.ai-steps p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); max-width: 75ch; }
.ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.ai-url { font: 12.5px/1.4 var(--mono, ui-monospace, Consolas, monospace); padding: 7px 10px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; min-width: 0; flex: 1 1 260px; }
.ai-prompt { margin-top: 12px; display: grid; gap: 8px; justify-items: start; }
.ai-prompt p { padding: 10px 12px; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; width: 100%; box-sizing: border-box; overflow-wrap: anywhere; }
.ai-tips { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; max-width: 1060px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.ai-help, .faq-page .pg-open { margin-top: 22px; }
.faq-page .pg-open div { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.faq-page .pg-open b { font-size: 14px; }

@media (max-width: 900px) {
  .qa-head { padding: 12px; gap: 12px; }
  .qa-a { padding: 12px; }
  .ai-steps > li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) { .qa-a { animation: none !important; } }
