/* Courses page: "Find your course" quiz, filters and level tags (content/gen/course_finder.py) */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.finder-section{padding-bottom:0}
.finder{padding:44px 40px;gap:24px;border-top:4px solid var(--green);box-shadow:0 18px 40px rgba(11,42,90,.06)}
.finder-intro{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px}
.finder-intro .stack{max-width:680px}
.finder-intro .btn-row{margin:0}
.finder .btn-ghost{background:var(--white)}
.finder .btn-ghost:hover,.finder .btn-ghost:focus-visible{background:var(--ink);color:var(--white)!important}
/* progress */
.finder-progress{display:flex;align-items:center;gap:16px;font-size:14px;font-weight:600;color:var(--muted)}
.finder-bar{flex:1;height:6px;background:var(--sand);border-radius:999px;overflow:hidden}
.finder-bar span{display:block;height:100%;width:0;background:var(--blue);border-radius:999px;transition:width .3s ease}
/* question */
.finder-q{border:0;margin:0;padding:0;min-width:0}
.finder-qtext{margin:6px 0 18px}
.finder-opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:12px}
.finder-opt{display:flex;align-items:center;gap:12px;background:var(--white);border:1.5px solid var(--line-2);border-radius:10px;padding:16px 18px;min-height:56px;cursor:pointer;font-weight:500;color:var(--ink);line-height:1.35;transition:border-color .15s,background .15s}
.finder-opt:hover{border-color:var(--blue)}
.finder-opt input{width:20px;height:20px;margin:0;flex:0 0 auto;accent-color:var(--blue)}
.finder-opt:has(input:checked){border-color:var(--blue);background:#E3F2FA}
.finder-opt:has(input:focus-visible){outline:3px solid var(--blue-bright);outline-offset:2px}
.finder-nav{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.finder .btn:disabled{opacity:.45;cursor:not-allowed}
/* result */
.finder-result{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px 36px;outline:none}
.finder-res-head,.finder-cta,.finder-actions{grid-column:1/-1}
.finder-res-head .lead{max-width:760px}
.finder-why{margin:0;font-size:15px}
.finder-kicker{font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--green-dark);margin:0 0 8px}
.finder-start{background:var(--paper);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;padding:26px 26px 28px;display:flex;flex-direction:column;gap:12px}
.finder-start p{margin:0}
.finder-start .btn{align-self:flex-start;margin-top:6px}
.finder-next ol{list-style:none;counter-reset:fn;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.finder-next li{counter-increment:fn;position:relative;padding:14px 16px 14px 56px;border:1px solid var(--line);border-radius:10px;background:var(--white);display:flex;flex-direction:column;gap:8px}
.finder-next li::before{content:counter(fn) ;position:absolute;left:16px;top:14px;width:28px;height:28px;border-radius:50%;background:var(--navy);color:var(--white);font:600 14px/28px var(--font-head);text-align:center}
.finder-next li a{font-weight:600;text-decoration:none;line-height:1.3}
.finder-next li a:hover{text-decoration:underline}
.finder-start .facts,.finder-next .facts{display:flex;flex-wrap:wrap;gap:6px}
.finder-extra{margin:0;font-size:15px}
.finder-extra a{font-weight:600}
.finder-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding-top:22px}
.finder-cta p{margin:0;max-width:640px}
.finder-actions{margin:0}
@media (max-width:820px){.finder{padding:30px 22px}.finder-result{grid-template-columns:1fr}}
/* filters */
.course-filters{display:flex;flex-direction:column;gap:12px;margin-bottom:28px}
.filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.filter-label{font-size:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);min-width:64px}
.course-filters .chip{min-height:40px;padding:8px 16px}
.filter-count{margin:4px 0 0;font-size:14px}
/* level tags and "in your path" mark on course cards */
.tag-level.lv1{color:#1F6B3A;background:#E6F4EA}
.tag-level.lv2{color:#8A5A00;background:#FDF1D8}
.tag-level.lv3{color:#7A2E5C;background:#F7E6F0}
#course-grid .program{position:relative}
#course-grid .program.in-path{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
.path-badge{position:absolute;top:-12px;right:20px;background:var(--blue);color:var(--white);font-size:12px;font-weight:600;letter-spacing:.04em;border-radius:999px;padding:4px 12px}
#course-grid .program[hidden]{display:none}
.finder-section[hidden],.finder [hidden],.course-filters[hidden]{display:none!important}
.finder-quiz{display:flex;flex-direction:column;gap:22px}
.finder-result,.finder{scroll-margin-top:100px}
#course-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr))}
