.teacher-shell { width:min(calc(100% - 40px),1180px); margin-inline:auto; }
.teacher-hero { padding:48px 0 54px; display:grid; grid-template-columns:1.2fr 1fr; gap:46px; align-items:center; }
.teacher-breadcrumb { display:flex; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:13px; margin-bottom:27px; }
.teacher-breadcrumb a { text-decoration:underline; text-underline-offset:4px; }
.teacher-eyebrow { font-size:12px; letter-spacing:.13em; color:var(--orange-dark); font-weight:800; margin:0 0 16px; }
.teacher-hero h1 { font-size:clamp(32px,4vw,51px); letter-spacing:-.055em; line-height:1.35; margin:0 0 20px; }
.teacher-hero h1 em { font-style:normal; color:var(--orange-dark); }
.teacher-lead { color:#52687a; max-width:620px; font-size:17px; line-height:1.85; margin:0 0 24px; }
.teacher-actions { display:flex; flex-wrap:wrap; gap:10px; }
.teacher-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:10px 19px; border:1px solid var(--ink); border-radius:9px; background:var(--ink); color:#fff; font-size:14px; font-weight:700; }
.teacher-action.secondary { background:#fff; color:var(--ink); border-color:#ccd7de; }
.teacher-scene { background:#f0ece5; border-radius:24px; padding:24px 25px 0; overflow:hidden; }
.teacher-scene p { margin:0 0 4px; color:#65716f; font-size:13px; }
.teacher-scene h2 { margin:0 0 20px; font-size:23px; line-height:1.5; }
.teacher-portraits { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; align-items:end; }
.teacher-portraits img { width:100%; height:225px; object-fit:cover; object-position:center top; border-radius:12px 12px 0 0; }
.teacher-portraits img:nth-child(2) { height:255px; }
.teacher-library { padding-bottom:65px; scroll-margin-top:120px; }
.teacher-library-heading { display:flex; align-items:baseline; gap:20px; justify-content:space-between; margin-bottom:20px; }
.teacher-library-heading h2 { margin:0; font-size:27px; letter-spacing:-.04em; }
.teacher-count { color:#5d7283; font-size:14px; margin:0; }
.teacher-tools { display:grid; grid-template-columns:minmax(0,1fr) 180px auto; gap:15px; align-items:end; background:#fff; border:1px solid var(--line); border-radius:16px; padding:22px; margin-bottom:14px; }
.teacher-tools label { display:grid; gap:7px; font-size:13px; font-weight:700; }
.teacher-tools input,.teacher-tools select { width:100%; min-width:0; min-height:48px; padding:10px 13px; border:1px solid #c7d2dc; border-radius:8px; background:#fff; color:var(--ink); font-size:15px; }
.teacher-reset { cursor:pointer; min-height:48px; padding:10px 17px; border:1px solid #c7d2dc; border-radius:8px; background:#f8fafb; color:var(--ink); font-size:14px; }
.teacher-search-help { color:var(--muted); font-size:13px; margin:0 0 24px; }
.teacher-branch-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.teacher-branch-card { background:#fff; border:1px solid var(--line); border-radius:16px; padding:23px; display:flex; flex-direction:column; min-width:0; }
.teacher-region { color:#657b8c; font-size:12px; margin:0 0 9px; }
.teacher-branch-card h3 { font-size:22px; letter-spacing:-.035em; margin:0 0 6px; }
.teacher-branch-card h3 a:hover,.teacher-link:hover { color:var(--orange-dark); }
.teacher-branch-card .teacher-card-count { font-size:13px; color:var(--muted); margin:0 0 17px; }
.teacher-branch-card .teacher-card-names { font-size:14px; margin:0 0 12px; line-height:1.8; }
.teacher-tags { display:flex; flex-wrap:wrap; gap:6px; }
.teacher-tags span { color:#385d74; background:#eff4f7; border-radius:5px; padding:4px 8px; font-size:12px; line-height:1.6; }
.teacher-link { display:block; border-top:1px solid var(--line); padding-top:15px; margin-top:auto; font-size:14px; font-weight:800; }
.teacher-branch-card .teacher-tags { margin-bottom:22px; }
.teacher-empty { padding:35px; border:1px solid var(--line); border-radius:14px; text-align:center; background:#fff; }
.teacher-empty h3 { margin-top:0; }
.teacher-bottom { border-top:1px solid var(--line); padding:32px 0 60px; }
.teacher-bottom h2 { font-size:23px; margin:0 0 10px; }
.teacher-bottom p { color:var(--muted); max-width:730px; font-size:15px; margin:0 0 20px; }
.teacher-branch-hero { grid-template-columns:1.45fr .85fr; padding-bottom:34px; }
.teacher-consultation { background:#edf3f6; border-radius:17px; padding:24px 27px; }
.teacher-consultation h2 { font-size:19px; margin:0 0 13px; }
.teacher-consultation ul { padding-left:19px; margin:0; font-size:14px; line-height:1.85; }
.teacher-consultation li+li { margin-top:9px; }
.teacher-profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.teacher-profile { padding:28px; background:#fff; border:1px solid var(--line); border-radius:18px; min-width:0; scroll-margin-top:130px; }
.teacher-profile-head { display:grid; grid-template-columns:136px minmax(0,1fr); gap:24px; align-items:center; margin-bottom:21px; }
.teacher-photo { width:136px; height:auto; border-radius:12px; background:#eeeae3; }
.teacher-profile h3 { font-size:25px; margin:4px 0 14px; letter-spacing:-.04em; }
.teacher-profile-label { margin:0; font-size:12px; color:var(--muted); }
.teacher-profile-copy p { font-size:15px; line-height:1.85; margin:0 0 15px; }
.teacher-profile-copy p:last-child { margin:0; }
.teacher-profile-note { margin:24px 0 0; color:var(--muted); font-size:14px; line-height:1.8; }
.teacher-related { margin-top:35px; padding:27px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.teacher-related h2 { margin:0 0 8px; font-size:23px; }
.teacher-related p { margin:0 0 15px; color:var(--muted); font-size:14px; }
.teacher-related-links { display:flex; flex-wrap:wrap; gap:9px; }
.teacher-related-links a { border:1px solid #d5dfe6; padding:9px 13px; border-radius:8px; font-size:14px; text-decoration:underline; text-underline-offset:3px; }
.teacher-context { display:block; border:1px solid #d7e1e8; background:#f2f6f8; border-radius:16px; padding:25px; margin-block:24px; scroll-margin-top:180px; }
.teacher-context h2 { font-size:22px; margin:0 0 10px; line-height:1.5; }
.teacher-context p { font-size:15px; margin:0 0 15px; line-height:1.8; }
.teacher-context a { display:inline-flex; align-items:center; min-height:44px; padding:9px 14px; border-radius:8px; background:var(--ink); color:#fff; font-size:14px; font-weight:700; }
.teacher-page [hidden] { display:none !important; }
@media(min-width:721px) { .teacher-page main { padding-right:85px; } }
@media(max-width:1020px) {
 .teacher-hero { gap:25px; grid-template-columns:1fr 1fr; }
 .teacher-portraits img { height:190px; } .teacher-portraits img:nth-child(2) { height:220px; }
 .teacher-branch-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .teacher-profile { padding:23px; } .teacher-profile-head { grid-template-columns:110px minmax(0,1fr); gap:18px; } .teacher-photo { width:110px; }
}
@media(max-width:720px) {
 .teacher-shell { width:calc(100% - 28px); }
 .teacher-hero { grid-template-columns:1fr; padding:30px 0 34px; gap:26px; }
 .teacher-breadcrumb { margin-bottom:22px; } .teacher-hero h1 { font-size:34px; } .teacher-lead { font-size:15px; }
 .teacher-scene { padding:21px 20px 0; } .teacher-scene h2 { font-size:21px; }
 .teacher-portraits img { height:170px; } .teacher-portraits img:nth-child(2) { height:190px; }
 .teacher-tools { grid-template-columns:1fr 92px; gap:12px; padding:17px; }
 .teacher-tools label:first-child { grid-column:1 / -1; }
 .teacher-tools select { font-size:14px; }
 .teacher-library-heading { display:block; } .teacher-library-heading h2 { font-size:24px; } .teacher-count { margin-top:6px; }
 .teacher-branch-grid,.teacher-profile-grid { grid-template-columns:1fr; gap:16px; }
 .teacher-profile { padding:22px; } .teacher-profile h3 { font-size:23px; }
 .teacher-profile-head { grid-template-columns:104px minmax(0,1fr); gap:18px; } .teacher-photo { width:104px; }
 .teacher-related { padding:22px; } .teacher-related h2 { font-size:21px; }
 .teacher-context { padding:21px; } .teacher-context h2 { font-size:20px; }
 .teacher-library { scroll-margin-top:165px; } .teacher-profile { scroll-margin-top:165px; }
}
@media(min-width:721px) and (max-width:900px) { .teacher-profile-grid { grid-template-columns:1fr; } }
@media(max-width:350px) { .teacher-hero h1 { font-size:30px; } .teacher-profile-head { grid-template-columns:88px minmax(0,1fr); gap:14px; } .teacher-photo { width:88px; } .teacher-profile { padding:19px; } }
@media print { .teacher-tools,.teacher-actions,.teacher-scene,.teacher-bottom { display:none; } .teacher-profile-grid { display:block; } .teacher-profile { break-inside:avoid; margin-bottom:15px; } }
