@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Caveat:wght@600;700&display=swap');
/* Trini's textbook visual language. All rules are scoped to her course. */
body[data-course="es"]{--green:#6413b0;--ink:#100b44;--muted:#554b73;--line:#e0d0f6;--bg:#fff;--accent:#ede0ff;background:#fff;color:var(--ink)}
body[data-course="es"] h1,body[data-course="es"] h2,body[data-course="es"] h3{font-family:'Barlow Condensed','Arial Narrow',sans-serif;font-weight:800;letter-spacing:-.4px}
body[data-course="es"] h1{font-size:42px;line-height:1.08;color:#100842}
body[data-course="es"] h2{font-size:30px;color:#571293}
body[data-course="es"] h3{font-size:25px;color:#50128a}
body[data-course="es"] p{color:#4c416d}
body[data-course="es"] aside{border-color:#e3d1fb;background:#fcfaff}
body[data-course="es"] .nav-label{color:#775992}
body[data-course="es"] #nav a{color:#504064}
body[data-course="es"] #nav a.active{background:#eee2ff;color:#5d10a4;box-shadow:inset 3px 0 #7821c9}
body[data-course="es"] header{border-color:#e6d7f7;background:#fff}
body[data-course="es"] .course-tabs{background:#f1e8fc}
body[data-course="es"] .course-tabs a.active{background:#6915b2;color:white}
body[data-course="es"] .sidebar-bottom{border-color:#e3d1fb}
body[data-course="es"] .avatar{background:#eadbfb;color:#61179c}
body[data-course="es"] .eyebrow{color:#7820b7;letter-spacing:1.6px}
body[data-course="es"] .btn{background:#7216bd;color:white;border-radius:8px}
body[data-course="es"] .btn.secondary{background:#fff;color:#6413a4;border-color:#d9b9f4}
body[data-course="es"] .btn:hover{filter:brightness(.95)}
body[data-course="es"] .panel{border:1px solid #dac3f5;border-radius:12px;background:white}
body[data-course="es"] .panel>.eyebrow{color:#8d35c6}
body[data-course="es"] .panel label{color:#231057}
body[data-course="es"] input,body[data-course="es"] textarea,body[data-course="es"] select{border-color:#d9c3f2;color:#20104f;background:#fff}
body[data-course="es"] .notice{background:#f3ecff;border:1px solid #e5d4ff;color:#572884;border-radius:9px}
body[data-course="es"] .bubble{background:#f4eeff;border:1px solid #e9dcfa;color:#301057}
body[data-course="es"] .bubble.you{background:#fff5e8;border-color:#ffddb6;color:#653114}
body[data-course="es"] .feedback{background:#f0faf4;border:1px solid #ccead8;color:#0b5750}
body[data-course="es"] .feedback.error{background:#fff2e8;border-color:#ffd8ba;color:#963c10}
body[data-course="es"] .option{border-color:#ddcaf5;color:#251053}
body[data-course="es"] .option:hover,body[data-course="es"] .option.selected{background:#f1e7ff;border-color:#8f46ce}
body[data-course="es"] .progress{background:#f0e4fb}
body[data-course="es"] .progress span{background:#8231c8}
body[data-course="es"] .flashcard{background:#faf7ff;border:2px solid #d9bdf4;color:#4e0f8e}
body[data-course="es"] .flashcard p{color:#004f58}
body[data-course="es"] .tag{background:#f3e8ff;color:#6515a4;border:1px solid #ead8fa}
body[data-course="es"] .pronunciation-phrase{background:#f3fbf7;border:1px solid #c8e9d5;color:#044d54}
body[data-course="es"] .pronunciation-phrase h2{color:#00545a;font-size:34px}
body[data-course="es"] .pronunciation-phrase .eyebrow{color:#006361}
body[data-course="es"] .recording-panel h3{color:#e95009}
body[data-course="es"] .recording-panel{border-color:#efd3be}
body[data-course="es"] footer{color:#715d8b}
body[data-course="es"] .book-art{display:block;position:relative;overflow:hidden;flex-shrink:0;background:#f3e9fa}
body[data-course="es"] .book-art img{position:absolute;max-width:none;height:auto;display:block}
body[data-course="es"] .book-portrait{width:49px;border-radius:10px;box-shadow:0 0 0 2px #fff,0 0 0 3px #e4d2f1}
body[data-course="es"] .book-welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:27px;align-items:center;padding:27px 0 31px;border-bottom:2px solid #e6d7fa}
body[data-course="es"] .book-welcome h1{font-size:44px}
body[data-course="es"] .book-welcome h1 span{color:#6512a9}
body[data-course="es"] .book-welcome p{font-size:16px;margin:17px 0}
body[data-course="es"] .book-signoff{font:700 22px/1.3 'Caveat',cursive;color:#971ed3;margin-top:17px}
body[data-course="es"] .book-hero-art{border:1px solid #e0c8f5;border-radius:13px;overflow:hidden;background:#faf5ff}
body[data-course="es"] .book-art-caption{display:flex;gap:8px;justify-content:space-between;padding:11px 13px;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:19px;color:#661da0}
body[data-course="es"] .book-art-caption span:last-child{color:#e64d05}
body[data-course="es"] .book-number{width:43px;height:43px;border-radius:50%;background:linear-gradient(145deg,#9254d5,#640caa);box-shadow:inset 2px 1px 3px #ffffff3b;display:grid;place-items:center;flex-shrink:0;color:white;font:800 35px/1 'Barlow Condensed',sans-serif}
body[data-course="es"] .book-section-title{display:flex;align-items:center;gap:12px;margin:25px 0 17px;flex-wrap:wrap}
body[data-course="es"] .book-section-title p{margin:0 0 0 auto;font-size:14px}
body[data-course="es"] .book-grid{gap:17px}
body[data-course="es"] .book-card{padding:0;overflow:hidden;border-color:#ddc8f4;display:block;border-radius:10px;min-height:0;transition:border-color .15s,box-shadow .15s}
body[data-course="es"] .book-card:hover{border-color:#a96bdb;box-shadow:0 5px 16px #54217310}
body[data-course="es"] .book-card-ribbon{display:flex;align-items:center;gap:9px;padding:8px 11px;background:linear-gradient(90deg,#f1e2ff,#f8f0ff);color:#6716a7;font:700 21px/1.2 'Barlow Condensed',sans-serif}
body[data-course="es"] .book-mini-number{font:800 23px/1 'Barlow Condensed',sans-serif;background:#7826b4;color:white;width:29px;height:29px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}
body[data-course="es"] .book-card:nth-child(3n+2) .book-card-ribbon{background:linear-gradient(90deg,#ffe9d6,#fff6ea);color:#e44803}
body[data-course="es"] .book-card:nth-child(3n+2) .book-mini-number{background:#f45e12}
body[data-course="es"] .book-card:nth-child(3n+3) .book-card-ribbon{background:linear-gradient(90deg,#e0f4e9,#f2faf4);color:#005660}
body[data-course="es"] .book-card:nth-child(3n+3) .book-mini-number{background:#21746e}
body[data-course="es"] .book-card-body{padding:18px 19px 21px;display:flex;align-items:flex-start;flex-direction:column;height:calc(100% - 45px)}
body[data-course="es"] .book-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;margin-bottom:17px}
body[data-course="es"] .book-card-top .tag{font-size:12px;max-width:130px;text-align:center}
body[data-course="es"] .book-card-body h3{font-size:25px}
body[data-course="es"] .book-card-body p{font-size:14px;line-height:1.65;margin:9px 0 18px}
body[data-course="es"] .book-card .card-link{color:#6118a0;border-color:#c797e9}
body[data-course="es"] .book-footer-note{padding:0 19px 19px;margin-top:26px;border:1px solid #e2caf8;border-radius:12px;background:#fff}
body[data-course="es"] .book-footer-note .book-section-title{margin:18px 0 10px}
body[data-course="es"] .book-footer-note p{margin:6px 0;font-size:15px}
body[data-course="es"] .book-footer-note small{margin-top:12px;color:#756283}
body[data-course="es"] .book-page-intro{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:28px;padding-bottom:23px;border-bottom:2px solid #e6d6fa}
body[data-course="es"] .book-heading{display:flex;align-items:flex-start;gap:15px}
body[data-course="es"] .book-heading .book-number{margin-top:23px}
body[data-course="es"] .book-heading .eyebrow{margin-bottom:8px;font-size:11px}
body[data-course="es"] .book-heading p{margin-bottom:0;font-size:16px}
body[data-course="es"] .book-cast{display:flex;gap:9px;padding:3px;flex-shrink:0}
@media(min-width:1500px){body[data-course="es"] .book-welcome h1{font-size:52px}}
@media(max-width:1050px){body[data-course="es"] .book-welcome{grid-template-columns:1fr;gap:24px;padding-top:10px}body[data-course="es"] .book-hero-art{max-width:560px}body[data-course="es"] .book-welcome h1{font-size:42px}body[data-course="es"] .book-section-title p{width:100%;margin:0 0 0 55px}body[data-course="es"] .book-page-intro{align-items:flex-start}body[data-course="es"] .book-cast .book-portrait:last-child{display:none}body[data-course="es"] .book-heading h1{font-size:36px}}
@media(max-width:700px){body[data-course="es"] .book-welcome h1{font-size:40px}body[data-course="es"] .book-art-caption{font-size:18px}body[data-course="es"] .book-number{width:37px;height:37px;font-size:31px}body[data-course="es"] .book-section-title{gap:9px}body[data-course="es"] .book-section-title h2{font-size:28px}body[data-course="es"] .book-section-title p{margin-left:46px}body[data-course="es"] .book-heading{gap:10px}body[data-course="es"] .book-heading h1{font-size:33px}body[data-course="es"] .book-cast{display:none}body[data-course="es"] .book-card-body{padding:20px}body[data-course="es"] .book-portrait{width:52px}body[data-course="es"] .book-card-ribbon{font-size:22px}body[data-course="es"] .book-page-intro{margin-bottom:22px}}
body[data-course="es"] .level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
body[data-course="es"] .level-card{padding:19px;text-align:left;border:1px solid #ddc8f1;border-radius:10px;background:white;color:var(--ink)}
body[data-course="es"] .level-card.selected{border:2px solid #7821b8;background:#f8f1ff;padding:18px}
body[data-course="es"] .level-card h2{margin-top:12px;font-size:28px}
body[data-course="es"] .level-card p{font-size:14px;line-height:1.6;margin-bottom:0}
body[data-course="es"] .level-card small{margin-top:10px;color:#925027}
body[data-course="es"] .learning-pair{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:28px}
body[data-course="es"] .text-link{color:#6e1aa3;font-size:14px;text-decoration:underline;margin-left:auto}
body[data-course="es"] .curriculum-note{font-size:14px;border-top:1px solid #e4d2f4;padding-top:18px;margin-top:25px}
body[data-course="es"] .practice-controls{display:flex;align-items:center;gap:20px;margin-bottom:21px}
body[data-course="es"] .practice-controls>div{flex:1}
body[data-course="es"] .mode-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:18px}
body[data-course="es"] .mode-tabs button{flex:1;min-width:140px;border:1px solid #dec7f5;border-radius:8px;background:#fff;padding:12px 10px;color:#611394;font-weight:600;font-size:14px}
body[data-course="es"] .mode-tabs button.selected{background:#6915ad;color:white;border-color:#6915ad}
body[data-course="es"] .mode-tabs button small{font-size:12px;font-weight:400;margin-top:3px;color:#71607e}
body[data-course="es"] .mode-tabs button.selected small{color:#f0deff}
body[data-course="es"] .lesson-switch{display:flex;margin-bottom:23px;border-bottom:1px solid #e2cef2;gap:10px}
body[data-course="es"] .lesson-switch button{background:transparent;color:#745f85;border:0;border-bottom:3px solid transparent;padding:11px 12px;font-size:14px}
body[data-course="es"] .lesson-switch button.selected{border-bottom-color:#ed6b1d;color:#632190;font-weight:600}
body[data-course="es"] .vocab-list>div{display:flex;justify-content:space-between;gap:15px;padding:14px 0;border-bottom:1px solid #e8d9f5}
body[data-course="es"] .vocab-list strong{color:#6518aa}
body[data-course="es"] .vocab-list span{color:#635174;font-size:14px;text-align:right}
body[data-course="es"] .reading-passage{white-space:pre-line;line-height:1.85}
body[data-course="es"] .study-tools{display:grid;gap:11px;margin:18px 0 27px}
body[data-course="es"] .study-tools a{color:#6a1ca5;text-decoration:underline;font-size:14px}
body[data-course="es"] .phrase-chips{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
body[data-course="es"] .phrase-chips span{background:#f3e9fd;padding:7px 10px;border-radius:5px;color:#6815a1;font-size:14px}
body[data-course="es"] .sentence-tray{border:1px dashed #b992d7;background:#faf6ff;min-height:90px;padding:14px;border-radius:7px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:14px;color:#887299;margin:20px 0}
body[data-course="es"] .word-bank{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}
body[data-course="es"] .word-bank button,body[data-course="es"] .sentence-tray button{background:white;border:1px solid #c8a4e3;color:#521985;padding:8px 12px;border-radius:5px;font-size:16px}
body[data-course="es"] .word-bank button:disabled{opacity:.3;cursor:default}
body[data-course="es"] .curriculum-activity>.btn{margin-top:18px}
@media(max-width:1150px){body[data-course="es"] .level-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){body[data-course="es"] .learning-pair{grid-template-columns:1fr}body[data-course="es"] .practice-controls{align-items:stretch;flex-direction:column;gap:9px}body[data-course="es"] .practice-controls>.tag{align-self:flex-start}body[data-course="es"] .lesson-switch{gap:3px}body[data-course="es"] .lesson-switch button{padding:10px 7px;font-size:13px}body[data-course="es"] .level-card{padding:14px}body[data-course="es"] .level-card.selected{padding:13px}body[data-course="es"] .level-card h2{font-size:25px}body[data-course="es"] .text-link{margin-left:46px}}
