/* Deco's Learning Brew (3 Dec): B2–B4 Python Programming in the DLB frame (see py-dlb.js). */
/* the course's own banner, icon bar, footer and badge displays give way to the site's */
.py-dlb .topic-dl-btn,.py-dlb #downloadWorkBtn,.py-dlb .topbar.hero,.py-dlb #siteFooter,.py-dlb .badge-showcase,.py-dlb .unit-head-badge-note,.py-dlb #welcomeBadge{display:none!important}
.py-dlb .layout{display:block!important;max-width:1060px;margin:0 auto;padding:0 18px 40px;box-sizing:border-box}
.py-dlb #main{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
/* the course coach moves to the bottom left, clear of Need help? */
.py-dlb #decoCoach{right:auto!important;left:12px!important;align-items:flex-start!important}
/* Topic Home: the same banner + blue panel as the A1–A4 Topic Homes */
/* compact unit header: banner left, blue panel right (2 Dec) */
.mh{display:grid;grid-template-columns:1.6fr 1fr;border-radius:26px;overflow:hidden;margin:14px 0 22px;box-shadow:0 18px 40px -26px rgba(31,107,255,.75);background:#fff}
.mh-img{display:block;width:100%;height:100%;object-fit:cover;object-position:left center;min-height:220px}
.mh-p{padding:20px 24px;color:#fff;background:linear-gradient(135deg,#0fb4ff 0%,#2b7bff 55%,#3f5cff 100%);display:flex;flex-direction:column;justify-content:center;gap:8px}
.mh-p .mh-crumb{color:#fff;text-decoration:none;font-size:12.5px;font-weight:600;opacity:.92}
.mh-p .mh-crumb:hover{text-decoration:underline}
.mh-p h1{margin:0;font-size:26px;line-height:1.15;font-weight:700;color:#fff}
.mh-p h1 em{font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-style:italic;color:#fff}
.mh-p p{margin:0;font-size:14px;line-height:1.5;color:rgba(255,255,255,.95)}
.mh-chips{display:flex;gap:6px;flex-wrap:wrap}
.mh-chips span{font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.45);color:#fff}
.mh-cta{align-self:flex-start;margin-top:4px;background:#fff;color:#1f6bff;font-weight:700;font-size:14px;text-decoration:none;padding:9px 16px;border-radius:999px;box-shadow:0 8px 18px -10px rgba(10,30,80,.5)}
.mh-cta:hover{background:#eef5ff}
@media (max-width:760px){.mh{grid-template-columns:1fr}.mh-img{min-height:0;height:auto}.mh-p h1{font-size:23px}}
.py-ov .mh{max-width:100%}
.py-ov .mh-img{max-width:100%}
.py-ov{padding-top:6px}
.py-ov .mh-img{object-fit:cover;object-position:left center}
.py-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr))}
.py-tile{align-items:flex-start;text-decoration:none}
.py-tile .py-badge{width:96px;height:96px;object-fit:contain;align-self:center;margin:4px 0 6px;filter:drop-shadow(0 8px 14px rgba(16,34,58,.22))}
.py-tile{position:relative}
.py-tile .py-lock{position:absolute;top:12px;right:12px;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;background:rgba(16,34,58,.78);color:#fff;box-shadow:0 6px 14px -8px rgba(16,34,58,.6)}
.py-tile p{margin:0;font-size:13.5px;line-height:1.45;color:#4A5D7A}
.py-st{margin-top:auto;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px;background:#eef3ff;color:#2f55c9}
.py-st.ok{background:#e7f8ef;color:#12805c}.py-st.lk{background:#f1f3f8;color:#5b6680}.py-st.pr{background:#fff4dc;color:#8a5a00}
.py-ov .mh{margin-bottom:8px}
.py-tools-sec{margin-top:0!important}
.py-tools-sec .ov-sec-h,.py-cycle-sec .ov-sec-h{margin-bottom:6px}
.py-tools-sec .ov-sec-h h2,.py-cycle-sec .ov-sec-h h2{font-size:16px}
.py-cycle-sec{margin-top:10px!important}
.py-cycle-sec+.ov-sec{margin-top:16px}
.py-cycle{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.py-step{display:flex;align-items:center;gap:10px;padding:7px 12px;border-radius:14px;border:1px solid #CFE0FF;background:linear-gradient(135deg,#EAF4FF,#DDEBFF)}
.py-step .n{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:22px;color:#3D6BFF;flex:none;min-width:22px;line-height:1}
.py-step .tx{display:flex;flex-direction:column;min-width:0}.py-step b{font-size:14px}.py-step small{font-size:12px;color:#4A5D7A;line-height:1.3}
@media (max-width:860px){.py-cycle{grid-template-columns:repeat(2,minmax(0,1fr))}}
.py-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.py-tool{display:flex;flex-direction:row;align-items:center;gap:12px;text-align:left;font:inherit;cursor:pointer;padding:7px 12px;border-radius:14px;border:1px solid #CFE0FF;background:linear-gradient(135deg,#EAF4FF,#DDEBFF);box-shadow:0 12px 26px -22px rgba(16,34,58,.5);min-height:44px;color:#10223A}
.py-tool:hover{border-color:#B8CCF5;transform:translateY(-2px)}
.py-tool .ic{font-size:22px;flex:none;line-height:1}.py-tool .tx{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.py-tool b{font-size:15px}.py-tool small{font-size:12.5px;color:#4A5D7A;line-height:1.35}
.py-engine{cursor:default}.py-engine:hover{transform:none;border-color:#CFE0FF}
.py-eng-btn{flex:none;font:inherit;font-weight:700;font-size:13px;padding:6px 12px;min-height:34px;border-radius:999px;border:0;cursor:pointer;color:#fff;background:linear-gradient(135deg,#1f6bff,#0a4fe0);box-shadow:0 8px 16px -10px rgba(10,79,224,.8)}
.py-eng-btn:disabled{opacity:.7;cursor:default}
.py-games{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.py-games:empty,.py-games>div:empty{display:none}
/* topic: DLB header card */
.py-dlb header.top.py-top{border-radius:26px;margin:10px 0 12px;padding:22px 0 20px;color:#fff}
.py-dlb header.top.py-top .wrap{padding:0 26px;max-width:none}
.py-dlb header.top.py-top,.py-dlb header.top.py-top h1,.py-dlb header.top.py-top h1 em,.py-dlb header.top.py-top .crumb{color:#fff!important}
.py-dlb header.top.py-top .crumb{font-size:13px;opacity:.92;margin-bottom:8px}
.py-dlb header.top.py-top .title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding-right:120px}
.py-dlb header.top.py-top .code-badge{background:#fff;color:#2F6BFF;font-weight:700;font-size:15px;padding:6px 14px;border-radius:999px}
.py-dlb header.top.py-top h1{margin:0;font-size:28px;font-weight:700}
.py-dlb header.top.py-top h1 em{font-family:'Instrument Serif',Georgia,serif;font-weight:400}
.py-dlb header.top.py-top .cmd-term{margin-top:12px;padding:10px 14px;font-size:14px;line-height:1.5;margin-right:120px}
.py-dlb .py-hl{font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;background:#FFF1C9;color:#7a4b00}
.py-dlb .py-top-badge{position:absolute;right:20px;top:50%;transform:translateY(-50%);width:104px;height:104px;object-fit:contain;z-index:1;filter:drop-shadow(0 10px 18px rgba(10,20,60,.35))}
/* topic: tabs like A1 */
.py-dlb .stepnav-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0 12px}
.py-dlb .stepnav.tabbar{display:flex;gap:10px;flex-wrap:wrap;margin:0;flex:1 1 auto}
.py-dlb #main .stepnav.tabbar .stepbtn.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:150px;flex:1 1 150px;min-height:56px;padding:10px 14px 11px;border-radius:16px;cursor:pointer;font:inherit;color:#10223A;position:relative}
.py-dlb #main .stepnav.tabbar .stepbtn.tab .n{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:21px;line-height:1}
.py-dlb #main .stepnav.tabbar .stepbtn.tab .lbl{font-weight:600;font-size:15px}
.py-dlb #main .stepnav.tabbar .stepbtn.tab.active{background:#fff!important;background-image:none!important;color:#10223A!important;border:2px solid #3D6BFF!important;box-shadow:0 0 0 4px rgba(61,107,255,.12),0 12px 24px -18px rgba(47,107,255,.8)!important}
.py-dlb #main .stepnav.tabbar .stepbtn.tab.active .lbl{color:#10223A}
.py-dlb #main .stepnav.tabbar .stepbtn.tab .check{position:absolute;right:10px;top:8px;font-weight:800;opacity:0}
.py-dlb #main .stepnav.tabbar .stepbtn.tab.done .check{opacity:1}
.py-dlb .mark-done-btn{min-height:44px}
.py-dlb .dlb-pager{margin:6px 0 4px}
.py-dlb .dlb-pager-bottom{margin:30px 0 0}
.py-dlb .dlb-pg.py-locked{opacity:.6}
@media (max-width:640px){
  .py-dlb .layout{padding:0 12px 30px}
  .py-dlb header.top.py-top .title-row,.py-dlb header.top.py-top .cmd-term{padding-right:0;margin-right:0}
  .py-dlb .py-top-badge{position:static;transform:none;display:block;width:72px;height:72px;margin:10px 0 0 26px}
  .py-dlb header.top.py-top h1{font-size:23px}
  .py-dlb #main .stepnav.tabbar .stepbtn.tab{min-width:0;flex:1 1 30%;padding:8px 6px}
  .py-dlb #main .stepnav.tabbar .stepbtn.tab .lbl{font-size:13.5px}
  .py-tile .py-badge{width:80px;height:80px}
}

.py-free{margin:0 0 18px;padding:14px 18px;border-radius:18px;background:linear-gradient(135deg,#eef6ff,#f4efff);border:1px solid #d6e4ff;line-height:1.55}
.py-free a{font-weight:700;color:#1f55c9}
/* bonus game cards: art in a neat square, text beside it (3 Dec) */
#ov-games .pdl-promo,#ov-games .cl-promo{display:flex!important;align-items:center;gap:16px;padding:14px 16px!important;margin:0!important;min-height:0!important;overflow:hidden}
#ov-games .fx-art{flex:none!important;width:112px!important;height:112px!important;position:relative!important;overflow:hidden!important;border-radius:18px!important;margin:0!important}
#ov-games .fx-art img{position:static!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;transform:none!important;border-radius:18px!important;margin:0!important}
#ov-games .fx-art .fx-lock{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important}
#ov-games .pdl-promo-body,#ov-games .cl-promo-body{flex:1;min-width:0;position:relative;z-index:1}
#ov-games .pdl-promo-cta,#ov-games .cl-promo-cta{flex:none;position:static!important}
@media (max-width:560px){#ov-games .fx-art{width:80px!important;height:80px!important}#ov-games .pdl-promo-cta,#ov-games .cl-promo-cta{display:none}}
