/* BTG Academy — Blockchain Deep Dive lesson components (ported, scoped, dark) */
.bdd-scope{
  --bg:#050810;
  --altbg:transparent;
  --panel:#0c1220;
  --panel2:#111a2b;
  --line:#1a2540;
  --line-soft:rgba(255,255,255,.08);
  --txt:#e8ecf4;
  --ink2:#b8c0d0;
  --muted:#8b93a7;
  --gold:#C9B46D;
  --gold-dim:rgba(201,180,109,.14);
  --goldhover:#d8c384;
  --mint:#34d399;
  --red:#f87171;
  --amber:#fbbf24;
  --okbg:rgba(52,211,153,.14);
  --badbg:rgba(248,113,113,.12);
  --ongold:#050810;
  --figbg:#0c1220;
  --figline:#1a2540;
  --cream:#101827;
  --headerbg:rgba(5,8,16,.85);
  --term:#020408;
  --footerbg:#020408;
  --thumb:rgba(255,255,255,.15);
  --herog1:radial-gradient(1100px 500px at 80% -10%,rgba(201,180,109,.09),transparent 60%);
  --herog2:radial-gradient(900px 500px at 0% 110%,rgba(52,211,153,.05),transparent 60%);
  --sans:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --serif:Georgia,'Times New Roman',serif;
}
.bdd-scope .sub{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#8b93a7;font-size:.68rem;text-transform:uppercase;letter-spacing:.16em;margin-top:.6rem}
.bdd-scope h3{font-size:1.15rem;font-weight:700;margin:2.1rem 0 .7rem;letter-spacing:-.01em}
.bdd-scope h3::before{content:"// ";color:#C9B46D;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:400}
.bdd-scope h4{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;text-transform:uppercase;letter-spacing:.16em;color:#8b93a7;margin:1.7rem 0 .5rem}
.bdd-scope p{max-width:68ch;margin-bottom:1rem;color:#b8c0d0;font-weight:400}
.bdd-scope p b,.bdd-scope li b{font-weight:600;color:#e8ecf4}
.bdd-scope p i{color:#C9B46D;font-style:italic}
.bdd-scope ul,.bdd-scope ol{max-width:64ch;margin:0 0 1.1rem 1.3rem;color:#b8c0d0}
.bdd-scope li{margin-bottom:.45rem}
.bdd-scope code{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.84em;background:#111a2b;border:1px solid #1a2540;padding:.1em .45em;border-radius:4px;word-break:break-all;color:#34d399}
.bdd-scope ol.edu{list-style:none;counter-reset:edu;margin-left:0;max-width:68ch}
.bdd-scope ol.edu li{counter-increment:edu;position:relative;padding-left:3rem;margin-bottom:1rem}
.bdd-scope ol.edu li::before{content:counter(edu,decimal-leading-zero);position:absolute;left:0;top:0;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;font-weight:600;color:#C9B46D;
  border:1px solid #1a2540;background:#0c1220;padding:.15rem .45rem;border-radius:6px}
.bdd-scope ol.edu li b{display:block;font-weight:600;color:#e8ecf4}
.bdd-scope table{border-collapse:collapse;width:100%;max-width:72ch;margin:1.2rem 0;font-size:.88rem;background:#0c1220;border:1px solid #1a2540;border-radius:10px;overflow:hidden}
.bdd-scope th,.bdd-scope td{border:1px solid #1a2540;padding:.55rem .85rem;text-align:left;vertical-align:top;color:#b8c0d0}
.bdd-scope th{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:600;text-transform:uppercase;letter-spacing:.12em;font-size:.66rem;background:#111a2b;color:#C9B46D}
.bdd-scope td b{color:#e8ecf4}
.bdd-scope .legend{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.66rem;letter-spacing:.06em;color:#8b93a7;margin:.9rem 0 0;max-width:72ch;line-height:2}
.bdd-scope .ex{border:1px solid #1a2540;border-left:3px solid #C9B46D;background:#0c1220;margin:1.4rem 0;max-width:72ch;border-radius:0 10px 10px 0}
.bdd-scope .ex .ex-head{display:flex;align-items:center;gap:.7rem;border-bottom:1px solid #1a2540;padding:.5rem .95rem;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;text-transform:uppercase;letter-spacing:.16em;color:#C9B46D}
.bdd-scope .ex .ex-head .flag{width:.6rem;height:.6rem;border-radius:50%}
.bdd-scope .ex.tz .flag{background:#C9B46D;box-shadow:0 0 7px #C9B46D}
.bdd-scope .ex.znz{border-left-color:#34d399}
.bdd-scope .ex.znz .ex-head{color:#34d399}
.bdd-scope .ex.znz .flag{background:#34d399;box-shadow:0 0 7px #34d399}
.bdd-scope .ex.warn{border-left-color:#fbbf24}
.bdd-scope .ex.warn .ex-head{color:#fbbf24}
.bdd-scope .ex.warn .flag{background:#fbbf24;box-shadow:0 0 7px #fbbf24}
.bdd-scope .ex .verdict{border-top:1px solid #1a2540;padding:.55rem 1.05rem;font-size:.84rem;background:#111a2b;color:#8b93a7}
.bdd-scope .ex .verdict b{color:#C9B46D}
.bdd-scope .rule{border:1px solid #C9B46D;background:rgba(201,180,109,.14);color:#e8ecf4;padding:1.15rem 1.35rem;
  font-size:1.05rem;max-width:68ch;margin:1.6rem 0;line-height:1.5;border-radius:10px}
.bdd-scope .rule b{color:#C9B46D}
.bdd-scope .objectives,.bdd-scope .takeaways{border:1px solid #1a2540;background:#0c1220;margin:1.4rem 0;max-width:72ch;border-radius:10px;overflow:hidden}
.bdd-scope .objectives{border-left:3px solid #C9B46D;border-radius:0 10px 10px 0}
.bdd-scope .takeaways{border-left:3px solid #34d399;border-radius:0 10px 10px 0}
.bdd-scope .objectives .ob-head,.bdd-scope .takeaways .ob-head{padding:.5rem .95rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;
  text-transform:uppercase;letter-spacing:.16em;border-bottom:1px solid #1a2540;background:#111a2b}
.bdd-scope .objectives .ob-head{color:#C9B46D}
.bdd-scope .takeaways .ob-head{color:#34d399}
.bdd-scope .objectives ul,.bdd-scope .takeaways ul{margin:0;padding:.8rem 1.2rem .9rem 2.2rem}
.bdd-scope .objectives li,.bdd-scope .takeaways li{font-size:.88rem;color:#b8c0d0;margin:.35rem 0;line-height:1.55}
.bdd-scope .a-meta{margin-top:.7rem;padding-top:.6rem;border-top:1px dashed #1a2540;font-size:.76rem;color:#8b93a7;line-height:1.7}
.bdd-scope .a-meta b{color:#C9B46D;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.62rem;text-transform:uppercase;letter-spacing:.1em}
.bdd-scope .activity{border:1px solid #1a2540;border-left:3px solid #34d399;background:#0c1220;margin:1.6rem 0;max-width:72ch;border-radius:0 10px 10px 0}
.bdd-scope .activity .a-head{border-bottom:1px solid #1a2540;padding:.5rem .95rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;
  text-transform:uppercase;letter-spacing:.16em;display:flex;justify-content:space-between;gap:1rem;color:#34d399}
.bdd-scope .sim{border:1px solid #1a2540;background:#0c1220;max-width:72ch;margin:1.6rem 0;border-radius:10px;overflow:hidden}
.bdd-scope .sim .sim-head{padding:.55rem .95rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;text-transform:uppercase;letter-spacing:.16em;
  background:#111a2b;color:#C9B46D;border-bottom:1px solid #1a2540}
.bdd-scope .sim .sim-tag{display:block;color:#8b93a7;letter-spacing:.06em;margin-top:.25rem;text-transform:none;font-size:.62rem}
.bdd-scope .sim .sim-note{font-size:.78rem;color:#8b93a7;font-style:italic;margin:0 0 .8rem}
.bdd-scope .blkchain{display:flex;gap:.6rem;flex-wrap:wrap;align-items:stretch}
.bdd-scope .blk{flex:1;min-width:170px;border:1px solid #1a2540;border-radius:8px;background:#050810;padding:.55rem .6rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;line-height:1.7}
.bdd-scope .blk .b-title{font-weight:600;color:#C9B46D;letter-spacing:.1em;margin-bottom:.3rem}
.bdd-scope .blk input{width:100%;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;padding:.3rem .45rem;border:1px solid #1a2540;border-radius:6px;background:#0c1220;color:#e8ecf4;margin:.15rem 0}
.bdd-scope .blk .b-hash{word-break:break-all;color:#8b93a7}
.bdd-scope .blk.mined{border-color:#34d399;background:rgba(52,211,153,.14)}
.bdd-scope .blk.broken{border-color:#f87171;background:rgba(248,113,113,.12)}
.bdd-scope .blk .b-status{font-weight:600;letter-spacing:.08em}
.bdd-scope .blk.mined .b-status{color:#34d399}
.bdd-scope .blk.broken .b-status{color:#f87171}
.bdd-scope .blk .minebtn{margin-top:.35rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.6rem;text-transform:uppercase;letter-spacing:.12em;
  padding:.35rem .7rem;border-radius:6px;border:1px solid #C9B46D;background:transparent;color:#C9B46D;cursor:pointer}
.bdd-scope .blk .minebtn:hover{background:#C9B46D;color:#050810}
.bdd-scope .sim-actions{display:flex;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}
.bdd-scope .sim-btn{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.62rem;text-transform:uppercase;letter-spacing:.12em;padding:.5rem 1rem;
  border-radius:8px;border:1px solid #C9B46D;background:#C9B46D;color:#050810;cursor:pointer;font-weight:600}
.bdd-scope .sim-btn.ghost{background:transparent;color:#C9B46D}
.bdd-scope .sim-btn:hover{filter:brightness(1.05)}
.bdd-scope .sim-log{margin-top:.8rem;border:1px solid #1a2540;border-radius:8px;background:#020408;color:#e8ecf4;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;padding:.6rem .8rem;min-height:2.4rem;line-height:1.8;max-height:180px;overflow-y:auto}
.bdd-scope .sim-log .ok{color:#34d399}
.bdd-scope .sim-log .bad{color:#f87171}
.bdd-scope .sim-log .dim{color:#8b93a7}
.bdd-scope select.sim-sel{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.68rem;padding:.35rem .5rem;border:1px solid #1a2540;border-radius:6px;background:#0c1220;color:#e8ecf4}
.bdd-scope .hashdemo{border:1px solid #1a2540;background:#020408;max-width:72ch;margin:1.6rem 0;border-radius:10px;overflow:hidden}
.bdd-scope .hashdemo .h-head{border-bottom:1px solid #1a2540;padding:.55rem .95rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;
  text-transform:uppercase;letter-spacing:.16em;background:#111a2b;color:#34d399;display:flex;align-items:center;gap:.6rem}
.bdd-scope .hashdemo .h-head::before{content:"";width:.55rem;height:.55rem;border-radius:50%;background:#34d399;box-shadow:0 0 8px #34d399;animation:pulse 1.6s ease-in-out infinite}
.bdd-scope .hashdemo textarea{width:100%;min-height:5.2rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88rem;padding:.6rem .75rem;
  border:1px solid #1a2540;border-radius:8px;background:#0c1220;color:#e8ecf4;resize:vertical}
.bdd-scope .hashdemo textarea:focus{outline:none;border-color:#34d399}
.bdd-scope .hashdemo .out{margin-top:.7rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.78rem;word-break:break-all;background:#000;
  border:1px solid #1a2540;color:#34d399;padding:.75rem .85rem;min-height:2.4rem;border-radius:8px;text-shadow:0 0 6px rgba(52,211,153,.4)}
.bdd-scope .hashdemo .hint{font-size:.78rem;color:#8b93a7;margin-top:.55rem;font-style:italic}
.bdd-scope .fig{border:1px solid #1a2540;background:#0c1220;border-radius:10px;margin:1.6rem 0;max-width:72ch;overflow:hidden}
.bdd-scope .fig svg{display:block;width:100%;height:auto}
.bdd-scope .fig text{font-family:'JetBrains Mono',monospace}
.bdd-scope .fig .f-cap{border-top:1px solid #1a2540;padding:.5rem .95rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.62rem;text-transform:uppercase;letter-spacing:.16em;color:#8b93a7}
.bdd-scope .mfano{border:1px solid #1a2540;border-left:3px solid #34d399;background:#101827;
  margin:1.4rem 0;max-width:72ch;border-radius:0 10px 10px 0}
.bdd-scope .mfano .mf-head{display:flex;align-items:center;gap:.7rem;border-bottom:1px solid #1a2540;padding:.5rem .95rem;
  font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;text-transform:uppercase;letter-spacing:.16em;color:#34d399}
.bdd-scope .mfano .mf-head .flag{width:.6rem;height:.6rem;border-radius:50%;background:#34d399}
.bdd-scope .mmeta{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.05rem}
.bdd-scope .mmeta .chip{border:1px solid #1a2540;background:#0c1220;border-radius:999px;
  padding:.38rem .9rem;font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.64rem;text-transform:uppercase;letter-spacing:.14em;color:#8b93a7}
.bdd-scope .mmeta .chip.time{background:#C9B46D;border-color:#C9B46D;color:#050810;font-weight:700}
.bdd-scope .fig svg [fill="#0c1220"]{fill:#0c1220}
.bdd-scope .fig svg [fill="#e8ecf4"]{fill:#e8ecf4}
.bdd-scope .fig svg [fill="#8b93a7"]{fill:#8b93a7}
.bdd-scope .fig svg [fill="#C9B46D"]{fill:#C9B46D}
.bdd-scope .fig svg [fill="#34d399"]{fill:#34d399}
.bdd-scope .fig svg [fill="#f87171"]{fill:#f87171}
.bdd-scope .fig svg [fill="#fbbf24"]{fill:#fbbf24}
.bdd-scope .fig svg [fill="#050810"]{fill:#050810}
.bdd-scope .fig svg [fill="#1a2540"]{fill:#1a2540}
.bdd-scope .fig svg [stroke="#1a2540"]{stroke:#1a2540}
.bdd-scope .fig svg [stroke="#8b93a7"]{stroke:#8b93a7}
.bdd-scope .fig svg [stroke="#C9B46D"]{stroke:#C9B46D}
.bdd-scope .fig svg [stroke="#34d399"]{stroke:#34d399}
.bdd-scope .fig svg [stroke="#f87171"]{stroke:#f87171}
.bdd-scope .fig svg [stroke="#fbbf24"]{stroke:#fbbf24}

/* mobile/narrow guard: wide data tables scroll horizontally instead of breaking layout */
.bdd-scope table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;min-width:0}
.bdd-scope table thead,.bdd-scope table tbody{display:table;width:100%;min-width:max-content}
