:root{--academy-blue:#0056d2;--academy-navy:#002761;--academy-ink:#0f1114;--academy-muted:#5b6780;--academy-line:#dae1ed}
body .japan-hero .japan-label{background:#e3eeff;color:#002761;border:0;border-radius:8px;padding:8px 12px;font-size:12px;letter-spacing:0}
body .japan-hero .hero-note{background:#e8eef7;color:#002761;border:0;border-radius:8px;padding:12px;font-size:13px}
body .japan-hero .hero-actions .button:first-child{background:#0056d2;border-color:#0056d2;box-shadow:none;color:white}
body #courses .skill-card{background:white!important;border:1px solid #dae1ed!important}
body #courses .skill-card h2{color:#0f1114}body #courses .skill-card.available .button{background:#0056d2;border-color:#0056d2}
body #courses .available .course-status{background:#e8eef7;color:#002761}
body .campus-toolbar .toolbar-inner{gap:16px;padding:8px 24px}
body .campus-toolbar .campus-menu{margin:0;padding:0;border:0;position:relative;flex:none}
body .campus-toolbar .campus-menu summary{font-size:16px;line-height:24px;padding:8px 12px;border:1px solid #dae1ed;border-radius:8px;background:white;color:#0f1114}
body .campus-toolbar .campus-menu summary span{font-size:14px;margin-left:8px}
body .campus-toolbar .campus-menu nav{top:calc(100% + 8px);left:0;width:min(300px,calc(100vw - 40px));padding:8px;background:white;color:#0f1114;border:1px solid #dae1ed;border-radius:8px;box-shadow:0 8px 24px #0f11141a;z-index:50;gap:0;align-items:stretch}
body .campus-toolbar .campus-menu nav a{font-size:14px;padding:12px;border-radius:6px}
body .campus-toolbar .course-search{height:42px;max-width:560px;margin-left:auto}
body .campus-toolbar .course-search input{font-size:14px;padding:8px 12px}
body .campus-toolbar .course-search button{padding:6px 12px;min-height:0}
body .brand img{width:40px;height:40px}body .brand{font-size:16px}body .brand small{font-size:9px}
body .japan-hero h1{font-size:32px}body .japan-hero .lead{font-size:15px}
body .point.is-speaking,body .original-line.is-speaking{background:#e3eeff;border:2px solid #0056d2;box-shadow:inset 4px 0 #0056d2}
html body{background:#fff;color:var(--academy-ink);font-family:'Source Sans Pro','Noto Sans Sinhala',Arial,sans-serif;font-size:16px}
body header{background:white;color:var(--academy-ink);border-bottom:1px solid var(--academy-line);padding:16px max(4vw,20px)}
body .brand{color:var(--academy-blue);letter-spacing:0;font-weight:700}body .brand small{color:var(--academy-muted);letter-spacing:1px}body .brand img{border-radius:8px;background:white}
body .campus-toolbar{background:#fff;border-bottom:1px solid var(--academy-line)}body .campus-menu{color:var(--academy-ink)}body .toolbar-inner{padding:10px 24px;max-width:1280px}body .course-search{border:1px solid var(--academy-line);border-radius:8px}body .course-search input{padding:10px 16px}
body main{max-width:1280px;padding:32px 32px 64px}body h1{font-weight:600}body h2{font-size:22px;font-weight:600}body .eyebrow{color:var(--academy-muted);font-size:12px;font-weight:700;letter-spacing:1px}
body .button,body .login-link{background:var(--academy-blue);color:#fff;border:1px solid var(--academy-blue);border-radius:8px;padding:11px 18px;font-size:14px;font-weight:600;letter-spacing:.14px;box-shadow:none}
body .button:hover,body .login-link:hover{background:#0048b0;text-decoration:none}body .button.secondary{background:#fff;color:var(--academy-blue);border-color:var(--academy-blue)}
body .japan-hero{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:8px 0 32px;background:none;border:0;box-shadow:none;align-items:stretch}
body .japan-hero>div:first-child{background:var(--academy-navy);color:white;border-radius:16px;padding:36px}
body .japan-hero h1{font-size:clamp(28px,3vw,40px);line-height:1.5;letter-spacing:-.3px;color:white;margin:20px 0}
body .japan-hero h1 em{color:white}body .japan-hero .lead{font-size:16px;line-height:1.8;color:#e8eef7}body .japan-hero .eyebrow,body .japan-label,body .hero-note{color:#d3e3ff}body .hero-note{font-size:12px}
body .featured-learning{border:1px solid var(--academy-line);border-radius:16px;background:white;padding:28px;min-width:0}
.featured-tile{display:flex;align-items:center;gap:16px;padding:18px 0;border-bottom:1px solid var(--academy-line)}.featured-tile:last-child{border-bottom:0}.featured-tile:hover{text-decoration:none;color:var(--academy-blue)}.tile-symbol{display:grid;place-items:center;width:60px;height:66px;flex:none;border-radius:8px;background:#e3eeff;color:#002761;font-size:30px}.featured-tile:nth-of-type(2) .tile-symbol{background:#fff4e8}.featured-tile:nth-of-type(3) .tile-symbol{background:#ffe0f9}.featured-tile>span:nth-child(2){flex:1}.featured-tile small,.featured-tile strong,.featured-tile em{display:block}.featured-tile small{font-size:10px;color:#5b6780;letter-spacing:1px}.featured-tile strong{font-size:18px;margin:5px 0}.featured-tile em{font-size:13px;font-style:normal;color:#5b6780}
body .journey-strip{padding:24px;background:#f0f6ff;border:0;border-radius:16px;margin-bottom:48px;gap:24px}body .journey-strip div{background:none;border:0;box-shadow:none;padding:0}body .journey-strip b{color:#002761;font-size:16px}
.learning-categories{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.learning-categories a{border:1px solid #dae1ed;background:#e8eef7;border-radius:50px;padding:8px 16px;font-size:14px}.learning-categories a:hover{background:#e3eeff;color:#0056d2;text-decoration:none}
body .skill-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}body .cards .skill-card{border:1px solid #dae1ed!important;border-radius:16px;background:#fff;box-shadow:none;padding:24px;display:flex;flex-direction:column}body .skill-card:hover{border-color:#0056d2!important;transform:none}body .skill-card h2{font-size:20px;color:#0f1114}body .skill-card>p{font-size:14px;color:#5b6780}body .skill-card .skill-jp{background:#e8eef7;color:#002761;border-radius:8px;padding:24px 16px;font-size:24px;margin:18px 0}body .skill-card .button{margin-top:auto;border-radius:8px}body .skill-number{color:#0056d2}body .course-status{background:#f0f6ff;color:#002761;font-size:11px}
body .portal-choices{background:#e8eef7;border-radius:16px;padding:32px;gap:32px}body .portal-choices>div{background:transparent;box-shadow:none;border:0}body .portal-choices h2{font-size:24px}body .portal-choices p{font-size:14px}
body .heading,body .lesson-controls,body .full-page-nav,body .point,body .student-row{box-shadow:none;border-color:#dae1ed;border-radius:16px}body .heading{background:#f0f6ff}body .truck-player{background:#002761;border-radius:16px}body footer{background:#f5f7fa;color:#5b6780;border-top:1px solid #dae1ed}body footer strong{color:#002761}body .note{background:#f5f7fa;border-color:#dae1ed;color:#5b6780;font-size:13px}
@media(max-width:850px){body .japan-hero{grid-template-columns:1fr}body .skill-cards{grid-template-columns:repeat(2,minmax(0,1fr))}body main{padding:24px 20px}body .japan-hero>div:first-child{padding:28px}}
@media(max-width:540px){body .skill-cards,body .journey-strip,body .portal-choices{grid-template-columns:1fr}body .japan-hero h1{font-size:28px}body .featured-learning{padding:20px}body .brand small{font-size:9px}body .brand img{width:42px;height:42px}body header{padding:12px 16px}body .login-link{font-size:12px;padding:8px}.featured-tile strong{font-size:16px}}
/* Student reading interface: compact text, generous touch targets. */
body main{padding-top:20px}body .japan-hero h1{font-size:clamp(24px,3vw,32px)}
body .cg-card,body .point{padding:16px;border-radius:12px;box-shadow:none;margin-bottom:12px}
body .cg-card .cg-ja,body .point .ja{font-size:20px;line-height:1.8;margin:12px 0}
body .cg-card .cg-si,body .point .si{font-size:16px;line-height:1.85;color:#254663;margin:12px 0}
body .cg-card button,body .point button{font-size:14px;padding:10px 14px;min-height:44px;border-radius:8px}
body .truck-title{font-size:26px;margin:12px 0}body .truck-sub{font-size:14px;line-height:1.8}
body .lesson-controls,body .full-page-nav{padding:14px;margin:12px 0;border-radius:12px}
body .lesson-controls select,body .page-switch select{font-size:15px;min-height:44px;padding:8px}
body .truck-player{background:#f0f5fc;color:#183a60;padding:16px;border:1px solid #dae1ed;border-radius:12px}
body .truck-player .player-label{color:#365875}body #nowReading{font-size:15px;line-height:1.7}
body .voice-help,body #readingCoverage,body .study-note{font-size:13px;line-height:1.75;color:#526479}
body .lesson-heading{padding:8px 0}body .lesson-heading h2{font-size:20px}
.student-options{margin:12px 0;border:1px solid #dae1ed;border-radius:10px;background:#fff;padding:0 12px}
.student-options>summary{cursor:pointer;font-size:14px;font-weight:600;color:#174d80;padding:14px 4px;min-height:44px;box-sizing:border-box}
.student-options>section{border:0!important}.student-options .voice-options{padding:12px 0}
#student-view{display:flex;gap:8px;margin:16px 0;flex-wrap:wrap}#student-view button{min-height:44px;padding:10px 16px;border:1px solid #bdcee4;border-radius:8px;background:white;color:#174d80;font-size:14px}
#student-view button[aria-pressed=true]{background:#0056d2;border-color:#0056d2;color:white}
body .truck-columns[data-view=original],body .truck-columns[data-view=meaning]{grid-template-columns:minmax(0,1fr)}
.truck-columns[data-view=original] .study-column,.truck-columns[data-view=meaning] .original-column{display:none!important}
body button:focus-visible,body summary:focus-visible,body a:focus-visible{outline:3px solid #d78b00;outline-offset:3px}
@media(max-width:700px){body main{padding:16px 12px 40px}body header{padding:10px 12px}body .campus-toolbar .toolbar-inner{padding:8px 12px;gap:8px}body .japan-hero>div:first-child{padding:22px}body .cg-card .cg-ja,body .point .ja{font-size:18px}body .cg-card .cg-si,body .point .si{font-size:15px}body .cg-card,body .point{padding:14px}body .truck-columns{gap:16px}body .play-actions{gap:8px;flex-wrap:wrap}body .play-actions button{min-height:44px;font-size:14px}body .lesson-controls{grid-template-columns:1fr}#student-view{position:sticky;top:0;background:#fff;padding:8px 0;z-index:10}#student-view button{flex:1;padding:10px 6px;font-size:13px}}
body.learning-app{background:#f7f9fc}body.learning-app main{max-width:1400px}#app-navigation{position:fixed;left:0;top:0;bottom:0;width:208px;padding:100px 16px 24px;background:#fff;border-right:1px solid #dae1ed;z-index:20;display:flex;flex-direction:column;gap:8px}#app-navigation a,#app-navigation button{display:flex;gap:12px;align-items:center;text-decoration:none;background:none;border:0;color:#254663;font:inherit;font-size:15px;text-align:left;padding:14px;border-radius:10px;cursor:pointer}#app-navigation a:hover,#app-navigation button:hover{background:#e9f1ff;color:#0056d2}.learning-app>header,.learning-app>.campus-toolbar,.learning-app>main,.learning-app>footer{margin-left:208px}.learning-app>header{position:relative;z-index:21}.learning-app .journey-strip,.learning-app .japan-label{display:none}.learning-app .japan-hero>div:first-child{background:#e9f1ff;color:#173c65;padding:24px}.learning-app .japan-hero h1,.learning-app .japan-hero h1 em,.learning-app .japan-hero .lead,.learning-app .japan-hero .eyebrow{color:#173c65}.learning-app .japan-hero h1{font-size:28px;margin:12px 0}.learning-app .japan-hero .lead{font-size:15px}.learning-app .featured-learning{padding:20px}.learning-app .skill-card{border-radius:14px!important;box-shadow:none!important}.app-study-bar{display:flex;gap:12px;flex-wrap:wrap;align-items:center;font-size:13px;color:#526479;padding:10px 0}.app-study-bar button{margin-left:auto;padding:10px 14px;min-height:44px;border:1px solid #b8cae1;border-radius:8px;background:white;color:#174d80}.app-dialog{border:1px solid #dae1ed;border-radius:16px;padding:24px;width:min(460px,calc(100vw - 48px));max-height:80dvh;color:#183a60}.app-dialog::backdrop{background:#132e4c66}.app-dialog>form{text-align:right}.app-dialog button{cursor:pointer;min-height:44px;border-radius:8px}.app-dialog h2{margin:8px 0 16px}.app-dialog p{font-size:14px;line-height:1.8}.app-dialog label{display:block;margin:16px 0;font-size:14px}.app-dialog select{display:block;width:100%;padding:12px;margin-top:8px;border:1px solid #b8cae1;border-radius:8px;background:white;font-size:16px}.app-progress-item{display:block;padding:14px;border-bottom:1px solid #dae1ed;color:#0056d2;font-size:14px}
@media(max-width:900px){.learning-app>header,.learning-app>.campus-toolbar,.learning-app>main,.learning-app>footer{margin-left:0}body.learning-app{padding-bottom:90px}#app-navigation{top:auto;bottom:0;right:0;width:auto;height:auto;padding:8px 8px max(8px,env(safe-area-inset-bottom));flex-direction:row;border:0;border-top:1px solid #dae1ed;justify-content:space-around}#app-navigation a,#app-navigation button{flex:1;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:6px 2px;font-size:18px}#app-navigation span{font-size:11px}.learning-app .japan-hero{grid-template-columns:1fr}.learning-app .japan-hero h1{font-size:24px}.app-study-bar{font-size:12px}.app-study-bar>span:first-child{display:none}}
/* The classroom reader must never sit behind the app navigation. */
body.wide-reader #app-navigation{display:none!important}
body.wide-reader{padding-bottom:0}
body.wide-reader>header,body.wide-reader>.campus-toolbar,body.wide-reader>footer{margin-left:0!important}
body.wide-reader>main{margin:0!important;width:100%!important;max-width:none!important;box-sizing:border-box;padding:16px 20px 40px}
.reader-screen-bar{display:flex;align-items:center;gap:12px;position:sticky;top:0;background:#fff;z-index:15;padding:8px 12px;border-bottom:1px solid #dae1ed;flex-wrap:wrap}
.reader-screen-bar a{color:#174d80;font-size:14px}.reader-screen-bar button{margin-left:auto;min-height:44px;padding:10px 16px;background:#0056d2;color:#fff;border:0;border-radius:8px;font-size:14px;cursor:pointer}.reader-screen-bar [role=status]{font-size:13px}
body.wide-reader>main:fullscreen,body.wide-reader>main.reader-expanded{background:#f7f9fc;width:100%!important;height:100dvh;overflow:auto;max-width:none!important;padding:0 16px 24px}
body.wide-reader>main.reader-expanded{position:fixed;inset:0;z-index:1000}
body.wide-reader #student-view{position:static}
@media(max-width:700px){body.wide-reader>main{padding:12px 10px 24px}.reader-screen-bar{padding:6px}.reader-screen-bar button{font-size:13px}}
/* Student classroom */
.study-home{max-width:1180px;margin:auto;color:#19334b}.study-home h1{font-size:clamp(28px,3.5vw,42px);line-height:1.5;margin:10px 0}.study-home h2{font-size:23px;line-height:1.5;margin:6px 0}.study-home p{font-size:16px;line-height:1.8}.study-welcome{background:#edf4fc;border:1px solid #d6e4f3;border-radius:16px;padding:32px;margin:0 0 24px}.study-welcome .eyebrow{color:#2d5b87}.study-open{display:inline-block;font-size:13px;color:#435c73;margin:12px}.study-kana{display:flex;align-items:center;gap:24px;border:1px solid #d8e1e9;padding:24px;border-radius:12px;background:white}.study-kana>span{font-size:38px;white-space:nowrap;color:#165a9e;background:#eaf2fc;padding:18px;border-radius:12px}.study-kana>div{flex:1}.study-kana p{margin:4px 0}.study-section-title{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:32px 0 16px}.study-find{font-size:13px;color:#39566e}.study-find input{display:block;margin-top:6px;min-height:44px;width:260px;border:1px solid #aebfce;border-radius:8px;padding:10px;background:white;color:#19334b}.study-home .skill-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.study-home .skill-card{border:1px solid #d6e0e9;border-radius:12px;padding:22px;box-shadow:none;display:flex;flex-direction:column;background:white;min-width:0}.study-home .skill-card h2{font-size:21px}.study-home .skill-card .button{margin-top:auto}.study-home .skill-jp{font-size:25px;color:#175fa5;margin:18px 0 4px}.study-home .course-status{font-size:12px;background:#e9f4ee;color:#24603e}.study-home .skill-card[hidden]{display:none}.study-home .button{min-height:44px;border-radius:8px;font-size:15px;display:inline-flex;align-items:center;justify-content:center}.study-how{margin:32px 0;padding:24px 0;border-top:1px solid #d6e0e9}.study-how ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.study-how li b{color:#174e80}.study-how p{font-size:14px;color:#4a6176}.study-coming{border:1px solid #d6e0e9;border-radius:10px;padding:16px;margin-bottom:24px}.study-coming summary{cursor:pointer;min-height:36px}.study-account,#study-resume{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:24px;border-radius:12px;border:1px solid #d6e0e9;margin:20px 0;background:white}#study-resume[hidden]{display:none}.study-account h2{font-size:19px}.study-account p{font-size:14px}.study-home :focus-visible{outline:3px solid #c58b19;outline-offset:3px}.wide-reader .app-study-bar{font-size:13px;padding:8px 12px}.wide-reader .campus-toolbar{display:none}.wide-reader main{padding-top:8px!important}@media(max-width:1000px){.study-home .skill-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.study-welcome{padding:22px}.study-kana{flex-wrap:wrap;gap:14px;padding:18px}.study-kana>span{font-size:28px;padding:12px}.study-kana .button{width:100%}.study-section-title{display:block}.study-find{display:block;margin-top:14px}.study-find input{width:100%}.study-home .skill-cards{grid-template-columns:1fr}.study-home .skill-card{padding:20px}.study-how ol{grid-template-columns:1fr;gap:10px}.study-account,#study-resume{align-items:flex-start;flex-direction:column}.study-home h2{font-size:21px}.study-open{margin-left:0;display:block}}
