@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

:root {
    --canvas:#f7f9fa; --surface:#fff; --ink:#173243; --body:#526673;
    --muted:#8998a3; --primary:#0f766e; --primary-dark:#0a5e57;
    --border:#e2e9ec; --mint:#eaf5f1; --code:#f3f6f9;
    --font-ui:'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
    --font-code:'Cascadia Code','SFMono-Regular',Consolas,'Liberation Mono',monospace;
}
* { box-sizing:border-box; }
html { font-size:15px; scroll-behavior:smooth; scroll-padding-top:100px; }
body { margin:0; background:var(--canvas); color:var(--body); font-family:var(--font-ui); line-height:1.7; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,h5,h6 { color:var(--ink); font-weight:650; letter-spacing:-.025em; line-height:1.3; }
h1:focus { outline:none; }
a { color:var(--primary); text-underline-offset:3px; }
a:hover { color:var(--primary-dark); }
button,input,select,textarea { font:inherit; }
button,a,input,select,textarea,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
:focus-visible { outline:3px solid #31a99a70; outline-offset:3px; }
::selection { background:#bce4d9; color:#113f3e; }
.lab-icon { display:inline-block; flex-shrink:0; vertical-align:middle; }
.skip-link { position:fixed; top:-100px; left:16px; z-index:100; background:var(--ink); color:#fff; padding:10px 18px; border-radius:8px; }
.skip-link:focus { top:12px; color:white; }
.lab-button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:44px; padding:11px 18px; border:1px solid transparent; border-radius:9px; text-decoration:none; font-weight:600; font-size:13px; line-height:1.4; transition:background .15s,box-shadow .15s,transform .15s; }
.lab-button-primary { background:var(--primary); color:#fff; box-shadow:0 4px 12px #0f766e15; }
.lab-button-primary:hover { background:var(--primary-dark); color:#fff; transform:translateY(-1px); }
.section-eyebrow { display:block; color:var(--primary); letter-spacing:.14em; font-size:10px; font-weight:650; margin-bottom:10px; }

/* Trang tổng quan: giới thiệu, một component thử được và danh mục bài học. */
.home-hero { display:grid; grid-template-columns:1.12fr .88fr; gap:36px; align-items:center; padding:13px 0 32px; }
.hero-intro { padding:16px 0; min-width:0; }
.hero-eyebrow { display:flex; align-items:center; gap:8px; color:var(--primary); font-size:9px; font-weight:700; letter-spacing:.105em; margin-bottom:23px; }
.hero-eyebrow>span { width:6px; height:6px; background:var(--primary); border-radius:50%; box-shadow:0 0 0 4px #0f766e0c; }
.home-hero h1 { font-size:clamp(38px,3.8vw,57px); line-height:1.13; font-weight:720; letter-spacing:-2.2px; margin:0 0 20px; }
.home-hero h1 em { font-style:normal; color:var(--primary); }
.hero-intro>p { font-size:14px; line-height:1.85; max-width:475px; margin:0 0 27px; color:#74838f; }
.hero-actions { display:flex; align-items:center; flex-wrap:wrap; gap:25px; }
.hero-secondary { display:inline-flex; gap:11px; align-items:center; font-size:12px; font-weight:600; color:var(--ink); text-decoration:none; }
.hero-secondary span { color:var(--primary); font-size:18px; }
.hero-facts { display:flex; flex-wrap:wrap; gap:8px 19px; margin-top:28px; color:#8b9aa3; font-size:10px; }
.hero-facts>span { display:flex; align-items:center; gap:6px; }
.hero-facts .lab-icon { color:#6f9b8e; }
.hero-workbench { position:relative; min-width:0; border:1px solid #dbe6e8; border-radius:15px; background:#fff; box-shadow:0 12px 42px #203f4a0a,0 2px 4px #203f4a04; overflow:hidden; }
.workbench-bar { display:flex; align-items:center; gap:14px; height:43px; padding:0 16px; border-bottom:1px solid var(--border); background:#fbfcfc; font-family:var(--font-code); color:#8b99a3; font-size:10px; }
.window-dots { display:flex; gap:5px; }
.window-dots i { width:6px; height:6px; border-radius:50%; background:#d4dfe2; }
.window-dots i:first-child { background:#e1b5a9; }.window-dots i:nth-child(2) { background:#decba1; }.window-dots i:last-child { background:#9fc9b7; }
.workbench-bar>small { margin-left:auto; color:#3d917d; font-size:7px; font-weight:650; display:flex; align-items:center; gap:5px; font-family:var(--font-ui); letter-spacing:.06em; }
.workbench-bar small i,.code-result i { display:inline-block; width:4px; height:4px; border-radius:50%; background:#4fa183; }
.workbench-preview { padding:25px 30px 26px; background:radial-gradient(ellipse at 90% 0%,#edf7f1 0%,#fff 65%); }
.preview-caption { display:flex; align-items:center; gap:8px; color:#82978f; font-size:8px; font-weight:650; letter-spacing:.13em; }
.component-symbol { color:#3a8c78; }
.counter-display { display:flex; align-items:center; gap:18px; margin:10px 0 15px; }
.counter-display strong { font-size:64px; letter-spacing:-4px; font-weight:500; line-height:1.12; color:#264f4b; font-variant-numeric:tabular-nums; }
.counter-display>span { border-left:1px solid #dce8e2; padding-left:16px; color:#91a39b; font-size:11px; }
.preview-actions { display:flex; gap:8px; align-items:center; }
.demo-increment { display:inline-flex; align-items:center; gap:9px; background:#eaf5ee; color:#226f5b; border:1px solid #d7e9df; border-radius:7px; min-height:35px; padding:7px 13px; font-size:11px; font-weight:600; }
.demo-increment:hover { background:#dceee2; }
.demo-reset { border:1px solid #e2ebe6; background:#fff; border-radius:7px; width:35px; height:35px; display:flex; align-items:center; justify-content:center; color:#82988e; }
.demo-reset:hover { color:var(--primary); background:#f4faf6; }
.workbench-code { position:relative; padding:18px 25px 14px; background:#f5f8fa; border-top:1px solid #e6ecef; }
.workbench-code pre { background:none; border:0; margin:0 0 13px; padding:0; color:#647a89; font:11px/1.85 var(--font-code); white-space:pre; overflow:auto; }
.workbench-code code { font:inherit; color:inherit; background:none; padding:0; }
.code-purple { color:#7f6d9a; }.code-blue { color:#3d839e; }
.code-file-label { position:absolute; top:14px; right:16px; color:#9babb7; border:1px solid #dfe7eb; font:8px var(--font-code); padding:1px 4px; border-radius:3px; }
.code-result { display:flex; align-items:center; gap:6px; color:#7f9690; font-size:9px; border-top:1px solid #e3e9ed; padding-top:10px; }
.learning-path { display:grid; grid-template-columns:1.15fr repeat(3,1fr); border:1px solid var(--border); background:#fff; border-radius:12px; overflow:hidden; margin:0 0 48px; }
.path-label { padding:19px 19px 18px; background:#edf5f2; display:grid; grid-template-columns:22px 1fr; gap:3px 8px; align-content:center; color:var(--primary); }
.path-label>.lab-icon { grid-row:span 2; margin-top:3px; }
.path-label strong { color:#3e6e60; font-size:11px; font-weight:650; }
.path-label>span { color:#90a69c; font-size:9px; }
.learning-path>a { display:flex; align-items:center; justify-content:flex-start; gap:10px; padding:20px 16px; color:var(--ink); text-decoration:none; border-left:1px solid var(--border); }
.learning-path>a:hover { background:#f8fbfa; }
.path-step { font:10px var(--font-code); color:#9aaca8; }
.learning-path b { display:block; font-size:10px; font-weight:650; }
.learning-path small { display:block; font-size:8.5px; color:#96a5ae; margin-top:4px; }
.learning-path>a>.lab-icon { margin-left:auto; color:#b0bfba; }
.library-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:25px; }
.library-heading h2 { font-size:29px; letter-spacing:-1px; margin:0 0 9px; }
.library-heading p { font-size:12px; margin:0; color:#8b9aa5; }
.library-count { display:flex; align-items:center; gap:8px; color:var(--primary); font-size:30px; font-weight:350; line-height:1; }
.library-count small { color:#94a4ac; font-size:10px; font-weight:400; }
.library-toolbar { display:flex; align-items:center; justify-content:space-between; gap:15px; padding-bottom:21px; border-bottom:1px solid var(--border); margin-bottom:28px; }
.category-filters { display:flex; align-items:center; flex-wrap:wrap; gap:5px; }
.category-filters>button { display:flex; align-items:center; gap:7px; border:1px solid transparent; background:transparent; padding:7px 10px; border-radius:7px; font-size:10px; color:#83949f; white-space:nowrap; }
.category-filters>button:hover { background:#eef3f3; color:var(--primary); }
.category-filters>button.is-active { background:#e8f3ee; border-color:#d7e8e0; color:var(--primary); font-weight:600; }
.category-filters button>span { font-size:8px; border-radius:3px; background:#fff; padding:0 4px; color:#669180; }
.library-search { display:flex; align-items:center; gap:8px; border:1px solid var(--border); background:#fff; padding:8px 11px; border-radius:8px; color:#a1aeb7; max-width:205px; min-width:155px; margin:0; }
.library-search:focus-within { border-color:#83bbac; box-shadow:0 0 0 3px #0f766e0a; }
.library-search input { outline:none; min-width:0; width:100%; background:none; border:0; padding:0; font-size:10px; color:var(--ink); }
.library-search input::placeholder { color:#9fadb5; }
.topic-group { margin-bottom:32px; scroll-margin-top:100px; }
.topic-group-title { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.topic-group-index { width:29px; height:31px; display:flex; align-items:center; justify-content:center; border:1px solid #dce6e7; border-radius:7px; background:#f0f5f4; color:#91a4a0; font:10px var(--font-code); }
.topic-group-title h3 { font-size:15px; margin:0 0 4px; font-weight:650; }
.topic-group-title p { font-size:10px; margin:0; color:#96a4ae; }
.topic-group-title>small { margin-left:auto; color:#9ba9b2; font-size:9px; white-space:nowrap; }
.topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; }
.topic-card { display:flex; flex-direction:column; min-width:0; padding:22px 22px 0; border:1px solid #e1e8eb; background:#fff; border-radius:12px; text-decoration:none; transition:transform .18s ease,border-color .18s,box-shadow .18s; }
.topic-card:hover { transform:translateY(-3px); border-color:#9acbbb; box-shadow:0 7px 20px #17324307; }
.topic-card-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.topic-symbol { display:flex; align-items:center; justify-content:center; width:43px; height:43px; background:#eef7f3; color:#4d9b84; border:1px solid #e4f0e8; border-radius:10px; }
#components .topic-symbol { color:#7a82af; background:#f1f2fa; border-color:#e8eaf5; }
#connectivity .topic-symbol { color:#aa8e57; background:#faf6ed; border-color:#f2ebdb; }
.topic-number { font:8px var(--font-code); color:#a5b1ba; letter-spacing:.08em; }
.topic-card>h3 { margin:0 0 9px; font-size:17px; font-weight:650; letter-spacing:-.4px; }
.topic-card>p { font-size:11.5px; line-height:1.85; color:#90a0ab; margin:0 0 20px; flex:1; min-height:43px; }
.topic-card-footer { display:flex; align-items:center; justify-content:space-between; padding:12px 0; border-top:1px solid #eff2f4; gap:8px; }
.topic-card-footer>span:first-child { display:flex; align-items:center; gap:6px; font-size:9px; color:#a1adb6; }
.topic-card-arrow { display:flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:6px; background:#f3f8f5; color:#7ca793; }
.topic-card:hover .topic-card-arrow { background:var(--primary); color:#fff; }
.home-bottom-note { display:flex; align-items:center; gap:17px; border:1px dashed #cfdfd8; border-radius:11px; background:#f0f6f2; padding:21px 24px; margin-top:36px; }
.bottom-note-symbol { color:#7fa790; }
.home-bottom-note>div { flex:1; }
.home-bottom-note h3 { font-size:13px; margin:0 0 5px; color:#507763; }
.home-bottom-note p { font-size:10px; margin:0; color:#8ba08f; }
.home-bottom-note>a { display:flex; align-items:center; gap:10px; color:#598471; font-size:10px; font-weight:600; white-space:nowrap; text-decoration:none; }
.library-empty { display:flex; flex-direction:column; align-items:center; text-align:center; padding:60px 24px; background:#fff; border:1px dashed #cfdcdf; border-radius:12px; gap:10px; }
.library-empty>.lab-icon { color:#85aaa0; margin-bottom:5px; }
.library-empty h3 { font-size:20px; margin:0; }.library-empty p { font-size:13px; margin:0 0 10px; color:var(--muted); }
.not-found { margin:45px 0; }.not-found h1 { font-size:30px; }

/* Bài học dùng cùng kiểu chữ, khối ví dụ và điều khiển trên tất cả các trang. */
.lesson-header { position:relative; padding:27px 32px 22px; margin-bottom:28px; border:1px solid #dfe9e7; border-radius:14px; background:linear-gradient(110deg,#fff 40%,#edf6f1); overflow:hidden; }
.lesson-header::after { content:attr(data-number); position:absolute; right:26px; top:0; font-size:126px; font-weight:700; letter-spacing:-7px; line-height:1.2; color:#0f766e06; pointer-events:none; }
.lesson-eyebrow { display:flex; align-items:center; gap:10px; color:#7b9990; font-size:10px; font-weight:600; letter-spacing:.04em; margin-bottom:13px; }
.lesson-eyebrow>span:first-child { color:var(--primary); letter-spacing:.13em; }
.lesson-eyebrow i { width:3px; height:3px; background:#afc6bc; border-radius:50%; }
.lesson-header h1 { font-size:36px; margin:0 0 12px; letter-spacing:-1.2px; }
.lesson-header>p { font-size:13px; max-width:760px; margin:0 0 23px; color:#83958f; position:relative; z-index:1; }
.lesson-header-bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding-top:16px; border-top:1px solid #e3ece6; }
.lesson-header-bottom>span,.lesson-header-bottom>a { display:flex; align-items:center; gap:7px; color:#91a49a; font-size:10px; text-decoration:none; }
.lesson-header-bottom>a { color:var(--primary); }
.lesson-content { min-width:0; color:var(--body); font-size:14px; overflow-wrap:anywhere; }
.lesson-content h2 { color:var(--ink); font-size:23px; font-weight:650; margin:30px 0 16px; }
.lesson-content h3 { color:var(--ink); font-size:18px; font-weight:650; margin:27px 0 13px; }
.lesson-content h4 { color:#426472; font-size:15px; font-weight:650; margin:20px 0 10px; }
.lesson-content h5 { font-size:14px; margin:18px 0 10px; }
.lesson-content p { line-height:1.85; margin-bottom:16px; }
.lesson-content li { line-height:1.85; padding-left:3px; margin-bottom:4px; }
.lesson-content hr { border:0; border-top:1px solid var(--border); opacity:1; margin:28px 0; }
.lesson-content code { font-family:var(--font-code); font-size:.88em; color:#397c80; background:#edf3f5; padding:2px 5px; border-radius:4px; overflow-wrap:anywhere; }
.lesson-content pre,.lesson-content pre[class*="language-"] { display:block; max-width:100%; min-width:0; padding:18px 20px; margin:15px 0; background:var(--code); border:1px solid #e2e9ee; border-radius:9px; font:12px/1.8 var(--font-code); overflow:auto; white-space:pre; word-break:normal; overflow-wrap:normal; tab-size:4; text-shadow:none; color:#526e83; }
.lesson-content pre code,.lesson-content code[class*="language-"] { padding:0; background:none; font:inherit; color:inherit; white-space:pre; word-break:normal; overflow-wrap:normal; text-shadow:none; }
.lesson-content .token.operator,.lesson-content .token.entity,.lesson-content .token.url { background:transparent; }
.lesson-content table { display:block; width:100%; max-width:100%; margin:18px 0 23px; overflow:auto; font-size:12px; border-color:var(--border); background:#fff; border-radius:8px; }
.lesson-content table th { color:#54717e; font-weight:600; background:#f1f6f7; white-space:nowrap; }
.lesson-content table td,.lesson-content table th { padding:11px 13px; border-color:var(--border); vertical-align:top; }
.lesson-content details { margin:16px 0; border:1px solid #e1e8ec; border-radius:9px; background:#fbfcfd; overflow:hidden; }
.lesson-content summary { padding:12px 15px; color:#607d88; cursor:pointer; font-size:12px; }
.lesson-content summary::marker { color:#85a8a2; font-size:10px; }
.lesson-content summary>b { font-weight:600; }
.lesson-content details[open]>summary { border-bottom:1px solid var(--border); background:#f4f8f8; color:var(--primary); }
.lesson-content details pre { margin:14px; max-width:calc(100% - 28px); }
.lesson-section { padding:24px 27px; margin:22px 0; border:1px solid var(--border); background:#fff; border-radius:12px; min-width:0; scroll-margin-top:100px; }
.lesson-section>h2:first-child,.lesson-section>h3:first-child { margin-top:0; }
.lesson-section>:last-child { margin-bottom:0; }
.lesson-map { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:20px 0 24px; }
.lesson-map>a { font-size:11px; color:#6b8791; text-decoration:none; padding:6px 10px; border:1px solid var(--border); background:#fff; border-radius:6px; }
.lesson-map>a:hover { color:var(--primary); border-color:#a6cbbb; background:#f3f9f6; }
.lesson-callout,.lesson-summary { padding:16px 20px; margin:20px 0; border:1px solid #dae9e2; border-left:3px solid #6bad94; border-radius:9px; background:#f1f8f3; color:#618276; font-size:12px; line-height:1.85; }
.lesson-callout p:last-child,.lesson-summary p:last-child { margin-bottom:0; }
.lesson-summary { border-color:#dce7ef; border-left-color:#90adbf; background:#f1f6fa; color:#628093; }
.lesson-summary h3,.lesson-summary h4,.lesson-callout h3,.lesson-callout h4 { margin-top:0; color:inherit; font-size:14px; }
.lesson-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:28px 0 0; padding-top:22px; border-top:1px solid var(--border); }
.lesson-next { margin-left:auto; font-size:12px; font-weight:600; text-decoration:none; padding:9px 13px; border:1px solid #d5e5df; background:#edf6f1; border-radius:7px; }
.btn { font-family:var(--font-ui); font-size:12px; font-weight:550; padding:9px 14px; border-radius:7px; box-shadow:none; }
.btn-primary { background-color:var(--primary); border-color:var(--primary); }
.btn-primary:hover,.btn-primary:active { background-color:var(--primary-dark)!important; border-color:var(--primary-dark)!important; }
.btn-outline-primary { color:var(--primary); border-color:#a8cfc3; }
.btn-outline-primary:hover { background:var(--primary); border-color:var(--primary); }
.btn-secondary { background:#6f8592; border-color:#6f8592; }
.btn-success { background:#4c937a; border-color:#4c937a; }
.btn-sm { padding:6px 10px; font-size:11px; }
.form-control,.form-select { min-height:39px; border:1px solid #dbe5e9; border-radius:7px; font-size:13px; padding:8px 11px; color:var(--ink); background-color:#fff; }
.form-control:focus,.form-select:focus,.form-check-input:focus { border-color:#6eb3a3; box-shadow:0 0 0 3px #0f766e12; }
.form-check-input:checked { background-color:var(--primary); border-color:var(--primary); }
input[type=checkbox],input[type=radio],input[type=range] { accent-color:var(--primary); }
.lesson-content label { font-size:12px; font-weight:550; color:#6f8591; margin-bottom:6px; }
.lesson-content label input[type=checkbox] { margin-right:7px; }
.alert { font-size:13px; line-height:1.8; border-radius:9px; padding:15px 18px; }
.alert-info { background:#eff6f8; border-color:#d5e8ed; color:#608492; }
.alert-success { background:#eef7f1; border-color:#d6e9dd; color:#5c816d; }
.alert-warning { background:#fcf8ee; border-color:#ecdfbf; color:#987e50; }
.alert-secondary { background:#f0f4f6; border-color:#e0e7eb; color:#708591; }
.valid.modified:not([type=checkbox]) { outline:1px solid #5ba28a; }.invalid { outline:1px solid #d26868; }.validation-message { font-size:12px; color:#bb5a5a; margin:5px 0; }
.lesson-content .card { border-color:var(--border); border-radius:10px; overflow:hidden; box-shadow:none; }
.lesson-content .card-header { padding:13px 18px; background:#f3f7f8; border-color:var(--border); color:#607d88; }
.lesson-content .card-body { padding:21px; }
.lesson-content blockquote { border-left:3px solid #a2c9bc; background:#f2f7f5; padding:15px 20px; color:#6c897e; font-size:13px; }
#blazor-error-ui { display:none; position:fixed; bottom:16px; left:50%; transform:translateX(-50%); width:min(680px,calc(100% - 28px)); border:1px solid #e6d5b5; background:#fffbf0; color:#8e754d; border-radius:10px; box-shadow:0 6px 25px #17324318; padding:15px 40px 15px 18px; z-index:1000; font-size:13px; }
#blazor-error-ui .reload { margin-left:8px; font-weight:600; color:#89653a; }
#blazor-error-ui .dismiss { position:absolute; right:10px; top:8px; background:none; border:0; color:#a58b68; font-size:22px; }
.blazor-error-boundary { padding:20px; border:1px solid #efc8c8; background:#fff1f1; color:#a74f4f; border-radius:9px; }.blazor-error-boundary::after { content:'Không thể hiển thị phần này. Vui lòng tải lại trang.'; }

@media(max-width:1250px) { .hero-intro>p { font-size:13px; }.hero-facts { gap:8px 13px; font-size:9px; }.library-toolbar { flex-wrap:wrap; }.library-search { margin-left:auto; } }
@media(max-width:1180px) {
    .home-hero { grid-template-columns:1fr; gap:23px; padding-top:0; }
    .hero-intro { padding-top:8px; }.hero-intro>p { max-width:630px; }.hero-eyebrow { margin-bottom:16px; }
    .hero-workbench { display:grid; grid-template-columns:1fr 1fr; }
    .workbench-bar { grid-column:1 / -1; }.workbench-preview { padding:25px; }.workbench-code { border-top:0; border-left:1px solid var(--border); display:flex; flex-direction:column; justify-content:center; }
    .learning-path { margin-bottom:36px; grid-template-columns:repeat(3,1fr); }.path-label { display:none; }
    .topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .home-bottom-note { flex-wrap:wrap; }.home-bottom-note>a { margin-left:40px; }
}
@media(max-width:940px) { .home-hero { grid-template-columns:1.05fr .95fr; gap:28px; }.hero-workbench { display:block; }.workbench-code { display:block; border-left:0; border-top:1px solid var(--border); }.home-hero h1 { font-size:45px; }.hero-facts { font-size:9px; gap:8px 13px; }.hero-secondary { font-size:11px; }.hero-actions { gap:17px; }.library-heading h2 { font-size:27px; } }
@media(max-width:700px) {
    .home-hero { grid-template-columns:1fr; gap:23px; }.hero-intro { padding-bottom:0; }.home-hero h1 { font-size:47px; }.hero-intro>p { font-size:14px; }.hero-facts { font-size:10px; margin-top:22px; }
    .hero-workbench { display:grid; grid-template-columns:1fr 1fr; }.workbench-code { display:flex; border-top:0; border-left:1px solid var(--border); }.workbench-preview { padding:22px; }
    .learning-path { margin-bottom:35px; }.learning-path>a { flex-wrap:wrap; gap:6px; padding:14px 13px; }.learning-path>a>.lab-icon { display:none; }.learning-path small { font-size:8px; }.learning-path b { font-size:9px; }.path-step { width:100%; }
    .library-toolbar { display:flex; flex-direction:column; align-items:stretch; gap:12px; }.library-search { max-width:none; margin:0; }.library-search input { font-size:12px; min-height:22px; }
    .category-filters { gap:3px; }.category-filters>button { font-size:10px; min-height:37px; padding:7px 9px; }
    .topic-card { padding:20px 18px 0; }.topic-card>h3 { font-size:17px; }.topic-card>p { font-size:12px; }
    .lesson-header { padding:24px; }.lesson-header h1 { font-size:31px; }.lesson-content { font-size:14px; }.lesson-section { padding:21px; }
}
@media(max-width:480px) {
    html { scroll-padding-top:82px; }
    .hero-eyebrow { font-size:8px; letter-spacing:.08em; margin-bottom:19px; }.home-hero h1 { font-size:43px; letter-spacing:-1.8px; }.hero-intro>p { font-size:13px; margin-bottom:22px; }
    .hero-actions { gap:18px; }.hero-secondary { font-size:11px; }.lab-button { padding:11px 15px; }
    .hero-facts { font-size:9px; gap:8px 14px; }.hero-facts>span:last-child { display:none; }
    .hero-workbench { display:block; }.workbench-code { border-left:0; border-top:1px solid var(--border); padding:15px 23px; }.workbench-preview { padding:22px 25px; }.counter-display { margin:7px 0 13px; }.counter-display strong { font-size:59px; }
    .workbench-code pre { font-size:10px; line-height:1.75; margin-bottom:9px; }.demo-increment,.demo-reset { min-height:40px; }.demo-reset { width:40px; }
    .library-heading h2 { font-size:24px; }.library-heading p { font-size:11px; max-width:260px; }.library-count { display:none; }.section-eyebrow { font-size:9px; }
    .topic-grid { grid-template-columns:1fr; gap:13px; }.topic-card { padding:21px 22px 0; }.topic-card-top { margin-bottom:14px; }.topic-card>p { min-height:0; margin-bottom:18px; }.topic-card>h3 { font-size:19px; }
    .topic-group-title p { font-size:10px; }.topic-group-title>small { display:none; }.topic-group-title h3 { font-size:15px; }
    .home-bottom-note { padding:20px; gap:10px; }.home-bottom-note>div { flex-basis:calc(100% - 40px); }.home-bottom-note h3 { font-size:13px; line-height:1.6; }.home-bottom-note p { font-size:11px; }.home-bottom-note>a { margin:6px 0 0 33px; font-size:11px; }
    .lesson-header { padding:22px 19px; margin-bottom:22px; }.lesson-header::after { font-size:103px; right:18px; }.lesson-eyebrow { font-size:9px; }.lesson-header h1 { font-size:29px; }.lesson-header>p { font-size:12px; line-height:1.85; }.lesson-header-bottom { gap:10px; }.lesson-header-bottom>span,.lesson-header-bottom>a { font-size:9px; }
    .lesson-section { padding:18px 16px; margin:17px 0; }.lesson-content h2 { font-size:20px; }.lesson-content h3 { font-size:17px; }.lesson-content h4 { font-size:15px; }
    .lesson-content pre,.lesson-content pre[class*="language-"] { font-size:11px; padding:14px; line-height:1.8; }.lesson-content details pre { margin:10px; max-width:calc(100% - 20px); }
    .lesson-content .d-flex { flex-wrap:wrap; gap:8px; }.lesson-content .row>[class*="col-"] { width:100%; flex-basis:100%; }.lesson-content .w-25,.lesson-content .w-50 { width:100%!important; }
    .form-control,.form-select { min-height:43px; font-size:14px; }.btn,.btn-sm { min-height:41px; padding:9px 12px; font-size:12px; }.lesson-map>a { min-height:36px; display:flex; align-items:center; }.lesson-next { margin-left:0; }
    .lesson-callout,.lesson-summary { padding:14px 16px; }.alert { font-size:12px; padding:13px 15px; }
}
@media(max-width:940px) { body:has(.studio-sidebar.is-open) { overflow:hidden; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; animation:none!important; } }
