/* Toán tiếng Anh THCS – Tài liệu chuẩn Bộ GD&ĐT · © thầy Lê Tâm, THCS Quang Trung, Đà Lạt */
.tab{--ink:#14213d;--mut:#5b6475;--line:#e3e7ef;--bg:#f6f8fc;--card:#fff;--pri:#1d4ed8;--pri2:#0e7490;--ok:#0a8f4e;--no:#c2410c;--warn:#b45309;--acc:#f59e0b;
  font-size:16px;line-height:1.6;color:var(--ink);font-family:"Be Vietnam Pro","Segoe UI",Roboto,Arial,sans-serif;font-style:normal;max-width:1100px;margin:0 auto}
.tab *{box-sizing:border-box;font-style:normal}
.tab i,.tab em{font-style:italic}
.tab a{color:var(--pri)}
.tab svg{width:1.15em;height:1.15em;fill:currentColor;vertical-align:-.2em}
.tab .tab-loading,.tab .tab-empty{padding:2em;text-align:center;color:var(--mut)}
.tab .tab-muted{color:var(--mut);font-size:.95em}
/* đầu trang */
.tab .tab-top{display:flex;flex-wrap:wrap;gap:.8em 1.2em;align-items:center;justify-content:space-between;padding:.9em 1em;border-radius:1em;background:linear-gradient(120deg,#0b3a75,#1d4ed8 55%,#0e7490);color:#fff;margin-bottom:1em}
.tab .tab-brand{display:flex;gap:.7em;align-items:center;color:#fff;text-decoration:none}
.tab .tab-brand b{display:block;font-size:1.15em}
.tab .tab-brand small{opacity:.85;font-size:.85em}
.tab .tab-logo{display:grid;place-items:center;width:2.2em;height:2.2em;border-radius:.6em;background:rgba(255,255,255,.18);font-size:1.3em;font-weight:700}
.tab .tab-search{display:flex;flex:1 1 18em;max-width:28em}
.tab .tab-search input{flex:1;min-width:0;padding:.6em .9em;border:0;border-radius:.6em 0 0 .6em;font-size:1em;color:var(--ink)}
.tab .tab-search button{padding:.6em 1em;border:0;border-radius:0 .6em .6em 0;background:var(--acc);color:#1f1300;font-weight:700;cursor:pointer;font-size:1em}
/* trang chủ */
.tab .tab-hero{display:grid;grid-template-columns:1.6fr 1fr;gap:1.2em;padding:1.4em;border-radius:1em;background:linear-gradient(135deg,#eef4ff,#f0fdfa);border:1px solid var(--line);margin-bottom:1em}
.tab .tab-hero h1{font-size:1.6em;line-height:1.25;margin:0 0 .4em}
.tab .tab-hero p{margin:0 0 .8em;color:#334155}
.tab .tab-nums{display:flex;flex-wrap:wrap;gap:.6em}
.tab .tab-nums span{background:#fff;border:1px solid var(--line);border-radius:.7em;padding:.35em .8em}
.tab .tab-nums b{color:var(--pri);font-size:1.15em}
.tab .tab-how{margin:0;padding:0;list-style:none;display:grid;gap:.6em;align-content:center;counter-reset:s}
.tab .tab-how li{counter-increment:s;background:#fff;border:1px solid var(--line);border-radius:.8em;padding:.6em .9em}
.tab .tab-how li:before{content:counter(s);display:inline-grid;place-items:center;width:1.6em;height:1.6em;border-radius:50%;background:var(--pri);color:#fff;font-weight:700;margin-right:.5em}
.tab .tab-grades{display:flex;gap:.5em;flex-wrap:wrap;margin:1em 0}
.tab .tab-grades a{padding:.55em 1.3em;border-radius:2em;border:2px solid var(--pri);text-decoration:none;font-weight:700}
.tab .tab-grades a.on{background:var(--pri);color:#fff}
.tab .tab-chap{margin:0 0 1.2em}
.tab .tab-chap h2{font-size:1.2em;margin:.2em 0 .6em;display:flex;gap:.6em;align-items:baseline;flex-wrap:wrap}
.tab .tab-chap h2 span{font-size:.75em;font-weight:700;color:#fff;background:var(--pri2);border-radius:.4em;padding:.15em .6em;white-space:nowrap}
.tab .tab-lessons{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(16em,1fr));gap:.6em}
.tab .tab-lessons a{display:flex;gap:.7em;align-items:center;padding:.7em .9em;border-radius:.8em;background:var(--card);border:1px solid var(--line);text-decoration:none;color:var(--ink);height:100%;transition:transform .15s,box-shadow .15s}
.tab .tab-lessons a:hover,.tab .tab-lessons a:focus-visible{transform:translateY(-2px);box-shadow:0 .4em 1em rgba(29,78,216,.12)}
.tab .tab-lessons .n{flex:none;display:grid;place-items:center;width:2.1em;height:2.1em;border-radius:.6em;background:#e0e9ff;color:var(--pri);font-weight:800}
.tab .tab-lessons .t{flex:1;font-weight:600}
.tab .tab-lessons .w{flex:none;font-size:.8em;color:var(--mut)}
/* bài học */
.tab .tab-crumb{font-size:.92em;color:var(--mut);margin:.2em 0 .6em}
.tab .tab-lh{padding:1.2em;border-radius:1em;background:linear-gradient(135deg,#eef4ff,#fff7e6);border:1px solid var(--line);margin-bottom:1em}
.tab .tab-lh h1{font-size:1.7em;line-height:1.2;margin:.3em 0 .5em}
.tab .tab-badge{display:inline-block;background:var(--pri);color:#fff;border-radius:.5em;padding:.15em .7em;font-weight:700}
.tab .tab-toc{display:flex;flex-wrap:wrap;gap:.4em;margin-top:.8em}
.tab .tab-toc a{text-decoration:none;background:#fff;border:1px solid var(--line);border-radius:2em;padding:.3em .9em;font-size:.92em}
.tab .tab-toc small{color:var(--mut)}
.tab .tab-sec{margin:1.4em 0}
.tab .tab-sec>h2{font-size:1.3em;border-left:.3em solid var(--acc);padding-left:.5em;margin:0 0 .7em}
.tab .tab-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(17em,1fr));gap:.8em}
.tab .tab-card{background:var(--card);border:1px solid var(--line);border-radius:1em;padding:.9em 1em;display:flex;flex-direction:column;gap:.3em}
.tab .tab-card-h{display:flex;gap:.5em;align-items:baseline;flex-wrap:wrap}
.tab .tab-card h3{font-size:1.4em;margin:0;line-height:1.25;color:#0b2a66;font-weight:800}
.tab .tab-i{font-size:.8em;color:var(--mut)}
.tab .tab-pos{font-size:.8em;color:#7c3aed;background:#f3e8ff;border-radius:.4em;padding:0 .45em}
.tab .tab-ipa{font-family:"Charis SIL","Doulos SIL","Gentium Plus","Segoe UI",Arial,sans-serif;color:var(--pri2);font-size:1.1em}
.tab .tab-ipa.lg{font-size:1.5em}
.tab .tab-star{color:var(--warn);font-weight:700;cursor:help}
.tab .tab-vi{font-weight:600;font-size:1.05em}
.tab .tab-ex{margin:.2em 0;color:#334155;font-size:.95em;background:var(--bg);border-radius:.6em;padding:.4em .6em}
.tab .tab-acts{display:flex;flex-wrap:wrap;gap:.4em;margin-top:auto;padding-top:.3em}
.tab .tab-acts.c{justify-content:center;margin:.8em 0}
.tab .tab-b{display:inline-flex;gap:.3em;align-items:center;border:1px solid #c7d2fe;background:#eef2ff;color:#1e3a8a;border-radius:.6em;padding:.35em .7em;cursor:pointer;font-size:.92em;font-weight:600}
.tab .tab-b.mic{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.tab .tab-b.on,.tab .tab-sp.on{background:var(--acc);color:#1f1300;border-color:var(--acc)}
.tab .tab-b.rec,.tab .tab-mic.rec{background:#fee2e2;border-color:#fca5a5;color:#991b1b;animation:tabp 1s infinite}
@keyframes tabp{50%{opacity:.6}}
.tab .tab-sp{display:inline-grid;place-items:center;width:1.9em;height:1.9em;border-radius:50%;border:1px solid #c7d2fe;background:#eef2ff;color:#1e3a8a;cursor:pointer;vertical-align:middle;padding:0}
.tab .tab-tw{overflow-x:auto;margin:.5em 0}
.tab .tab-t{border-collapse:collapse;width:100%;background:#fff;font-size:.97em}
.tab .tab-t th,.tab .tab-t td{border:1px solid var(--line);padding:.45em .6em;text-align:left;vertical-align:top}
.tab .tab-t th{background:#eef2ff}
.tab .tab-expr{margin:0;padding-left:1.2em}
.tab .tab-expr li{margin:.35em 0}
.tab .tab-expr li.raw{list-style:none;margin-left:-1.2em}
.tab .tab-box{border:1px solid var(--line);border-radius:.8em;background:#fff;padding:.6em .9em;margin:.6em 0}
.tab .tab-box summary{cursor:pointer;font-weight:700;color:#0b2a66}
.tab .tab-box.ans{background:#f0fdf4;border-color:#bbf7d0}
.tab .tab-ex-box{border-left:.25em solid #93c5fd;background:#fff;border-radius:.5em;padding:.4em .9em;margin:.6em 0}
.tab .tab-ex-box p{margin:.3em 0}
.tab .tab-fig{margin:.6em 0;text-align:center}
.tab .tab-fig img{max-width:100%;height:auto;border-radius:.5em}
.tab .tab-pn{display:flex;justify-content:space-between;gap:1em;margin:1.5em 0}
.tab .tab-pn a,.tab .tab-btn{display:inline-block;padding:.6em 1.1em;border-radius:.7em;border:1px solid var(--line);background:#fff;text-decoration:none;font-weight:700;cursor:pointer;font-size:1em;color:var(--ink)}
.tab .tab-btn.primary{background:var(--pri);border-color:var(--pri);color:#fff}
/* đọc từ vựng */
.tab .tab-read{max-width:40em;margin:0 auto;text-align:center;background:#fff;border:1px solid var(--line);border-radius:1em;padding:1.2em}
.tab .tab-prog{display:flex;gap:.8em;align-items:center;font-size:.92em;color:var(--mut)}
.tab .tab-prog .tab-bar{flex:1}
.tab .tab-big{font-size:2.4em;font-weight:800;color:#0b2a66;line-height:1.2;margin:.6em 0 .2em}
.tab .tab-mic{display:inline-flex;gap:.5em;align-items:center;padding:.8em 1.6em;border-radius:3em;border:0;background:linear-gradient(135deg,#059669,#0e7490);color:#fff;font-size:1.15em;font-weight:800;cursor:pointer}
.tab .tab-fb{min-height:1em}
.tab .tab-fb.good{color:var(--ok)}.tab .tab-fb.bad{color:var(--no)}.tab .tab-fb.warn{color:var(--warn)}
.tab .tab-pct{display:flex;align-items:center;gap:.8em;flex-wrap:wrap;margin:.4em 0;text-align:left}
.tab .tab-pct b{font-size:1.6em;min-width:3em}
.tab .tab-pct.ok b{color:var(--ok)}.tab .tab-pct.no b{color:var(--no)}
.tab .tab-bar{position:relative;display:block;flex:1 1 8em;height:.8em;border-radius:1em;background:#e5e7eb}
.tab .tab-bar i{display:block;height:100%;border-radius:1em;background:linear-gradient(90deg,#f59e0b,#10b981)}
.tab .tab-pct.no .tab-bar i{background:#f59e0b}
.tab .tab-bar em{position:absolute;top:-.3em;bottom:-.3em;width:.2em;margin-left:-.1em;background:#1f2937}
.tab .tab-sum{list-style:none;padding:0;text-align:left}
.tab .tab-sum li{padding:.35em 0;border-bottom:1px dashed var(--line)}
.tab .tab-sum .ok{color:var(--ok)}.tab .tab-sum .no{color:var(--no)}
/* tra cứu */
.tab .tab-h1{font-size:1.5em;margin:.2em 0}
.tab .tab-hits{display:grid;gap:.5em}
.tab .tab-hit{display:flex;gap:.8em;align-items:center;background:#fff;border:1px solid var(--line);border-radius:.8em;padding:.6em .9em}
.tab .tab-hit>div{flex:1;min-width:0}
.tab .tab-hit b{font-size:1.15em;color:#0b2a66}
.tab .tab-where{font-size:.88em;color:var(--mut);margin-top:.2em}
.tab .tab-where a{display:inline-block;margin:.15em .3em 0 0;padding:.05em .55em;border:1px solid var(--line);border-radius:1em;text-decoration:none;background:var(--bg)}
/* chân trang */
.tab .tab-foot{margin-top:2em;padding:1em;border-top:1px solid var(--line);text-align:center;font-size:.88em;color:var(--mut)}
.tab .tab-foot p{margin:.3em 0}
.tab .tab-toast{position:fixed;left:50%;bottom:1.2em;transform:translateX(-50%);background:#111827;color:#fff;padding:.6em 1em;border-radius:.6em;z-index:9999;max-width:90vw}
@media (max-width:720px){.tab .tab-hero{grid-template-columns:1fr}.tab .tab-hero h1{font-size:1.3em}.tab .tab-big{font-size:1.9em}.tab .tab-hit{flex-wrap:wrap}.tab .tab-where{text-align:left}}
.tab .tab-sys{display:inline-flex;flex-direction:column;vertical-align:middle;border-left:.14em solid currentColor;border-radius:.6em 0 0 .6em;padding:.1em .5em;margin:.2em .2em;line-height:1.35}
