:root{color-scheme:light;--page:#f6f4ee;--paper:#fffefa;--ink:#19313a;--muted:#647571;--line:#dde3dc;--green:#205e56;--soft:#e6f1ec;--gold:#a87428;--purple:#675386}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:var(--page);color:var(--ink);font:15px/1.65 "Noto Sans HK","PingFang HK","Microsoft JhengHei",system-ui,sans-serif}button,input,select{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{cursor:default}button,input,select{color:var(--ink)}:is(a,button,input,select,summary,[tabindex]):focus-visible{outline:3px solid #c38b38;outline-offset:4px}input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0;cursor:pointer}.wrap{width:min(1440px,calc(100% - 64px));margin:auto}.skip-link{position:fixed;z-index:99;top:8px;left:8px;transform:translateY(-160%);background:var(--ink);color:white;padding:8px 16px}.skip-link:focus{transform:none}.topbar{min-height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:24px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:42px;height:42px;background:var(--green);color:white;border-radius:12px;font-size:24px;font-weight:800}.brand-name{display:block;font-size:19px;font-weight:800;letter-spacing:-.03em}.brand-caption{display:block;font-size:10px;letter-spacing:.16em;color:var(--muted)}nav{display:flex;gap:24px;font-size:14px}nav a{text-decoration:none;padding-block:12px}nav a:hover{color:var(--green);text-decoration:underline}.intro{display:flex;justify-content:space-between;align-items:center;padding:36px 0 24px;gap:24px}.eyebrow{margin:0 0 6px;color:var(--green);font-size:11px;letter-spacing:.12em;font-weight:750}h1{font-size:clamp(30px,4vw,40px);letter-spacing:-.045em;line-height:1.3;margin:0 0 10px}h2,h3,p{margin-top:0}.intro-copy{margin:0;color:var(--muted)}.year-meta{text-align:right;flex-shrink:0}.year-meta>span{font-size:14px;font-weight:700}.year-meta small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.search-section{margin-bottom:26px}.search-box{display:flex;align-items:center;gap:12px;background:var(--paper);border:1px solid #c4d1c9;border-radius:12px;padding:0 18px;min-height:58px;box-shadow:0 3px 6px #1a322c03}.search-box:focus-within{border-color:var(--green);box-shadow:0 0 0 3px #205e560c}.search-box svg{width:22px;flex-shrink:0;color:var(--green)}.search-box input{min-width:0;flex:1;border:0;outline:none;background:transparent;padding:16px 0;font-size:16px}.search-box input:focus-visible{outline:none}.search-box kbd{font-family:inherit;font-size:12px;border:1px solid var(--line);border-radius:4px;padding:0 7px;color:var(--muted)}.search-hint{margin:7px 0 0 2px;font-size:12px;color:var(--muted)}.workspace{display:grid;grid-template-columns:258px minmax(0,1fr);align-items:start;gap:28px}.workspace>aside{position:sticky;top:20px;min-width:0}.filter-panel{border:1px solid var(--line);border-radius:14px;background:var(--paper);overflow:hidden}.filter-heading{padding:18px;display:flex;gap:8px;align-items:center;font-weight:750;list-style:none;cursor:pointer}.filter-heading::-webkit-details-marker,.filter-section summary::-webkit-details-marker{display:none}.chevron{margin-left:auto;font-size:20px;line-height:1;transition:transform .15s}.filter-panel[open]>.filter-heading .chevron,.filter-section[open]>summary .chevron{transform:rotate(180deg)}.filter-badge{font-size:11px;background:var(--green);color:white;border-radius:20px;min-width:20px;text-align:center;padding:1px 5px}.filter-content{padding:0 16px 16px}.filter-note{font-size:11px;color:var(--muted);margin:0 0 10px}.filter-section{border-top:1px solid var(--line)}.filter-section>summary{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:750;list-style:none;cursor:pointer;padding:14px 0}.filter-section>summary>span:not(.chevron){font-size:11px;color:var(--green)}.options-list{max-height:230px;overflow:auto;margin:0 -5px 12px;padding:2px 5px;scrollbar-width:thin}.filter-option{display:flex;align-items:center;gap:8px;min-height:38px;font-size:12px;cursor:pointer;border-radius:6px;padding:5px 3px}.filter-option:hover{background:#edf2ed}.filter-option span{overflow-wrap:anywhere}.filter-option small{margin-left:auto;font-size:10px;color:var(--muted);font-variant-numeric:tabular-nums}.filter-option:has(input:checked){color:var(--green);font-weight:700}.filter-section select,.small-search{width:100%;border:1px solid #c7d2c9;border-radius:7px;background:white;padding:9px;font-size:12px;margin-bottom:8px}.support-toggle{display:flex;align-items:flex-start;gap:8px;padding:15px 0;border-top:1px solid var(--line);font-size:12px;cursor:pointer}.support-toggle input{margin-top:3px}.support-toggle small{display:block;font-size:10px;color:var(--muted)}.reset-button{border:1px solid #c9d6ce;background:transparent;color:var(--green);border-radius:8px;min-height:42px;width:100%;font-size:12px;font-weight:700}.reset-button:hover{background:var(--soft)}.sidebar-note{margin:12px 8px;font-size:11px;line-height:1.8;color:var(--muted)}.results-section{min-width:0}.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:1px 0 18px}.results-toolbar h2{font-size:17px;letter-spacing:-.02em;line-height:1.4;margin:0}.results-toolbar h2 span{font-size:12px;font-weight:500;color:var(--muted);margin-left:5px}.result-summary{font-size:11px;color:var(--muted);margin:4px 0 0}.view-toggle{display:flex;border:1px solid #d3dcd3;border-radius:8px;background:#eaece5;padding:3px;flex-shrink:0}.view-toggle button{display:flex;align-items:center;gap:5px;background:transparent;border:0;border-radius:5px;min-height:35px;padding:6px 11px;font-size:11px;color:var(--muted)}.view-toggle button[aria-pressed=true]{background:var(--paper);box-shadow:0 1px 3px #18302914;color:var(--green);font-weight:750}.view-toggle svg{width:13px;height:13px;fill:currentColor}.active-filters{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:16px}.active-filters:empty{display:none}.filter-chip{display:flex;gap:7px;align-items:center;min-height:32px;padding:4px 9px;background:var(--soft);color:var(--green);border:1px solid #cbded3;border-radius:7px;font-size:11px}.filter-chip span{font-size:16px;line-height:1}.teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.teacher-card{display:flex;flex-direction:column;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .15s,box-shadow .15s}.teacher-card:hover{border-color:#9cbaaa;box-shadow:0 6px 18px #1d3d3010}.card-heading{display:flex;align-items:center;gap:12px;padding:21px 22px 15px}.monogram{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;flex-shrink:0;background:#e8ede4;color:var(--green);font-weight:700;font-size:19px}.teacher-card:nth-child(4n+2) .monogram{background:#ece7f1;color:var(--purple)}.teacher-card:nth-child(4n+3) .monogram{background:#f3ebdd;color:#8e652e}.teacher-name{flex:1;min-width:0}.teacher-name h3{font-size:20px;margin:0;line-height:1.5;letter-spacing:-.025em;overflow-wrap:anywhere}.teacher-code{font-size:10px;letter-spacing:.08em;color:var(--muted);font-weight:650}.staff-label{font-size:10px;padding:2px 7px;background:#f0ede4;color:#75694c;border-radius:5px;white-space:nowrap}.card-body{padding:0 22px;flex:1}.subject-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}.subject-tag{display:inline-block;font-size:11px;padding:3px 8px;border-radius:5px;background:#f0f3ed;color:#365c4f;border:1px solid #e2e8de}.class-roles{font-size:11px;color:var(--muted);margin-bottom:15px}.class-roles strong{font-weight:650;color:var(--ink)}.work-label{font-size:10px;color:var(--muted);letter-spacing:.08em;margin:0 0 8px}.work-preview{padding:0;list-style:none;margin:0 0 17px;display:grid;gap:7px}.work-preview li{font-size:12px;line-height:1.65;padding-left:12px;position:relative;overflow-wrap:anywhere}.work-preview li:before{content:'';position:absolute;width:4px;height:4px;background:#7e9c89;border-radius:50%;left:0;top:8px}.card-footer{border-top:1px solid #edf0e8;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 22px;background:#fcfcf6}.card-meta{font-size:10px;color:var(--muted)}.details-button{border:0;background:transparent;color:var(--green);font-size:12px;font-weight:750;padding:8px 0 8px 8px;min-height:38px;white-space:nowrap}.details-button:hover{text-decoration:underline;text-underline-offset:4px}.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--paper)}.staff-table{border-collapse:collapse;width:100%;min-width:720px;text-align:left;font-size:12px}.staff-table th{font-size:11px;color:var(--muted);font-weight:650;background:#eef1e9;padding:13px 16px;white-space:nowrap}.staff-table td{padding:16px;vertical-align:top;border-top:1px solid var(--line)}.staff-table td:first-child{min-width:140px}.staff-table td:nth-child(2){width:24%}.staff-table td:nth-child(3){min-width:110px}.staff-table td:nth-child(4){min-width:230px}.staff-table tbody tr:hover{background:#f7f9f3}.name-link{display:block;border:0;padding:0;background:transparent;font-size:15px;font-weight:750;text-align:left;white-space:normal}.name-link:hover{color:var(--green)}.row-work{margin:0;padding-left:14px}.row-work li+li{margin-top:4px}.empty-state,.load-state{text-align:center;border:1px dashed #c8d4c9;border-radius:14px;padding:65px 24px;color:var(--muted)}.empty-state h3{font-size:18px;color:var(--ink);margin:8px 0}.empty-state p{font-size:13px}.empty-icon{font-size:38px;line-height:1}.primary-button{min-height:44px;border:1px solid var(--green);border-radius:8px;color:white;background:var(--green);padding:10px 20px;font-weight:650;font-size:13px}.load-state{margin-bottom:30px}.loading-dot{display:inline-block;margin-right:9px;width:8px;height:8px;border-radius:50%;background:var(--green)}.error-state h2{font-size:18px;color:var(--ink)}.footer{display:flex;justify-content:space-between;gap:18px;border-top:1px solid var(--line);padding:22px 0 26px;margin-top:35px;font-size:11px;color:var(--muted)}.footer a{text-decoration:none;font-weight:650;color:var(--green)}.teacher-dialog{width:min(800px,calc(100% - 40px));max-height:90dvh;padding:0;border:1px solid #c3cfc6;border-radius:18px;background:var(--paper);color:var(--ink);box-shadow:0 30px 90px #11291f30;overscroll-behavior:contain}.teacher-dialog::backdrop{background:#172c294d;backdrop-filter:blur(3px)}.dialog-topbar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:10px 24px;background:var(--paper);border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.icon-button{width:40px;height:40px;border:1px solid var(--line);border-radius:50%;font-size:25px;background:transparent;line-height:1}.dialog-content{padding:26px 32px 32px}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px}.profile-heading h2{font-size:29px;margin:0;line-height:1.4;overflow-wrap:anywhere}.profile-en{font-size:11px;letter-spacing:.04em;color:var(--muted);margin-top:5px}.profile-code{font-size:13px;letter-spacing:.06em;background:var(--soft);color:var(--green);padding:7px 12px;border-radius:7px;flex-shrink:0}.profile-section{padding-top:22px;margin-top:22px;border-top:1px solid var(--line)}.profile-section h3{font-size:15px;display:flex;align-items:center;gap:8px;margin-bottom:16px}.section-number{font-size:10px;color:var(--green);background:var(--soft);border-radius:6px;padding:2px 6px}.teaching-lines{display:grid;gap:8px;margin:14px 0 0}.teaching-line{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:12px;font-size:12px}.teaching-line>span{color:var(--muted)}.membership-list{display:grid;gap:0}.membership-row{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid #edf0e8;font-size:12px}.membership-row:last-child{border-bottom:0}.membership-name{font-weight:600;overflow-wrap:anywhere}.membership-role{color:var(--green);font-size:11px;flex-shrink:0;max-width:45%;text-align:right}.membership-context{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:3px}.other-duties{margin:0;padding-left:18px;font-size:12px;display:grid;gap:8px}.source-details{margin-top:26px;padding:15px;background:#f3f3ec;border-radius:9px;font-size:11px;color:var(--muted)}.source-details summary{cursor:pointer;font-weight:650}.source-details p{margin:12px 0 0}.source-details a{color:var(--green)}.source-details ul{padding-left:18px;line-height:1.8}.source-details li+li{margin-top:8px}.subtle-text{color:var(--muted);font-size:12px}.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}
@media(min-width:1600px){.teacher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wrap{width:min(1580px,calc(100% - 80px))}}
@media(max-width:1100px){.wrap{width:calc(100% - 40px)}.workspace{grid-template-columns:225px minmax(0,1fr);gap:20px}.card-heading{padding:18px 16px 13px;gap:9px}.card-body{padding:0 16px}.card-footer{padding:9px 16px}.monogram{width:37px;height:37px;font-size:16px}.teacher-name h3{font-size:18px}.staff-label{display:none}.card-footer{align-items:flex-start;flex-direction:column;gap:0}.details-button{padding-left:0}}
@media(max-width:840px){.workspace{grid-template-columns:1fr;gap:22px}.workspace>aside{position:static}.filter-heading{padding:13px 16px}.filter-content{padding:0 16px 16px}.filter-note{font-size:12px}.filter-option{font-size:13px;min-height:42px}.sidebar-note{display:none}.teacher-grid{gap:14px}.card-footer{flex-direction:row;align-items:center}.details-button{padding-left:8px}.card-heading{padding:20px}.card-body{padding:0 20px}.card-footer{padding:11px 20px}.results-toolbar{margin-bottom:15px}.intro{padding-top:28px}.year-meta small{font-size:10px}.search-box{min-height:54px}.filter-section select,.small-search{font-size:14px}.options-list{max-height:245px}}
@media(max-width:540px){.wrap{width:calc(100% - 32px)}.topbar{min-height:75px;gap:10px}.brand-name{font-size:16px}.brand-mark{width:36px;height:36px;font-size:21px;border-radius:10px}.brand{gap:9px}.brand-caption{font-size:8px}nav{gap:14px;font-size:12px}nav a:first-child{display:none}.intro{display:block;padding:26px 0 20px}.intro-copy{font-size:13px}.eyebrow{font-size:10px}.year-meta{display:flex;gap:10px;text-align:left;align-items:center;margin-top:15px}.year-meta>span{font-size:12px}.year-meta small{margin:0;font-size:10px}.search-box{padding:0 13px;gap:9px}.search-box input{font-size:14px}.search-box kbd{display:none}.search-hint{font-size:10px}.search-section{margin-bottom:20px}.teacher-grid{grid-template-columns:1fr}.card-heading{padding:20px 20px 12px}.teacher-name h3{font-size:20px}.monogram{width:43px;height:43px}.staff-label{display:inline-block}.work-preview li{font-size:13px}.subject-tag{font-size:12px}.class-roles{font-size:12px}.card-footer{padding:10px 20px}.card-meta{font-size:11px}.details-button{font-size:13px}.view-toggle button{min-height:37px;padding:6px 9px}.results-toolbar h2{font-size:16px}.result-summary{font-size:10px}.footer{flex-direction:column;gap:9px;font-size:10px}.teacher-dialog{width:calc(100% - 20px);max-height:94dvh;border-radius:13px}.dialog-content{padding:22px 20px}.dialog-topbar{padding:8px 15px}.profile-heading h2{font-size:26px}.teaching-line{grid-template-columns:1fr 1.3fr}.membership-row{gap:12px}.membership-role{max-width:43%}.membership-name{font-size:12px}.source-details{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{.topbar,.search-section,.workspace>aside,.view-toggle,.active-filters,.footer,.card-footer,.source-details,.dialog-topbar{display:none!important}.wrap{width:100%}.workspace{display:block}.teacher-card{break-inside:avoid}.teacher-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-dialog[open]{position:static;max-height:none;width:100%;border:0;box-shadow:none}.teacher-dialog[open]~*{display:none}body:has(dialog[open])>main,body:has(dialog[open])>header{display:none}}
