.teachers-page { --teacher-navy: #0b1f3a; --teacher-green: #126b5f; background: #fff; }
.teachers-page .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--teacher-navy); }
.teachers-page .brand img { border-radius: 7px; }
.teachers-page .nav-links [aria-current] { color: var(--teacher-green); font-weight: 700; }
.teacher-skip { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px; background: white; }
.teacher-skip:focus { top: 12px; }
.teacher-hero { border-bottom: 1px solid #e3eae9; background: #f3f8f7; padding: 58px 0; }
.teacher-hero__layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center; }
.teacher-eyebrow { font-size: .83rem; font-weight: 700; color: var(--teacher-green); margin-bottom: 12px; }
.teacher-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1.22; letter-spacing: -.035em; color: var(--teacher-navy); margin-bottom: 18px; }
.teacher-hero__description { font-size: 1.05rem; color: #4c626b; margin-bottom: 24px; }
.teacher-hero__link { display: inline-flex; padding: 11px 23px; border-radius: 7px; color: white; background: var(--teacher-green); font-size: .9rem; font-weight: 700; text-decoration: none; }
.teacher-hero__note { position: relative; max-width: 385px; padding: 30px 34px; border-left: 3px solid #e3b349; background: white; border-radius: 0 16px 16px 0; box-shadow: 0 10px 30px #173d3410; }
.teacher-note-icon { color: #a46f00; font-size: 1.75rem; }
.teacher-hero__note h2 { font-size: 1.35rem; color: var(--teacher-navy); line-height: 1.5; margin: 8px 0 15px; }
.teacher-hero__note p { font-size: .88rem; color: #55666b; }
.teacher-note-bottom { border-top: 1px solid #e1e8e5; padding-top: 15px; margin-bottom: 0; }
.teacher-directory { padding-top: 48px; padding-bottom: 54px; }
.teacher-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.teacher-section-heading h2 { color: var(--teacher-navy); font-size: 1.6rem; margin: 0; }
.teacher-section-heading>p { margin: 0 0 2px; color: #5a6a72; font-size: .88rem; }
.teacher-section-heading strong { color: var(--teacher-green); }
.teacher-filters { padding: 22px 24px; border: 1px solid #dce5e2; border-radius: 12px; background: #fff; }
.teacher-filters label { display: block; color: #34494c; font-weight: 700; font-size: .8rem; margin-bottom: 7px; }
.teacher-filters input, .teacher-filters select { font: inherit; font-size: .88rem; width: 100%; min-height: 46px; border: 1px solid #d1dcda; border-radius: 6px; padding: 10px 12px; color: #243f42; background: #fff; }
.teacher-search-wrap { margin-bottom: 18px; }
.teacher-search-wrap input { background: #f8faf9; }
.teacher-filter-row { display: grid; grid-template-columns: 1.25fr .85fr 1.1fr 1.15fr .7fr auto; align-items: end; gap: 14px; }
.teacher-filter-row>div { min-width: 0; }
.teacher-reset { color: #405957; background: #f0f5f3; border: 1px solid #d6e1dc; border-radius: 6px; min-height: 46px; padding: 10px 14px; font: inherit; font-size: .8rem; cursor: pointer; }
.teachers-page button:focus-visible, .teachers-page select:focus-visible, .teachers-page input:focus-visible, .teachers-page a:focus-visible { outline: 3px solid #337f76; outline-offset: 3px; }
.teacher-results-heading { display: flex; justify-content: space-between; gap: 20px; margin: 27px 0 18px; scroll-margin-top: 25px; }
.teacher-results-heading p { margin: 0; font-size: .8rem; color: #5e6e73; }
.teacher-results-heading #result-count { font-size: .9rem; color: var(--teacher-navy); }
.teacher-results-heading strong { color: var(--teacher-green); }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.teacher-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid #dfe6e4; border-radius: 12px; padding: 24px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.teacher-card:hover { border-color: #94bab1; box-shadow: 0 8px 22px #0c47310b; }
.teacher-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.teacher-card__top>div { min-width: 0; }
.teacher-photo { display: block; width: 76px; aspect-ratio: 146 / 195; flex-shrink: 0; border-radius: 9px; background-color: #edf1ed; background-image: url('/static/images/teachers/portraits-sheet.jpg'); background-size: 1095.890411% 564.102564%; background-position: var(--portrait-x) var(--portrait-y); background-repeat: no-repeat; }
.teacher-photo--detail { width: 108px; border-radius: 11px; }
.teacher-avatar { width: 50px; height: 50px; border-radius: 50%; background: #ecf3f0; color: #1e6c5b; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.teacher-card:nth-child(3n+2) .teacher-avatar { background: #edf1f8; color: #335879; }
.teacher-card:nth-child(3n+3) .teacher-avatar { background: #fbf3e5; color: #88601d; }
.teacher-card h2 { color: var(--teacher-navy); font-size: 1.05rem; margin: 0 0 2px; }
.teacher-card h2 span { font-size: .8rem; font-weight: 400; }
.teacher-name-button { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.teacher-name-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.teacher-gender { margin-left: auto; font-size: .75rem; color: #637076; white-space: nowrap; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.teacher-tag { font-size: .75rem; padding: 3px 9px; border-radius: 4px; color: #155f53; background: #eef6f3; }
.teacher-tag--muted { color: #5c6b70; background: #f2f4f6; }
.teacher-education, .teacher-location { color: #445b64; font-size: .8rem; margin: 0 0 7px; overflow-wrap: anywhere; }
.teacher-location { color: #65727b; }
.teacher-traits { font-size: .78rem; color: #1e6b58; font-weight: 700; border-top: 1px solid #edf0ee; padding-top: 14px; margin: 9px 0 10px; }
.teacher-intro { color: #5a6871; font-size: .88rem; line-height: 1.7; margin-bottom: 19px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.teacher-card-books { margin: auto 0 18px; padding: 12px 14px; border-radius: 7px; background: #f6f8f7; }
.teacher-card-books h3 { margin: 0 0 7px; color: #365b52; font-size: .76rem; }
.teacher-card-books ul { margin: 0; padding-left: 15px; }
.teacher-card-books li, .teacher-card-books p { color: #526862; font-size: .76rem; line-height: 1.65; overflow-wrap: anywhere; }
.teacher-card-books li+li { margin-top: 3px; }
.teacher-card-books p { margin: 0; }
.teacher-card-plan { margin: 0 0 18px; padding-left: 12px; border-left: 2px solid #a8c7b9; }
.teacher-card-plan h3 { font-size: .72rem; color: #628073; margin: 0 0 5px; }
.teacher-card-plan .teacher-plan-topic { font-size: .82rem; color: #294e43; font-weight: 700; margin: 0 0 5px; }
.teacher-card-plan .teacher-plan-summary { font-size: .78rem; color: #5a7067; line-height: 1.65; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.teacher-detail-button { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding: 12px 0 0; border: 0; border-top: 1px solid #edf0ee; color: #195e54; background: transparent; font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; text-align: left; }
.teacher-detail-button span { font-weight: 400; font-size: 1.1rem; }
.teacher-empty { text-align: center; background: #f7faf9; border: 1px solid #e1e9e5; padding: 55px 20px; border-radius: 12px; }
.teacher-empty h3 { color: var(--teacher-navy); }
.teacher-empty p { color: #5a6c73; font-size: .88rem; }
.teacher-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 30px; }
.teacher-pagination button, .teacher-pagination a, .teacher-pagination-disabled { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 7px 12px; border: 1px solid #dbe5e0; border-radius: 6px; color: #486058; background: white; font: inherit; font-size: .85rem; text-decoration: none; cursor: pointer; }
.teacher-pagination [aria-current] { background: var(--teacher-green); border-color: var(--teacher-green); color: white; }
.teacher-pagination-disabled { color: #87958e; background: #f4f6f5; cursor: default; }
.teacher-static-details { padding: 14px 0; font-size: .82rem; }
.teacher-static-details summary { cursor: pointer; color: #195e54; }
.teacher-static-details h3 { font-size: .85rem; margin: 14px 0 7px; }
.teacher-enhanced .teacher-static-details { display: none; }
.teacher-pagination span { color: #77877e; }
.teacher-consultation { margin-top: 54px; padding: 30px; display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #f2f7f5; border-radius: 12px; }
.teacher-consultation h2 { font-size: 1.2rem; color: var(--teacher-navy); }
.teacher-consultation p:last-child { font-size: .86rem; color: #5a6d70; margin-bottom: 0; }
.teacher-consultation a, .teacher-detail-contact { display: inline-block; color: white; background: var(--teacher-green); border-radius: 6px; padding: 12px 20px; text-decoration: none; font-size: .88rem; font-weight: 700; flex-shrink: 0; }
.teacher-dialog { color: #263e43; border: 0; border-radius: 16px; width: min(680px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 35px; overscroll-behavior: contain; }
.teacher-dialog::backdrop { background: #0b1f3ab3; }
.teacher-dialog__close { position: sticky; float: right; top: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #dbe3e0; background: white; color: #2f4b4c; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.teacher-dialog h2 { font-size: 1.6rem; color: var(--teacher-navy); padding-right: 38px; }
.teacher-dialog h3 { font-size: .95rem; color: #254a43; margin: 26px 0 10px; }
.teacher-dialog p, .teacher-dialog li { font-size: .9rem; line-height: 1.8; }
.teacher-detail-header { display: flex; align-items: center; gap: 22px; margin-bottom: 24px; clear: both; }
.teacher-detail-header>div { min-width: 0; }
.teacher-detail-header .teacher-eyebrow { margin: 0 0 7px; }
.teacher-detail-header h2 { margin: 0 0 9px; padding-right: 0; }
.teacher-detail-header .teacher-detail-education { margin: 0; overflow-wrap: anywhere; color: #53676b; }
.teacher-dialog .teacher-detail-profile { white-space: pre-line; }
.teacher-plan-content { padding: 18px 20px; border-radius: 8px; background: #f4f7fb; border-left: 3px solid #647e98; }
.teacher-plan-content h4 { margin: 0 0 9px; color: #244561; font-size: 1rem; }
.teacher-dialog .teacher-plan-meta { margin: 0 0 8px; color: #697e8f; font-size: .74rem; }
.teacher-dialog .teacher-plan-context { margin: 0 0 10px; color: #647484; font-size: .8rem; }
.teacher-dialog .teacher-plan-action { margin: 0; color: #354f63; font-size: .88rem; line-height: 1.85; overflow-wrap: anywhere; }
.teacher-dialog .teacher-books-note { margin: 0 0 14px; color: #5d716c; font-size: .8rem; }
.teacher-book-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.teacher-book-list li { padding: 14px 16px; background: #f4f8f6; border: 1px solid #e1eae5; border-radius: 8px; }
.teacher-book-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.teacher-book-title strong { color: #244d41; font-size: .87rem; overflow-wrap: anywhere; }
.teacher-dialog .teacher-book-meta { color: #708079; font-size: .73rem; margin: 6px 0 4px; }
.teacher-dialog .teacher-book-purpose { color: #4d635b; font-size: .8rem; margin: 0; }
.teacher-detail-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.teacher-detail-table th, .teacher-detail-table td { border-bottom: 1px solid #e1e8e4; padding: 10px 8px; text-align: left; vertical-align: top; }
.teacher-detail-table th { color: #244f45; background: #f4f7f5; }
.teacher-detail-areas { display: flex; flex-wrap: wrap; gap: 7px; }
.teacher-detail-areas span { padding: 4px 9px; color: #4b625d; background: #f1f5f3; border-radius: 4px; font-size: .8rem; }
.teacher-school-table { table-layout: fixed; }
.teacher-school-table th:first-child { width: 30%; }
.teacher-school-table tbody th { background: #f7faf8; }
.teacher-school-grade { display: block; margin-top: 4px; font-size: .72rem; color: #61796e; font-weight: 400; overflow-wrap: anywhere; }
.teacher-school-name { display: block; line-height: 1.8; overflow-wrap: anywhere; }
.teacher-school-name + .teacher-school-name { margin-top: 6px; }
.teacher-school-name small { color: #6b7b74; font-size: .73rem; }
.teacher-school-note, .teacher-dialog .teacher-school-note { margin: 12px 0 0; font-size: .7rem; color: #71827b; line-height: 1.65; }
.teacher-detail-note { font-size: .8rem !important; color: #617471; margin: 17px 0; }
body.teacher-modal-open { overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 1000px) { .teacher-filter-row { grid-template-columns: repeat(3,minmax(0,1fr)); } .teacher-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .teacher-hero__layout { gap: 30px; } }
@media (max-width: 640px) {
  .teachers-page .nav { gap: 14px; padding: 12px 0; align-items: start; } .teachers-page .nav-links { gap: 5px 12px; } .teachers-page .nav-links a { font-size: .78rem; }
  .teachers-page .brand { white-space: nowrap; font-size: 1rem; gap: 6px; } .teachers-page .brand img { width: 25px; height: 25px; }
  .teacher-hero { padding: 35px 0; } .teacher-hero__layout { grid-template-columns: 1fr; } .teacher-hero__note { display: none; }
  .teacher-hero h1 { font-size: 2.3rem; } .teacher-hero__description { font-size: .95rem; }
  .teacher-directory { padding-top: 30px; } .teacher-section-heading { display: block; } .teacher-section-heading>p { margin-top: 12px; }
  .teacher-section-heading h2 { font-size: 1.35rem; } .teacher-filters { padding: 18px 16px; } .teacher-filter-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 12px; }
  .teacher-results-heading { display: block; } .teacher-results-heading>p:last-child { margin-top: 7px; }
  .teacher-grid { grid-template-columns: 1fr; gap: 16px; } .teacher-card { padding: 22px; } .teacher-intro { -webkit-line-clamp: 4; }
  .teacher-consultation { display: block; padding: 24px; margin-top: 36px; } .teacher-consultation a { margin-top: 22px; }
  .teacher-dialog { padding: 24px; } .teacher-dialog h2 { font-size: 1.3rem; } .teacher-detail-table { font-size: .78rem; }
  .teacher-detail-header { gap: 16px; } .teacher-photo--detail { width: 88px; }
  .teacher-school-table th, .teacher-school-table td { padding: 10px 6px; }
  .teacher-school-name small { display: block; }
}
@media (prefers-reduced-motion: reduce) { .teacher-card { transition: none; } }
