.theory-main{min-height:65vh;overflow-wrap:anywhere}
.theory-heading{display:flex;align-items:start;justify-content:space-between;gap:24px;margin:26px 0}
.theory-kicker{color:var(--blue);font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;margin:0 0 10px}
.theory-heading p{line-height:1.6;max-width:680px}
.theory-progress{padding:20px 24px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:24px}
.theory-progress progress{display:block;width:100%;accent-color:var(--blue);height:12px;margin:12px 0}
.theory-progress .row{justify-content:space-between;align-items:center}
.theory-search{max-width:540px;margin:20px 0 28px}.theory-search input{width:100%}
.theory-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}
.theory-chapter{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.theory-chapter summary{cursor:pointer;padding:24px;min-height:100px;list-style:none;display:flex;gap:14px;align-items:start}
.theory-chapter summary::-webkit-details-marker{display:none}.theory-chapter summary:after{content:'+';margin-left:auto;font-size:23px}.theory-chapter[open] summary:after{content:'−'}
.theory-chapter summary:focus-visible{outline:3px solid #f4a61d;outline-offset:-3px}
.theory-number{display:grid;place-items:center;background:#edf1fa;color:var(--blue);width:38px;min-width:38px;height:38px;border-radius:8px;font-weight:bold}
.theory-chapter h2{font-size:20px;margin:0 0 9px}.theory-chapter small{color:#526b7e;line-height:1.5;display:block}
.theory-chapter-heading{flex:1;min-width:0}.theory-chapter .theory-chapter-read-count{margin-top:8px}
.theory-chapter-progress{display:block;width:100%;height:7px;margin-top:9px;border:0;border-radius:999px;overflow:hidden;appearance:none;background:#e6edf4;accent-color:var(--blue)}
.theory-chapter-progress::-webkit-progress-bar{background:#e6edf4;border-radius:999px}.theory-chapter-progress::-webkit-progress-value{background:var(--blue);border-radius:999px}.theory-chapter-progress::-moz-progress-bar{background:var(--blue);border-radius:999px}
.theory-chapter ul{padding:0 24px 14px;margin:0;list-style:none}.theory-chapter li{border-top:1px solid #e6edf4}
.theory-chapter a{display:flex;gap:10px;align-items:center;padding:14px 0;text-decoration:none;color:#173547;line-height:1.45}
.theory-chapter a:hover{text-decoration:underline}.theory-read{color:var(--green);font-weight:700}.theory-chapter .theory-read{margin-left:auto;white-space:nowrap;font-size:12px}
.theory-lesson-heading{background:white;border:1px solid var(--line);padding:24px 28px;margin:20px 0 24px;font-size:clamp(23px,2.4vw,30px);line-height:1.4}
.theory-lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:28px;align-items:start}
.theory-visual{position:sticky;top:calc(var(--koers-header-height, 76px) + 20px);margin:0}.theory-visual img{width:100%;height:auto;display:block;border-radius:14px}.theory-visual figcaption{font-size:14px;line-height:1.6;color:#526b7e;margin:12px 0}
.theory-copy{line-height:1.75;min-width:0}.theory-copy h2{font-size:20px;margin:0 0 12px}.theory-copy p{margin:0 0 17px}.theory-copy ul{padding-left:22px}.theory-copy li{margin-bottom:10px}
.theory-example{background:white;border-left:4px solid var(--blue);padding:18px 22px;border-radius:0 8px 8px 0;margin:22px 0}.theory-example strong{display:block;margin-bottom:8px}
.theory-remember{padding:18px 22px;border:1px solid #c9d7e9;background:#edf2fa;border-radius:10px;margin-top:24px}
.theory-table-wrap{max-width:100%;overflow:auto;margin:20px 0}.theory-table{width:100%;border-collapse:collapse;background:white;font-size:15px}.theory-table th,.theory-table td{text-align:left;padding:12px;vertical-align:top;border:1px solid var(--line)}.theory-table th{background:#edf2fa}
.theory-table th:first-child,.theory-table td:first-child{min-width:110px;width:32%}
.theory-signs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:24px 0}.theory-sign{padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin:0;line-height:1.6}.theory-sign img{width:100%;height:140px;object-fit:contain;margin-bottom:12px}.theory-sign strong{display:block}.theory-sign p{margin:7px 0 0}.theory-sign small{display:block;color:#526b7e;margin-top:8px}
.theory-wide{max-width:850px;margin:auto}.theory-sources{margin-top:24px;font-size:14px;line-height:1.6}.theory-sources summary{cursor:pointer;padding:10px 0}.theory-sources a{color:var(--blue);overflow-wrap:anywhere}
.theory-controls{background:var(--blue);color:white;display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px;border-radius:10px;margin-top:30px;flex-wrap:wrap}.theory-controls a,.theory-controls button{min-height:44px}.theory-controls a{display:inline-flex;align-items:center}.theory-controls .read-toggle{background:transparent;color:white;border-color:#adb9dc}.theory-controls .read-toggle[aria-pressed=true]{background:#fff;color:var(--green)}
.theory-status{font-size:14px;margin:14px 0;min-height:22px}.theory-skip{position:absolute;top:-100px;left:12px;padding:12px;background:white;z-index:500}.theory-skip:focus{top:8px}
.theory-page [hidden]{display:none!important}.theory-page a.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px}.theory-page .primary{color:white}.theory-page .practice-subnav:empty{display:none}
@media(max-width:760px),(max-width:1024px) and (pointer:coarse){.theory-page .account-main{width:100%;padding:16px max(12px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}}
@media(max-width:760px){.theory-heading{display:block}.theory-chapters{grid-template-columns:1fr}.theory-chapter summary{padding:20px}.theory-lesson-layout{grid-template-columns:1fr;gap:20px}.theory-visual{position:static}.theory-lesson-heading{padding:18px;margin-top:16px}.theory-signs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theory-sign{padding:13px}.theory-sign img{height:105px}.theory-controls{padding:12px;gap:10px}.theory-controls .read-toggle{order:-1;width:100%}.theory-progress{padding:18px}.theory-controls a{flex:1}.theory-heading .button{margin-top:5px}}
@media(prefers-reduced-motion:no-preference){.theory-chapter a,.theory-controls a{transition:background-color .15s}}
.theory-books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.theory-books .theory-progress { display: flex; flex-direction: column; align-items: flex-start; }
.theory-books .button { margin-top: auto; }
.theory-page .account-nav.theory-main-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
@media(max-width:600px){.theory-page .account-nav.theory-main-nav{grid-template-columns:minmax(0,1fr)}}
