/* Teorie: the theory lessons */
/* theory */
.app.thw{max-width:1480px}
.th-list .th-lh{display:flex;align-items:center;justify-content:space-between;gap:20px;background:linear-gradient(120deg,#2c56d6,#7a3fd1);color:#fff;border-radius:24px;padding:28px 32px;margin-bottom:8px}
.th-list .th-lh .eyebrow{color:rgba(255,255,255,.8)}
.th-list h1{margin:4px 0 8px;font-size:38px;line-height:44px;color:#fff}
.th-list .lead{color:rgba(255,255,255,.88);font-size:17px;line-height:27px;margin:0;max-width:62ch}
.th-lm{width:120px;height:auto;flex:none}
.th-grp{margin:28px 0}
.th-gh{display:flex;align-items:center;gap:8px;font-size:19px;margin:0 0 12px}
.th-gh .sdot{background:var(--sc)}.th-gh .muted{font-size:14px;font-weight:600;margin-left:auto}
.th-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.th-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;text-align:left;border:none;background:var(--card);box-shadow:inset 0 0 0 1px var(--line);border-radius:18px;padding:18px;cursor:pointer;font:inherit;color:inherit;transition:transform .12s,box-shadow .12s}
.th-card:hover{box-shadow:inset 0 0 0 2px var(--sc),0 12px 28px rgba(42,38,34,.1);transform:translateY(-2px)}
.th-ct{display:flex;align-items:center;gap:12px}
.th-ci{display:flex;flex-direction:column;gap:2px;min-width:0}
.th-ci b{font-size:17px}.th-ci>span{font-size:13px;color:var(--muted)}
.th-cs{font-size:13.5px;line-height:20px;color:var(--muted)}
.th-cgo{font-size:14px;font-weight:800;color:var(--sc);margin-top:auto}
.th-page{display:grid;grid-template-columns:230px minmax(0,1fr);gap:44px;align-items:start}
.th-toc{position:sticky;top:calc(var(--toph-v,var(--toph)) + 20px);display:flex;flex-direction:column;gap:6px}
.th-toc nav{display:flex;flex-direction:column;gap:4px;margin:12px 0 14px}
.th-toc nav button{display:flex;align-items:center;gap:10px;border:none;background:none;text-align:left;padding:8px 10px;border-radius:10px;font:inherit;font-size:14.5px;font-weight:600;color:var(--ink);cursor:pointer}
.th-toc nav button i{flex:none;width:10px;height:10px;border-radius:3px;background:var(--c)}
.th-toc nav button:hover{background:color-mix(in srgb,var(--c) 12%,transparent)}
.th-tocgo{font-size:14px;padding:10px 14px}
.th-back{border:none;background:none;padding:0;font:inherit;font-weight:700;color:var(--acc);cursor:pointer;text-align:left}
.th-hero{display:flex;align-items:center;gap:20px;color:#fff;background:linear-gradient(135deg,color-mix(in srgb,var(--sc) 78%,#000),color-mix(in srgb,var(--sc) 95%,#000));border-radius:24px;padding:26px 30px;margin-bottom:16px;box-shadow:0 10px 26px color-mix(in srgb,var(--sc) 18%,transparent)}
.th-hi{flex:none;width:76px;height:76px;border-radius:20px;background:rgba(255,255,255,.16);display:grid;place-items:center;color:#fff}
.th-hi svg{width:46px;height:46px}
.th-he{font-size:13px;font-weight:700;color:rgba(255,255,255,.8)}
.th-hero h1{margin:4px 0 6px;font-size:36px;line-height:42px;color:#fff}
.th-hero p{margin:0;color:rgba(255,255,255,.9);font-size:16.5px;line-height:26px}
.th-tip{display:flex;gap:12px;align-items:baseline;background:color-mix(in srgb,var(--sun) 16%,var(--card));border:1.5px dashed color-mix(in srgb,var(--sun) 55%,transparent);border-radius:16px;padding:14px 18px;margin:0 0 18px;font-size:16px;line-height:26px}
.th-tip b{flex:none;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--org)}
.th-blk{border-radius:22px;background:color-mix(in srgb,var(--c) 8%,var(--card));border:1px solid color-mix(in srgb,var(--c) 22%,transparent);margin:0 0 18px;overflow:hidden;scroll-margin-top:calc(var(--toph) + 16px)}
.th-bh{display:flex;align-items:center;gap:12px;padding:14px 20px;background:color-mix(in srgb,var(--c) 16%,var(--card))}
.th-bn{flex:none;width:30px;height:30px;border-radius:10px;background:var(--c);color:#fff;font-weight:900;font-size:15px;display:grid;place-items:center;box-shadow:0 4px 10px color-mix(in srgb,var(--c) 40%,transparent)}
.th-bh h3{margin:0;font-size:19px;color:color-mix(in srgb,var(--c) 75%,var(--ink))}
.th-bb{padding:16px 20px 20px;display:flex;flex-direction:column;gap:12px}
.th-def{background:var(--card);border-radius:14px;padding:12px 16px;border-left:5px solid var(--c)}
.th-dl{display:block;font-size:11.5px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--c);margin-bottom:4px}
.th-def p{margin:0;font-size:15.5px;line-height:25px}
.fcs{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.fc{background:var(--card);border-radius:14px;padding:12px 16px 14px;display:flex;flex-direction:column;gap:6px;min-width:0;box-shadow:0 1px 0 color-mix(in srgb,var(--c) 25%,transparent)}
.fc-star{box-shadow:inset 0 0 0 2px var(--c),0 6px 16px color-mix(in srgb,var(--c) 18%,transparent)}
.fc-n{font-size:12.5px;font-weight:800;color:var(--muted);display:flex;align-items:center;gap:6px}
.fc-st{font-style:normal;color:var(--c);font-size:13px}
.fc-f{font-size:18px;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;padding:3px 0}
.fc-note{font-size:13px;color:var(--muted);line-height:20px}
.th-note{margin:0;padding:10px 14px;border-radius:12px;background:var(--card);font-size:14.5px;line-height:24px;border:1px dashed color-mix(in srgb,var(--c) 35%,transparent)}
.th-tw{overflow-x:auto;border-radius:14px;background:var(--card);box-shadow:0 1px 0 color-mix(in srgb,var(--c) 25%,transparent)}
.th-tb{width:100%;border-collapse:collapse;font-size:17px}
.th-tb th{background:var(--c);color:#fff;text-align:left;padding:10px 16px;font-size:14px;font-weight:800}
.th-tb th .katex{color:#fff}
.th-tb td{padding:9px 16px;border-top:1px solid var(--line);vertical-align:middle}
.th-tb tbody tr:nth-child(even) td{background:color-mix(in srgb,var(--c) 5%,var(--card))}
.th-tb td.th-t0{font-weight:700;background:color-mix(in srgb,var(--c) 9%,var(--card))!important}
.th-go{display:flex;gap:10px;flex-wrap:wrap;margin:28px 0 8px}
.th-soon{display:flex;align-items:center;gap:16px;background:var(--panel);border-radius:16px;padding:18px}
.th-sm{width:90px;height:auto}
.th-teaser{display:flex;align-items:center;gap:14px;width:100%;text-align:left;border:none;background:linear-gradient(120deg,var(--acc-w),var(--card));box-shadow:inset 0 0 0 1px var(--line);border-radius:14px;padding:12px 16px;margin:0 0 14px;cursor:pointer;font:inherit;color:inherit}
.th-teaser:hover{box-shadow:inset 0 0 0 2px var(--acc)}
.th-teaser>svg{flex:none;width:36px;height:36px;padding:8px;border-radius:10px;background:var(--acc);color:#fff}
.th-tt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.th-tt b{font-size:15.5px}.th-tsub{font-size:13.5px;color:var(--muted)}
.th-tgo{flex:none;font-weight:800;color:var(--acc);font-size:14px}
.th-wrong svg{width:17px;height:17px;vertical-align:-3px;margin-right:6px}
.th-dlg.dlg{width:min(940px,calc(calc(100vw / var(--rz)) - 32px))}
.th-qh{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.th-qh h2{margin:2px 0 0;font-size:24px}
.th-qf{padding-top:4px}
@media (max-width:1000px){.th-page{grid-template-columns:minmax(0,1fr);gap:0}.th-toc{position:static;flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.th-toc nav,.th-tocgo{display:none}}
@media (max-width:700px){.th-cards{grid-template-columns:1fr}.th-hero{padding:20px;gap:14px}.th-hi{width:54px;height:54px;border-radius:14px}.th-hi svg{width:32px;height:32px}.th-hero h1{font-size:27px;line-height:33px}.fcs{grid-template-columns:1fr}.th-lm{display:none}.th-list .th-lh{padding:22px}.th-list h1{font-size:30px;line-height:36px}.th-bb{padding:12px 12px 14px}.th-bh{padding:12px 14px}.th-tb{font-size:15.5px}.th-tb td,.th-tb th{padding:8px 10px}}

