/* Scoped to explanation pages; no application-wide layout or type changes. */
.help-language { display:flex; flex-wrap:wrap; gap:4px; align-items:center; margin:8px 0; }
.faq-page-header { flex-wrap:wrap; }
.faq-page-header > .help-language { margin-inline-start:auto; }
.help-language button { box-sizing:border-box; min-width:64px; min-height:44px; padding:8px 12px; border:1px solid currentColor; border-radius:8px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.help-language button[aria-pressed="true"] { background:var(--accent,#79d5c6); color:#08252c; border-color:var(--accent,#79d5c6); font-weight:700; }
.help-language button:focus-visible { outline:3px solid #f0d68b; outline-offset:3px; }
@media(max-width:360px) { .faq-page-header > .help-language { flex-basis:100%; margin-inline-start:0; } }
/* Japanese captions need real flow space on narrow screens. Keep both cards
   and the existing connecting path, without overlapping their text. */
@media(max-width:480px) {
  #faqPage[lang="ja"] .faq-memory-visual { display:grid; gap:12px; padding:16px; min-height:0; }
  #faqPage[lang="ja"] .faq-memory-card { position:static; width:auto; min-height:0; }
  #faqPage[lang="ja"] .faq-memory-path { position:static; width:40%; justify-self:center; transform:none; }
}
