/* v335 — Teacher Education Library. Same site tokens as the course workspace (course-workspace.v329.css):
   cream paper, ink, teal, terracotta, Newsreader headings, IBM Plex Sans text, IBM Plex Mono labels. Mobile first. */
.tl{--tl-line:rgba(35,39,31,.12);--tl-soft:#f3efe7;--tl-card:#fff;--tl-teal:#4a7c6f;--tl-teal-soft:rgba(74,124,111,.1);--tl-terra:#d97757;--tl-muted:#5d6058;--tl-warn:#8a4b2a;
  padding-top:clamp(1.25rem,3vw,2.6rem);padding-bottom:4.5rem}
.tl *{box-sizing:border-box}
.tl .eyebrow{font-family:var(--font-mono,monospace);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--tl-teal)}
.tl-gate{max-width:640px;margin:2rem auto;padding:clamp(1.4rem,4vw,2.2rem);border:1px solid var(--tl-line);border-radius:20px;background:var(--tl-card)}
.tl-gate h1{font-family:var(--font-display);font-weight:500;font-size:clamp(1.6rem,4vw,2.3rem);line-height:1.15;margin:.4rem 0 .6rem}
.tl-gate p{color:var(--tl-muted)}
.tl-gate .btn{margin-top:.6rem}

.tl-head{display:grid;gap:1.25rem;margin-bottom:1.75rem}
.tl-head h1{font-family:var(--font-display);font-weight:500;font-size:clamp(2rem,6vw,3.2rem);line-height:1.04;letter-spacing:-.01em;margin:.4rem 0 .6rem}
.tl-head__lede{margin:0;max-width:60ch;color:var(--tl-muted);font-size:1.02rem;line-height:1.55}

.tl-plan{display:grid;gap:.85rem;padding:1.1rem 1.15rem;border:1px solid var(--tl-line);border-radius:18px;background:var(--tl-card)}
.tl-plan__state{display:flex;align-items:center;gap:.55rem;font-weight:600}
.tl-plan__dot{width:9px;height:9px;border-radius:50%;background:var(--tl-teal);flex:0 0 auto}
.tl-plan[data-tone="warn"] .tl-plan__dot{background:var(--tl-terra)}
.tl-plan[data-tone="warn"] .tl-plan__state{color:var(--tl-warn)}
.tl-plan dl{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:0}
.tl-plan dl div{padding:.7rem .8rem;border-radius:12px;background:var(--tl-soft)}
.tl-plan dt{font-family:var(--font-mono,monospace);font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tl-muted)}
.tl-plan dd{margin:.3rem 0 0;font-weight:600}
.tl-plan__note{margin:0;font-size:.86rem;color:var(--tl-muted);line-height:1.5}
.tl-plan .btn{width:100%;min-height:46px;justify-content:center}

.tl-section{margin-top:2rem}
.tl-section h2{font-family:var(--font-display);font-weight:500;font-size:clamp(1.35rem,3.5vw,1.8rem);margin:0 0 .9rem;padding-bottom:.6rem;border-bottom:1px solid var(--tl-line)}
.tl-items{display:grid;gap:.9rem;margin:0;padding:0;list-style:none}
.tl-item{display:grid;gap:.6rem;padding:1.1rem 1.15rem;border:1px solid var(--tl-line);border-radius:18px;background:var(--tl-card)}
.tl-item__meta{display:flex;flex-wrap:wrap;gap:.4rem}
.tl-chip{display:inline-flex;align-items:center;min-height:26px;padding:0 .6rem;border-radius:99px;background:var(--tl-teal-soft);color:var(--tl-teal);font-size:.76rem;font-weight:600}
.tl-chip--soft{background:var(--tl-soft);color:var(--tl-muted)}
.tl-item h3{font-family:var(--font-display);font-weight:500;font-size:1.45rem;line-height:1.15;margin:0}
.tl-item p{margin:0;color:var(--tl-muted)}
.tl-item .btn{justify-self:start;min-height:44px}

.tl-growing{margin-top:2rem;padding:1.1rem 1.15rem;border:1px dashed rgba(74,124,111,.45);border-radius:18px;background:rgba(74,124,111,.05)}
.tl-growing strong{display:block;margin-bottom:.3rem;font-family:var(--font-display);font-weight:500;font-size:1.2rem}
.tl-growing p{margin:0;color:var(--tl-muted);line-height:1.55}
.tl-status{margin:0;font-size:.86rem;color:var(--tl-warn)}
.tl-status:empty{display:none}

@media (min-width:860px){
  .tl-head{grid-template-columns:minmax(0,1fr) 340px;align-items:start;gap:2.5rem}
  .tl-head>div:first-child{padding-top:1.2rem}
  .tl-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tl-item .btn{justify-self:start}
}
@media (max-width:420px){.tl-plan dl{grid-template-columns:1fr}.tl-item .btn{width:100%;justify-content:center}}

/* pass 03: scheduled (group programme not started yet) */
.tl-scheduled{max-width:640px;margin:0 auto;display:grid;gap:1rem}
.tl-scheduled .tl-gate{margin:2rem 0 0}
