/* The learning room: clear next steps, quiet surfaces and a curriculum that
   scales from a phone to a desktop. Legacy tokens keep other screens coherent. */
:root {
  --cream: #f6f8f6;
  --paper: #ffffff;
  --ink: #1c302a;
  --muted: #65746b;
  --espresso: #176b54;
  --espresso-deep: #10553f;
  --espresso-darkest: #173c30;
  --latte: #e8ede7;
  --tan: #d8e0d7;
  --orange-soft: #eff3e7;
  --shadow: 0 2px 5px rgba(24, 48, 38, .025);
  --shadow-lift: 0 6px 18px rgba(24, 48, 38, .07);
}
body { font-size: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #27795c; outline-offset: 4px; }
.cfo-header { background: #fff; border-bottom: 1px solid #e6ebe5; box-shadow: none; }
.hdr-inner { max-width: 1200px; min-height: 76px; padding: 14px 24px; gap: 22px; }
.hdr-wordmark { font-size: 24px; letter-spacing: -.8px; }
.hdr-logo { width: 29px; height: 29px; }
.hdr-nav { justify-content: center; gap: 2px; margin-left: 0; }
.hdr-nav-link { padding: 8px 11px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.hdr-nav-link.is-active { color: #176b54; background: #eef5ef; }
.hdr-nav-link:hover { background: #f2f5ef; }
.hdr-nav-expert { box-shadow: none; }
.hdr-nav-expert .hdr-nav-expert-emoji { display: none; }
.hdr-lang { border-color: #dfe5dc; border-radius: 7px; font-size: 12px; max-width: 100px; min-height: 36px; background: #fff; }
.hdr-signin { border-radius: 7px; padding: 10px 17px; font-size: 12px; box-shadow: none; }
.hdr-burger { border-color: #dfe5dc; border-radius: 7px; box-shadow: none; }
.view.home { max-width: 1200px; padding: 48px 24px 60px; }
.home [hidden] { display: none !important; }
.learn-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.65px; line-height: 1.5; color: #5b7869; }
.learn-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.learn-intro h1 { margin: 10px 0 8px; font-size: clamp(30px, 3.2vw, 43px); line-height: 1.15; font-weight: 400; letter-spacing: -1.4px; }
.learn-intro p { margin: 0; font-size: 14px; color: var(--muted); }
.learn-stats { display: flex; gap: 26px; padding-top: 20px; }
.learn-stats > div { display: flex; flex-direction: column; gap: 5px; }
.learn-stats b { font-family: var(--mono); font-size: 23px; font-weight: 400; line-height: 1.2; }
.learn-stats b > span { color: #7c8c7f; font-size: 13px; }
.learn-stats > div > span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.next-lesson { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; min-height: 300px; padding: 36px 44px; border: 1px solid #dce7d9; border-radius: 16px; background: #eaf0e5; overflow: hidden; }
.next-copy .learn-eyebrow { color: #47664f; }
.next-course { margin: 10px 0 0; color: #60765e; font-size: 12px; }
.next-copy h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 500; line-height: 1.2; letter-spacing: -.7px; margin: 4px 0 12px; }
.next-copy p { font-size: 14px; line-height: 1.7; color: #586d55; margin: 0 0 16px; max-width: 400px; }
.next-meta { display: flex; gap: 14px; color: #52684f; font-family: var(--mono); font-size: 11px; margin-bottom: 22px; }
.next-meta > span + span { border-inline-start: 1px solid #bfceba; padding-inline-start: 14px; }
.learn-button { display: inline-flex; gap: 28px; align-items: center; justify-content: space-between; padding: 12px 18px; background: #176b54; color: #fff; border-radius: 7px; font-size: 13px; font-weight: 600; text-decoration: none; min-height: 46px; transition: background .15s; }
.learn-button:hover { background: #10553f; }
.learn-button > span { font-size: 18px; line-height: 1; }
.next-free { display: inline-block; margin-inline-start: 14px; font-size: 10px; color: #586d55; }
.case-preview { background: #fdfefb; border: 1px solid #dce5d6; border-radius: 11px; padding: 23px 25px 19px; box-shadow: 0 8px 22px rgba(35, 62, 35, .045); transform: rotate(-1deg); }
.case-top { display: flex; align-items: center; gap: 7px; color: #5d705b; font-family: var(--mono); font-size: 8px; letter-spacing: .4px; }
.case-dot { height: 6px; width: 6px; background: #729263; border-radius: 50%; }
.case-year { margin-inline-start: auto; color: #84917d; }
.case-label { font-family: var(--font-display); font-size: 20px; letter-spacing: -.4px; margin: 13px 0 18px; }
.case-row { display: grid; grid-template-columns: 1fr auto; font-size: 10px; gap: 6px; margin: 0 0 12px; color: #65755e; }
.case-row b { font-family: var(--mono); color: #29492e; font-size: 10px; font-weight: 500; }
.case-row i { grid-column: 1/-1; display: block; height: 8px; background: linear-gradient(to right, var(--bar-color) var(--bar), #f1f4ec var(--bar)); border-radius: 2px; }
[dir="rtl"] .case-row i { background: linear-gradient(to left, var(--bar-color) var(--bar), #f1f4ec var(--bar)); }
.case-caption { border-top: 1px solid #e8eddf; margin-top: 16px; padding-top: 10px; color: #7a8873; font-size: 9px; line-height: 1.6; }
.course-switch { margin: 36px 0; }
.learn-section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 14px; }
.learn-section-heading h2 { margin: 0; font-family: var(--font); font-size: 16px; font-weight: 600; letter-spacing: -.3px; }
.learn-section-heading > span { font-size: 11px; color: #74816f; }
.home .course-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home .course-card { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 6px 12px; background: #fff; border: 1px solid #e0e6dc; border-radius: 9px; padding: 19px 20px 16px; text-decoration: none; color: var(--ink); box-shadow: none; transition: border-color .15s, background .15s; }
.home .course-card.is-active { border: 1px solid #5c8865; background: #f9fcf6; box-shadow: inset 0 0 0 1px #5c8865; }
.home .course-card:hover { transform: none; background: #f5f8f0; box-shadow: none; }
.course-card-icon { display: flex; width: 33px; height: 33px; justify-content: center; align-items: center; background: #eff4e9; color: #48734c; border-radius: 8px; font-size: 23px; grid-row: 1/3; }
.course-card-index { grid-column: 3; grid-row: 1; align-self: start; color: #8b9885; font-family: var(--mono); font-size: 9px; }
.home .course-card-title { grid-column: 2; grid-row: 1; display: block; font-size: 12px; line-height: 1.35; font-weight: 600; }
.home .course-card-meta { grid-column: 2; grid-row: 2; display: block; margin: 0; font-size: 10px; color: var(--muted); }
.home .course-card-bar { grid-column: 1/-1; width: 100%; height: 3px; margin-top: 7px; background: #e8ede3; }
.home .course-card-bar > span { background: #68956c; }
.learn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; grid-template-areas: "curriculum sidebar"; gap: 30px; align-items: start; }
.learn-curriculum { grid-area: curriculum; min-width: 0; }
.learn-sidebar { grid-area: sidebar; display: flex; flex-direction: column; gap: 18px; padding-top: 3px; }
.curriculum-heading { margin-bottom: 18px; }
.curriculum-heading h2 { margin: 8px 0 7px; font-size: 23px; line-height: 1.25; letter-spacing: -.5px; font-weight: 500; }
.curriculum-heading p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.8; }
.lesson-search { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 0 15px; border: 1px solid #dfe5da; border-radius: 7px; background: #fff; color: #71816c; }
.lesson-search > span { font-size: 24px; line-height: 1; }
.lesson-search input { width: 100%; min-width: 0; border: 0; background: transparent; min-height: 43px; font: inherit; font-size: 12px; color: var(--ink); outline-offset: 2px; }
.lesson-search input::placeholder { color: #7b8975; }
.syllabus-part { margin-bottom: 11px; border: 1px solid #dfe5da; border-radius: 9px; background: #fff; }
.syllabus-part summary { display: flex; align-items: center; gap: 13px; list-style: none; cursor: pointer; padding: 19px; min-height: 66px; }
.syllabus-part summary::-webkit-details-marker { display: none; }
.part-index { font: 10px var(--mono); color: #6a8162; background: #f0f4e9; border-radius: 5px; padding: 6px 7px; }
.part-title { flex: 1; font-size: 12px; font-weight: 600; line-height: 1.5; }
.part-count { color: #7e8a77; font: 10px var(--mono); white-space: nowrap; }
.part-chevron { color: #76886d; margin-inline-start: 5px; transition: transform .15s; }
.syllabus-part[open] .part-chevron { transform: rotate(180deg); }
.syllabus-part .tiles { gap: 0; border-top: 1px solid #edf0e9; padding: 0 19px; }
.home .tile { box-shadow: none; border-radius: 0; padding: 17px 0; gap: 13px; animation: none; }
.home .tile:hover { box-shadow: none; transform: none; background: #fafcf7; }
.syllabus-part .tile + .tile { border-top: 1px solid #eef1ea; }
.home .tile-emoji { width: 34px; height: 34px; border-radius: 6px; background: #f1f5eb; font-size: 18px; }
.home .module-number { color: #7d8f72; background: transparent; font: 11px var(--mono); }
.home .tile-title { font-size: 14px; font-weight: 600; }
.home .tile-short { font-size: 12px; line-height: 1.7; margin-top: 3px; color: #62725b; }
.module-meta { display: flex; align-items: center; gap: 10px; font: 10px var(--mono); color: #62725b; margin-top: 6px; }
.module-meta > span { font: 10px var(--font); color: #42704a; padding: 0 5px; background: #edf4e7; border-radius: 3px; }
.home .tile-state { font-size: 11px; padding: 5px 8px; border-radius: 5px; background: #eff5e9; font-weight: 500; }
.home .tile-locked { opacity: 1; }
.home .state-locked { color: #7a856f; background: #f4f5ef; }
.home .sim-hero { display: block; margin: 0; padding: 24px; border: 1px solid #dce5d3; border-radius: 10px; box-shadow: none; background: #f0f4e7; color: var(--ink); text-decoration: none; }
.home .sim-hero:hover { transform: none; box-shadow: none; border-color: #8fa77e; }
.home .sim-hero-emoji { display: flex; align-items: center; justify-content: center; margin: 0 0 18px; width: 35px; height: 35px; font-size: 25px; border: 1px solid #b5c6a2; border-radius: 50%; background: transparent; box-shadow: none; }
.home .sim-hero-kicker { font-size: 8px; letter-spacing: 1px; color: #67815a; }
.home .sim-hero-title { font-size: 25px; letter-spacing: -.5px; line-height: 1.2; margin: 8px 0 12px; }
.home .sim-hero-sub { font-size: 12px; color: #647456; line-height: 1.8; }
.home .sim-hero-cta { display: inline-block; margin-top: 20px; border: 0; border-radius: 0; padding: 0; color: #235d3f; background: transparent; box-shadow: none; font-size: 12px; font-weight: 600; }
.learn-certificate { padding: 19px; background: #fff; border: 1px solid #e0e6db; border-radius: 10px; }
.learn-certificate .tile { flex-wrap: wrap; padding: 0; gap: 12px; border: 0; box-shadow: none; background: transparent; }
.learn-certificate .tile:hover { background: transparent; }
.learn-certificate .tile-body { flex-basis: calc(100% - 50px); }
.learn-certificate .tile-title { line-height: 1.5; }
.learn-certificate .tile-state { margin-inline-start: 46px; padding: 0; background: transparent; color: #2b7151; }
.learn-access { padding: 8px 7px; }
.learn-access h3 { font-size: 22px; font-weight: 400; line-height: 1.3; margin: 9px 0; }
.learn-access p { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 10px 0 13px; }
.learn-access a { color: #176b54; font-size: 11px; font-weight: 600; text-decoration: none; }
.learn-exam, .learn-resources { margin: 28px 0 0; }
.home .part h2 { text-transform: none; letter-spacing: -.2px; color: var(--ink); font: 600 14px var(--font); margin: 0 0 12px; }
.learn-exam .tiles, .learn-resources .tiles { gap: 0; padding: 0 18px; border: 1px solid #e0e6db; border-radius: 9px; background: #fff; }
.learn-resources .tile + .tile { border-top: 1px solid #eef1e9; }
.learn-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e0e6db; color: #798672; text-align: center; font-size: 11px; }
.learn-empty { padding: 20px; font-size: 13px; color: #66765d; background: #fff; border-radius: 8px; border: 1px solid #e0e6db; }
.site-foot { margin-top: 0; padding: 25px 24px; background: #fff; color: #7a8571; font-size: 10px; border-top: 1px solid #e6ebe1; }
.site-foot a { color: #56724d; }
/* Language suggestions stay beneath the header, away from learning controls. */
.lang-nudge { position: relative; z-index: 1; inset: auto; transform: none; max-width: 1152px; width: calc(100% - 48px); margin: 14px auto 0; padding: 8px 14px; border-radius: 8px; background: #fff; color: #345b42; border: 1px solid #dae5d5; box-shadow: none; font-size: 12px; }
.lang-nudge.show { transform: none; }
.lang-nudge-txt { flex: 1; }
.lang-nudge-yes { background: #176b54; color: #fff; }
.lang-nudge-x { color: #436b4e; background: #eff5ea; }
#tutor-fab { width: 46px !important; height: 46px !important; font-size: 20px !important; background: #176b54 !important; box-shadow: 0 3px 12px #183c2826 !important; }
@media (max-width: 1050px) {
  .hdr-inner { gap: 12px; }
  .hdr-nav-link { padding: 8px; font-size: 11px; }
  .learn-stats { gap: 18px; }
  .next-lesson { padding: 30px; gap: 30px; }
  .next-free { display: block; margin: 9px 0 0; }
  .learn-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .home .course-card { padding: 17px 14px 14px; gap: 6px 9px; }
}
@media (max-width: 760px) {
  .hdr-inner { min-height: 65px; padding: 12px 20px; }
  .view.home { padding: 30px 20px 50px; }
  .learn-intro { display: block; margin-bottom: 25px; }
  .learn-intro h1 { font-size: 34px; }
  .learn-stats { padding-top: 23px; gap: 30px; }
  .learn-stats > div { flex-direction: row; gap: 7px; align-items: baseline; }
  .learn-stats b { font-size: 17px; }
  .learn-stats b > span { font-size: 10px; }
  .learn-stats > div > span { font-size: 9px; }
  .next-lesson { grid-template-columns: 1fr; padding: 27px; min-height: 0; }
  .case-preview { display: none; }
  .next-copy h2 { font-size: 32px; }
  .next-free { display: inline-block; margin-inline-start: 12px; }
  .course-switch { margin: 28px 0; }
  .home .course-cards { gap: 8px; }
  .home .course-card { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 12px 12px; }
  .course-card-index { position: absolute; top: 15px; inset-inline-end: 10px; }
  .home .course-card-title { font-size: 11px; min-height: 30px; }
  .home .course-card-meta { font-size: 9px; }
  .home .course-card-bar { margin-top: auto; }
  .learn-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "curriculum" "sidebar"; gap: 30px; }
  .learn-sidebar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 14px; }
  .learn-access { padding: 0 10px; }
  .learn-section-heading > span { font-size: 9px; }
  .lang-nudge { inset: auto; transform: none; width: calc(100% - 40px); }
}
@media (max-width: 480px) {
  .hdr-inner { padding: 11px 16px; gap: 10px; }
  .hdr-wordmark { font-size: 20px; }
  .hdr-logo { width: 23px; height: 23px; }
  .hdr-brand { gap: 5px; }
  .hdr-account { gap: 7px; }
  .hdr-lang { max-width: 73px; width: 73px; font-size: 10px; padding: 5px; }
  .hdr-signin { padding: 10px 11px; font-size: 10px; white-space: nowrap; }
  .hdr-burger { width: 32px; height: 34px; }
  .view.home { padding: 28px 16px 40px; }
  .learn-intro h1 { font-size: 30px; letter-spacing: -.9px; }
  .learn-intro p { font-size: 12px; line-height: 1.7; max-width: 290px; }
  .learn-stats { gap: 20px; padding-top: 20px; }
  .learn-stats > div { flex-direction: column; gap: 3px; }
  .learn-eyebrow { font-size: 9px; }
  .next-lesson { padding: 24px; border-radius: 12px; }
  .next-copy h2 { font-size: 29px; }
  .next-copy p { font-size: 12px; }
  .next-meta { margin-bottom: 19px; }
  .next-free { display: block; margin: 10px 0 0; font-size: 9px; }
  .learn-section-heading { gap: 8px; }
  .learn-section-heading h2 { font-size: 14px; }
  .learn-section-heading > span { display: none; }
  .home .course-card { padding: 13px 10px 11px; }
  .course-card-icon { width: 28px; height: 28px; font-size: 20px; }
  .course-card-index { font-size: 7px; }
  .home .course-card-title { font-size: 10px; line-height: 1.5; min-height: 45px; }
  .home .course-card-meta { font-size: 8px; }
  .curriculum-heading h2 { font-size: 22px; }
  .curriculum-heading p { font-size: 11px; }
  .syllabus-part summary { padding: 16px 12px; gap: 9px; }
  .part-title { font-size: 11px; }
  .part-count { font-size: 9px; }
  .syllabus-part .tiles { padding: 0 12px; }
  .home .tile { gap: 8px; padding: 15px 0; }
  .home .tile-emoji { width: 26px; height: 30px; font-size: 16px; }
  .home .module-number { font-size: 10px; }
  .home .tile-title { font-size: 13px; }
  .home .tile-short { font-size: 11px; }
  .home .tile-state { padding: 5px 6px; font-size: 10px; }
  .lang-nudge { width: calc(100% - 32px); gap: 8px; font-size: 11px; }
  .learn-sidebar { display: flex; }
  .home .sim-hero { padding: 24px; }
  .home .sim-hero-title { font-size: 27px; }
  .learn-certificate .tile-body { flex-basis: calc(100% - 45px); }
  .learn-certificate .tile-state { margin-inline-start: 34px; }
  .site-foot { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .hdr-inner { gap: 6px; padding-inline: 12px; }
  .hdr-wordmark { font-size: 18px; }
  .hdr-logo { width: 19px; }
  .hdr-lang { width: 61px; max-width: 61px; }
  .hdr-signin { padding-inline: 9px; }
  .learn-intro h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}
