
/* Shared visual language for every lesson, vocabulary collection and exercise. */
:root{--radius:20px;--card:#fff;--bg:#f5f7fb;--ink:#172033;--ink2:#46536a;--line:#dde4ef;--astryx-radius-sm:10px;--astryx-radius-md:16px;--astryx-radius-lg:22px;--astryx-surface:#fff;--astryx-border-subtle:#e2e7f0;--astryx-elevation-1:0 4px 18px #1e355b08}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;line-height:1.7;color:#172033!important;background:#f5f7fb!important}
section{--lesson-accent:#0964df;--lesson-tint:#edf5ff;scroll-margin-top:16px}
section.s1{--lesson-accent:#0066cc;--lesson-tint:#eaf4ff}section.s2{--lesson-accent:#0a7d3b;--lesson-tint:#eafbef}section.s3{--lesson-accent:#c2410c;--lesson-tint:#fff0e5}section.s4{--lesson-accent:#6d28d9;--lesson-tint:#f2ebff}section.s5{--lesson-accent:#0e7490;--lesson-tint:#e6faff}section.s6{--lesson-accent:#be185d;--lesson-tint:#fff0f6}section.s7{--lesson-accent:#4d7c0f;--lesson-tint:#f3fae7}
section.part{padding-top:64px;padding-bottom:12px}
h1,h2,h3,h4{font-family:inherit;line-height:1.25;letter-spacing:-.025em}
h2,.s h2{font-weight:750!important;font-size:clamp(25px,3vw,34px)!important}
h3{font-weight:700!important}
.card h2{font-size:22px!important}
.phead{gap:18px;margin-bottom:28px}
.phead h2{color:var(--lesson-accent)!important}
.phead p{font-size:16px;color:#566176}
.pbadge{border-radius:22px!important;box-shadow:0 6px 16px #253f6c18}
.pbadge small{font-size:14px!important;letter-spacing:0}
.pbadge span{font-size:32px}
.card,article.card,.rule,.fcol,.cp-card,.s30-item-card,[class$="-lesson-card"],[class$="-quiz-card"],[class$="-question-card"]{border:1px solid #e0e6f0!important;border-radius:22px!important;background:#fff!important;box-shadow:0 4px 18px #1e355b08!important}
.card:hover,article.card:hover,.cp-card:hover,.s30-item-card:hover{transform:none!important;box-shadow:0 4px 18px #1e355b08!important}
.card .tag{font-size:14px!important;letter-spacing:.035em;color:var(--lesson-accent)}
.card .tag i{background:var(--lesson-accent)}
section .eg,section .callout,section .tip{background:var(--lesson-tint)!important;border:1px solid #dce5ef!important;border-left:4px solid var(--lesson-accent)!important;border-radius:14px!important;box-shadow:none!important}
section .note,section .warn{background:#fff8e8!important;border:1px solid #ecd59d!important;border-left:4px solid #ad7308!important;border-radius:16px!important;box-shadow:none!important}
section .note b.h,section .warn b.h{color:#875600!important}
.eg .lab,.card .lab,table th,.tag,.dd-header{font-size:14px!important}
.cp-ex-box,.s30-item-ex-box,[class$="-ex-box"]{border-radius:14px;background:#f5f8fc}
.cp-ex-vi,.s30-item-ex-vi,.p5v-ex-vi,.p56-ex-vi-box{color:#4a566b;line-height:1.7}
button,input,select,textarea{font-family:inherit!important}
button{min-height:44px;border-radius:12px;font-size:14px;cursor:pointer;transition:background .15s,box-shadow .15s}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #2379e7!important;outline-offset:3px}
button:disabled{cursor:not-allowed;opacity:.55}
button.spk,.spk{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;background:#edf4ff!important;color:#075dc5!important;border:1px solid #cbdfff!important;box-shadow:none!important;border-radius:50%!important}
button.spk svg,.spk svg{width:18px!important;height:18px!important}
button.spk:hover,.spk:hover{background:#0964df!important;color:white!important;transform:none!important}
[class$="-audio-btn"],[class$="-speak-btn"],[class$="-ex-audio"]{min-height:44px;min-width:44px;border-radius:12px;font-size:14px}
input[type="text"],input[type="search"],select,textarea{border:1px solid #ccd7e6;border-radius:12px;background:#fff;min-height:44px;padding:10px 14px;font-size:16px;max-width:100%;color:#172033}
input::placeholder,textarea::placeholder{color:#68758a}
table{border-spacing:0;font-size:16px;line-height:1.6}
table th{font-weight:700!important;letter-spacing:.02em!important}
table.tbl th{background:var(--lesson-tint)!important;color:var(--lesson-accent)!important}
table.tbl td,table.tbl th{border-color:#e0e6ee!important;padding:14px 16px!important}
table.tbl tbody tr:nth-child(even) td{background:#f8faff!important}
[class$="-table-wrap"],.table-wrap,.table-scroll{border-radius:16px;border:1px solid #e0e6ee;overflow-x:auto;max-width:100%}
.s-quiz-opt,.p51-choice-btn{border-radius:12px;min-height:48px;font-size:16px;text-align:left;line-height:1.6}
.quote{background:#163a78;border-radius:24px;font-weight:700;box-shadow:0 8px 24px #163a7818}
@media(max-width:600px){section.part{padding-top:40px}.wrap{padding-left:16px;padding-right:16px}.card,article.card{padding:20px!important;border-radius:18px!important}.phead{align-items:flex-start;gap:12px}.pbadge{width:60px;height:66px;flex:none}.phead h2{font-size:25px!important}table.tbl td,table.tbl th{padding:12px!important}.cp-card,.s30-item-card{border-radius:18px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body{background:white!important}.card,.cp-card,.s30-item-card{box-shadow:none!important}}
