/* The teacher pages: the portal's look (site/portal/portal.css) with forms and tables added. Everything
   a teacher needs for a class is on one page, in the order they use it: lessons, roster, details. */
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
@media (max-width:640px){.grid2{grid-template-columns:1fr}}
form.card label,.field label{display:block;font-weight:500;margin:0 0 4px}
.field{margin:0 0 12px}
.field .hint{display:block;font-size:14px;color:var(--soft);font-weight:400;margin-top:3px}
.field .err{display:block;font-size:14.5px;color:var(--bad);font-weight:500;margin-top:3px}.field .err:empty{display:none}
input[type=text],input[type=url],input[type=date],input[type=time],input[type=number],input[type=email],select{width:100%;min-height:46px;padding:0 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--bg);color:var(--ink);font:inherit}
input[type=file]{font:inherit;max-width:100%}
input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--bad)}
.pill{display:inline-block;white-space:nowrap;font-size:13px;font-weight:600;border-radius:999px;padding:1px 10px;background:light-dark(#e3f4e8,#143a22);color:light-dark(#11602e,#a8e6bd)}
.pill.off{background:light-dark(#eceef5,#2a3766);color:var(--soft)}.pill.free{background:var(--blue);color:#fff}.pill.bad{background:light-dark(#fde7e4,#4a1a14);color:var(--bad)}
.tablewrap{position:relative;overflow-x:auto;border:1px solid var(--line);border-radius:14px}
table{border-collapse:collapse;width:100%}
table.wide{min-width:560px} /* the lessons table scrolls sideways on a phone rather than squeezing */
th,td{text-align:left;padding:10px;border-top:1px solid var(--line);vertical-align:top}
thead th{border-top:0;font-size:12.5px;letter-spacing:.03em;text-transform:uppercase;color:var(--soft);font-weight:600;background:var(--panel)}
.head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:28px 0 10px}
.head h2{margin:0}
.btn.small{min-height:44px;padding:0 16px;font-size:15px}
.linkbtn{background:none;border:0;color:var(--link);font:inherit;font-weight:500;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 6px}
.note{background:light-dark(#fff4e0,#3a2a08);border-radius:12px;padding:10px 14px;margin:0 0 14px}
.attach{border-top:1px dashed var(--line);margin-top:14px;padding-top:12px}
progress{width:100%;max-width:420px;height:12px}
details.card>summary{cursor:pointer;font-weight:600;font-size:18px;min-height:32px}
/* "Confirm you're a teacher" (verify.js): one question at a time, big answers a thumb can hit. */
.vcard h3{margin:6px 0 8px}
.vchoices{display:grid;gap:10px;margin:12px 0}
.vchoices .btn{width:100%;justify-content:flex-start;text-align:left;min-height:52px;height:auto;padding:10px 18px;white-space:normal}
.vq{font-size:19px;margin:14px 0 4px}
.vcode{max-width:11ch;font-size:24px;letter-spacing:.2em;text-align:center}
.vdone{margin:0;font-size:18px}.vdone.ok{color:light-dark(#11602e,#a8e6bd)}
.card.vok{padding:10px 16px}
.vcard .row{margin-top:10px}
.vslots{border:0;padding:0;margin:8px 0 14px}
.vslots legend{font-weight:600;margin-bottom:6px}
.vday{margin:0 0 10px}
.vday p{margin:0 0 6px}
.vtimes{display:flex;flex-wrap:wrap;gap:8px}
.vtime{display:inline-flex;align-items:center;gap:6px;border:1px solid #c9c9c9;border-radius:8px;padding:8px 12px;cursor:pointer;min-height:44px}
.vtime:has(input:checked){border-color:currentColor;font-weight:600}
#applyForm .err{color:var(--bad);font-size:14.5px;font-weight:500;margin:4px 0 0}
.vslots .err{display:block;font-size:14.5px;color:var(--bad);font-weight:500;margin-top:6px}.vslots .err:empty{display:none}
.vdl li{margin:6px 0}
.vdays{border:0;padding:0;margin:4px 0 14px}.vdays legend{font-weight:600;margin-bottom:4px}.vdays .err{display:block;font-size:14.5px;color:var(--bad);font-weight:500}.vdays .err:empty{display:none}
