/* pocket ATA v4.7.2 – BGA systematic interpretation mindmap. */
#tab-bga [hidden],#bgm47View [hidden],#bgm47Analyzer[hidden]{display:none!important}
.bgm47-tabs{display:flex;gap:9px;flex-wrap:wrap;padding:4px 0 16px;border-bottom:1px solid #dbe4ef;margin:20px 0}
.bgm47-tabs button{display:inline-flex;justify-content:center;align-items:center;gap:10px;min-height:48px;padding:11px 16px;border-radius:12px;background:white;border:1px solid #cbd5e1;color:#475569;font-size:.88rem;font-weight:800;touch-action:manipulation;cursor:pointer;flex:1}
.bgm47-tabs button.is-active{background:#0f766e;border-color:#0f766e;color:#fff;box-shadow:0 4px 12px rgba(15,118,110,.16)}
.bgm47-tabs button:hover{border-color:#14b8a6}
.bgm47-intro{margin:13px 0 17px}
.bgm47-intro h3{font-size:1.19rem;font-weight:850;color:#0f172a}
.bgm47-intro p{font-size:.88rem;color:#475569;line-height:1.6;margin-top:7px}
.bgm47-secondary{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:46px;padding:10px 14px;border:1px solid #cbd5e1;border-radius:11px;background:#fff;color:#334155;font-size:.85rem;font-weight:800;cursor:pointer}
.bgm47-secondary:hover{background:#f0fdfa;border-color:#0d9488}
.bgm47-intro-right{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
.bgm47-demo{border-left:3px solid #0d9488;padding:11px 13px;background:#f0fdfa;border-radius:9px;font-size:.84rem;color:#115e59;line-height:1.6}
.bgm47-view button:focus-visible,.bgm47-tabs button:focus-visible,.bgm47-view summary:focus-visible{outline:3px solid #0d9488;outline-offset:3px}
@media(max-width:767px){.bgm47-tabs{gap:7px}.bgm47-tabs button{font-size:.79rem;padding:10px 6px;gap:6px}.bgm47-tabs button i{font-size:.95rem}}
.bgm47-view{--bgm47-line:#a7d8d1;--bgm47-deep:#115e59;--bgm47-glow:#f0fdfa;color:#0f172a}
.bgm47-method{display:flex;gap:11px;align-items:flex-start;background:#eff6ff;border:1px solid #bfdbfe;padding:13px 15px;border-radius:12px;color:#1e40af;font-size:.85rem;line-height:1.65;margin-bottom:16px}
.bgm47-method>i{font-size:17px;flex-shrink:0;margin-top:3px}
.bgm47-mode{display:flex;gap:7px;flex-wrap:wrap;background:#e2e8f0;border-radius:14px;padding:5px;width:max-content;max-width:100%;margin:0 0 18px}
.bgm47-mode button{min-height:46px;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:10px;background:transparent;border:1px solid transparent;color:#334155;font-size:.83rem;font-weight:800;cursor:pointer}
.bgm47-mode button.is-active{background:#fff;color:#0f766e;border-color:#cbd5e1;box-shadow:0 2px 6px rgba(15,23,42,.07)}
.bgm47-toolrow{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:18px;color:#475569;font-size:.81rem;font-weight:700}
.bgm47-toolrow>div{display:flex;gap:8px;flex-wrap:wrap}
.bgm47-toolrow button{display:inline-flex;align-items:center;gap:7px;min-height:44px;background:white;border:1px solid #cbd5e1;border-radius:10px;padding:9px 13px;color:#334155;font-size:.78rem;font-weight:800;cursor:pointer}
.bgm47-toolrow button:hover{border-color:#14b8a6;background:#f0fdfa}
.bgm47-tree{position:relative;max-width:100%;padding-left:25px;margin-left:0}
.bgm47-tree::before{content:"";position:absolute;left:14px;top:46px;bottom:22px;border-left:3px solid var(--bgm47-line);border-radius:9px}
.bgm47-center{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;margin:0 0 20px;background:linear-gradient(120deg,#0f172a,#115e59);border-radius:17px;color:#fff;padding:19px 16px;box-shadow:0 3px 13px rgba(15,23,42,.08)}
.bgm47-center>i{font-size:25px;color:#99f6e4}
.bgm47-center strong{font-size:1.02rem;font-weight:850}
.bgm47-center span{font-size:.76rem;color:#ccfbf1}
.bgm47-phase{position:relative;display:flex;align-items:center;gap:10px;margin:22px 0 11px;padding:9px 11px;background:#e2e8f0;border-radius:11px;color:#334155;font-size:.79rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em}
.bgm47-phase::before,.bgm47-node-wrap::before{content:"";position:absolute;left:-14px;top:50%;width:14px;border-top:3px solid var(--bgm47-line)}
.bgm47-phase i{font-size:15px;color:#0f766e}
.bgm47-node-wrap{position:relative;margin:0 0 12px}
.bgm47-main{background:#fff;border:1px solid #dbe4ef;border-radius:15px;overflow:hidden;box-shadow:0 3px 10px rgba(15,23,42,.035)}
.bgm47-main[open]{border-color:#5ecbbb;box-shadow:0 4px 16px rgba(15,118,110,.08)}
.bgm47-main>summary{display:flex;align-items:center;gap:12px;min-height:74px;padding:13px 15px;list-style:none;cursor:pointer;touch-action:manipulation;user-select:none}
.bgm47-main>summary::-webkit-details-marker,.bgm47-subnode>summary::-webkit-details-marker,.bgm47-note>summary::-webkit-details-marker,.bgm47-trap>summary::-webkit-details-marker,.bgm47-example>summary::-webkit-details-marker{display:none}
.bgm47-main>summary:hover,.bgm47-main>summary:active{background:#f0fdfa}
.bgm47-main[open]>summary{background:#f0fdfa;border-bottom:1px solid #ccfbf1}
.bgm47-num{min-width:33px;height:33px;display:grid;place-items:center;font-variant-numeric:tabular-nums;color:#0f766e;font-weight:850;font-size:.85rem;background:#ccfbf1;border-radius:10px}
.bgm47-symbol{width:35px;height:35px;flex:0 0 35px;display:grid;place-items:center;color:#0f766e;background:#edfdf8;border-radius:10px;font-size:17px}
.bgm47-heading{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.bgm47-heading strong{font-size:.98rem;font-weight:850;line-height:1.28}
.bgm47-heading small{font-size:.78rem;color:#64748b;line-height:1.43}
.bgm47-summary>.fa-chevron-down,.bgm47-example>summary>.fa-chevron-down{font-size:.82rem;color:#64748b;transition:transform .15s}
.bgm47-main[open] .bgm47-summary>.fa-chevron-down,.bgm47-example[open]>summary>.fa-chevron-down{transform:rotate(180deg)}
.bgm47-contents{padding:14px 17px 16px;background:white}
.bgm47-quick{border-left:4px solid #0d9488;background:#f0fdfa;padding:11px 13px;margin-bottom:13px;color:#115e59;font-size:.85rem;font-weight:750;line-height:1.5}
.bgm47-children{display:grid;gap:9px;margin-left:7px;border-left:2px dashed #99d5cc;padding-left:14px}
.bgm47-subnode,.bgm47-note,.bgm47-trap{border:1px solid #dbe4ef;background:#fff;border-radius:11px;overflow:hidden}
.bgm47-subnode>summary,.bgm47-note>summary,.bgm47-trap>summary{display:flex;align-items:center;gap:10px;min-height:47px;padding:11px 13px;list-style:none;cursor:pointer;touch-action:manipulation;color:#334155;font-size:.83rem}
.bgm47-subnode>summary>strong,.bgm47-note>summary>strong,.bgm47-trap>summary>strong{flex:1;font-weight:800}
.bgm47-subnode>summary>.fa-chevron-right,.bgm47-note>summary>.fa-chevron-right,.bgm47-trap>summary>.fa-chevron-right{color:#64748b;font-size:.75rem;transition:transform .15s}
.bgm47-subnode[open] .fa-chevron-right,.bgm47-note[open] .fa-chevron-right,.bgm47-trap[open] .fa-chevron-right{transform:rotate(90deg)}
.bgm47-subnode>summary:hover,.bgm47-note>summary:hover{background:#f0fdfa}
.bgm47-subnode ul{list-style:disc;padding:0 17px 14px 36px;color:#334155;font-size:.84rem;line-height:1.65}
.bgm47-subnode li+li{margin-top:6px}
.bgm47-note,.bgm47-trap{margin-top:10px}
.bgm47-note{background:#f0fdfa;border-color:#99f6e4}
.bgm47-trap{background:#fffbeb;border-color:#fde68a}
.bgm47-note>summary{color:#115e59}.bgm47-trap>summary{color:#92400e}
.bgm47-note p,.bgm47-trap p{font-size:.84rem;line-height:1.65;margin:0;padding:0 13px 13px;color:inherit}
.bgm47-jumps{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:13px}
.bgm47-jumps>span{font-size:.77rem;color:#475569;font-weight:800}
.bgm47-jump{min-height:43px;display:inline-flex;align-items:center;gap:7px;background:#0f766e;border:1px solid #0f766e;color:white;padding:9px 11px;border-radius:9px;font-size:.79rem;font-weight:800;cursor:pointer}
.bgm47-jump:hover{background:#115e59}
.bgm47-shortnotice{font-size:.86rem;line-height:1.6;color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe;border-radius:11px;padding:14px;margin:0 0 15px}
.bgm47-shortgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:0 0 18px}
.bgm47-shortcard{display:flex;align-items:center;gap:12px;text-align:left;padding:15px;border:1px solid #dbe4ef;background:#fff;border-radius:12px;min-height:75px;cursor:pointer;touch-action:manipulation}
.bgm47-shortcard:hover{background:#f0fdfa;border-color:#5eead4}
.bgm47-shortnum{background:#ccfbf1;color:#0f766e;width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;border-radius:10px;font-size:.8rem;font-weight:850}
.bgm47-shortcopy{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.bgm47-shortcopy strong{font-size:.91rem;font-weight:850}
.bgm47-shortcopy small{font-size:.76rem;color:#64748b;line-height:1.35}
.bgm47-shortcard>i{font-size:.73rem;color:#94a3b8}
.bgm47-examples,.bgm47-references{margin-top:23px;padding:18px;background:#fff;border:1px solid #dbe4ef;border-radius:15px}
.bgm47-examples h3,.bgm47-references h3{font-size:1.08rem;font-weight:850;display:flex;gap:9px;align-items:center;margin-bottom:6px}
.bgm47-examples>p,.bgm47-references>p{font-size:.84rem;line-height:1.6;color:#475569;margin-bottom:14px}
.bgm47-example{border:1px solid #dbe4ef;border-radius:11px;margin-top:9px;overflow:hidden}
.bgm47-example>summary{display:flex;gap:10px;align-items:center;list-style:none;padding:13px;min-height:58px;cursor:pointer}
.bgm47-example>summary>i:first-child{color:#0f766e}
.bgm47-example-head{display:flex;flex:1;flex-direction:column;gap:2px}
.bgm47-example-head strong{font-size:.86rem;font-weight:800}
.bgm47-example-head small{font-size:.73rem;color:#64748b}
.bgm47-example[open]>summary{border-bottom:1px solid #dbe4ef;background:#f0fdfa}
.bgm47-example-content{padding:13px;display:grid;gap:10px}
.bgm47-example-befund{font-size:.87rem;color:#0f172a;line-height:1.7}
.bgm47-example-note{font-size:.82rem;color:#92400e;line-height:1.6;padding:10px 12px;border-radius:9px;background:#fffbeb}
.bgm47-example-content button{justify-self:start}
#bgm47SourceLinks{display:flex;flex-wrap:wrap;gap:8px}
#bgm47SourceLinks a{display:inline-flex;gap:7px;align-items:center;font-size:.76rem;font-weight:750;color:#0f766e;background:#f0fdfa;border:1px solid #99f6e4;border-radius:9px;padding:9px 11px;text-decoration:none}
#bgm47SourceLinks a:hover{text-decoration:underline}
.bgm47-loading{padding:20px;background:#fff;border:1px solid #e2e8f0;border-radius:11px;color:#64748b}
@media(max-width:767px){
 .bgm47-mode{width:100%}
 .bgm47-mode button{flex:1 1 0;min-width:0;padding:9px 6px;font-size:.76rem}
 .bgm47-toolrow{align-items:flex-start}
 .bgm47-toolrow>div{display:grid;grid-template-columns:1fr 1fr;width:100%}
 .bgm47-toolrow button{justify-content:center;padding:9px 7px;font-size:.76rem}
 .bgm47-tree{padding-left:18px}
 .bgm47-tree::before{left:8px}
 .bgm47-phase::before,.bgm47-node-wrap::before{left:-10px;width:10px}
 .bgm47-main>summary{gap:8px;min-height:72px;padding:11px}
 .bgm47-num{width:29px;min-width:29px;height:29px;font-size:.78rem}
 .bgm47-symbol{width:30px;height:30px;flex:0 0 30px;font-size:14px}
 .bgm47-heading strong{font-size:.88rem}
 .bgm47-heading small{font-size:.72rem}
 .bgm47-contents{padding:12px 10px}
 .bgm47-children{margin-left:3px;padding-left:9px}
 .bgm47-shortgrid{grid-template-columns:1fr}
 .bgm47-examples,.bgm47-references{padding:14px}
}
@media(prefers-reduced-motion:reduce){.bgm47-summary>.fa-chevron-down,.bgm47-subnode .fa-chevron-right,.bgm47-example>summary>.fa-chevron-down{transition:none}}
/* The existing mobile result sheet belongs to the analyzer, not to the mindmap. */
body.bgm47-mindmap-active #pc32ResultBar{display:none!important}
#bgm47View,#bgm47Analyzer{scroll-margin-top:130px}
@media(max-width:767px){#bgm47View,#bgm47Analyzer{scroll-margin-top:85px}}
