/* classes: the teachers' page, a class, the student's assignments on the library page (web/teach.js) */
.teach { max-width: 980px; margin: 10px auto; }
.teach h1 { font: 400 34px/1.15 var(--text); margin: 4px 0 6px; }
.teach .lead { color: var(--muted); margin: 0 0 22px; max-width: 40em; }
.teach .box { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; margin: 16px 0; }
.teach .box h2 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.teach .small, .tmine .small, .tinv .small { font-size: 13.5px; }
.tsec { font: 600 24px/1.2 var(--text); margin: 34px 0 12px; }
.tperiod { margin: 0 0 16px; max-width: 460px; }
.tiers.t4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .tiers.t4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiers.t4 { grid-template-columns: 1fr; } }
.tier .each { color: var(--muted); font-size: 13.5px; }
.tier .p.dist { font-size: 30px; }
.tcols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 760px) { .tcols { grid-template-columns: 1fr; } }
.tsteps { margin: 0; padding-left: 1.2em; }
.tsteps li { margin: 0 0 10px; font-size: 15px; }
.linkish { color: var(--gold-ink); font: inherit; font-weight: 600; padding: 0; background: none; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.h-sec .linkish { font-size: 14px; }
.tnote { border: 1px solid var(--gold); }
.tlic.ended { opacity: .8; }
.tlh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tseats { height: 6px; border-radius: 3px; background: var(--bg-2); margin: 14px 0 6px; overflow: hidden; }
.tseats i { display: block; height: 100%; background: var(--gold); }
.tclasses { margin: 10px 0; border-top: 1px solid var(--line); }
.tclasses a { border-bottom: 1px solid var(--line); }
.tclasses .grow, .tasg .grow { flex: 1; min-width: 0; }
.tback { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-ink); text-decoration: none; font-size: 14px; margin-bottom: 8px; }
.tback .ico { width: 16px; height: 16px; }
.tch { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.teach textarea, .tform select, .tform input[type=date], .tform input[type=text] {
  width: 100%; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 15px/1.4 var(--ui); padding: 10px 12px; }
.tform select, .tform input { height: 46px; padding: 0 12px; }
.teach textarea:focus, .tform select:focus, .tform input:focus { outline: none; border-color: var(--gold); }
.tadd { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.tfile { position: relative; overflow: hidden; cursor: pointer; }
.tfile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tfound { font-size: 14px; margin: 4px 0 12px; min-height: 1px; }
.troster { display: grid; gap: 10px; }
.tstu { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: 10px 16px; align-items: center; background: var(--card);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow); }
.tstu .who { display: flex; flex-direction: column; min-width: 0; }
.tstu .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tstu .nums { display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: baseline; font-size: 14px; }
.tstu .acts { display: flex; gap: 14px; font-size: 14px; }
.tstu .tstate { font-size: 13px; color: var(--gold-ink); }
.tstu.waiting .tstate, .tstu.invited .tstate { font-style: italic; }
@media (max-width: 640px) { .tstu { grid-template-columns: 1fr; } }
.tasg { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasg > li { display: flex; align-items: flex-start; gap: 12px; background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.tasg > li > a { display: flex; align-items: center; gap: 12px; width: 100%; color: inherit; text-decoration: none; }
.tasg details { margin-top: 6px; font-size: 14px; }
.tasg summary { cursor: pointer; color: var(--gold-ink); }
.tasg .tick { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); display: grid; place-items: center; color: var(--gold-ink); }
.tasg .tick .ico { width: 14px; height: 14px; }
.tasg li.done b { color: var(--muted); }
.tmine { margin-top: 8px; }
.tinv { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--card); border-radius: 18px;
  box-shadow: var(--shadow); padding: 16px 18px; margin: 14px 0; border: 1px solid var(--gold); }
.tinv .small { display: block; margin-top: 4px; }
.tinv .acts { display: flex; gap: 8px; }
.tform .seg { margin-bottom: 14px; max-width: 360px; }
.tform .hide, .teach .hide { display: none; }
.tlink { text-align: center; color: var(--muted); margin-top: 20px; }
.tlink a { color: var(--gold-ink); font-weight: 600; }
