/* Teacher directory and related links. */
.tf-footer-menu a{display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;text-decoration:underline}
.tf-hero{padding:44px 0 28px;display:grid;grid-template-columns:1.35fr .65fr;gap:30px;align-items:start}
.tf-hero h1{max-width:22ch}.tf-hero p{max-width:64ch}.tf-hero-note{padding:24px;border:1px solid #ddcdbf;border-radius:16px;background:#fff;align-self:center}.tf-hero-note strong{font-size:19px;color:#783d26}.tf-hero-note p{font-size:15px;margin:10px 0 0!important}
.tf-counts{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.tf-counts span{background:#efe2d4;padding:6px 12px;border-radius:8px;font-size:15px}
.tf-filters{background:#fff;border:1px solid #ddcdbf;border-radius:16px;padding:24px;display:grid;grid-template-columns:1.4fr .7fr 1fr auto;gap:14px;align-items:end;margin-bottom:22px}
.tf-filters label{display:grid;gap:7px;font-size:15px;font-weight:700;min-width:0}.tf-filters input,.tf-filters select{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:1px solid #bfae9d;border-radius:8px;background:#fff;font:inherit;font-size:16px;color:#403127}.tf-filters button{min-height:48px;padding:10px 14px;border:1px solid #bfae9d;border-radius:8px;background:#f8f0e7;font:inherit;font-size:15px;color:#573b2c;cursor:pointer}
.tf-result{font-size:16px;font-weight:700;margin:12px 0 20px!important}.tf-branch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tf-branch{background:#fff;border:1px solid #dfcfc0;border-radius:14px;padding:22px;min-width:0;display:flex;flex-direction:column}.tf-branch[hidden],.tf-empty[hidden]{display:none}.tf-branch h3{font-size:20px;margin:6px 0 12px}.tf-branch h3 a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}.tf-region{font-size:13px;color:#805539;font-weight:750}.tf-branch p{font-size:15px;margin:0 0 12px!important}.tf-branch .tf-names{color:#67574c;line-height:1.8}.tf-branch .tf-open{margin-top:auto;align-self:start;color:#833c22;font-weight:700;min-height:44px;display:inline-flex;align-items:center;text-decoration:underline;gap:8px}
.tf-empty{padding:28px;border:1px solid #ddcdbf;border-radius:12px;background:#fff}.tf-photo-note{font-size:14px;color:#6b584a;margin:18px 0 24px!important}
.tf-teacher-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.tf-teacher{border:1px solid #decdbd;border-radius:16px;background:#fff;padding:24px;min-width:0;scroll-margin-top:100px}.tf-person{display:grid;grid-template-columns:110px minmax(0,1fr);gap:20px;align-items:start}.tf-portrait{margin:0}.tf-portrait img{display:block;width:110px;height:180px;object-fit:cover;object-position:center top;border-radius:10px;background:#e4ded5}.tf-portrait figcaption{font-size:12px;color:#746356;margin-top:5px;text-align:center}.tf-teacher h3{font-size:22px;line-height:1.45;margin-top:6px}.tf-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.tf-tags span{border:1px solid #e1d1c1;border-radius:7px;padding:5px 9px;font-size:13px;line-height:1.6;color:#75452f;background:#faf3eb}.tf-intro{font-size:16px;line-height:1.9;margin:20px 0 0!important}.tf-more{margin-top:12px;border-top:1px solid #e9dbcf;padding-top:8px}.tf-more summary{min-height:44px;padding:9px 0;font-size:15px;font-weight:700;color:#804326;cursor:pointer}.tf-more p{font-size:16px;line-height:1.9;margin-top:8px!important}.tf-profile-link{display:inline-flex;align-items:center;min-height:44px;margin-top:12px;font-size:14px;color:#78472f;text-decoration:underline;text-underline-offset:3px}
.tf-address{font-size:16px!important}.tf-related{width:min(1080px,calc(100% - 32px));margin:30px auto;padding:25px;border:1px solid #decdbd;border-radius:14px;background:#fff;overflow-wrap:anywhere;scroll-margin-top:100px}.branch-main>.tf-related,.em-main>.tf-related{width:100%}.tf-related h2{font-size:23px;line-height:1.5;margin:0 0 12px;letter-spacing:-.02em}.tf-related p{font-size:16px;line-height:1.85;margin:0}.tf-related nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.tf-related a{padding:10px 14px;min-height:44px;border:1px solid #d9c4b2;border-radius:9px;color:#783d26;font-weight:650;font-size:15px;background:#fcf5ed;line-height:1.6}.tf-related a:hover{background:#f1e1d2}.tf-related small{display:block;font-size:13px;font-weight:400}.tf-consult{margin-top:32px;padding:26px;background:#efe2d4;border-radius:14px}.tf-consult h2{font-size:24px}.tf-consult p{font-size:16px}.tf-back{display:inline-flex;align-items:center;min-height:44px;margin:12px 0 20px;color:#783d26;text-decoration:underline}
/* The extra menu item needs more room than the original six-item header. */
@media(max-width:990px){.em-menu{display:none}.em-mobile{display:block}.em-mobile>div{position:absolute;right:0;top:calc(100% + 12px);min-width:240px;max-width:calc(100vw - 36px);display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #d8c9bd;padding:10px;border-radius:14px;box-shadow:0 12px 28px #24140820}.em-mobile a{font-size:15px;padding:12px 8px;min-height:48px;border-radius:8px}.em-mobile a[aria-current]{background:#f4e7db;font-weight:750}.tf-filters{grid-template-columns:1fr 1fr}.tf-filters label:first-child{grid-column:1/-1}.tf-branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-hero{grid-template-columns:1fr}.tf-hero-note{max-width:650px}.tf-teacher-grid{grid-template-columns:1fr}}
@media(max-width:600px){.tf-hero{padding:28px 0 20px;gap:18px}.tf-hero h1{font-size:30px}.tf-filters{padding:18px;grid-template-columns:1fr;gap:12px}.tf-filters label:first-child{grid-column:auto}.tf-filters button{justify-self:start}.tf-branch-grid{grid-template-columns:1fr}.tf-branch{padding:20px}.tf-teacher{padding:20px}.tf-person{grid-template-columns:95px minmax(0,1fr);gap:16px}.tf-portrait img{width:95px;height:156px}.tf-teacher h3{font-size:21px}.tf-tags{gap:6px}.tf-tags span{padding:4px 7px;font-size:12px}.tf-related{padding:21px 18px}.tf-related h2{font-size:21px}.tf-related nav{display:grid;grid-template-columns:1fr}.tf-related a{padding:12px}.tf-consult{padding:23px 20px}}
.tf-filters :focus-visible,.tf-related :focus-visible,.tf-teacher :focus-visible{outline:3px solid #a74720;outline-offset:4px}
