/* Site shell v1 — public navigation and discovery layer */
.site-shell{background:#f7f9fc;color:#172033}
.site-shell .container{width:min(calc(100% - 40px),1120px)}
.site-shell .site-header{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.97);backdrop-filter:blur(14px);border-bottom:1px solid #dde3ec}
.shell-nav{min-height:68px;display:flex;align-items:center;gap:24px}
.shell-nav .brand{margin-right:auto}
.shell-nav-links{display:flex;align-items:center;gap:6px}
.shell-nav-links a,.shell-nav-resume{display:inline-flex;align-items:center;min-height:40px;padding:7px 11px;border-radius:9px;font-size:.9rem;font-weight:750;color:#4d5a70}
.shell-nav-links a:hover{background:#f2f5f9;color:#2f5f9f}
.shell-nav-resume{background:#20385f;color:#fff;padding-inline:15px}
.shell-nav-resume:hover{background:#172d4d}
.shell-menu-button{display:none;width:42px;height:42px;border:1px solid #d8e0ea;border-radius:10px;background:#fff;color:#20385f;font-size:1.2rem;cursor:pointer}
.shell-mobile-menu{display:none;border-top:1px solid #e3e8ef;background:#fff;padding:10px 20px 16px}
.shell-mobile-menu a{display:block;padding:11px 8px;border-bottom:1px solid #edf0f4;font-weight:750;color:#43516a}
.shell-mobile-menu a:last-child{border-bottom:0}
.shell-mobile-menu[hidden]{display:none!important}

.shell-status{background:#20385f;color:#eaf0f8}
.shell-status .container{min-height:38px;display:flex;align-items:center;gap:10px;font-size:.84rem}
.shell-status strong{color:#fff}
.shell-status-chip{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:rgba(255,255,255,.12);font-size:.72rem;font-weight:850;letter-spacing:.04em}

.shell-hero{padding:72px 0 58px;background:linear-gradient(180deg,#fff 0%,#f7f9fc 100%);border-bottom:1px solid #e0e6ee}
.shell-hero-grid{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(360px,.92fr);gap:52px;align-items:center}
.shell-eyebrow{margin-bottom:12px;color:#3f69ad;font-size:.76rem;font-weight:850;letter-spacing:.13em}
.shell-hero h1{margin:0 0 18px;font-size:clamp(2.9rem,6vw,5.1rem);line-height:1.04;letter-spacing:-.05em}
.shell-hero-lead{max-width:690px;margin:0;color:#5c687c;font-size:1.08rem;line-height:1.9}
.shell-facts{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.shell-fact{padding:5px 9px;border:1px solid #dce3ec;border-radius:999px;background:#fff;color:#536079;font-size:.78rem;font-weight:750}
.shell-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}
.shell-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 17px;border:1px solid #20385f;border-radius:10px;font-weight:800}
.shell-btn.primary{background:#20385f;color:#fff}
.shell-btn.secondary{background:#fff;color:#20385f}
.shell-btn.ghost{border-color:#d8e0ea;background:transparent;color:#4a5870}

.progress-panel{border:1px solid #dce3ec;border-radius:18px;background:#fff;padding:24px;box-shadow:0 16px 40px rgba(22,32,51,.07)}
.progress-panel-head{display:flex;align-items:start;justify-content:space-between;gap:16px}
.progress-panel h2{margin:2px 0 0;font-size:1.2rem}
.progress-count{color:#20385f;font-size:1.8rem;font-weight:900;line-height:1}
.progress-count small{font-size:.78rem;color:#728096;font-weight:700}
.shell-progress{height:9px;margin:17px 0 18px;border-radius:999px;background:#edf1f6;overflow:hidden}
.shell-progress>span{display:block;height:100%;width:0;background:#3f69ad;border-radius:inherit;transition:width .25s ease}
.resume-card{display:block;border:1px solid #d9e3f0;border-radius:12px;background:#f7faff;padding:15px 16px}
.resume-card-label{display:block;margin-bottom:3px;color:#6680a6;font-size:.74rem;font-weight:850;letter-spacing:.05em}
.resume-card strong{display:block;font-size:1rem;color:#20385f}
.resume-card small{display:block;margin-top:3px;color:#6c788c}
.chapter-progress-list{display:grid;gap:9px;margin-top:17px}
.chapter-progress-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding-top:9px;border-top:1px solid #edf0f4;font-size:.88rem}
.chapter-progress-row span:first-child{font-weight:750}
.chapter-progress-row span:last-child{color:#6e7b90;font-variant-numeric:tabular-nums}

.shell-section{padding:66px 0}
.shell-section.white{background:#fff}
.shell-section-head{display:flex;align-items:end;justify-content:space-between;gap:22px;margin-bottom:26px}
.shell-section-title{max-width:760px}
.shell-section-title h2{margin:0 0 9px;font-size:clamp(2rem,4vw,3.2rem);line-height:1.15;letter-spacing:-.035em}
.shell-section-title p{margin:0;color:#66748a}
.text-link{color:#3f69ad;font-weight:800;white-space:nowrap}

.chapter-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.chapter-card{display:flex;flex-direction:column;min-height:218px;border:1px solid #dce3ec;border-radius:15px;background:#fff;padding:20px;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.chapter-card:hover{transform:translateY(-2px);border-color:#bdcde3;box-shadow:0 12px 28px rgba(22,32,51,.055)}
.chapter-card .chapter-no{color:#71809a;font-size:.74rem;font-weight:850;letter-spacing:.06em}
.chapter-card h3{margin:9px 0 8px;font-size:1.3rem}
.chapter-card p{margin:0;color:#66748a;font-size:.92rem;line-height:1.75}
.chapter-card .chapter-link{margin-top:auto;padding-top:18px;color:#3f69ad;font-weight:800}
.chapter-card.upcoming{background:#f5f7fa;border-style:dashed}
.chapter-card.upcoming .chapter-link{color:#7c8799}

.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.method-card{border-top:3px solid #8aa8d2;background:#fff;padding:19px 18px 18px;border-radius:0 0 12px 12px}
.method-card .method-no{color:#3f69ad;font-size:.77rem;font-weight:900;letter-spacing:.08em}
.method-card h3{margin:8px 0 6px;font-size:1.12rem}
.method-card p{margin:0;color:#66748a;font-size:.92rem}

.directory-hero{padding:46px 0 30px;background:#fff;border-bottom:1px solid #e0e6ee}
.directory-hero h1{margin:4px 0 10px;font-size:clamp(2.5rem,5vw,4.2rem);line-height:1.05;letter-spacing:-.045em}
.directory-hero p{max-width:780px;margin:0;color:#657186;font-size:1.02rem}
.directory-meta{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.directory-meta span{padding:5px 9px;border:1px solid #dce3ec;border-radius:999px;background:#fff;color:#627087;font-size:.76rem;font-weight:750}
.chapter-jump-wrap{position:sticky;top:68px;z-index:40;background:rgba(247,249,252,.96);backdrop-filter:blur(10px);border-bottom:1px solid #e1e6ed}
.chapter-jump{display:flex;gap:7px;padding:10px 0;overflow-x:auto;scrollbar-width:none}
.chapter-jump::-webkit-scrollbar{display:none}
.chapter-jump a{flex:0 0 auto;padding:7px 11px;border:1px solid #dbe2eb;border-radius:999px;background:#fff;color:#56647a;font-size:.8rem;font-weight:800}
.chapter-jump a:hover{border-color:#b8c9df;color:#2f5f9f}
.directory-chapter{scroll-margin-top:132px;padding:54px 0 6px}
.directory-chapter-head{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:20px;align-items:center;margin-bottom:18px}
.directory-chapter-index{color:#3f69ad;font-size:.82rem;font-weight:900;letter-spacing:.08em}
.directory-chapter-head h2{margin:0 0 4px;font-size:1.75rem}
.directory-chapter-head p{margin:0;color:#68758a;font-size:.92rem}
.directory-chapter-count{color:#6b788d;font-size:.82rem;font-weight:750}
.lesson-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.directory-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center;min-height:78px;padding:12px 14px;border:1px solid #dde4ed;border-radius:12px;background:#fff}
.directory-item:hover{border-color:#b8c9df;background:#fbfcfe}
.directory-no{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#eaf0f8;color:#20385f;font-size:.8rem;font-weight:900}
.directory-copy strong{display:block;line-height:1.4}
.directory-copy small{display:block;margin-top:3px;color:#738095;font-size:.78rem;line-height:1.45}
.directory-arrow{color:#7590b8;font-weight:900}
.upcoming-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:54px 0 12px}
.upcoming-box{border:1px dashed #cbd4df;border-radius:13px;background:#f4f6f9;padding:18px}
.upcoming-box strong{display:block;margin-bottom:4px}
.upcoming-box span{color:#718095;font-size:.9rem}

.map-flow{display:grid;gap:12px;max-width:900px}
.map-step{display:grid;grid-template-columns:82px minmax(0,1fr) auto;gap:18px;align-items:center;border:1px solid #dce3ec;border-radius:14px;background:#fff;padding:17px 19px}
.map-step .map-index{color:#3f69ad;font-size:.76rem;font-weight:900;letter-spacing:.08em}
.map-step h2{margin:0 0 4px;font-size:1.25rem}
.map-step p{margin:0;color:#69768b;font-size:.9rem}
.map-status{padding:5px 9px;border-radius:999px;background:#edf5f1;color:#4f7b69;font-size:.75rem;font-weight:850;white-space:nowrap}
.map-status.upcoming{background:#eef1f5;color:#7a8597}
.map-arrow{margin-left:33px;color:#91a0b5;font-size:1.15rem}

.about-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:30px;align-items:start}
.about-card{border:1px solid #dce3ec;border-radius:15px;background:#fff;padding:24px}
.about-card h2{margin:0 0 10px;font-size:1.35rem}
.about-card p,.about-card li{color:#5e6b80}
.about-card ul{margin:10px 0 0;padding-left:1.2rem}
.about-card li+li{margin-top:7px}
.about-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.about-stat{border:1px solid #dfe5ed;border-radius:12px;background:#f8fafc;padding:16px}
.about-stat strong{display:block;color:#20385f;font-size:1.55rem;line-height:1.1}
.about-stat span{display:block;margin-top:5px;color:#718095;font-size:.78rem}

.site-shell footer{margin-top:66px}
.site-shell .footer{width:min(calc(100% - 40px),1120px)}
.site-shell .footer-links{align-items:center}

@media(max-width:900px){
  .shell-nav-links,.shell-nav-resume{display:none}
  .shell-menu-button{display:grid;place-items:center;margin-left:auto}
  .shell-mobile-menu:not([hidden]){display:block}
  .shell-hero{padding:54px 0 44px}
  .shell-hero-grid,.about-grid{grid-template-columns:1fr}
  .progress-panel{max-width:none}
  .chapter-cards,.method-grid{grid-template-columns:1fr}
  .chapter-card{min-height:0}
  .lesson-directory{grid-template-columns:1fr}
  .directory-chapter-head{grid-template-columns:1fr auto;gap:5px 14px}
  .directory-chapter-index{grid-column:1/-1}
  .upcoming-strip{grid-template-columns:1fr}
}
@media(max-width:620px){
  .site-shell .container{width:min(calc(100% - 28px),1120px)}
  .shell-status .container{min-height:38px;gap:8px;font-size:.78rem;flex-wrap:nowrap}
  .shell-status .container>span:last-child{display:none}
  .shell-status-chip,.shell-status strong{white-space:nowrap}
  .shell-hero h1{font-size:clamp(2.55rem,14vw,3.5rem)}
  .shell-hero-lead{font-size:1rem}
  .shell-actions{display:grid;grid-template-columns:1fr}
  .shell-btn{width:100%}
  .shell-section{padding:52px 0}
  .shell-section-head{display:block}
  .shell-section-title h2{font-size:1.75rem;line-height:1.18}
  .shell-section-head .text-link{display:inline-block;margin-top:12px}
  .directory-hero{padding-top:38px}
  .directory-item{grid-template-columns:40px minmax(0,1fr) 16px;padding:11px 12px}
  .directory-no{width:34px;height:34px}
  .directory-copy strong{font-size:.94rem}
  .directory-copy small{font-size:.75rem}
  .map-step{grid-template-columns:1fr auto;gap:5px 12px}
  .map-step .map-index{grid-column:1/-1}
  .map-arrow{margin-left:18px}
  .about-stat-grid{grid-template-columns:1fr 1fr}
}
