:root{
  --eco-bg:var(--home-bg,var(--nara-bg,#f7f3ec));
  --eco-ink:#33251d;
  --eco-muted:#8d837a;
  --eco-gold:var(--home-gold,var(--nara-gold,#c9952d));
  --eco-line:#e5d9cc;
  --eco-paper:#fffdf9;
  --eco-dark:#34241b;
  --eco-shadow:0 18px 45px rgba(63,43,28,.07);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--eco-bg)!important;color:var(--eco-ink)!important;font-family:Arial,sans-serif;overflow-x:hidden}
a{color:inherit}
.eco-header{max-width:1240px;margin:0 auto;padding:28px clamp(22px,4vw,48px) 24px;border-bottom:1px solid rgba(122,96,71,.14)}
.eco-header-main{display:flex;align-items:center;justify-content:space-between;gap:22px}
.eco-brand{display:inline-flex;align-items:center;gap:12px;text-decoration:none;min-width:0}
.eco-logo{width:54px;height:54px;object-fit:contain;flex:0 0 54px;filter:drop-shadow(0 5px 10px rgba(63,43,28,.08));transform:translateY(4px)}
.eco-brand-text{display:flex;align-items:baseline;gap:8px;min-width:0;font-family:Georgia,serif;font-size:34px;line-height:1;white-space:nowrap}
.eco-brand-text b{font-weight:700;color:var(--eco-ink)}
.eco-brand-text em{font-style:normal;font-weight:700;color:var(--eco-gold)}
.eco-action{background:var(--eco-dark);color:#fff;text-decoration:none;font-weight:800;border-radius:24px;padding:17px 24px;display:inline-flex;align-items:center;justify-content:center;min-height:54px;box-shadow:0 10px 24px rgba(51,37,29,.12)}
.eco-switches{display:grid;grid-template-columns:minmax(0,304px) minmax(0,304px);gap:14px;margin-top:22px}
.eco-segment{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--eco-line);border-radius:24px;overflow:hidden;background:rgba(255,255,255,.55);min-width:0}
.eco-segment a{min-height:50px;display:flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;color:#5b4d43;border-right:1px solid var(--eco-line);transition:.15s ease}
.eco-segment a:last-child{border-right:0}
.eco-segment a.active{background:var(--eco-dark);color:#fff}
.eco-back-row{max-width:1240px;margin:18px auto 0;padding:0 clamp(22px,4vw,48px)}
.eco-back{display:inline-flex;text-decoration:none;border:1px solid var(--eco-line);background:rgba(255,255,255,.66);border-radius:999px;padding:10px 15px;font-weight:800;color:#6f6055}

/* Home identity */
.home-page{max-width:none!important}
.home-header{display:none!important}
.home-page main,.home-footer{max-width:1240px;margin-left:auto;margin-right:auto}
.home-hero{position:relative;overflow:hidden}
.home-hero-mark{display:block!important;position:absolute!important;right:-18px!important;bottom:-54px!important;width:min(410px,38vw)!important;height:min(410px,38vw)!important;opacity:.055!important;background:url('/assets/nara-nr-logo.png?v=0181logo2') center/contain no-repeat!important;pointer-events:none}
.home-hero-mark .hero-mark-inner{display:none!important}
.home-course-card,.student-card,.catalog-card,.course-info-cover,.course-student-cover{box-shadow:var(--eco-shadow)}
.home-course-cover,.catalog-cover,.my-course-cover,.course-info-cover,.course-student-cover{background:linear-gradient(135deg,#efe1c8,#bf8f39)!important}
.home-cover-placeholder,.catalog-cover-placeholder{font-size:0!important;background:linear-gradient(135deg,#efe1c8,#bf8f39)!important;position:relative;overflow:hidden}
.home-cover-placeholder:after,.catalog-cover-placeholder:after{content:"";position:absolute;inset:16%;background:url('/assets/nara-nr-logo.png?v=0181logo2') center/contain no-repeat;opacity:.9}
.home-primary,.home-card-btn,.student-btn.gold{background:var(--eco-gold)!important;color:#fff!important;border-color:var(--eco-gold)!important}

/* Unified student/public pages */
.student-shell{max-width:1240px!important;margin:0 auto!important;padding:38px clamp(22px,4vw,48px) 70px!important}
.student-top{display:none!important}
.student-title{font-family:Georgia,serif!important;color:var(--eco-ink)!important;font-size:clamp(42px,6.2vw,76px)!important;line-height:.98!important;letter-spacing:-.025em!important;margin:10px 0 20px!important;overflow-wrap:anywhere}
.student-eyebrow{color:#9a7130!important;font-weight:900!important;letter-spacing:.18em!important;text-transform:uppercase!important;font-size:12px!important}
.student-muted,.catalog-lead,.course-info-lead,.course-rich-text{color:var(--eco-muted)!important;line-height:1.55!important}
.student-card,.catalog-card{background:var(--eco-paper)!important;border:1px solid var(--eco-line)!important;border-radius:28px!important}
.student-card{padding:clamp(22px,3.4vw,38px)!important}
.student-btn{border-radius:18px!important;min-height:50px!important;padding:13px 18px!important;font-weight:900!important}
.student-btn.dark{background:var(--eco-dark)!important;color:#fff!important;border-color:var(--eco-dark)!important}
.student-progress-bar{background:#efe7de!important;border-radius:999px!important;overflow:hidden}
.student-progress-bar i{background:var(--eco-gold)!important;border-radius:999px!important}
.catalog-grid{gap:24px!important}
.catalog-card{overflow:hidden!important}
.catalog-cover{border-radius:0!important}
.catalog-body{padding:26px!important}
.catalog-body h2,.student-course-card h3,.course-section-title{font-family:Georgia,serif!important;color:var(--eco-ink)!important;letter-spacing:-.02em!important}
.catalog-body h2{font-size:34px!important;line-height:1.05!important}
.catalog-meta span,.learning-state,.catalog-access-badge{border-radius:999px!important}
.catalog-price strong,.course-info-price strong{color:var(--eco-ink)!important}
.eco-reference{display:block;margin-top:5px;font-size:14px;font-weight:700;color:#9b8e82}

.course-info-hero,.course-student-hero{display:grid!important;grid-template-columns:minmax(0,1.06fr) minmax(340px,.94fr)!important;gap:36px!important;align-items:center!important;margin-bottom:28px!important}
.course-info-cover,.course-student-cover{border-radius:30px!important;overflow:hidden!important;min-height:360px!important}
.course-info-cover img,.course-student-cover img{width:100%!important;height:100%!important;object-fit:cover!important}
.course-info-grid{gap:20px!important}
.course-info-cta{gap:16px!important;align-items:center!important}
.course-section-title{font-size:clamp(32px,4vw,48px)!important;line-height:1.04!important}

.learning-route-hero{background:linear-gradient(145deg,#fffdfa,#f6ebd7)!important}
.route-ring{background:conic-gradient(var(--eco-gold) calc(var(--route-pct)*1%),#eee4d9 0)!important}
.student-course-card-v10{border:1px solid var(--eco-line)!important;border-radius:26px!important;overflow:hidden!important;background:#fff!important}
.my-course-cover{border-radius:20px!important;overflow:hidden!important}

.student-grid{gap:24px!important;align-items:start!important}
.student-lesson-main>.student-eyebrow{margin-top:4px}
.student-lesson-main .nara-block{background:var(--eco-paper)!important;border:1px solid var(--eco-line)!important;box-shadow:0 10px 28px rgba(63,43,28,.04)!important}
.student-lesson-main .nara-player{border-radius:22px!important}
.course-aside{position:sticky!important;top:20px!important}
.lesson-bottom-nav{gap:12px}
.complete-card{max-width:860px!important;margin:30px auto!important;text-align:center!important;background:linear-gradient(145deg,#fffdfa,#f5ead8)!important}

@media(max-width:820px){
  .eco-header{padding:20px 22px 20px}
  .eco-logo{width:44px;height:44px;flex-basis:44px;transform:translateY(5px)}
  .eco-brand{gap:9px}
  .eco-brand-text{font-size:28px;gap:6px}
  .eco-action{min-height:48px;padding:13px 18px;border-radius:20px;font-size:15px}
  .eco-switches{grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
  .eco-segment{border-radius:22px}
  .eco-segment a{min-height:48px;font-size:14px}
  .student-shell{padding:30px 22px 56px!important}
  .course-info-hero,.course-student-hero{grid-template-columns:1fr!important;gap:22px!important}
  .course-info-cover,.course-student-cover{min-height:0!important;aspect-ratio:16/10!important;order:-1}
  .student-grid{grid-template-columns:1fr!important}
  .course-aside{position:static!important}
}

@media(max-width:560px){
  .eco-header{padding:18px 18px 18px}
  .eco-header-main{gap:12px}
  .eco-logo{width:40px;height:40px;flex-basis:40px;transform:translateY(5px)}
  .eco-brand-text{font-size:24px;gap:5px}
  .eco-action{font-size:14px;padding:12px 15px;min-height:46px;max-width:150px;text-align:center;line-height:1.05}
  .eco-switches{gap:10px;margin-top:16px}
  .eco-segment a{font-size:12px;min-height:46px}
  .eco-back-row{padding:0 18px;margin-top:14px}
  .home-page main,.home-footer{padding-left:0!important;padding-right:0!important}
  .home-hero,.home-courses,.home-footer{margin-left:18px!important;margin-right:18px!important}
  .home-hero{padding-top:64px!important}
  .home-hero h1{font-size:clamp(48px,13vw,64px)!important;line-height:.98!important}
  .home-hero-mark{width:260px!important;height:260px!important;right:-72px!important;bottom:-48px!important;opacity:.045!important}
  .student-shell{padding:26px 18px 48px!important}
  .student-title{font-size:clamp(42px,12.4vw,58px)!important}
  .student-card{padding:20px!important;border-radius:24px!important}
  .catalog-card{border-radius:24px!important}
  .catalog-body{padding:22px!important}
  .catalog-body h2{font-size:31px!important}
  .course-info-cover,.course-student-cover{border-radius:24px!important}
  .course-info-cta,.catalog-bottom,.student-progress-head{align-items:stretch!important;flex-direction:column!important}
  .course-info-cta .student-btn,.catalog-bottom .student-btn{width:100%!important}
  .student-course-card-v10{grid-template-columns:1fr!important;padding:16px!important}
  .my-course-cover{aspect-ratio:16/10!important}
}

@media(max-width:390px){
  .eco-brand-text{font-size:21px}
  .eco-logo{width:36px;height:36px;flex-basis:36px;transform:translateY(4px)}
  .eco-action{max-width:126px;padding:10px 12px;font-size:13px}
  .eco-segment a{font-size:11px}
}
.student-shell .eco-back-row{max-width:none;margin:0 0 22px;padding:0}

/* v0.18.2 — footer cleanup: language switcher lives only in the header */
.home-footer{display:flex!important;justify-content:flex-start!important;align-items:center!important}
.home-footer nav{display:none!important}

/* v0.18.3 — mobile header collision fix */
@media(max-width:560px){
  .eco-header-main{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
  }
  .eco-brand{
    min-width:0;
    max-width:100%;
    overflow:hidden;
    gap:7px;
  }
  .eco-logo{
    width:36px;
    height:36px;
    flex-basis:36px;
    transform:translateY(4px);
  }
  .eco-brand-text{
    min-width:0;
    font-size:19px;
    gap:4px;
    letter-spacing:-.02em;
    white-space:nowrap;
  }
  .eco-action{
    flex:0 0 auto;
    width:116px;
    max-width:116px;
    padding:10px 10px;
    min-height:48px;
    font-size:13px;
    line-height:1.05;
    border-radius:20px;
    white-space:normal;
    text-align:center;
  }
}
@media(max-width:390px){
  .eco-header{padding-left:16px;padding-right:16px}
  .eco-header-main{gap:8px}
  .eco-logo{width:32px;height:32px;flex-basis:32px}
  .eco-brand-text{font-size:18px;gap:3px}
  .eco-action{width:108px;max-width:108px;font-size:12.5px;padding:9px 8px}
}

/* v0.18.4 — student privacy cleanup: no public NaRa ID, route follows greeting */
@media(max-width:560px){
  .student-shell > .learning-route-hero{margin-top:4px!important}
}
