/* Course-local tokens and chapter conventions follow the Endowment Effect course. */
#hindsight-course{--paper:oklch(98% .009 88);--ink:oklch(26% .024 65);--muted:oklch(46% .022 65);--line:oklch(84% .018 80);--honey:oklch(84% .12 84);--honey-light:oklch(95% .052 86);--green:oklch(35% .047 162);--green-light:oklch(94% .03 153);--blue:oklch(49% .17 263);--white:oklch(99.5% .004 85);--serif:'Spectral',Georgia,serif;--sans:'Hanken Grotesk',system-ui,sans-serif;background:var(--paper);color:var(--ink);font:16px/1.6 var(--sans);padding:32px 24px 48px}
#hindsight-course,#hindsight-course *{box-sizing:border-box}
#hindsight-course .course-main{max-width:1168px;margin-inline:auto;min-width:0}
#hindsight-course p,#hindsight-course dd,#hindsight-course .explainer li,#hindsight-course .faq p{font-size:var(--body-size,18px);line-height:var(--body-lh,1.65);color:var(--body-ink,var(--ink));max-width:72ch}
#hindsight-course p{margin:0 0 20px}
#hindsight-course h2{font:400 34px/1.18 var(--serif);letter-spacing:-.6px;margin:0 0 22px;text-wrap:balance}
#hindsight-course h3{font:500 24px/1.25 var(--serif);margin:24px 0 12px}
#hindsight-course h4{font-size:18px;margin:0 0 8px}
#hindsight-course a{color:var(--green);text-underline-offset:4px}
#hindsight-course .explainer{max-width:790px;margin:0 auto 44px}
#hindsight-course .examples{padding:22px 24px;background:var(--honey-light);margin:24px 0}
#hindsight-course .examples h3{margin-top:0}
#hindsight-course .examples ul{padding-left:21px;margin:0}
#hindsight-course .examples li+li{margin-top:12px}
#hindsight-course button,#hindsight-course input,#hindsight-course select,#hindsight-course textarea{font:inherit;color:inherit;max-width:100%;touch-action:manipulation}
#hindsight-course button,#hindsight-course summary{cursor:pointer;min-height:44px}
#hindsight-course button:disabled{cursor:default}
#hindsight-course :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#hindsight-course .passport{border-top:1px solid var(--line);padding:10px 0;margin-bottom:18px}
#hindsight-course .passport summary{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:15px;padding:10px 0;list-style:none}
#hindsight-course .passport summary::-webkit-details-marker{display:none}
#hindsight-course .passport summary:after{content:'+';font-size:22px}
#hindsight-course .passport[open] summary:after{content:'−'}
#hindsight-course #hb-passport{list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#hindsight-course #hb-passport li{border:1px dashed var(--line);padding:16px 8px;text-align:center;border-radius:8px;color:var(--muted)}
#hindsight-course #hb-passport li.earned{background:var(--honey);color:var(--ink);border-style:solid}
#hindsight-course #hb-passport span{display:block;font-size:26px}
#hindsight-course #hb-passport strong{display:block;font-size:14px;line-height:1.4}
#hindsight-course #hb-passport small{font-size:12px}
#hindsight-course .chapter-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:24px}
#hindsight-course .chapter-nav button{display:flex;align-items:center;gap:10px;background:transparent;border:0;border-bottom:2px solid var(--line);padding:12px 6px;text-align:left;line-height:1.35;font-size:14px;min-width:0}
#hindsight-course .chapter-nav button span{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border:1px solid var(--line);border-radius:50%}
#hindsight-course .chapter-nav button[aria-current]{color:var(--green);border-color:var(--green);font-weight:700}
#hindsight-course .chapter-nav button[aria-current] span{background:var(--green);color:var(--paper)}
#hindsight-course .chapter-nav button:disabled{color:var(--muted);opacity:.65}
#hindsight-course .chapter-nav button:not(:disabled):hover{background:var(--honey-light)}
#hindsight-course #lesson{scroll-margin-top:90px}
#hindsight-course #lesson:focus{outline:none}
#hindsight-course .lesson-grid{display:grid;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);align-items:start;border:1px solid var(--line);border-radius:16px;background:var(--white);box-shadow:0 7px 0 -3px var(--paper),0 8px 0 -3px var(--line)}
#hindsight-course .scene{margin:0;position:sticky;top:88px;border-radius:15px 0 0 15px;overflow:hidden;background:var(--honey-light)}
#hindsight-course .scene img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
#hindsight-course figcaption{padding:25px 28px 32px;font:400 29px/1.25 var(--serif)}
#hindsight-course .kicker{display:block;color:var(--green);font:700 12px/1.5 var(--sans);letter-spacing:1px;text-transform:uppercase;margin-bottom:10px}
#hindsight-course .panel{padding:32px;min-width:0}
#hindsight-course .scenario{margin:28px 0 32px;padding:20px 0 0;border:0;border-top:1px solid var(--line);min-width:0}
#hindsight-course .scenario legend{font-weight:700;font-size:19px;max-width:100%;padding-right:12px}
#hindsight-course .scenario label{display:block;line-height:1.5}
#hindsight-course .scenario label strong{display:block;margin:6px 0}
#hindsight-course .number-input{display:flex;align-items:center;gap:8px;margin-top:14px;font-size:22px}
#hindsight-course .number-input input{width:112px;min-height:48px;border:1px solid var(--muted);border-radius:7px;padding:8px 12px;background:var(--paper);font-size:20px}
#hindsight-course .outcome,#hindsight-course .notice,#hindsight-course .record-example{background:var(--honey-light);padding:18px;border-radius:8px;margin:20px 0}
#hindsight-course .notice h3,#hindsight-course .record-example h3{margin-top:0}
#hindsight-course .notice p:last-child,#hindsight-course .record-example p:last-child{margin-bottom:0}
#hindsight-course select{width:100%;min-height:48px;margin:10px 0 20px;padding:10px 7px;border:1px solid var(--muted);border-radius:7px;background:var(--paper);font-size:16px}
#hindsight-course .btn{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:49px;border:1px solid var(--honey);border-radius:8px;background:var(--honey);padding:13px 18px;text-align:left;font-weight:700;line-height:1.4;box-shadow:0 3px 0 oklch(68% .10 84);transition:background .15s ease-out}
#hindsight-course .btn:hover{background:oklch(80% .13 84)}
#hindsight-course .btn.secondary{background:var(--paper);border-color:var(--line);box-shadow:none}
#hindsight-course .quiz{border:0;border-top:1px solid var(--line);padding:20px 0 0;margin:30px 0;min-width:0}
#hindsight-course .quiz legend{font-size:19px;line-height:1.45;font-weight:700;max-width:100%;padding:0 0 10px}
#hindsight-course .choices{display:grid;gap:10px}
#hindsight-course .choice{display:flex;gap:12px;width:100%;border:1px solid var(--line);border-radius:8px;min-height:48px;padding:13px 15px;background:var(--paper);text-align:left;font-size:16px;line-height:1.5}
#hindsight-course .choice:not(:disabled):hover{border-color:var(--ink);background:var(--honey-light)}
#hindsight-course .choice.correct{background:var(--green-light);border-color:var(--green)}
#hindsight-course .choice.wrong{border-color:oklch(48% .12 35)}
#hindsight-course .feedback:not(:empty){background:var(--green-light);padding:16px;margin-top:14px;border-radius:8px;font-size:16px;line-height:1.6}
#hindsight-course .feedback.retry{background:var(--honey-light)}
#hindsight-course .comparisons{padding:0;list-style:none;margin:20px 0}
#hindsight-course .comparisons li{padding:20px 0;border-bottom:1px solid var(--line)}
#hindsight-course .comparisons dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0 0}
#hindsight-course .comparisons dt{font-size:12px;line-height:1.4;color:var(--muted)}
#hindsight-course .comparisons dd{margin:5px 0 0;font-size:22px;font-weight:700;color:var(--green)}
#hindsight-course .definitions{margin:24px 0}
#hindsight-course .definitions dt{font-weight:700;margin:18px 0 4px}
#hindsight-course .definitions dd{margin:0}
#hindsight-course .small,#hindsight-course p.small{font-size:14px;line-height:1.55;color:var(--muted)}
#hindsight-course .reflection label{display:block;font-weight:600}
#hindsight-course .reflection .small{display:block;font-weight:400}
#hindsight-course textarea{width:100%;min-height:140px;resize:vertical;padding:14px;border:1px solid var(--muted);border-radius:8px;font-size:16px;line-height:1.6;margin:12px 0 24px;background:var(--paper)}
#hindsight-course .completion{background:var(--green-light);padding:22px;border-radius:10px;margin-top:20px}
#hindsight-course .completion h3{margin-top:0}
#hindsight-course .course-footer{display:flex;flex-wrap:wrap;align-items:center;gap:14px;margin:30px 0 8px;font-size:14px}
#hindsight-course progress{width:180px;height:10px;accent-color:var(--green);max-width:100%}
#hindsight-course .text-btn{border:0;background:transparent;color:var(--green);text-decoration:underline;text-underline-offset:4px;padding:12px 0;min-height:44px}
#hindsight-course .actions{display:flex;gap:12px;flex-wrap:wrap}
#hindsight-course .actions .btn{width:auto}
#hindsight-course .faq{max-width:790px;margin:48px auto 0;padding-top:30px;border-top:1px solid var(--line)}
#hindsight-course .faq details{border-bottom:1px solid var(--line);padding:8px 0}
#hindsight-course .faq summary{padding:12px 0;font-weight:700;line-height:1.5}
#hindsight-course .faq details p{margin:8px 0 16px}
#hindsight-course .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:900px){#hindsight-course .panel{padding:25px}#hindsight-course .chapter-nav button{flex-direction:column;text-align:center;gap:7px}#hindsight-course figcaption{font-size:25px;padding:22px}}
@media(max-width:720px){#hindsight-course{padding:24px 18px 36px}#hindsight-course .lesson-grid{grid-template-columns:minmax(0,1fr)}#hindsight-course .scene{position:static;border-radius:15px 15px 0 0}#hindsight-course .scene img{max-height:300px}#hindsight-course figcaption{font-size:25px;padding:19px 22px}#hindsight-course .panel{padding:26px 22px}#hindsight-course h2{font-size:30px}#hindsight-course .chapter-nav{gap:3px}#hindsight-course .chapter-nav button{font-size:12px;padding:10px 2px;overflow-wrap:anywhere}#hindsight-course #hb-passport{grid-template-columns:repeat(3,minmax(0,1fr))}#hindsight-course .passport summary{gap:8px;flex-wrap:wrap}#hindsight-course .examples{padding:20px}#hindsight-course .comparisons dd{font-size:21px}#hindsight-course .course-footer{gap:10px}#hindsight-course .actions .btn{width:100%}}
@media(max-width:360px){#hindsight-course{padding-inline:12px}#hindsight-course .panel{padding:24px 16px}#hindsight-course .choice{padding:12px 10px;gap:8px}#hindsight-course .comparisons dl{gap:6px}#hindsight-course .comparisons dt{font-size:11px}}
@media(prefers-reduced-motion:reduce){#hindsight-course,#hindsight-course *,#hindsight-course *:before,#hindsight-course *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
