/* portal_teacher_guide.html — extracted page CSS (Session 18, Phase A) */

/* --- block 1 of 1 --- */
:root{--bg:#f3f4f6;--card:#fff;--text:#1f2937;--muted:#6b7280;--border:#e5e7eb;--blue:#1e40af;--bluebg:#eff6ff;--good:#15803d;--goodbg:#dcfce7;--warn:#b45309;--warnbg:#fef3c7;--low:#b91c1c;--lowbg:#fee2e2}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family:-apple-system,"Segoe UI",Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:16px;line-height:1.5;padding:1rem 1rem 4rem}
.skip{position:absolute;left:-9999px;top:0;background:#fff;padding:.5rem 1rem;z-index:100}
.skip:focus{left:0}

.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;flex-wrap:wrap;gap:.5rem}
.topbar strong{color:var(--blue);font-size:1.05rem}
.topbar a{color:var(--blue);font-weight:600;text-decoration:none;padding:.5rem .6rem;border-radius:4px}
.topbar a:focus{outline:3px solid var(--blue);outline-offset:2px}
.headline{background:var(--card);border-radius:12px;padding:1.5rem;border-left:8px solid var(--blue);box-shadow:0 2px 6px rgba(0,0,0,.06);margin-bottom:1rem}
.headline h1{font-size:1.35rem;margin:0 0 .4rem;color:var(--blue)}
.headline p{margin:0;color:var(--muted)}
.progress-line{background:var(--card);border-radius:10px;padding:1rem 1.2rem;margin-bottom:1rem;box-shadow:0 1px 4px rgba(0,0,0,.05);border-left:5px solid var(--good);font-weight:600;font-size:1rem}
.progress-line b{color:var(--blue)}
.chips{display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1rem;position:sticky;top:0;background:var(--bg);padding:.5rem 0;z-index:10}
.chip{background:var(--card);border:1px solid var(--border);border-radius:99px;padding:.4rem .9rem;color:var(--blue);font-weight:600;text-decoration:none;font-size:.9rem}
.chip:hover{background:var(--bluebg)}
.chip:focus{outline:3px solid var(--blue);outline-offset:2px}
h2{font-size:1.1rem;margin:1.5rem 0 .5rem;color:var(--blue);border-bottom:1px solid var(--border);padding-bottom:.3rem}
h2 .count{font-size:.85rem;color:var(--muted);font-weight:400;float:right}
.tools{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.6rem;margin:1rem 0}
.tool{background:var(--card);border-radius:10px;padding:.8rem 1rem;box-shadow:0 1px 4px rgba(0,0,0,.05);border-top:4px solid var(--blue);text-align:center}
.tool a{display:block;color:var(--blue);font-weight:700;text-decoration:none;font-size:1rem;margin-bottom:.2rem}
.tool a:hover{text-decoration:underline}
.tool a:focus{outline:3px solid var(--blue);outline-offset:2px}
.tool .desc{font-size:.8rem;color:var(--muted)}
.task-link{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:var(--card);border-radius:10px;padding:1rem 1.2rem;margin-bottom:.6rem;box-shadow:0 1px 4px rgba(0,0,0,.05);border-left:5px solid var(--blue);text-decoration:none;color:var(--text);min-height:64px}
.task-link:hover{background:#f9fafb}
.task-link:focus{outline:3px solid var(--blue);outline-offset:2px}
.task-link .body{flex:1}
.task-link .title{font-weight:700;font-size:1rem;color:var(--text);display:block;margin-bottom:.15rem}
.task-link .desc{font-size:.85rem;color:var(--muted);display:block}
.task-link .arrow{color:var(--blue);font-weight:700;font-size:1.2rem;flex-shrink:0}
.status{display:inline-block;font-size:.8rem;font-weight:700;padding:.25rem .6rem;border-radius:99px;white-space:nowrap}
.status-todo{background:#e5e7eb;color:#374151}
.status-doing{background:var(--bluebg);color:var(--blue)}
.status-done{background:var(--goodbg);color:var(--good)}
.tag-todo{display:inline-block;background:#e5e7eb;color:#374151;font-size:.8rem;font-weight:700;padding:.2rem .55rem;border-radius:99px;margin-left:.5rem}
.tag-doing{display:inline-block;background:#eff6ff;color:#1e40af;font-size:.8rem;font-weight:700;padding:.2rem .55rem;border-radius:99px;margin-left:.5rem}
.tag-done{display:inline-block;background:transparent;color:#1f2937;font-size:.8rem;font-weight:700;padding:.2rem .55rem;border-radius:99px;margin-left:.5rem;border:1px solid #e5e7eb}
table.ref{width:100%;background:var(--card);border-radius:10px;border-collapse:separate;border-spacing:0;box-shadow:0 1px 4px rgba(0,0,0,.05);overflow:hidden}
table.ref th,table.ref td{padding:.6rem .9rem;text-align:left;font-size:.9rem;border-bottom:1px solid var(--border)}
table.ref th{background:#f9fafb;font-weight:700}
table.ref td a{color:var(--blue);text-decoration:none}
table.ref td a:hover{text-decoration:underline}
table.ref td a:focus{outline:3px solid var(--blue);outline-offset:2px}
footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6rem;margin-top:2rem;padding-top:1rem;border-top:1px solid var(--border);color:var(--muted);font-size:.85rem}
footer a{color:var(--blue);text-decoration:none;padding:.35rem .8rem;border:1px solid var(--border);border-radius:4px;font-weight:600;display:inline-block}
@media(max-width:520px){.tools{grid-template-columns:1fr 1fr}.task-link{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
