.residency{--navy:#182a3a;--ink:#213341;--muted:#62727f;--wine:#8e2745;--line:#dce3e9;--paper:#fff;--bg:#f3f6f9;--blue:#245a83;--green:#27634c;--redbg:#faf0f3}.residency *{box-sizing:border-box}.residency{margin:0;background:var(--bg);color:var(--ink);font-family:"Noto Sans TC","Microsoft JhengHei",system-ui,sans-serif;font-size:16px;line-height:1.8}.residency button,.residency select,.residency input{font:inherit}.residency button,.residency a,.residency select{touch-action:manipulation}.residency button{cursor:pointer}.residency button:disabled{cursor:default}.residency a{color:var(--blue);text-underline-offset:4px}.residency button:focus-visible,.residency a:focus-visible,.residency select:focus-visible,.residency input:focus-visible{outline:3px solid #c68d35;outline-offset:4px}.residency .skip{position:fixed;left:10px;top:-70px;z-index:9;background:#fff;padding:10px}.residency .skip:focus{top:10px}.residency header{height:100px;border-bottom:1px solid var(--line);background:#fff;padding:0 4.5%;display:flex;justify-content:space-between;align-items:center;gap:20px}.residency .brand{display:flex;gap:16px;align-items:center}.residency .brandmark{background:var(--wine);color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;width:50px;height:50px;font-size:28px;font-weight:750;line-height:1}.residency .brandmark span{font-size:20px;align-self:flex-start;margin-top:9px}.residency .brand strong{font-size:23px;letter-spacing:2px;display:block}.residency .brand-sub{display:block;color:var(--muted);font-size:12px;letter-spacing:1.4px}.residency .header-label{font-size:14px;border:1px solid var(--line);border-radius:30px;padding:5px 16px;white-space:nowrap}.residency .shell{display:grid;grid-template-columns:236px minmax(0,1fr);max-width:1540px;margin:auto;min-height:calc(100vh - 163px)}.residency aside{padding:42px 24px;border-right:1px solid var(--line);background:#f9fbfd}.residency .side-caption,.residency .eyebrow{font-size:12px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}.residency nav{display:grid;gap:7px;margin-top:20px}.residency .nav-item{border:0;background:transparent;text-align:left;padding:12px 10px;border-radius:6px;color:var(--muted);font-size:15px;display:flex;gap:12px;align-items:center}.residency .nav-item span{font-size:12px;letter-spacing:1px;color:#80909c}.residency .nav-item:hover{background:#edf1f5}.residency .nav-item.active{background:var(--navy);color:white}.residency .nav-item.active span{color:#c1cbd3}.residency .side-note{padding:33px 12px 0;margin-top:32px;border-top:1px solid var(--line)}.residency .side-note p{font-size:17px;line-height:1.9}.residency .side-note .small{font-size:13px;color:var(--muted)}.residency .small-rule{width:24px;height:3px;background:var(--wine);margin:24px 0}.residency main{min-width:0;padding:39px 4.5% 50px}.residency h1,.residency h2,.residency h3,.residency h4,.residency p{margin-top:0}.residency h1{font-size:32px;letter-spacing:1px;line-height:1.4;margin-bottom:10px}.residency h2{font-size:24px;line-height:1.5;margin-bottom:12px}.residency h3{font-size:19px;line-height:1.6;margin-bottom:8px}.residency h4{font-size:16px;margin-bottom:8px}.residency p{margin-bottom:16px}.residency .intro{color:var(--muted);max-width:800px}.residency .title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.residency .title-row .eyebrow{color:var(--wine);display:block;margin-bottom:9px}.residency .counter{font-size:14px;color:var(--muted);text-align:right;min-width:108px;padding-top:14px}.residency .counter strong{font-size:28px;color:var(--ink);font-weight:600;display:block}.residency .course-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:26px}.residency .chapter-list{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:hidden;align-self:start}.residency .list-head{padding:15px 18px;border-bottom:1px solid var(--line);color:var(--muted);font-size:14px}.residency .chapter{display:flex;align-items:center;gap:13px;width:100%;padding:16px 15px;border:0;border-bottom:1px solid #edf0f4;background:#fff;text-align:left;color:var(--ink);line-height:1.5}.residency .chapter:last-child{border-bottom:0}.residency .chapter:hover{background:#f8f9fb}.residency .chapter.active{background:var(--redbg);box-shadow:inset 3px 0 var(--wine)}.residency .chapter-num{color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;min-width:20px}.residency .chapter.active .chapter-num{color:var(--wine)}.residency .chapter-title{font-size:15px;font-weight:600}.residency .chapter-sub{font-size:12px;color:var(--muted);display:block;margin-top:4px}.residency .chapter .done{margin-left:auto;color:var(--green)}.residency .lesson,.residency .panel,.residency .case-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px}.residency .lesson-label{font-size:12px;color:var(--wine);font-weight:700;letter-spacing:1.3px;margin-bottom:8px}.residency .lesson .goal{font-size:16px;color:var(--muted);margin-bottom:24px}.residency .block{margin:25px 0}.residency .block p{font-size:16px}.residency .callout{padding:16px 20px;background:var(--redbg);border-left:3px solid var(--wine);border-radius:0 6px 6px 0}.residency .callout strong{color:var(--wine);font-size:14px;display:block;margin-bottom:5px}.residency .callout p{margin:0;font-size:15px}.residency .lesson-bottom{display:flex;justify-content:space-between;gap:14px;align-items:center;border-top:1px solid var(--line);margin-top:26px;padding-top:20px;flex-wrap:wrap}.residency .btn{border:1px solid var(--line);background:#fff;border-radius:6px;padding:8px 17px;color:var(--ink);font-size:14px;font-weight:600}.residency .btn:hover{background:#eff3f6}.residency .btn.primary{background:var(--wine);color:#fff;border-color:var(--wine)}.residency .btn.primary:hover{background:#77203a}.residency .btn:disabled{opacity:.45}.residency .source-links{font-size:13px;color:var(--muted);margin:19px 0 0;line-height:1.8}.residency .source-links a{margin-right:14px}.residency .table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:7px;margin:17px 0}.residency table{width:100%;border-collapse:collapse;font-size:14px}.residency th,.residency td{padding:11px 13px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.residency th{font-weight:600;background:#f4f7fa;color:var(--muted)}.residency tr:last-child td{border-bottom:0}.residency .subtabs{display:flex;gap:8px;margin-bottom:22px;flex-wrap:wrap}.residency .subtab{border:1px solid var(--line);background:#fff;padding:8px 17px;border-radius:30px;font-size:14px;color:var(--muted)}.residency .subtab.active{color:#fff;background:var(--navy);border-color:var(--navy)}.residency .lab-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr);gap:24px}.residency .panel-title{display:flex;justify-content:space-between;gap:10px;margin-bottom:16px}.residency .tag{font-size:12px;color:var(--wine);background:var(--redbg);border-radius:4px;padding:3px 8px;align-self:start;white-space:nowrap}.residency .form-line{display:flex;flex-wrap:wrap;gap:16px;margin:20px 0}.residency label{display:block;font-size:14px;font-weight:600}.residency select,.residency input[type=number]{background:white;border:1px solid #b8c6d1;border-radius:6px;padding:8px 12px;margin-top:7px;max-width:100%;width:180px;color:var(--ink)}.residency .groups{display:flex;gap:9px;flex-wrap:wrap;margin:19px 0}.residency .group{background:#f4f7fa;border:1px solid var(--line);border-radius:7px;min-width:72px;min-height:69px;padding:8px 12px;text-align:center;font-size:25px;font-weight:650}.residency .group.compatible{background:#edf7f2;border-color:#8aba9c;color:var(--green)}.residency .group span{display:block;font-size:12px;font-weight:400}.residency .muted{color:var(--muted)}.residency .small{font-size:14px}.residency .steps{counter-reset:steps;list-style:none;padding:0;margin:0}.residency .steps li{display:flex;gap:13px;margin:19px 0;line-height:1.7;font-size:15px}.residency .steps li:before{counter-increment:steps;content:counter(steps);flex:0 0 26px;height:26px;border-radius:50%;background:#edf1f5;color:var(--muted);font-size:13px;text-align:center;line-height:26px}.residency .lab-note{border-top:1px solid var(--line);padding-top:19px;font-size:14px;color:var(--muted)}.residency .candidate td,.residency .candidate th{background:#fbf1f4}.residency .positive{color:var(--wine);font-weight:700}.residency .feedback{border:1px solid #ced9e2;background:#f4f7fa;border-radius:7px;padding:18px;margin-top:20px}.residency .feedback.correct{border-color:#91b9a1;background:#eff8f2}.residency .feedback.incorrect{border-color:#ce9baa;background:var(--redbg)}.residency .feedback h3{font-size:17px}.residency .feedback p:last-child{margin-bottom:0}.residency .choice-list{display:grid;gap:10px;margin:24px 0}.residency .choice{background:#fff;border:1px solid var(--line);border-radius:7px;padding:13px 17px;text-align:left;color:var(--ink);font-size:16px;line-height:1.7;display:flex;gap:14px}.residency .choice:hover:not(:disabled){border-color:var(--wine);background:#faf5f7}.residency .choice span{font-size:13px;color:var(--muted);padding-top:3px}.residency .choice.correct{background:#eff8f2;border-color:#86ae94}.residency .choice.wrong{background:var(--redbg);border-color:#c68196}.residency .choice:disabled{opacity:1}.residency .case-layout{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:25px}.residency .case-card h2{font-size:23px}.residency .case-vignette{padding:20px;background:#f3f6f9;border-radius:7px;line-height:1.9;margin:19px 0}.residency .progress-track{height:5px;background:#e6ebf0;border-radius:3px;overflow:hidden;margin-bottom:28px}.residency .progress-track div{height:100%;background:var(--wine);transition:width .2s}.residency .case-index{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.residency .case-number{border:1px solid var(--line);border-radius:5px;background:#fff;padding:8px;font-size:14px}.residency .case-number.current{border-color:var(--wine);color:var(--wine);box-shadow:inset 0 -2px var(--wine)}.residency .case-number.good{background:#eaf6ef;color:var(--green)}.residency .case-number.bad{background:var(--redbg);color:var(--wine)}.residency .score{font-size:14px;color:var(--muted);margin:20px 0}.residency .score strong{font-size:28px;color:var(--ink)}.residency .reference{padding:19px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:34px 1fr;gap:12px}.residency .reference:last-child{border-bottom:0}.residency .reference-number{color:var(--wine);font-size:13px;line-height:2.2}.residency .reference h3{font-size:17px;margin-bottom:6px}.residency .reference p{font-size:14px;color:var(--muted);margin-bottom:5px}.residency .reference a{overflow-wrap:anywhere}.residency .reference-note{font-size:14px;color:var(--muted);line-height:1.9}.residency .calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.residency .calc-grid input{width:100%}.residency .calc-result{background:var(--navy);color:#fff;border-radius:8px;padding:25px;margin:25px 0}.residency .calc-result strong{font-size:38px;font-variant-numeric:tabular-nums;display:block;line-height:1.5}.residency .calc-result p{font-size:14px;margin:10px 0 0;color:#d5dfe7}.residency footer{max-width:1450px;margin:auto;padding:18px 4%;color:var(--muted);font-size:12px;border-top:1px solid var(--line)}.residency .nospace{margin:0}.residency .pill-row{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.residency .pill{font-size:12px;border:1px solid var(--line);border-radius:4px;padding:3px 8px;color:var(--muted)}@media(min-width:1450px){.residency main{padding-left:58px;padding-right:58px}.residency .course-layout{grid-template-columns:265px minmax(0,1fr)}}@media(max-width:1130px){.residency .shell{grid-template-columns:190px minmax(0,1fr)}.residency aside{padding:30px 14px}.residency .course-layout{grid-template-columns:205px minmax(0,1fr);gap:17px}.residency main{padding:30px 25px}.residency .lesson,.residency .panel,.residency .case-card{padding:22px}.residency .case-layout{grid-template-columns:1fr}.residency .case-side{display:none}.residency .lab-grid{grid-template-columns:1fr}}@media(max-width:850px){.residency header{height:86px;padding:0 20px}.residency .header-label{display:none}.residency .shell{display:block}.residency aside{padding:12px 18px;border-right:0;border-bottom:1px solid var(--line)}.residency .side-caption,.residency .side-note{display:none}.residency nav{display:flex;margin:0;gap:5px;overflow-x:auto}.residency .nav-item{white-space:nowrap;padding:9px 12px;font-size:14px}.residency .nav-item span{display:none}.residency main{padding:25px 20px}.residency .course-layout{grid-template-columns:1fr}.residency .chapter-list{display:flex;overflow:auto;border-radius:7px}.residency .list-head{display:none}.residency .chapter{min-width:185px;width:auto;border-bottom:0;border-right:1px solid var(--line);padding:12px}.residency .chapter.active{box-shadow:inset 0 -3px var(--wine)}.residency .chapter-sub{display:none}.residency .title-row{margin-bottom:20px}.residency h1{font-size:27px}.residency .counter{min-width:85px;padding-top:8px}.residency .counter strong{font-size:24px}.residency .lesson{padding:23px}.residency .brand strong{font-size:21px}.residency .brand-sub{font-size:10px;letter-spacing:1px}.residency .intro{font-size:15px}.residency .calc-grid{grid-template-columns:1fr}.residency .panel-title{flex-wrap:wrap}.residency .case-index{grid-template-columns:repeat(6,1fr)}}@media(prefers-reduced-motion:reduce){.residency *{transition:none!important;scroll-behavior:auto!important}}@media print{.residency aside,.residency header,.residency footer,.residency .lesson-bottom,.residency .subtabs,.residency .choice,.residency .case-side{display:none}.residency .shell,.residency .course-layout,.residency .lab-grid{display:block}.residency main{padding:0}.residency .lesson,.residency .panel,.residency .case-card{border:0;padding:0}.residency .chapter-list{display:none}.residency .title-row .counter{display:none}.residency{background:white;color:black}}
