/* FinPath visual refresh: locally available, CSS-only and respectful of reduced motion. */
:root{
  --bg:#f4f3f0;
  --paper:#fffefa;
  --ink:#182b34;
  --text:#4c6269;
  --muted:#71838a;
  --line:#e4e9e7;
  --green:#12665d;
  --lime:#d9f28b;
  --mint:#dff3ea;
  --lilac:#eee9fb;
  --blue:#e4effc;
  --peach:#ffeddd;
  --finpath-blue:#203f55;
  --finpath-coral:#e98465;
  --finpath-shadow:0 12px 36px rgba(25,52,60,.055);
}
body{
  background:radial-gradient(ellipse 55% 34% at 80% -10%,#f7e7d8 0,transparent 72%),
             radial-gradient(ellipse 45% 28% at 18% 2%,#e3f2ed 0,transparent 75%),var(--bg);
  color:var(--ink);
}
/* A calm, high-contrast navigation rail gives the colourful content a frame. */
.sidebar{background:#183845;border-right:0;color:#f4f8f4;box-shadow:6px 0 28px rgba(21,50,59,.08)}
.brand{color:#fff}.brand-symbol{background:#d3f08b;color:#153c3b;box-shadow:0 5px 14px rgba(0,0,0,.12)}
.brand-en{color:#aecdc6}.workspace-label,.nav-label{color:#b1cac8}
.nav-link{color:#d0e1de;border-radius:11px;font-size:13px}
.nav-link:hover{background:#315764;color:#fff}
.nav-link.active{background:#d7efad;color:#173e3b;font-weight:700;box-shadow:0 4px 16px rgba(0,0,0,.08)}
.nav-count,.saved-count{color:#274e49;background:#d9efc0}
.nav-divider{background:#52737b}.sidebar-tip{background:#244b57;border-color:#3d6970;color:#f5fbf7}
.tip-icon{background:#446e68;color:#dff4bb}.sidebar-tip p{color:#c0d6cf}.sidebar-tip .text-button{color:#d8edb3}
.profile{border-color:#4b6b73;color:#fff}.profile small{color:#c4d6d2}.profile>span:last-child{color:#c2d7d2}
.topbar{background:rgba(255,254,250,.9);border-color:#e1e8e4}
.breadcrumb{color:#6f8589}.breadcrumb b{color:#28494d;font-weight:600}
.search-box{border-color:#dfe8e4;background:#f1f6f3;border-radius:12px}
.search-box input{font-size:12px}.search-box input::placeholder{color:#657f7b}
.header-avatar,.avatar{background:#fee3cd;color:#784d37;font-weight:700}
main{padding-top:28px}.page-heading{margin-bottom:26px}.page-heading h1{color:#183541;font-weight:750;letter-spacing:-.035em}
.page-heading p{color:#5a7072;font-size:13px}.page-eyebrow{color:#47887f;font-weight:700;letter-spacing:2px}
.section-heading h2,.rail-title h2{color:#203c43}.section-subtitle{color:#657b7e}
/* Place the welcome illustration first; older browsers safely keep the original order. */
@supports selector(.page-enter:has(> .hero)){
  .page-enter:has(> .hero){display:flex;flex-direction:column}
  .page-enter:has(> .hero)>.page-heading{order:0}
  .page-enter:has(> .hero)>.hero{order:1}
  .page-enter:has(> .hero)>.daily-feature{order:2}
  .page-enter:has(> .hero)>.profile-entry{order:3}
  .page-enter:has(> .hero)>.dashboard-grid{order:4}
}
.hero{min-height:285px;border-radius:24px;background:#183b4b;box-shadow:0 20px 42px rgba(22,59,70,.17);margin-bottom:24px}
.hero:after{background:radial-gradient(circle at 75% 12%,rgba(235,154,117,.32),transparent 25%),radial-gradient(circle at 60% 94%,rgba(47,155,136,.45),transparent 39%),linear-gradient(110deg,#173a49 8%,#205466 70%,#24465a 100%)}
.hero:before{content:'';position:absolute;width:230px;height:230px;right:-75px;top:-95px;border:1px solid rgba(238,246,216,.25);border-radius:50%;box-shadow:0 0 0 26px rgba(238,246,216,.04),0 0 0 53px rgba(238,246,216,.03);pointer-events:none;z-index:0}
.hero-copy{padding:36px 38px}.hero-eyebrow{color:#d9efaa;letter-spacing:2px}.hero h2{font-size:34px;line-height:1.48;letter-spacing:.02em}.hero h2 span{color:#dcf7a2}.hero p{color:#d2e5df;font-size:12px;line-height:1.9}
.hero-pill{background:#315e65;border-color:#6a9992;color:#eff9d6;border-radius:999px}.hero-art-note{color:#c2dcd1}.chart-label{fill:#c0d9ca}
.button{border-radius:10px;border-color:#d9e3de;color:#244a48;font-weight:650}
.button.primary{background:#176e65;border-color:#176e65;color:#fff}.button.primary:hover{background:#105b54;border-color:#105b54}
.button.lime{background:#d9f28b;border-color:#d9f28b;color:#183c39}.button.ghost{border-color:#a4c8be;color:#f2faf5}
.button:focus-visible,.nav-link:focus-visible,.mobile-nav a:focus-visible{outline-color:#d18950;outline-offset:3px}
.daily-feature{isolation:isolate;overflow:hidden;border-radius:21px;border-color:#cde7dd;background:linear-gradient(115deg,#e8f6ee 0%,#f9fcf3 62%,#fff0dc 125%);box-shadow:var(--finpath-shadow)}
.daily-feature:after{content:'';position:absolute;z-index:-1;right:20%;top:-56px;width:150px;height:150px;border:1px solid #c0dfd1;border-radius:50%;box-shadow:0 0 0 20px rgba(81,164,143,.055),0 0 0 40px rgba(81,164,143,.04);pointer-events:none}
.daily-emblem{background:linear-gradient(145deg,#1b8274,#145d5e);color:#e5f7c1;border-radius:20px;box-shadow:0 8px 18px rgba(20,112,98,.18)}
.daily-feature h2{color:#466b63}.daily-feature h3{color:#173f42;font-weight:750}.daily-feature p,.daily-meta{color:#506e68}
.daily-feature .page-eyebrow{color:#357d72}.daily-feature-actions .text-button{color:#24685e;font-weight:650}
.profile-entry{position:relative;overflow:hidden;background:linear-gradient(105deg,#fff7eb,#fffdfa 65%,#f4f1ff);border-color:#f0dfce;box-shadow:var(--finpath-shadow);margin-bottom:24px}
.profile-entry:after{content:'';position:absolute;right:-35px;top:-56px;width:160px;height:160px;border-radius:50%;background:rgba(242,192,166,.16);pointer-events:none}
.profile-entry h2,.profile-entry p,.profile-entry .mine-actions,.profile-entry .profile-beta{position:relative;z-index:1}
.profile-entry h2{color:#513c43}.profile-entry>p{color:#695b59}.profile-beta{background:#e5f3e5;color:#275d50}
.career-card,.lesson-card,.module-card,.rail-card,.stage-card,.mine-card,.catalog-card,.paper-card,.paper-question-card,.profile-panel,.job-search-form,.job-comparison,.daily-library article,.daily-how{
  border-color:#e0e9e3;box-shadow:var(--finpath-shadow);
}
.career-card,.module-card,.lesson-card,.rail-card,.stage-card,.mine-card,.catalog-card,.paper-card,.profile-panel{border-radius:17px}
.career-card{border-top:3px solid #7dbfa9}.career-card:nth-child(3n+2){border-top-color:#a69bde}.career-card:nth-child(3n){border-top-color:#edb08c}
.career-card.featured{background:linear-gradient(145deg,#fff 55%,#f2effd);border-color:#ddd8f2;border-top-color:#a69bde}
.career-desc,.module-desc,.catalog-lead{color:#536d70}
.career-en,.module-meta,.lesson-meta,.card-bottom,.progress-caption,.path-subtitle,.rail-label{color:#607c79}
.lesson-category{color:#4f766d}
.mint{background:#e0f4ec;color:#257761}.lilac{background:#ece7fb;color:#7765a7}.blue{background:#e3effb;color:#507caa}.peach{background:#ffede0;color:#a76648}
.tag{background:#f1f6f4;border-color:#e0ece7;color:#416761}.career-card.featured .tag{background:#efebfb;color:#64598c}
.save-button{color:#758d8b}.save-button.saved{color:#1e7568}.card-bottom{border-color:#e7eeea}
.lesson-card:hover,.module-card:hover,.career-card:hover{border-color:#9ccbbb;box-shadow:0 14px 32px rgba(24,74,67,.11)}
.section-heading .caption{color:#7b9291;font-weight:600}.more-button,.link-button{color:#256e64}
.rail-card{background:#fffefa}.rail-label{background:#e9f4ed;color:#487a64;border-radius:999px}
.learning-note,.intro-strip{background:#e9f4ec;border-color:#d0e7d9;color:#426957}
.quote-card{background:#f8eade;border-color:#f0dfd1;color:#6c534e}
.roadmap-header,.stage-header{background:#f2f8f4}.stage-number,.lesson-status{background:#dff2e7;color:#276f62}
.job-match{background:#e5f4ea;color:#246957}.job-card-metrics dt{color:#607779}.job-card-metrics dd{color:#294747}
.job-search-form,.catalog-filters,.paper-filters{background:linear-gradient(115deg,#f5fbf7,#fffefa);border-color:#dbe8df}
.filter-button.active,.profile-tabs button[aria-pressed=true],.paper-collection-tabs a[aria-current=true]{background:#176e65;color:white;border-color:#176e65}
.profile-maturity{background:linear-gradient(110deg,#eaf8f0,#fffefa 70%,#fff3e7)}
.profile-task-grid article,.profile-direction{background:#f8fbf8;border-color:#dceae0}
.dialog-header{background:linear-gradient(120deg,#f1faf3,#fff8f0)}
.detail-dialog{border-color:#d5e4dd;box-shadow:0 25px 80px rgba(15,48,52,.22)}
.quiz-card,.detail-note,.practice-box,.worked-example{border-color:#d6e9da}
.detail-dialog::backdrop{background:rgba(12,35,43,.63)}
.offline-strip{color:#386a60}.offline-strip .status-dot{background:#3d9b77}
.footer{color:#617d7a}.footer-dot{background:#67ab8f}
@media(min-width:761px){
  .page-heading h1{font-size:28px}.page-heading p{font-size:13px}
  .section-heading h2{font-size:18px}.career-card h3{font-size:17px}
  .career-desc{font-size:12px;line-height:1.8}.career-en,.lesson-category,.module-meta,.lesson-meta,.card-bottom{font-size:11px}.tag{font-size:10px}
  .hero-copy{width:54%}.hero-art{width:46%}
}
@media(max-width:760px){
  .topbar{background:rgba(255,254,250,.96);border-color:#dce9e1}
  .breadcrumb:before{background:#1b645b;color:#e0f398}.breadcrumb b{color:#21464b}
  .page-heading h1{font-size:25px}.page-heading p{font-size:14px;color:#516d6a}
  .hero{border-radius:20px;margin-bottom:22px;min-height:0}
  .hero-copy{padding:27px 24px 18px;width:100%}.hero h2{font-size:30px}.hero p{font-size:13px;color:#d4eae0}
  .hero-art{width:100%;height:145px}.hero-pill{background:#315d63;border-color:#6d9a91}
  .daily-feature{border-radius:19px;margin-bottom:20px;padding:22px}
  .daily-feature:after{right:-45px;top:-55px}.daily-feature h3{font-size:22px}
  .profile-entry{padding:22px;margin-bottom:28px}.career-card,.all-careers .career-card,.module-card,.lesson-card,.rail-card,.mine-card,.profile-panel{border-radius:16px}
  .career-card .career-desc,.all-careers .career-desc,.module-card .module-desc{color:#4f6969}
  .mobile-nav{background:rgba(255,254,250,.96);border-color:#dce9e3;box-shadow:0 -8px 24px rgba(29,66,62,.08)}
  .mobile-nav a{color:#657e7c}.mobile-nav a.active{color:#125c54;background:#dff3e7}
  .mobile-nav a.active svg{stroke-width:2.2}
  .section-heading h2{font-size:19px}.section-subtitle{color:#5c7571}
  .dialog-header{padding-top:calc(27px + var(--safe-top))}
  .reading-section p{color:#3c5955}
}
@media(max-width:360px){.hero h2{font-size:27px}.hero-copy{padding-left:20px;padding-right:20px}.daily-feature,.profile-entry{padding:20px}.daily-feature h3{font-size:20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media(forced-colors:active){.sidebar,.hero,.mobile-nav{forced-color-adjust:auto}.nav-link.active,.mobile-nav a.active{outline:2px solid Highlight}}
/* Source-backed, topic-specific practice appears inside the existing lesson flow. */
.enrichment-panel{margin:20px 0;border:1px solid #cce3db;border-radius:16px;background:linear-gradient(120deg,#f0faf5,#fffaf1);overflow:hidden;color:#24423f}
.enrichment-panel>summary{display:flex;align-items:center;gap:10px;padding:17px 20px;font-size:15px;font-weight:750;cursor:pointer;list-style:none}
.enrichment-panel>summary::-webkit-details-marker{display:none}
.enrichment-panel>summary:before{content:'✦';display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#d9efe3;color:#276e61}
.enrichment-panel>summary:after{content:'+';margin-left:auto;color:#276e61;font-size:20px;line-height:1}
.enrichment-panel[open]>summary:after{content:'−'}
.enrichment-panel>summary:focus-visible{outline:3px solid #d18950;outline-offset:-3px}
.enrichment-content{padding:0 20px 18px;color:#3c5955;font-size:14px;line-height:1.8}
.enrichment-content p{margin:0 0 10px}.enrichment-content p:last-child{margin-bottom:0}.enrichment-content strong{color:#1c5149}.enrichment-content a{color:#176e65;text-decoration:underline;text-underline-offset:3px}.enrichment-content small{display:inline;color:#617a72}
@media(max-width:760px){.enrichment-panel>summary{padding:15px 16px}.enrichment-content{padding:0 16px 16px;font-size:15px}}
