/* portal_teacher_home.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;--good:#15803d;--goodbg:#dcfce7;--low:#b91c1c;--lowbg:#fee2e2;--warn:#b45309;--warnbg:#fef3c7;--focus:#1d4ed8}
*{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;gap:.4rem;flex-wrap:wrap}
.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-visible{outline:3px solid var(--focus);outline-offset:2px}
.bell{position:relative;padding:.5rem .7rem !important}
.badge{display:inline-block;background:var(--low);color:#fff;font-size:.75rem;font-weight:700;border-radius:99px;padding:.05rem .45rem;margin-left:.25rem;vertical-align:top}
.headline{background:var(--card);border-radius:12px;padding:1.25rem 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 .3rem}
.headline p{margin:0;color:var(--muted)}
.inset{border-left:8px solid var(--warn);background:#fffbeb;padding:1rem 1.25rem;border-radius:0 8px 8px 0;margin-bottom:1.25rem}
.inset p{margin:0 0 .6rem;font-weight:700}
.inset ul{margin:.3rem 0 .8rem 1.2rem;padding:0}
.inset li{margin:.3rem 0}
.inset .btns{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:.5rem}
.inset .btn{display:inline-block;font-weight:700;text-decoration:none;border-radius:6px;padding:.55rem .9rem;min-height:44px;line-height:1.2;border:1px solid transparent}
.inset .btn-primary{background:var(--blue);color:#fff}
.inset .btn-primary:hover{background:#1e3a8a}
.inset .btn-ghost{background:#fff;color:var(--low);border-color:var(--low)}
.inset form button.btn{font-family:inherit;cursor:pointer}
.inset .btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
h2{font-size:1.1rem;margin:1.5rem 0 .75rem}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.9rem;margin-bottom:1.5rem}
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.1rem 1.2rem;box-shadow:0 1px 4px rgba(0,0,0,.05);text-decoration:none;color:var(--text);display:flex;flex-direction:column;gap:.5rem;min-height:150px;transition:box-shadow .15s ease,border-color .15s ease}
.card{margin-bottom:0}
.card:hover{box-shadow:0 3px 10px rgba(0,0,0,.08);border-color:#c7d2fe}
.card:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.card h3{margin:0;font-size:1.05rem;color:var(--blue);line-height:1.3}
.card p{margin:0;color:var(--muted);font-size:.9rem;flex:1}
.card .meta{display:flex;justify-content:space-between;align-items:center;gap:.5rem;font-size:.85rem;margin-top:.4rem}
.tag{display:inline-block;font-weight:700;font-size:.78rem;padding:.18rem .6rem;border-radius:99px;border:1px solid transparent}
.tag.not_started{background:#f3f4f6;color:var(--muted);border-color:var(--border)}
.tag.progress{background:var(--warnbg);color:var(--warn);border-color:#fde68a}
.tag.done{background:#fff;color:var(--text);border-color:var(--border)}
.arrow{color:var(--blue);font-weight:700}
.tools{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.1rem 1.2rem;box-shadow:0 1px 4px rgba(0,0,0,.05)}
.tools h3{margin:0 0 .5rem;font-size:1.05rem;color:var(--blue)}
.tools p{margin:0 0 .8rem;color:var(--muted);font-size:.9rem}
.tools ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:.4rem .8rem}
.tools li{margin:0}
.tools a{color:var(--blue);font-weight:600;text-decoration:none;padding:.35rem 0;display:inline-block;min-height:32px}
.tools a:hover{text-decoration:underline}
.tools a:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
.glance{background:var(--card);border:1px solid var(--border);border-radius:10px;padding:.75rem 1rem;color:var(--muted);font-size:.9rem;display:flex;gap:.9rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}
.glance strong{color:var(--text)}
.glance a{color:var(--blue);text-decoration:none;font-weight:600}
.glance a:hover{text-decoration:underline}
.glance a:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:4px}
footer{margin-top:2rem;padding-top:1rem;border-top:1px solid var(--border);color:var(--muted);font-size:.85rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.6rem}
footer a{color:var(--blue);text-decoration:none;padding:.35rem .8rem;border:1px solid var(--border);border-radius:4px;font-weight:600;min-height:32px;display:inline-block}
footer a:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
@media(max-width:640px){.grid{grid-template-columns:1fr}.tools ul{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}


/* =====================================================================
   P10 (Session 21c) \u2014 collapsible funnels
   Canon: ISO 9241-110 6.2 (self-descriptive) \u00b7 ISO 9241-112 (one purpose)
          GOV.UK Task List \u00b7 Nielsen NN #6, #8 \u00b7 WCAG 2.2 SC 1.3.1, 2.4.8, 4.1.3
   Rule 27: same stepper component everywhere. Rule G: Roman Urdu UI.
   Rule 10: only tokens \u2014 no new hex.
   ===================================================================== */

.lede { margin: 0; color: var(--muted); font-size: 1rem; }

/* Funnel list \u2014 stacked, one card per funnel */
.funnels { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.5rem; }

.funnel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.funnel[open] { border-color: #c7d2fe; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.funnel:hover { border-color: #c7d2fe; }

.funnel-head {
  list-style: none;
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--text);
  min-height: 56px;
}
.funnel-head::-webkit-details-marker { display: none; }
.funnel-head::before {
  content: "\25B8"; /* small right chevron */
  color: var(--blue);
  font-size: 0.9rem;
  transition: transform .15s ease;
  display: inline-block;
  width: 1em;
  text-align: center;
}
.funnel[open] .funnel-head::before { transform: rotate(90deg); }
.funnel-head:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: 12px;
}

.funnel-title { font-size: 1.02rem; color: var(--blue); flex: 1 1 auto; min-width: 12ch; }
.funnel-status { font-size: 0.78rem; }
.funnel-steps { color: var(--muted); font-size: 0.85rem; font-weight: 500; }

.funnel-body {
  padding: 0 1.1rem 1rem 2.4rem;
  border-top: 1px solid var(--border);
}
.funnel-desc {
  margin: 0.75rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 68ch;
}

/* "Naya" pill for newly shipped funnels */
.tag.tag-new { background: #eef2ff; color: var(--blue); border-color: #c7d2fe; }

/* Buttons inside funnels */
.funnel-body .btn {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.55rem 0.95rem;
  min-height: 44px;
  line-height: 1.2;
  border: 1px solid transparent;
}
.funnel-body .btn-primary { background: var(--blue); color: #fff; }
.funnel-body .btn-primary:hover { background: #1e3a8a; }
.funnel-body .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Mobile tightening */
@media (max-width: 560px) {
  .funnel-head { padding: 0.75rem 0.85rem; }
  .funnel-body { padding: 0 0.85rem 0.85rem 1.7rem; }
  .funnel-title { font-size: 0.98rem; }
}

@media (prefers-reduced-motion: reduce) {
  .funnel, .funnel-head::before { transition: none !important; }
}


/* P10 fix2 - section hint above the funnels list */
.section-hint {
  margin: -0.25rem 0 0.9rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 68ch;
}


/* ===== Quick links bar (Academy + Devices) ===== */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1.5rem; }
.qlink { display: flex; flex-direction: column; gap: 2px; padding: 0.85rem 1.05rem; background: var(--card);
         border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
         text-decoration: none; color: var(--text); transition: box-shadow .15s ease, border-color .15s ease; }
.qlink:hover { border-color: #c7d2fe; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.qlink:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qlink-academy { background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%); border-color: #c7d2fe; }
.qlink strong { color: var(--blue); font-size: 1.02rem; }
.qlink-sub { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .quick-links { grid-template-columns: 1fr; } }


/* ===== Quick links bar (Academy + Devices) ===== */
.quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 0 0 1.5rem; }
.qlink { display: flex; flex-direction: column; gap: 2px; padding: 0.85rem 1.05rem; background: var(--card);
         border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
         text-decoration: none; color: var(--text); transition: box-shadow .15s ease, border-color .15s ease; }
.qlink:hover { border-color: #c7d2fe; box-shadow: 0 3px 10px rgba(0,0,0,.08); }
.qlink:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.qlink-academy { background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%); border-color: #c7d2fe; }
.qlink strong { color: var(--blue); font-size: 1.02rem; }
.qlink-sub { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 640px) { .quick-links { grid-template-columns: 1fr; } }
