/* Illustrated guide: editorial figures and a native accessible image viewer. */
#toolbox-portal-preview .a-format-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
#toolbox-portal-preview .academy-languages{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
#toolbox-portal-preview .academy-languages [aria-current]{background:var(--p-selected);border-color:var(--p-purple);color:var(--p-accent)}
#toolbox-portal-preview .a-topic-cover{display:block;min-height:0!important;background:#111927;perspective:none}
#toolbox-portal-preview .a-topic-cover:before{display:none}
#toolbox-portal-preview .a-topic-cover>img{display:block;width:100%;height:auto;aspect-ratio:1280/460;object-fit:contain}
#toolbox-portal-preview .a-hero>.a-topic-cover{display:flex;align-items:center;border-radius:12px}
#toolbox-portal-preview .a-illustrated-chapter{overflow:hidden}
#toolbox-portal-preview .a-illustrated-chapter>.a-topic-cover{margin:-24px -24px 22px}
#toolbox-portal-preview .a-guide-paragraph{margin:0 0 1.6em}
#toolbox-portal-preview .a-figure{margin:28px 0 40px;border:1px solid var(--p-line);border-radius:14px;background:var(--p-panel);overflow:hidden;box-shadow:0 10px 36px #0000000b}
#toolbox-portal-preview .a-figure-meta{display:flex;justify-content:space-between;gap:12px;padding:13px 20px;color:var(--p-muted);font-size:14px;border-bottom:1px solid var(--p-line)}
#toolbox-portal-preview .a-figure-open{display:block;cursor:zoom-in;background:#101724}
#toolbox-portal-preview .guide-body .a-figure img{display:block;width:100%;max-width:100%;height:auto;padding:0;border-radius:0;background:#101724}
#toolbox-portal-preview .a-figure-open:focus-visible{outline:3px solid var(--p-purple);outline-offset:-4px}
#toolbox-portal-preview .a-figure figcaption{padding:18px 22px 21px;font-size:16px;line-height:1.65}
#toolbox-portal-preview .a-figure figcaption strong{display:block;color:var(--p-text);margin-bottom:5px}
#toolbox-portal-preview .a-figure figcaption span{display:block;color:var(--p-muted)}
#toolbox-portal-preview .a-outline{position:sticky;top:16px;max-height:calc(100vh - 40px);overflow:auto;scrollbar-width:thin}
#toolbox-portal-preview .a-image-dialog{padding:0;width:min(1420px,94vw);max-width:94vw;max-height:94vh;border:1px solid var(--p-line);border-radius:14px;background:var(--p-panel);color:var(--p-text);box-shadow:0 25px 120px #0009}
#toolbox-portal-preview .a-image-dialog::backdrop{background:#070b18da;backdrop-filter:blur(6px)}
#toolbox-portal-preview .a-image-toolbar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--p-line);position:sticky;top:0;background:var(--p-panel);z-index:1}
#toolbox-portal-preview .a-image-title{margin-right:auto;font-size:18px}
#toolbox-portal-preview .a-image-stage{overflow:auto;max-height:67vh;background:#101724;text-align:center}
#toolbox-portal-preview .a-image-stage img{display:block;width:auto;max-width:100%;height:auto;max-height:65vh;margin:auto}
#toolbox-portal-preview .a-image-actual .a-image-stage img{max-width:none;max-height:none}
#toolbox-portal-preview .a-image-caption{padding:0 20px;line-height:1.6}
#toolbox-portal-preview .a-image-navigation{display:flex;align-items:center;justify-content:center;gap:20px;padding:0 18px 18px}
@media(max-width:950px){#toolbox-portal-preview .a-outline{position:static;max-height:230px}#toolbox-portal-preview .a-outline a{font-size:14px}#toolbox-portal-preview .a-image-title{font-size:16px}}
@media(max-width:540px){#toolbox-portal-preview .a-figure figcaption{padding:16px}#toolbox-portal-preview .a-figure-meta{padding:10px 16px}#toolbox-portal-preview .a-image-toolbar{flex-wrap:wrap}#toolbox-portal-preview .a-image-title{width:100%}#toolbox-portal-preview .a-image-navigation{gap:8px}}
