/* Bài 6 only: scoped two-column course layout, rule tables and practice. */
.shell>main:has(>.sandhi-lesson){max-width:1360px;padding:16px 24px 48px}
.sandhi-lesson{--bd-blue:#0876ed;--bd-ink:#182f4c;--bd-muted:#536b7f;--bd-line:#dce7ed;--bd-green:#168667;color:var(--bd-ink);max-width:1280px;margin:0 auto;padding:0;background:#fff;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.sandhi-lesson *{box-sizing:border-box}
.sandhi-lesson h1,.sandhi-lesson h2,.sandhi-lesson h3,.sandhi-lesson p{margin:0 0 12px;color:inherit}
.sandhi-lesson h1{font-size:clamp(25px,2.6vw,36px);line-height:1.2;letter-spacing:-.5px}
.sandhi-lesson h2{font-size:19px;line-height:1.45;display:flex;align-items:center;gap:10px}
.sandhi-lesson h3{font-size:17px;line-height:1.5}
.sandhi-lesson small{font-size:12px;display:block;line-height:1.55}
.sandhi-lesson button,.sandhi-lesson summary,.sandhi-lesson a{touch-action:manipulation}
.sandhi-lesson button{font:inherit;font-size:14px;font-weight:650;min-height:44px;min-width:44px;line-height:1.5;border-radius:8px;cursor:pointer;box-shadow:none;text-align:center;white-space:normal}
.sandhi-lesson button:disabled{opacity:.6;cursor:default}
.sandhi-lesson button:focus-visible,.sandhi-lesson a:focus-visible,.sandhi-lesson summary:focus-visible,.sandhi-lesson input:focus-visible,.sandhi-lesson textarea:focus-visible{outline:3px solid #065bc5;outline-offset:3px}
.sandhi-lesson .bd-primary{background:#076be0;border:1px solid #076be0;color:#fff;padding:10px 16px}
.sandhi-lesson .bd-secondary{background:#f5faff;border:1px solid #cee0ef;color:#164e86;padding:9px 12px}
.sandhi-lesson .bd-secondary:hover{background:#e8f3ff}
.sandhi-lesson .bd-secondary[aria-pressed=true]{background:#deeeff;border-color:#2477c7}
.sandhi-lesson .bd-icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle;display:inline-block;margin-right:4px}
.sandhi-lesson .bd-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:22px;align-items:start}
.sandhi-lesson .bd-main,.sandhi-lesson .bd-sidebar{min-width:0}
/* Keep the lesson containers in normal flow, independent of global app chrome. */
.sandhi-lesson .bd-sidebar{display:block;position:static;width:auto;height:auto;padding:0;margin:0;border:0}
.sandhi-lesson .bd-hero,.sandhi-lesson .bd-hero-copy{display:block;height:auto;min-width:0}
.sandhi-lesson .bd-topbar>.bd-footer{flex-shrink:0}
.sandhi-lesson .bd-footer a{min-width:0}
.sandhi-lesson .bd-footer a>span{min-width:0;overflow-wrap:normal;word-break:normal}
.sandhi-lesson .bd-course{position:sticky;top:110px;border:1px solid #e4edf3;border-radius:12px;background:#fbfdff;padding:10px 7px}
.sandhi-lesson .bd-course summary{font-size:15px;font-weight:750;color:#15334f;padding:8px;list-style:none;cursor:pointer}
.sandhi-lesson .bd-course summary small{margin-top:4px;font-weight:400;color:#536b7f}
.sandhi-lesson .bd-course nav{display:grid;gap:4px;margin:8px 0}
.sandhi-lesson nav a>span{display:block}
.sandhi-lesson .bd-course a{display:grid;grid-template-columns:25px 1fr 10px;align-items:center;gap:8px;min-height:46px;text-decoration:none;border-radius:7px;padding:7px 6px;color:#314f6d;font-size:12px;line-height:1.45}
.sandhi-lesson .bd-course a[aria-current=page]{background:#086fe8;color:white}
.sandhi-lesson .bd-nav-number{display:grid;place-items:center;min-width:25px;height:25px;border-radius:6px;background:#e9f2fd;color:#2a5280;font-size:12px;flex-shrink:0}
.sandhi-lesson .bd-course-progress{padding:12px 7px 3px;border-top:1px solid #e0eaf0;font-size:12px}
.sandhi-lesson .bd-course-progress progress{accent-color:#169a77}
.sandhi-lesson .bd-desktop-toc{margin-top:18px;border-top:1px solid #e4edf3;padding-top:18px}
.sandhi-lesson .bd-desktop-toc h2{font-size:15px}
.sandhi-lesson .bd-desktop-toc nav,.sandhi-lesson .bd-mobile-toc nav{display:grid;gap:5px}
.sandhi-lesson .bd-desktop-toc button,.sandhi-lesson .bd-mobile-toc button{display:flex;align-items:center;gap:8px;text-align:left;font-size:12px;background:white;border:0;padding:6px}
.sandhi-lesson .bd-mobile-toc{display:none}
.sandhi-lesson .bd-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.sandhi-lesson .bd-breadcrumb{display:flex;align-items:center;gap:8px;font-size:12px;flex-wrap:wrap}
.sandhi-lesson .bd-breadcrumb a{color:#29649c;text-decoration:none}
.sandhi-lesson .bd-topbar .bd-footer{margin:0;padding:0;border:0;gap:8px}
.sandhi-lesson .bd-topbar .bd-footer a{padding:7px 10px;font-size:12px}
.sandhi-lesson .bd-topbar .bd-footer small{font-size:10px}
.sandhi-lesson .bd-hero{position:relative;isolation:isolate;background:#e7f5ff;border-radius:12px;overflow:hidden;padding:22px}
.sandhi-lesson .bd-landscape{position:absolute;right:0;top:0;width:48%;height:100%;object-fit:cover;object-position:80% center;z-index:-2}
.sandhi-lesson .bd-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#e7f5ff 38%,#e7f5fff5 49%,#e7f5ff00 75%);z-index:-1}
.sandhi-lesson .bd-hero-copy{width:73%;position:relative}
.sandhi-lesson .bd-badge{display:inline-block;border-radius:6px;padding:2px 12px;background:#0876ed;color:white;font-size:12px;font-weight:750;margin-bottom:9px}
.sandhi-lesson .bd-subtitle{font-size:17px}
.sandhi-lesson .bd-hero-copy>p:not(.bd-subtitle){max-width:550px;font-size:14px}
.sandhi-lesson .bd-meta{display:flex;gap:15px;flex-wrap:wrap;margin-top:16px;font-size:12px;font-weight:600}
.sandhi-lesson .bd-meta>span{display:flex;align-items:center;gap:4px}
.sandhi-lesson .bd-inline-progress{padding:14px 2px;color:#536b7f;font-size:12px}
.sandhi-lesson .bd-inline-progress label{display:flex;justify-content:space-between;color:#234460}
.sandhi-lesson progress{width:100%;height:7px;display:block;border:none;border-radius:7px;accent-color:#0876ed;margin:7px 0;background:#e5eef4}
.sandhi-lesson progress::-webkit-progress-bar{background:#e5eef4;border-radius:7px}
.sandhi-lesson progress::-webkit-progress-value{background:#0876ed;border-radius:7px}
.sandhi-lesson .bd-goals{background:#edf9f4;border:1px solid #dcf0e7;border-radius:10px;padding:16px 20px;margin-bottom:20px}
.sandhi-lesson .bd-goals h2{font-size:18px}
.sandhi-lesson .bd-goals ul{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 20px;margin:0;padding:0;font-size:13px}
.sandhi-lesson .bd-goals li{position:relative;padding-left:23px}
.sandhi-lesson .bd-goals li:before{content:'✓';position:absolute;left:0;top:2px;border-radius:50%;background:#168d6c;color:white;font-size:10px;width:15px;height:15px;display:grid;place-items:center}
.sandhi-lesson .bd-heading-number{background:#0876ed;color:white;border-radius:6px;min-width:28px;height:28px;display:grid;place-items:center;font-size:16px}
.sandhi-lesson .bd-mark{font-size:30px;line-height:1.1;font-weight:750;display:block;text-align:center}
.sandhi-lesson .bd-comparison{border:1px solid #f0e1e6;background:#fff5f8;border-radius:10px;padding:18px;margin:20px 0}
.sandhi-lesson .bd-comparison h2{font-size:17px}
.sandhi-lesson .bd-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.sandhi-lesson .bd-muted{font-size:12px;color:var(--bd-muted);margin:10px 0 0}
.sandhi-lesson .bd-practice-cta{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#edf5ff;border-radius:10px;padding:18px}
.sandhi-lesson .bd-practice-cta h2{font-size:17px;margin-bottom:5px}
.sandhi-lesson .bd-practice-cta p{font-size:12px;margin:0}
.sandhi-lesson .bd-audio-note,.sandhi-lesson .bd-card,.sandhi-lesson .bd-section{border:1px solid var(--bd-line);border-radius:11px;background:#fff;padding:20px;margin:20px 0;scroll-margin-top:110px}
.sandhi-lesson .bd-audio-note{background:#f7fafc;font-size:13px}
.sandhi-lesson .bd-live-audio{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sandhi-lesson .bd-live-audio p{margin:0;min-height:22px}
.sandhi-lesson .bd-section{padding:0}
.sandhi-lesson .bd-section>summary{padding:16px;display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;min-height:56px}
.sandhi-lesson .bd-section>summary h2{font-size:18px;margin:0;flex:1}
.sandhi-lesson .bd-section-number{display:grid;place-items:center;background:#e9f3ff;color:#1268b9;border-radius:7px;min-width:29px;height:29px}
.sandhi-lesson .bd-collapse{font-size:11px;color:#4c6680}
.sandhi-lesson .bd-section-body{border-top:1px solid var(--bd-line);padding:20px}
.sandhi-lesson .bd-note{border-left:3px solid #448ec3;background:#eff7fd;padding:12px 14px;border-radius:6px;font-size:13px;color:#294f70;margin:12px 0}
.sandhi-lesson .bd-example-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.sandhi-lesson .bd-triple{background:#f6f9fc;border:1px solid #e6eef4;padding:12px;border-radius:8px;display:flex;flex-direction:column;gap:4px}
.sandhi-lesson .bd-triple>strong{font-size:24px;font-weight:650;color:#203c56}
.sandhi-lesson .bd-pinyin{font-size:17px;color:#305c85}
.sandhi-lesson .bd-triple .bd-actions{margin:6px 0 0}
.sandhi-lesson .bd-triple button{font-size:12px;padding:5px 7px}
.sandhi-lesson .bd-table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;margin:15px 0}
.sandhi-lesson .bd-table{width:100%;min-width:500px;border-collapse:collapse;text-align:left;font-size:14px}
.sandhi-lesson .bd-table caption{text-align:left;color:#536b7f;padding-bottom:10px;font-size:12px}
.sandhi-lesson .bd-table th,.sandhi-lesson .bd-table td{border-bottom:1px solid #dfe9ef;vertical-align:top;padding:10px 7px}
.sandhi-lesson .bd-table thead{background:#edf5fc}
.sandhi-lesson .bd-hanzi{font-size:21px;white-space:nowrap}
.sandhi-lesson .bd-table td:nth-child(2){font-size:14px;white-space:nowrap}
.sandhi-lesson .bd-table td:nth-child(3){min-width:20px}
.sandhi-lesson .bd-table td:last-child{min-width:62px}
.sandhi-lesson .bd-table td small{color:#536b7f}
.sandhi-lesson .bd-mini{background:#f5f9ff;border:1px solid #dceaf7;border-radius:9px;padding:17px;margin:18px 0}
.sandhi-lesson .bd-overline,.sandhi-lesson .bd-kicker{color:#24608f;font-weight:750;font-size:11px;letter-spacing:1px}
.sandhi-lesson .bd-question h3{margin:12px 0}
.sandhi-lesson .bd-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0}
.sandhi-lesson .bd-options button{display:flex;align-items:center;text-align:left;gap:10px;background:white;border:1px solid #cedde9;color:#243f59;padding:12px;font-size:14px}
.sandhi-lesson .bd-option-letter{display:grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#ecf3f9;color:#355c7c}
.sandhi-lesson .bd-options [data-correct=true]{background:#e7f8ef;border:2px solid #148062;opacity:1}
.sandhi-lesson .bd-options [data-wrong=true]{background:#fff0ed;border:2px solid #bb5b44;opacity:1}
.sandhi-lesson .bd-options b{font-size:11px;margin-left:auto;white-space:nowrap}
.sandhi-lesson .bd-feedback{background:#eef5fa;border-radius:8px;padding:14px;color:#254d6b;font-size:14px}
.sandhi-lesson .bd-feedback p{margin:6px 0}
.sandhi-lesson .bd-question-nav{display:flex;flex-wrap:wrap;gap:5px;margin:15px 0}
.sandhi-lesson .bd-question-nav button{padding:5px;min-width:44px}
.sandhi-lesson .bd-question-nav [aria-current=step]{border:2px solid #076be0;background:#e4f0ff}
.sandhi-lesson .bd-question-nav [data-answered=true]{background:#e3f4ed}
.sandhi-lesson .bd-section-end{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:18px 0 0}
.sandhi-lesson .bd-cue{font-size:20px;display:flex;gap:12px;padding:12px;background:#eff5fa;border-radius:8px}
.sandhi-lesson .bd-type-form{margin:16px 0;padding:14px;border:1px solid #dce8f0;border-radius:9px}
.sandhi-lesson .bd-input-row{display:flex;gap:10px;margin:8px 0}
.sandhi-lesson .bd-input-row input{min-width:0;flex:1;min-height:44px;background:#fff;border:1px solid #b8cdde;border-radius:7px;padding:10px;font:inherit;font-size:17px;color:#19374f}
.sandhi-lesson textarea{width:100%;min-height:100px;border:1px solid #b8cdde;border-radius:8px;padding:12px;font:inherit;color:#19374f;margin:10px 0}
.sandhi-lesson .bd-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:12px 0;font-size:14px}
.sandhi-lesson .bd-check input{width:20px;min-width:20px;min-height:20px;accent-color:#076be0}
.sandhi-lesson .bd-card summary{cursor:pointer;min-height:44px;padding:10px 0;color:#1b5888;font-weight:650}
.sandhi-lesson .bd-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.sandhi-lesson .bd-stats>div{background:#f0f6fb;border-radius:8px;padding:12px;text-align:center}
.sandhi-lesson .bd-stats b{display:block;font-size:25px;color:#145d97}
.sandhi-lesson .bd-stats span{font-size:12px}
.sandhi-lesson .bd-review{border:1px solid #eed9ce;background:#fffaf5;border-radius:8px;padding:16px;margin:15px 0}
.sandhi-lesson .bd-footer{display:flex;align-items:stretch;justify-content:space-between;gap:12px;border-top:1px solid #deE8ef;padding-top:18px;margin-top:20px}
.sandhi-lesson .bd-footer a{display:flex;align-items:center;gap:8px;min-height:44px;color:#245c91;background:#f0f7ff;border:1px solid #d0e3f4;border-radius:8px;text-decoration:none;padding:10px 14px;font-size:14px;line-height:1.35}
.sandhi-lesson .bd-footer .bd-next{background:#0870e7;color:white;border-color:#0870e7}
.sandhi-lesson .bd-footer small{font-size:11px;display:block}
.sandhi-lesson .bd-rule{--rule:#116fc4;--rule-bg:#eff7ff;border:1px solid #d9e6ef;border-radius:11px;padding:16px;margin:20px 0;min-width:0;background:#fff}
.sandhi-lesson .bd-rule-bu{--rule:#167b60;--rule-bg:#eef9f3}
.sandhi-lesson .bd-rule-yi{--rule:#a8570d;--rule-bg:#fff6e9}
.sandhi-lesson .bd-rule-neutral{--rule:#72429b;--rule-bg:#f8f2fc}
.sandhi-lesson .bd-rule-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.sandhi-lesson .bd-rule-heading h2{margin:0;font-size:18px;flex-wrap:wrap;gap:7px}
.sandhi-lesson .bd-rule-heading small{font-size:13px;font-weight:400;color:#506a80}
.sandhi-lesson .bd-rule-heading>button{flex-shrink:0;font-size:12px;padding:7px 10px;background:var(--rule-bg);color:var(--rule);border-color:transparent}
.sandhi-lesson .bd-rule .bd-heading-number{background:var(--rule)}
.sandhi-lesson .bd-rule>p{font-size:13px}
.sandhi-lesson .bd-rule-grid{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:15px;align-items:start}
.sandhi-lesson .bd-rule-grid>div{min-width:0}
.sandhi-lesson .bd-rule-grid .bd-table-wrap{margin:0}
.sandhi-lesson .bd-rule-tips{background:var(--rule-bg);padding:14px;border-radius:8px;font-size:12px;line-height:1.65}
.sandhi-lesson .bd-rule-tips>b{display:block;font-size:19px;line-height:1.5;color:var(--rule);text-align:center;margin:0 0 12px;padding:8px;border-radius:6px;background:#fff}
.sandhi-lesson .bd-rule-tips ul{margin:0;padding-left:16px}
.sandhi-lesson .bd-rule-tips li+li{margin-top:9px}
.sandhi-lesson .bd-rule .bd-section{margin:14px 0 0;border-color:#e0e9ef}
.sandhi-lesson .bd-rule .bd-section>summary{background:var(--rule-bg);border-radius:8px}
.sandhi-lesson .bd-example-table{font-size:13px;line-height:1.5}
.sandhi-lesson .bd-example-table th,.sandhi-lesson .bd-example-table td{vertical-align:middle}
.sandhi-lesson .bd-example-table td:nth-child(4){min-width:100px;max-width:185px}
.sandhi-lesson .bd-example-table td:last-child{width:60px}
.sandhi-lesson .bd-example-table button{font-size:0;padding:7px;min-width:44px;border-radius:50%;background:#e8f3ff;color:#145a96;border:0}
.sandhi-lesson .bd-example-table button svg{margin:0;width:19px;height:19px}
.sandhi-lesson .bd-spoken{color:#a0393c;font-weight:650}
.sandhi-lesson .bd-listen-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}
.sandhi-lesson .bd-listen-grid>div{padding:14px;background:white;border:1px solid #dce7ee;border-radius:8px;min-width:0}
.sandhi-lesson .bd-listen-grid p{font-size:19px;margin-top:10px}
.sandhi-lesson .bd-comparison{background:#f2f8fc;border:1px solid #dce7ee;scroll-margin-top:110px}
.sandhi-lesson .bd-summary-table{min-width:760px}
.sandhi-lesson .bd-summary-table th:first-child{min-width:170px}
.sandhi-lesson .bd-section-body details>summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:650;color:#225f92}
.sandhi-lesson .bd-live-audio>button{flex-shrink:0}
@media(max-width:1100px){.sandhi-lesson .bd-hero-copy{width:85%}.sandhi-lesson .bd-meta{gap:8px}.sandhi-lesson .bd-options button{flex-wrap:wrap}.sandhi-lesson .bd-rule-grid{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-rule-tips ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.sandhi-lesson .bd-rule-tips li+li{margin-top:0}.sandhi-lesson .bd-rule-tips>b{text-align:left;font-size:16px}}
@media(max-width:850px){.shell>main:has(>.sandhi-lesson){padding:12px 16px 40px}.sandhi-lesson .bd-layout{grid-template-columns:minmax(0,1fr);gap:15px}.sandhi-lesson .bd-course{position:static;padding:5px}.sandhi-lesson .bd-course summary{list-style:disclosure-closed;padding-left:15px}.sandhi-lesson .bd-desktop-toc{display:none}.sandhi-lesson .bd-mobile-toc{display:block;border:1px solid #dce8ef;border-radius:9px;padding:12px}.sandhi-lesson .bd-mobile-toc summary{min-height:44px;cursor:pointer;font-weight:650}.sandhi-lesson .bd-course a{font-size:14px}.sandhi-lesson .bd-course nav{grid-template-columns:repeat(2,minmax(0,1fr))}.sandhi-lesson .bd-hero-copy{width:76%}}
@media(max-width:600px){.shell>main:has(>.sandhi-lesson){padding:10px 12px 32px}.sandhi-lesson .bd-topbar{align-items:flex-start;flex-direction:column}.sandhi-lesson .bd-topbar .bd-footer{width:100%}.sandhi-lesson .bd-hero{padding:18px}.sandhi-lesson .bd-hero-copy{width:100%}.sandhi-lesson .bd-landscape{opacity:.24;width:75%}.sandhi-lesson .bd-hero:after{background:linear-gradient(90deg,#e7f5ff 12%,#e7f5ffbb 50%,#e7f5ff66)}.sandhi-lesson .bd-meta{font-size:11px}.sandhi-lesson .bd-goals{padding:16px}.sandhi-lesson .bd-goals ul{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-practice-cta{align-items:flex-start;flex-direction:column}.sandhi-lesson .bd-card,.sandhi-lesson .bd-audio-note{padding:16px}.sandhi-lesson .bd-section-body{padding:14px}.sandhi-lesson .bd-section>summary{padding:14px 10px;gap:7px}.sandhi-lesson .bd-section>summary h2{font-size:16px}.sandhi-lesson .bd-collapse{font-size:10px}.sandhi-lesson .bd-example-grid{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-options{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-options button{flex-wrap:nowrap}.sandhi-lesson .bd-mini{padding:12px}.sandhi-lesson .bd-input-row{flex-wrap:wrap}.sandhi-lesson .bd-input-row input{width:100%;flex-basis:100%}.sandhi-lesson .bd-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.sandhi-lesson .bd-footer a{font-size:12px;flex:1;justify-content:center;padding:10px}.sandhi-lesson .bd-course nav{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-section-end>button{flex:1}.sandhi-lesson .bd-triple>strong{font-size:23px}.sandhi-lesson .bd-rule{padding:12px}.sandhi-lesson .bd-rule-heading{align-items:flex-start;flex-direction:column}.sandhi-lesson .bd-rule-tips ul{display:block}.sandhi-lesson .bd-rule-tips li+li{margin-top:8px}.sandhi-lesson .bd-listen-grid{grid-template-columns:minmax(0,1fr)}.sandhi-lesson .bd-comparison{padding:12px}.sandhi-lesson .bd-rule .bd-section-body{padding:12px}}
