/*
Theme Name: NEXORA Learn
Theme URI: https://example.invalid/nexora-learn
Author: NEXORA
Description: NEXORA Learn responsive educational theme. Pair with NEXORA Learn Core plugin for lessons and curriculum.
Version: 2.9.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: nexora-learn
License: GPL-2.0-or-later
*/
:root{--green:#0b3021;--orange:#ef600b;--cream:#faf6ee;--sand:#f0eadd;--muted:#746e62;--line:#dfd6c7;--white:#fffdf9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--cream);color:var(--green);margin:0;font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit}a:focus-visible,button:focus-visible{outline:3px solid #ff9e55;outline-offset:3px}.container{width:min(1080px,calc(100% - 44px));margin-inline:auto}.site-header{border-bottom:1px solid #e7ded1;height:72px;display:flex;align-items:center}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:inline-flex;align-items:center;gap:9px;font-weight:850;font-size:19px;letter-spacing:-.8px}.brand-mark{width:28px;height:28px;background:var(--green);color:#fff;border-radius:50%;display:grid;place-items:center;font-weight:900;font-size:16px}.brand .orange{color:var(--orange)}.nav{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:700}.nav a:hover{color:var(--orange)}.nav .pill-dark{background:var(--green);color:white;padding:11px 20px;border-radius:100px}.nav .pill-dark:hover{background:var(--orange);color:white}.hero{padding:64px 0 75px}.hero-layout{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.eyebrow{font-size:11px;letter-spacing:.14em;font-weight:800;color:var(--orange);text-transform:uppercase}.tag{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;background:#e6efe5;border:1px solid #d4e5d6;border-radius:100px;color:#306344;font-size:11px;font-weight:800}.tag:before{content:"";width:6px;height:6px;background:#2c9960;border-radius:100%}h1,h2,h3,p{margin-top:0}.hero h1{font-size:clamp(46px,5.5vw,74px);line-height:1.02;letter-spacing:-.075em;margin:20px 0}.orange{color:var(--orange)}.hero .intro{font-size:16px;line-height:1.8;color:var(--muted);max-width:470px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:23px}.button{display:inline-flex;align-items:center;gap:12px;justify-content:center;border-radius:100px;padding:14px 24px;font-size:13px;font-weight:800;transition:transform .15s;cursor:pointer}.button:hover{transform:translateY(-2px)}.button.orange-bg{background:var(--orange);color:white}.button.light{border:1px solid #cec5b7}.hero-foot{margin-top:24px;color:var(--muted);font-size:12px}.photo{position:relative;margin-left:auto;max-width:470px}.photo img{display:block;width:100%;height:475px;object-fit:cover;border-radius:27px;box-shadow:0 20px 40px #10251d1f}.photo-label{position:absolute;left:-25px;bottom:-17px;background:white;padding:16px;border-radius:16px;box-shadow:0 12px 28px #0002;display:flex;gap:12px;align-items:center;font-size:12px}.photo-label .bubble{width:43px;height:43px;border-radius:50%;display:grid;place-items:center;background:var(--orange);color:white;font-weight:900}.photo-label small{display:block;color:var(--muted);margin-top:4px}.strip{background:var(--green);color:#fff;padding:15px 0;text-align:center;font-size:13px;font-weight:700;white-space:normal}.strip span{padding:0 15px}.strip em{color:var(--orange);font-style:normal}.section{padding:85px 0}.section-header{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:27px}.section h2{font-size:clamp(30px,3.4vw,45px);line-height:1.1;letter-spacing:-.06em;margin:10px 0 0}.section-header p{max-width:310px;color:var(--muted);font-size:14px;line-height:1.6;margin:0}.grades{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.grade{background:var(--white);border:1px solid var(--line);border-radius:17px;min-height:165px;padding:20px;display:flex;flex-direction:column;transition:.2s}.grade:hover,.subject-card:hover{transform:translateY(-3px);border-color:var(--orange)}.grade.featured{background:var(--green);color:white}.grade-head{display:flex;justify-content:space-between;font-size:12px;font-weight:800}.grade-number{font-size:58px;line-height:1;font-weight:900;letter-spacing:-.08em;color:var(--orange);margin:19px 0}.grade-foot{font-size:11px;opacity:.65;margin-top:auto}.sand-section{background:var(--sand)}.steps-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:30px;margin-top:28px}.step-no{font-size:38px;color:var(--orange);font-weight:900;letter-spacing:-.08em}.step h3{font-size:16px;margin:12px 0 8px}.step p{font-size:13px;line-height:1.65;color:var(--muted);margin:0}.benefits{display:grid;grid-template-columns:1.25fr .75fr;gap:50px;align-items:center}.benefit-quote{font-size:clamp(25px,3vw,36px);font-weight:800;line-height:1.24;letter-spacing:-.05em}.benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.benefit-box{border:1px solid var(--line);padding:18px;border-radius:14px;background:var(--white)}.benefit-box strong{font-size:25px;display:block}.benefit-box small{font-size:11px;color:var(--muted)}.cta{background:var(--green);color:white;border-radius:23px;padding:55px 25px;text-align:center}.cta h2{font-size:clamp(30px,4vw,47px);line-height:1.05}.cta p{font-size:13px;color:#c9d8ce}.site-footer{border-top:1px solid var(--line);padding:32px 0;margin-top:68px}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;color:var(--muted);font-size:12px}.footer-inner .brand{color:var(--green)}.page-main{min-height:54vh;padding:64px 0}.content-panel{background:var(--white);border:1px solid var(--line);border-radius:20px;padding:32px;line-height:1.8}.content-panel h1{font-size:38px;letter-spacing:-.05em}.content-panel img{max-width:100%;height:auto}.breadcrumbs{font-size:13px;color:var(--muted);margin-bottom:20px}.breadcrumbs a{color:var(--green);text-decoration:underline}.nexora-choose{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0 28px}.nexora-chip{border:1px solid var(--line);border-radius:100px;padding:10px 15px;background:var(--white);font-size:13px;font-weight:700}.nexora-chip.active,.nexora-chip:hover{background:var(--green);color:white}.subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.subject-card{padding:22px;border:1px solid var(--line);background:var(--white);border-radius:16px;min-height:135px;display:flex;flex-direction:column;gap:12px;transition:.2s}.subject-card strong{font-size:17px}.subject-card small{color:var(--muted)}.lesson-list{display:grid;gap:10px}.lesson-row{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid var(--line);border-radius:12px;padding:17px;background:var(--white)}.lesson-row:hover{border-color:var(--orange)}.week-title{font-size:21px;margin:32px 0 12px}.empty-note{padding:25px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);background:var(--white)}.lesson-content{font-size:17px;line-height:1.85}.lesson-content h2{font-size:26px}.lesson-meta{font-size:12px;color:var(--muted);margin-bottom:16px}.entry-title{letter-spacing:-.05em}@media(max-width:760px){.hero-layout{grid-template-columns:1fr;gap:36px}.hero{padding:45px 0 55px}.photo{margin:0 auto;width:90%}.photo img{height:360px}.photo-label{left:-13px}.nav{gap:12px}.nav a:not(.pill-dark){display:none}.grades{grid-template-columns:repeat(2,1fr)}.steps-grid{grid-template-columns:1fr}.benefits{grid-template-columns:1fr;gap:25px}.section{padding:65px 0}.section-header{display:block}.section-header p{margin-top:15px}.subject-grid{grid-template-columns:repeat(2,1fr)}.footer-inner{flex-wrap:wrap}.content-panel{padding:20px}.strip span{padding:0 6px}}@media(max-width:420px){.subject-grid{grid-template-columns:1fr}.grade{min-height:140px}.grade-number{font-size:50px}.hero h1{font-size:48px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* v1.1 — original prototype class → subject → tutor modal flow */
.grade{font-family:inherit;color:var(--green);text-align:left;cursor:pointer;width:100%}.grade.featured{color:white}.grade:hover{box-shadow:0 12px 25px #0b30211b}.nx-locked{overflow:hidden}.nx-modal-backdrop[hidden],#nx-subject-view[hidden],#nx-tutor-view[hidden],#nx-back[hidden],#nx-preview-warning[hidden]{display:none!important}.nx-modal-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(8,34,25,.76);backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:28px 16px;overflow-y:auto}.nx-modal{position:relative;background:#faf6ee;color:#0b3021;border-radius:27px;box-shadow:0 25px 90px #0004;width:min(770px,100%);padding:38px 36px 32px;max-height:min(90vh,920px);overflow-y:auto;outline:none}.nx-kicker{font-weight:850;color:#f46308;letter-spacing:.13em;font-size:12px;margin-bottom:13px}.nx-modal h2{font-size:clamp(29px,4vw,38px);line-height:1.12;letter-spacing:-.055em;margin:0 48px 19px 0}.nx-close{position:absolute;top:29px;right:32px;width:43px;height:43px;border:0;border-radius:50%;background:#ece5da;font-size:24px;color:#171c18;cursor:pointer}.nx-close:hover{background:#e4d9c9}.nx-subtitle{font-size:15px;line-height:1.65;color:#756e63;margin:0 0 26px}.nx-subject-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.nx-subject-card{border:1px solid #d9d1c2;border-radius:16px;background:white;min-height:107px;padding:17px;text-align:left;display:flex;align-items:flex-start;justify-content:space-between;flex-direction:column;color:#0b3021;cursor:pointer;transition:.18s}.nx-subject-card:hover{border-color:#f46308;transform:translateY(-2px);box-shadow:0 7px 20px #0b302115}.nx-subject-card strong{font-size:14px}.nx-icon{font-size:24px}.nx-back{background:none;border:0;color:#f46308;font-weight:800;padding:0;margin:-4px 0 24px;cursor:pointer}.nx-chat{background:white;border:1px solid #ded3c3;border-radius:17px 17px 0 0;min-height:245px;padding:21px;max-height:42vh;overflow-y:auto}.nx-message{background:#eaf2eb;border-radius:16px;max-width:94%;padding:17px;color:#0b3021;font-size:15px;line-height:1.6}.nx-lessons-heading{font-weight:800;font-size:13px;margin:22px 0 9px}.nx-lesson-list{display:grid;gap:8px}.nx-lesson-link{display:block;background:#faf6ee;border:1px solid #e0d5c6;border-radius:11px;padding:12px;font-weight:650;font-size:13px}.nx-lesson-link:hover{border-color:#f46308}.nx-empty{font-size:13px;color:#756e63;margin:24px 0 0}.nx-chat-input{display:flex;background:white;border:1px solid #ded3c3;border-top:0;border-radius:0 0 17px 17px;padding:12px;gap:9px}.nx-chat-input input{flex:1;min-width:0;border:1px solid #e2d7c8;border-radius:12px;padding:13px;background:#f8f4ed}.nx-chat-input button{border:0;border-radius:11px;background:#ef600b;color:white;font-weight:800;padding:13px 20px}.nx-chat-input button:disabled{opacity:.65;cursor:not-allowed}.nx-notice,.nx-info{background:#fff0dc;color:#80531a;border-radius:13px;padding:13px;font-size:12px;line-height:1.55;margin:15px 0 0}
@media(max-width:660px){.nx-modal{padding:30px 20px 23px;border-radius:20px}.nx-close{right:19px;top:20px}.nx-subject-grid{grid-template-columns:repeat(2,1fr)}.nx-subject-card{min-height:97px}.nx-modal-backdrop{padding:12px}.nx-modal{max-height:95vh}}
@media(max-width:360px){.nx-subject-grid{grid-template-columns:1fr}}
/* v2: Curriculum browsing in original modals */
.nx-modal{width:min(980px,100%)}.nx-wide{grid-column:1/-1}.nx-subject-card{gap:5px;justify-content:flex-start}.nx-count{font-size:11px;color:#817c71;margin-top:auto}.nx-course-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;font-size:13px;color:#675f55}.nx-course-toolbar input{width:min(270px,60%);padding:12px 14px;border:1px solid #dbd3c5;border-radius:11px;background:white;color:#0b3021}.nx-course-layout{display:grid;grid-template-columns:205px minmax(0,1fr);gap:13px;min-height:345px}.nx-week-sidebar{background:#fff;border:1px solid #ded3c3;border-radius:16px;padding:10px;overflow-y:auto;max-height:51vh;display:flex;flex-direction:column;gap:5px}.nx-week{border:0;border-radius:9px;padding:11px 12px;text-align:left;color:#0b3021;background:transparent;font-size:12px;cursor:pointer}.nx-week:hover,.nx-week.active{background:#e8f0e9;font-weight:750}.nx-learning-panel{background:white;border:1px solid #ded3c3;border-radius:16px;padding:17px;max-height:51vh;overflow:auto}.nx-learning-panel .nx-message{max-width:none;margin-bottom:17px;font-size:13px;padding:13px 15px}.nx-week-label{font-size:12px;font-weight:850;color:#f46308;letter-spacing:.045em;margin:18px 0 10px}.nx-topic-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #efede7;padding:11px 2px}.nx-topic-name{display:flex;align-items:center;gap:9px;line-height:1.4;font-size:13px;min-width:0}.nx-topic-seq{color:#7e867c;font-size:11px;min-width:25px}.nx-topic-pending{font-size:10px;color:#8b8172;background:#f5f0e7;border-radius:16px;padding:6px 9px;white-space:nowrap;flex-shrink:0}.nx-topic-open{font-size:11px;color:white;background:#0b3021;border-radius:20px;padding:7px 10px;white-space:nowrap;flex-shrink:0}.nx-tutor-bar{display:flex;align-items:center;gap:11px;margin-top:17px;background:#fff0dc;border-radius:14px;padding:13px}.nx-tutor-avatar{display:grid;place-items:center;background:#0b3021;color:white;font-size:17px;font-weight:900;border-radius:50%;width:40px;height:40px;flex-shrink:0}.nx-tutor-bar strong{display:block;font-size:13px}.nx-tutor-bar small{display:block;font-size:11px;line-height:1.5;color:#8b6541;margin-top:3px}.nx-empty{color:#6e675f;font-size:13px;line-height:1.6}
@media(max-width:650px){.nx-course-layout{grid-template-columns:1fr}.nx-week-sidebar{max-height:none;display:flex;flex-direction:row;overflow-x:auto;padding:8px;white-space:nowrap}.nx-week{flex-shrink:0}.nx-learning-panel{max-height:47vh}.nx-course-toolbar{flex-wrap:wrap}.nx-course-toolbar input{width:100%}.nx-topic-row{align-items:start;flex-direction:column}.nx-topic-pending,.nx-topic-open{margin-left:32px}}

/* v2.1 - return to chat-first interface; curriculum is optional accordion */
.nx-modal{width:min(790px,100%)}
.nx-chat-box{background:#fff;border:1px solid #ded3c3;border-radius:17px 17px 0 0;min-height:315px;max-height:44vh;overflow-y:auto;padding:22px}
.nx-chat-box .nx-message{max-width:90%;font-size:15px;padding:17px 19px}
.nx-chat-input{margin:0}.nx-chat-input input:disabled{opacity:.8}.nx-chat-input button:disabled{opacity:.7}
.nx-curriculum-details{margin-top:16px;border:1px solid #ddd1c0;border-radius:15px;background:#fff;overflow:hidden}
.nx-curriculum-details summary{display:flex;justify-content:space-between;align-items:center;gap:15px;cursor:pointer;padding:17px 19px;font-weight:800;font-size:14px;list-style:none}
.nx-curriculum-details summary::-webkit-details-marker{display:none}.nx-curriculum-details summary:before{content:'▸';color:#f46308;font-size:18px;margin-right:5px}.nx-curriculum-details[open] summary:before{content:'▾'}
.nx-course-stats{font-size:11px;font-weight:600;color:#776f62}
.nx-course-toolbar{padding:0 16px 12px}.nx-course-toolbar input{width:100%}.nx-course-layout{padding:0 14px 16px;min-height:260px;grid-template-columns:165px minmax(0,1fr)}
.nx-week-sidebar,.nx-learning-panel{max-height:310px}.nx-learning-panel{padding:10px 15px}
.nx-subject-card{min-height:107px}.nx-subject-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:650px){.nx-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nx-chat-box{min-height:245px}.nx-course-layout{grid-template-columns:1fr}.nx-week-sidebar{max-height:none}}

/* v2.5: keep interactive book catalog comfortable inside the tutor modal. */
.nx-curriculum-details[open] .nx-course-layout{max-height:440px}
.nx-curriculum-details[open] .nx-learning-panel,.nx-curriculum-details[open] .nx-week-sidebar{max-height:410px}
@media(max-width:660px){.nx-course-layout{grid-template-columns:1fr}.nx-week-sidebar{max-height:150px!important}.nx-learning-panel{max-height:300px!important}}

/* v2.7: retain the tutor conversation area above the unified lesson catalogue. */
.nx-modal.nx-nature5-mode .nx-chat-box{display:block!important}
.nx-modal.nx-nature5-mode .nx-chat-input{display:flex!important}
.nx-modal.nx-nature5-mode .nx-notice{display:block!important}
.nx-modal.nx-nature5-mode .nx5p-pilot-link{display:none!important}
.nx-modal.nx-nature5-mode .nx-curriculum-details{margin-top:22px}
.nx-modal.nx-nature5-mode .nx-learning-panel,.nx-modal.nx-nature5-mode .nx-week-sidebar{max-height:350px}

/* Universal Tutor integration */
