.teacher-gallery-page { --teacher-ink:#20262c; --teacher-muted:#5c656d; --teacher-line:#dbe0e4; --teacher-blue:#205788; background:#fff; }
.teacher-gallery-page main { color:var(--teacher-ink); }
.teacher-gallery-page .teacher-catalog { padding-top:18px; padding-bottom:40px; }
.teacher-heading { padding:0 0 18px; max-width:850px; }
.teacher-heading h1 { font-size:36px; line-height:1.16; margin:4px 0 12px; color:var(--teacher-ink); letter-spacing:0; }
.teacher-heading p { margin:6px 0; font-size:16px; line-height:1.5; }
.teacher-gallery-page .teacher-kicker { color:var(--teacher-blue); font-size:13px; font-weight:700; letter-spacing:0; }
.teacher-gallery-page .teacher-note { color:var(--teacher-muted); font-size:13px; line-height:1.5; }
.teacher-toolbar { display:flex; flex-wrap:wrap; gap:12px 24px; justify-content:space-between; align-items:center; padding:16px 0; border-top:1px solid var(--teacher-line); border-bottom:1px solid var(--teacher-line); }
.teacher-filters { display:flex; flex-wrap:wrap; gap:0; margin:0; padding:0; border:0; min-width:0; }
.teacher-filters label { position:relative; cursor:pointer; }
.teacher-filters input { position:absolute; opacity:0; width:100%; height:100%; inset:0; margin:0; cursor:pointer; }
.teacher-filters span { display:block; padding:11px 14px; min-height:44px; border-bottom:3px solid transparent; font-size:14px; font-weight:600; }
.teacher-filters input:checked+span { color:var(--teacher-blue); border-color:var(--teacher-blue); background:#f0f5f9; }
.teacher-filters input:focus-visible+span { outline:2px solid var(--teacher-blue); outline-offset:2px; }
.teacher-search { flex:0 1 280px; min-width:0; }
.teacher-search input { width:100%; min-height:44px; border:1px solid #9ca8b2; border-radius:4px; padding:10px 12px; font:inherit; background:#fff; color:var(--teacher-ink); }
.teacher-results-line { display:flex; justify-content:space-between; align-items:center; gap:12px; margin:14px 0; font-size:14px; }
.teacher-results-line p { margin:0; color:var(--teacher-muted); }
.teacher-results-line a { color:var(--teacher-blue); text-decoration:underline; text-underline-offset:3px; }
.teacher-model-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.teacher-model { min-width:0; border:1px solid var(--teacher-line); border-radius:6px; padding:12px; display:flex; flex-direction:column; background:#fff; }
.teacher-model.is-selected { border-color:var(--teacher-blue); box-shadow:0 0 0 1px var(--teacher-blue); }
.teacher-model[hidden],.teacher-empty[hidden],.teacher-chosen[hidden] { display:none; }
.teacher-model-image { display:block; aspect-ratio:455/500; background:#fff; overflow:hidden; }
.teacher-model-image img { width:100%; height:100%; object-fit:contain; display:block; }
.teacher-model-label { display:flex; justify-content:space-between; gap:6px; font-size:12px; color:var(--teacher-muted); padding-top:10px; }
.teacher-model-label span:first-child { font-weight:700; color:var(--teacher-blue); }
.teacher-model h2 { font-size:16px; line-height:1.35; font-weight:600; letter-spacing:0; margin:8px 0 12px; min-height:44px; overflow-wrap:anywhere; color:var(--teacher-ink); }
.teacher-select { min-height:44px; border:1px solid #a5b4c1; border-radius:4px; background:#fff; color:var(--teacher-blue); font:600 14px/1.3 Arial,sans-serif; padding:10px 12px; cursor:pointer; margin-top:auto; }
.teacher-select:hover { background:#f0f5f9; }
.teacher-select[aria-pressed=true] { background:var(--teacher-blue); color:#fff; border-color:var(--teacher-blue); }
.teacher-gallery-page :focus-visible { outline:3px solid #2876b3; outline-offset:3px; }
.teacher-empty { padding:35px 0; text-align:center; }
.teacher-quote-section { padding:40px 0; border-top:1px solid var(--teacher-line); background:#f5f7f8; scroll-margin-top:100px; }
.teacher-quote-layout { display:grid; grid-template-columns:minmax(0,0.7fr) minmax(0,1.3fr); gap:48px; align-items:start; }
.teacher-quote-copy h2 { font-size:26px; line-height:1.25; letter-spacing:0; color:var(--teacher-ink); }
.teacher-quote-copy p { font-size:15px; line-height:1.6; }
.teacher-chosen { margin:24px 0; max-width:240px; }
.teacher-chosen img { width:100%; height:auto; display:block; background:#fff; }
.teacher-chosen figcaption { margin:10px 0; font-size:14px; font-weight:600; }
body.teacher-gallery-page form.teacher-form { border:0; border-radius:0; box-shadow:none; background:transparent; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; scroll-margin-top:90px; }
body.teacher-gallery-page form.teacher-form .form-row { min-width:0; margin:0; }
body.teacher-gallery-page form.teacher-form .full,body.teacher-gallery-page form.teacher-form .form-actions { grid-column:1/-1; }
body.teacher-gallery-page form.teacher-form label { font-size:14px; font-weight:600; color:var(--teacher-ink); }
body.teacher-gallery-page form.teacher-form input:not([type=radio]):not([type=checkbox]),body.teacher-gallery-page form.teacher-form select,body.teacher-gallery-page form.teacher-form textarea { background:#fff; color:var(--teacher-ink); border:1px solid #aab5bf; border-radius:4px; width:100%; font-size:16px; padding:10px 12px; min-height:44px; letter-spacing:0; box-shadow:none; }
.teacher-summary-row>span { display:block; font-size:14px; font-weight:600; margin-bottom:6px; }
#teacher-selection-summary { display:block; white-space:pre-line; overflow-wrap:anywhere; padding:12px; border-left:3px solid var(--teacher-blue); background:#edf3f7; font-size:14px; line-height:1.5; }
.teacher-branches { border:0; padding:0; }
.teacher-branches legend { font-size:14px; font-weight:600; margin-bottom:8px; }
body.teacher-gallery-page .teacher-form .branch-select label { border-color:#aab5bf; border-radius:4px; }
.teacher-file summary { cursor:pointer; color:var(--teacher-blue); padding:8px 0; min-height:44px; font-size:14px; }
.teacher-file[open] summary { margin-bottom:8px; }
body.teacher-gallery-page details.teacher-file { border:0; background:transparent; box-shadow:none; border-radius:0; padding:0; }
.teacher-related { padding-top:28px; padding-bottom:32px; display:flex; gap:16px 24px; flex-wrap:wrap; }
.teacher-related h2 { flex-basis:100%; margin:0; font-size:20px; letter-spacing:0; }
.teacher-related a { color:var(--teacher-blue); text-decoration:underline; text-underline-offset:3px; }
.teacher-dialog { width:min(560px,calc(100% - 24px)); max-height:calc(100dvh - 32px); border:1px solid #bdc7cf; border-radius:6px; padding:16px; overflow:auto; color:#20262c; }
.teacher-dialog::backdrop { background:rgb(15 20 24 / 65%); }
.teacher-dialog-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.teacher-dialog h2 { font-size:18px; letter-spacing:0; margin:0; }
.teacher-dialog-head button { background:#fff; border:1px solid #a5b4c1; border-radius:4px; padding:10px 12px; min-height:44px; cursor:pointer; font-size:14px; }
.teacher-dialog img { display:block; width:100%; height:auto; max-height:calc(100dvh - 210px); object-fit:contain; margin:12px 0; }
.teacher-dialog>.teacher-select { width:100%; }
.teacher-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.page-home .home-quick-card.home-teacher-model .home-quick-media { background:#fff; height:55%; bottom:auto; }
.page-home .home-quick-card.home-teacher-model .home-quick-media img { object-fit:contain; }
.page-home .home-quick-card.home-teacher-model::after { background:none; }
.page-home .home-quick-card.home-teacher-model .home-quick-content { height:45%; margin-top:auto; padding:10px 14px; justify-content:center; gap:5px; }
.page-home .home-quick-card.home-teacher-model strong { font-size:17px; }
@media(min-width:1100px) {
  .teacher-model-grid { grid-template-columns:repeat(7,minmax(0,1fr)); gap:12px; }
  .teacher-model { padding:8px; }
  .teacher-model-label { font-size:11px; padding-top:8px; }
  .teacher-model h2 { font-size:14px; min-height:57px; margin:7px 0 10px; }
  .teacher-model .teacher-select { font-size:13px; padding:9px 5px; }
}
@media(max-width:900px) {
  .teacher-model-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
  .teacher-quote-layout { grid-template-columns:1fr; gap:20px; }
  .teacher-quote-copy { display:grid; grid-template-columns:minmax(0,1fr) 96px; gap:4px 16px; }
  .teacher-quote-copy>p,.teacher-quote-copy>h2 { grid-column:1; margin:4px 0; }
  .teacher-quote-copy>.teacher-note { grid-column:1/-1; }
  .teacher-chosen { grid-column:2; grid-row:1/4; max-width:96px; margin:4px 0; }
  .teacher-chosen figcaption { font-size:11px; overflow-wrap:anywhere; }
}
@media(max-width:540px) {
  .page-home .home-quick-card.home-teacher-model .home-quick-content { padding:6px 8px; gap:3px; }
  .page-home .home-quick-card.home-teacher-model strong { font-size:13px; }
  .teacher-heading h1 { font-size:28px; }
  .teacher-heading p { font-size:15px; }
  .teacher-gallery-page .teacher-note { font-size:12px; }
  .teacher-toolbar { gap:12px; padding:10px 0; }
  .teacher-filters { width:100%; }
  .teacher-filters label { flex:1; }
  .teacher-filters span { text-align:center; padding:10px 5px; font-size:13px; }
  .teacher-search { flex-basis:100%; }
  .teacher-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .teacher-model { padding:8px; }
  .teacher-model h2 { font-size:14px; min-height:40px; }
  .teacher-results-line { font-size:12px; }
  .teacher-quote-section { padding:28px 0; scroll-margin-top:80px; }
  .teacher-quote-copy h2 { font-size:24px; }
  body.teacher-gallery-page form.teacher-form { grid-template-columns:1fr; }
  .teacher-dialog-head { gap:8px; }
  .teacher-dialog h2 { font-size:16px; }
}
