/* Search over the existing FAQ; no separate answer content or remote service. */
.faq-answer-trigger { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 20px; padding: 8px 0; background: transparent; color: #292929; border: 0; border-bottom: 1px solid var(--paper-edge); font-size: 13px; }
.faq-answer-trigger .icon { width: 17px; height: 17px; }
#answer-dialog { color-scheme: light; --ink: #202020; --muted: var(--paper-muted); --line: var(--paper-line); width: min(760px,calc(100vw - 48px)); max-width: none; max-height: 88vh; max-height: 88dvh; padding: 0; border: 1px solid var(--paper-line); border-radius: var(--radius); background: var(--paper-bg); color: var(--ink); overflow: auto; box-shadow: 0 24px 80px #0005; }
#answer-dialog::backdrop { background: #000a; backdrop-filter: blur(4px); }
.answer-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding: 28px 32px 0; }
.answer-head .eyebrow { color: var(--muted); margin-bottom: 14px; }
.answer-head h2 { font-size: clamp(28px,3vw,38px); }
.answer-close { display: grid; place-items: center; flex-shrink: 0; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid var(--paper-edge); border-radius: 9px; background: transparent; color: #292929; font-size: 24px; line-height: 1; }
.answer-body { padding: 24px 32px; }
.answer-search-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.answer-search { position: relative; }
.answer-search > .icon { position: absolute; top: 17px; left: 16px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.answer-search input { width: 100%; height: 52px; padding: 12px 16px 12px 46px; border: 1px solid var(--paper-edge); border-radius: 9px; background: var(--paper-surface); color: #202020; font-size: 16px; }
.answer-search input::placeholder { color: var(--paper-muted); opacity: 1; }
.answer-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.answer-topics button { min-height: 44px; padding: 9px 12px; color: var(--paper-strong); background: transparent; border: 1px solid var(--paper-edge); border-radius: 8px; font-size: 12px; }
.answer-topics button[aria-pressed="true"] { background: #292929; color: #fff; border-color: #292929; }
.answer-count { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 24px 0 12px; }
.answer-results { display: grid; gap: 10px; }
.answer-result { border: 1px solid var(--paper-line); border-radius: 10px; background: var(--paper-surface); overflow: hidden; }
.answer-result summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 56px; padding: 16px 18px; color: #202020; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.answer-result summary::-webkit-details-marker { display: none; }
.answer-result summary .icon { width: 18px; height: 18px; color: var(--paper-muted); }
.answer-result[open] summary .icon { transform: rotate(45deg); }
.answer-result p { padding-inline: 18px; color: var(--paper-muted); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }
.answer-result p a { color: #a72d19; text-decoration: underline; text-underline-offset: 3px; }
.answer-result .answer-source { display: inline-flex; align-items: center; min-height: 44px; margin: 0 18px 12px; color: var(--paper-strong); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.answer-empty { padding: 24px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-surface); }
.answer-empty strong { font-size: 16px; font-weight: 550; }
.answer-empty p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 10px; }
.answer-empty a { color: #a72d19; text-decoration: underline; text-underline-offset: 3px; }
.answer-foot { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 32px; background: var(--paper-soft); }
.answer-foot > p { color: var(--muted); font-size: 11px; line-height: 1.8; max-width: 260px; }
.answer-foot .button { min-height: 48px; font-size: 13px; padding: 14px 18px; gap: 16px; }
#answer-dialog input:focus-visible, #answer-dialog summary:focus-visible, #answer-dialog button:focus-visible, #answer-dialog a:focus-visible { outline: 2px solid #ac301b; outline-offset: 3px; }
@media (max-width: 650px) {
 #answer-dialog { width: calc(100vw - 32px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
 .answer-head { padding: 24px 20px 0; gap: 16px; }
 .answer-head .eyebrow { font-size: 8px; }
 .answer-body { padding: 24px 20px; }
 .answer-foot { padding: 20px; align-items: start; flex-direction: column; }
 .answer-foot .button { width: 100%; justify-content: space-between; }
 .answer-result summary { padding-inline: 14px; }
 .answer-result p { padding-inline: 14px; }
 .answer-result .answer-source { margin-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) { #answer-dialog *, #answer-dialog::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
#answer-dialog[open] { display: flex; flex-direction: column; }
.answer-head, .answer-foot { flex-shrink: 0; }
.answer-body { min-height: 0; overflow: auto; }

@media (max-width: 650px) {
 .answer-head { padding: 16px 16px 0; }
 .answer-head .eyebrow { margin-bottom: 8px; }
 .answer-body { padding: 16px; }
 .answer-topics { gap: 6px; margin-top: 12px; }
 .answer-topics button { padding-inline: 9px; }
 .answer-count { margin-top: 14px; }
 .answer-foot { padding: 12px 16px; gap: 8px; }
}
@media (max-height: 500px) {
 .answer-head { align-items: center; padding: 8px 16px 0; }
 .answer-head .eyebrow { margin-bottom: 4px; font-size: 8px; }
 .answer-head h2 { font-size: 24px; }
 .answer-body { padding: 10px 16px; }
 .answer-search-label { margin-bottom: 6px; }
 .answer-search input { height: 44px; }
 .answer-search > .icon { top: 13px; }
 .answer-topics { margin-top: 8px; }
 .answer-count { margin: 10px 0 8px; }
 .answer-foot { flex-direction: row; align-items: center; gap: 8px; padding: 6px 16px; }
 .answer-foot .button { width: auto; min-height: 44px; padding: 8px 12px; }
}
