/* 一件作业的各处来源（hwsrc.js，docs/specs/hw-sources.md，尺寸照样式稿 docs/mockups/hw-sources.html）。归 M2 课程中心 Fomalhaut647。类名都带 hs- 前缀。
   课程页作业栏、主页作业块里，一件作业是一行待办（rows.js 的 .tk-row）加下面缩进的来源列表，左边一条细竖线，和圆圈右边的标题对齐；详情面板里不缩进 */
.hs-item { padding: 0 0 10px; }
.hs-item + .hs-item { padding-top: 2px; border-top: 1px solid var(--line); }
.hs-item > .tk-row { border-top: 0; }
.hs-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 2px 8px 2px 38px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.hs-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hs-role { flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.hs-task { color: var(--tint); background: var(--tint-soft); }
.hs-answer { color: var(--green); background: var(--green-soft); }
.hs-reschedule { color: var(--orange); background: var(--t-chg-bg); }
.hs-supplement { color: var(--muted); background: var(--soft-2); }
.hs-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; }
a.hs-t:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.hs-d { flex: none; margin-left: auto; color: var(--muted); font-size: 12px; }
.hs-p { display: -webkit-box; margin: 4px 0 0; overflow: hidden; color: #46464b; font-size: 13px; line-height: 1.6; white-space: pre-line;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.hs-src > .fl { margin-top: 8px; }

/* 一行待办标题旁的「新」；已完成那一行右端展开来源的小箭头 */
.tk-t > .tag { margin-left: 2px; vertical-align: 1px; }   /* 和标题隔一个空格：标题长、「新」折到下一行时在行首，不空出一截 */
button.hs-more { flex: none; display: grid; place-items: center; width: 24px; height: 22px; margin: 0; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
button.hs-more:hover { background: var(--soft); color: var(--ink); transform: none; }
button.hs-more .ic { width: 15px; height: 15px; transition: transform .2s ease; }
button.hs-more[aria-expanded="true"] .ic { transform: rotate(90deg); }
/* 「已完成」折着时标题旁的蓝点 */
.sec-tog > .hs-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tint); }

/* 主页作业块：一件一行，下面一排附件小框 */
.hs-home { padding: 0 0 8px; }
.hs-home + .hs-home { padding-top: 0; border-top: 1px solid var(--line); }
.hs-home > .tk-row { border-top: 0; }
.hs-home > .fl { margin: 2px 8px 0 38px; }

/* 详情面板「教学网原文」：不缩进、不画竖线，几处之间一条细线 */
.hs-list.is-flat { gap: 16px; margin: 0; padding-left: 0; border-left: 0; }
.hs-list.is-flat > .hs-src + .hs-src { padding-top: 14px; border-top: 1px solid var(--line); }
.d-block .hs-src > .fl { margin: 8px 0 0; }   /* 详情面板里的附件一行一个（files.css 的 .d-block .fl）往左伸出 8，来源里的小框不伸 */
.d-block .hs-src > .fl-chips .fl-pics { padding-left: 0; }

/* 手机：来源列缩进得少一点，附件小框一个一行、占满宽度（下载按钮一直显示，files.css 已按「没有悬停」处理；窄窗口的电脑上也照手机） */
@media (max-width: 759.98px) {
  .hs-list { margin-left: 30px; margin-right: 0; padding-left: 12px; }
  .hs-home > .fl { margin-left: 30px; margin-right: 0; }
  .hs-list .fl.fl-chips, .hs-home > .fl.fl-chips { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hs-list .fl-chip, .hs-home .fl-chip { width: 100%; }
  .hs-list a.fl-chip-main, .hs-home a.fl-chip-main { flex: 1; }
  .hs-list a.fl-chip-dl, .hs-home a.fl-chip-dl { position: static; flex: none; width: 36px; height: 100%; border-left: 1px solid var(--line); border-radius: 0 9px 9px 0;
    background: none; box-shadow: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  button.hs-more .ic { transition-duration: .01ms; }
}
