/* BDITHOME School Customizer v1.4.9 — teacher editor and Edumation-style profile.
   Scoped to .bdsc-tp-*, so it does not restyle the school theme or other plugins. */
.bdsc-tp-editor {color:#243244;padding:4px 2px 12px;max-width:100%;box-sizing:border-box}
.bdsc-tp-editor *,.bdsc-tp-sheet * {box-sizing:border-box}
.bdsc-tp-editor .bdsc-tp-help {margin:12px 0 16px;padding:11px 14px;background:#f0f8fd;border-left:4px solid #2586ae;color:#294b62;font-size:13px;line-height:1.7}
.bdsc-tp-editor-top {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 20px;background:#f8fbfd;border:1px solid #dbe7ee;border-radius:6px;padding:16px;margin-bottom:17px}
.bdsc-tp-editor .bdsc-tp-section {margin:0 0 16px;border:1px solid #dbe5ed;border-radius:6px;padding:0 15px 15px;min-width:0;background:#fff}
.bdsc-tp-editor .bdsc-tp-section legend {display:block;width:calc(100% + 30px);max-width:none;margin:0 -15px 13px;padding:9px 14px;border-radius:5px 5px 0 0;background:#ffe4c2;color:#413424;font-size:15px;font-weight:750}
.bdsc-tp-editor .bdsc-tp-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}
.bdsc-tp-editor .bdsc-tp-field {min-width:0}
.bdsc-tp-editor .bdsc-tp-field label {display:block;font-size:13px;font-weight:650;margin-bottom:5px;color:#253c4e}
.bdsc-tp-editor .bdsc-tp-field input,.bdsc-tp-editor .bdsc-tp-field select,.bdsc-tp-editor .bdsc-tp-field textarea {width:100%;max-width:100%;min-width:0;margin:0;border:1px solid #bdccd7;border-radius:4px;padding:7px 9px;font:inherit;font-size:14px;line-height:1.5;min-height:38px;background:#fff;color:#162c40}
.bdsc-tp-editor .bdsc-tp-field textarea {resize:vertical;min-height:68px}
.bdsc-tp-editor .bdsc-tp-field input[readonly] {background:#eef2f6;color:#425363}
.bdsc-tp-editor .bdsc-tp-field small {display:block;color:#5f6f7b;margin-top:4px;line-height:1.5}
.bdsc-tp-editor .bdsc-tp-section-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.bdsc-tp-editor .bdsc-tp-section-row .bdsc-tp-fields {grid-template-columns:1fr}
.bdsc-tp-editor .bdsc-tp-photo-field>strong {display:block;margin-bottom:7px;font-size:13px}
.bdsc-tp-photo-controls {display:flex;align-items:center;gap:14px}
.bdsc-tp-photo-controls>span:last-child {min-width:0}
.bdsc-tp-photo-preview {display:flex;align-items:center;justify-content:center;width:80px;height:96px;flex:0 0 80px;border:1px solid #cedce8;border-radius:5px;overflow:hidden;background:#d7e9f4;color:#476376;font-weight:600;font-size:12px}
.bdsc-tp-photo-preview img {width:100%;height:100%;object-fit:cover}
.bdsc-tp-photo-controls small {display:block;margin-top:6px;color:#63758a}
.bdsc-tp-editor .bdsc-tp-privacy {background:#fff9f1;border-left-color:#cc8d27}
/* Profile sheet: responsive version of the sample's compact, two-column data tables. */
.bdsc-tp-sheet {width:100%;max-width:1220px;margin:0 auto 20px;background:#fff;color:#1d2833;border:1px solid #d7dce0;border-radius:5px;padding:16px 17px 23px;font-size:13px;font-family:inherit;box-shadow:0 3px 12px rgba(17,44,65,.035)}
.bdsc-tp-overview {display:grid;grid-template-columns:minmax(190px,30%) minmax(0,1fr);gap:22px;align-items:start;margin-bottom:10px}
.bdsc-tp-identity {display:flex;flex-direction:column;align-items:center;text-align:center;padding:1px 0 12px;min-width:0}
.bdsc-tp-portrait {width:112px;height:125px;overflow:hidden;background:#a9d6eb;display:flex;align-items:center;justify-content:center;margin-bottom:5px}
.bdsc-tp-portrait .bdsc-tp-image {width:100%;height:100%;display:block;object-fit:cover;margin:0;border:0;border-radius:0;max-width:none}
.bdsc-tp-no-image {color:#446776;font-size:12px}
.bdsc-tp-identity-name {display:block;width:100%;padding:5px 8px 1px;background:#c1e2f0;font-size:13px;font-weight:750;overflow-wrap:anywhere;line-height:1.5}
.bdsc-tp-identity-id {display:block;width:100%;background:#c1e2f0;padding:0 8px 5px;font-size:11px;overflow-wrap:anywhere}
.bdsc-tp-identity-role {margin-top:8px;font-weight:700;color:#22714f}
.bdsc-tp-main {min-width:0}
.bdsc-tp-main h2 {font-size:17px!important;font-weight:750!important;color:#142b38!important;text-align:center;margin:0 0 9px!important;line-height:1.3;border-bottom:1px solid #4a4a4a;padding-bottom:4px}
.bdsc-tp-sheet .bdsc-tp-two-columns {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 11px;align-items:start}
.bdsc-tp-sheet .bdsc-tp-three-columns {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 11px}
.bdsc-tp-sheet dl {padding:0;margin:0;min-width:0}
.bdsc-tp-sheet .bdsc-tp-data-row {display:grid;grid-template-columns:minmax(100px,42%) minmax(0,1fr);gap:10px;padding:4px 4px 4px 5px;border-bottom:1px solid #dedede;min-width:0;break-inside:avoid;line-height:1.4}
.bdsc-tp-sheet .bdsc-tp-data-row dt {min-width:0;margin:0;font-weight:500;color:#253037;text-align:left;font-size:12px}
.bdsc-tp-sheet .bdsc-tp-data-row dd {min-width:0;margin:0;font-weight:720;color:#1a2026;font-size:12px;overflow-wrap:anywhere;white-space:normal}
.bdsc-tp-sheet .bdsc-tp-empty {color:#b1b7bd;font-weight:400}
.bdsc-tp-block {margin:11px 0 0;min-width:0;break-inside:avoid-page}
.bdsc-tp-block>h3 {padding:5px 9px!important;margin:0 0 7px!important;border:0!important;border-radius:0!important;background:#ffe3c2!important;color:#302a22!important;font-size:13px!important;font-weight:760!important;line-height:1.45!important;text-align:left}
.bdsc-tp-block h4 {font-size:12px!important;font-weight:700!important;color:#2d80ad!important;border-bottom:1px solid #3198d1!important;margin:0 0 2px!important;padding:2px 4px 3px!important;line-height:1.5}
.bdsc-tp-biography {padding:3px 9px;color:#334155;line-height:1.75;overflow-wrap:anywhere}
.bdsc-tp-biography p {margin:5px 0}
.bdsc-tp-admin-wrap {max-width:1280px}
.bdsc-tp-admin-controls {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:16px 0}
.bdsc-tp-admin-controls h1 {margin:0}
.bdsc-tp-admin-wrap .bdsc-tp-sheet {max-width:100%;margin:0;background:#fff}
.bdsc-tp-single-wrap {background:#f5f8fa;min-height:420px;padding:42px 16px 54px}
.bdsc-tp-single-shell {max-width:1220px;margin:auto}
.bdsc-tp-single-heading h1 {font-size:25px;line-height:1.4;color:#175c42;margin:0 0 18px;font-weight:800}
.bdsc-tp-single-back {margin-top:15px}
.bdsc-tp-single-back a {color:#087b59;font-weight:750;text-decoration:none}
.bdsc-profile-app .bdsc-tp-sheet {max-width:100%;box-shadow:none}
@media(max-width:960px) {
 .bdsc-tp-overview {grid-template-columns:minmax(150px,24%) minmax(0,1fr);gap:14px}
 .bdsc-tp-sheet .bdsc-tp-two-columns {gap:0 7px}
 .bdsc-tp-sheet .bdsc-tp-data-row {grid-template-columns:45% minmax(0,1fr);gap:5px}
}
@media(max-width:750px) {
 .bdsc-tp-editor-top,.bdsc-tp-editor .bdsc-tp-section-row {grid-template-columns:1fr}
 .bdsc-tp-overview {grid-template-columns:1fr}
 .bdsc-tp-identity {max-width:420px;width:100%;margin:auto}
 .bdsc-tp-sheet .bdsc-tp-two-columns,.bdsc-tp-sheet .bdsc-tp-three-columns {grid-template-columns:1fr}
 .bdsc-tp-sheet .bdsc-tp-three-columns dl:empty {display:none}
 .bdsc-tp-sheet .bdsc-tp-data-row {grid-template-columns:minmax(120px,42%) minmax(0,1fr)}
 .bdsc-tp-single-heading h1 {font-size:20px}
}
@media(max-width:520px) {
 .bdsc-tp-editor .bdsc-tp-fields {grid-template-columns:1fr}
 .bdsc-tp-sheet {padding:10px 9px 16px;font-size:12px}
 .bdsc-tp-sheet .bdsc-tp-data-row {grid-template-columns:44% minmax(0,1fr);padding:5px 2px}
 .bdsc-tp-single-wrap {padding:23px 9px 35px}
}
@media print {
 body.wp-admin #adminmenumain,body.wp-admin #wpadminbar,body.wp-admin #wpfooter,body.wp-admin #screen-meta-links,body.wp-admin .notice,body.wp-admin .bdsc-tp-admin-controls {display:none!important}
 body.wp-admin #wpcontent,body.wp-admin #wpbody-content,body.wp-admin #wpbody {margin:0!important;padding:0!important}
 body.wp-admin .bdsc-tp-admin-wrap {margin:0!important;max-width:none!important}
 .bdsc-tp-sheet {box-shadow:none!important;border:0!important;padding:5px!important;margin:0!important;max-width:none!important;color:#000}
 .bdsc-tp-block {break-inside:avoid-page}
 .bdsc-tp-block>h3,.bdsc-tp-identity-name,.bdsc-tp-identity-id {print-color-adjust:exact;-webkit-print-color-adjust:exact}
 @page {size:A4 landscape;margin:10mm}
}
.bdsc-tp-editor .bdsc-tp-field-column {min-width:0;display:grid;gap:12px;align-content:start}
.bdsc-tp-editor .bdsc-tp-field-column h4 {margin:0;padding:5px 3px;border-bottom:2px solid #3296c6;color:#2678a1;font-weight:720;font-size:14px}
.bdsc-tp-teacher-only[hidden] {display:none!important}
.bdsc-tp-sheet .bdsc-tp-public-subject {max-width:600px}
