/* The 本典 page (chuancheng/templates/wensi/work.html): one text, on two
   shelves - what there is to read, and the courses that teach it. Sits on
   catalogue_list.css for the page width, the kind badges and the 密 mark. */

.wk-crumbs {
  color: #6b6b5a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9em;
  gap: 6px;
  padding: 10px 0 4px;
}

.wk-crumbs a {
  color: #4a7c59;
}

.wk-head {
  margin-bottom: 22px;
}

.wk-head__title {
  align-items: center;
  color: #4e0d0d;
  display: flex;
  flex-wrap: wrap;
  font-size: 1.6em;
  gap: 8px;
  margin: 0 0 6px;
}

.wk-head__meta {
  color: #6b6b5a;
  font-size: 0.92em;
  margin: 0;
}

.wk-head__sep {
  margin: 0 6px;
}

.wk-head__mifa {
  color: #8a3b12;
  font-size: 0.9em;
  margin: 6px 0 0;
}

.wk-head__open {
  color: #6b6b5a;
  margin-left: 10px;
}

.wk-row .cat-mifa {
  margin-left: 0;
}

/* One shelf: a heading that says what the rows are for, then the rows. */
.wk-shelf {
  margin-bottom: 28px;
}

.wk-shelf__head {
  border-bottom: 2px solid #4e0d0d;
  color: #4e0d0d;
  font-size: 1.1em;
  margin: 0 0 2px;
  padding-bottom: 6px;
}

.wk-shelf__head small {
  color: #8c8c78;
  font-size: 0.78em;
  font-weight: normal;
  margin-left: 8px;
}

.wk-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wk-row {
  align-items: center;
  border-bottom: 1px solid #ecece0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 4px;
}

.wk-row .cat-kind {
  min-width: 3.4em;
  text-align: center;
}

.cat-kind--辅导 {
  background-color: #ece6f0;
  color: #5e4a7a;
}

.cat-kind--讲座 {
  background-color: #f0ebdc;
  color: #7a6230;
}

.cat-kind--影音 {
  background-color: #e6ecea;
  color: #3f6b62;
}

.wk-row__main {
  align-items: baseline;
  display: flex;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.wk-row__title {
  color: #2f3e33;
  flex: 1 1 240px;
  font-size: 1.04em;
  text-decoration: none;
}

.wk-row__main .wk-row__title {
  flex: 0 1 auto;
}

.wk-row__title:hover {
  color: #4a7c59;
  text-decoration: underline;
}

.wk-row__teacher {
  color: #6b6b5a;
  font-size: 0.88em;
}

/* The 专业 mark: this course is 专业学修; the link goes to that 专业's page. */
.wk-row__major {
  border: 1px solid #d9c9b4;
  border-radius: 10px;
  color: #8a6a3a;
  font-size: 0.78em;
  padding: 0 8px;
  text-decoration: none;
  white-space: nowrap;
}

.wk-row__major:hover {
  background-color: #f4eee3;
  text-decoration: none;
}

.wk-row__marks {
  color: #8c8c78;
  display: inline-flex;
  font-size: 0.82em;
  gap: 10px;
  white-space: nowrap;
}

.wk-mark i {
  font-size: 0.85em;
}

.wk-row__count {
  color: #6b6b5a;
  font-size: 0.88em;
  min-width: 4em;
  text-align: right;
  white-space: nowrap;
}

.wk-row__pending {
  color: #a89f88;
}

.wk-row__go,
.wk-row__plan {
  border-radius: 10px;
  font-size: 0.8em;
  min-width: 4.4em;
  padding: 2px 10px;
  text-align: center;
  white-space: nowrap;
}

.wk-row__go {
  border: 1px solid #4a7c59;
  color: #4a7c59;
  text-decoration: none;
}

.wk-row__go:hover {
  background-color: #4a7c59;
  color: #fff;
  text-decoration: none;
}

.wk-row__plan {
  border: 1px solid #d2c6ac;
  color: #6b6b5a;
}

.wk-row__plan--on {
  background-color: #e5ece4;
  border-color: #4a7c59;
  color: #4a7c59;
}

/* The shelf strip: the 本典's 法类, this one marked, each with what it holds. */
.wk-shelfrow {
  border-top: 1px solid #ddddc8;
  margin-top: 26px;
  padding-top: 12px;
}

.wk-shelfrow__head {
  align-items: baseline;
  color: #6b6b5a;
  display: flex;
  font-size: 0.95em;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 10px;
}

.wk-shelfrow__all {
  color: #4a7c59;
  font-size: 0.9em;
  font-weight: normal;
  white-space: nowrap;
}

.wk-shelfrow__list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wk-book {
  background-color: #f6f5ec;
  border-left: 3px solid transparent;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
}

.wk-book--here {
  background-color: #e5ece4;
  border-left-color: #4a7c59;
}

.wk-book__title {
  color: #2f3e33;
  font-size: 0.96em;
  text-decoration: none;
}

a.wk-book__title:hover {
  color: #4a7c59;
  text-decoration: underline;
}

.wk-book--here .wk-book__title {
  color: #4e0d0d;
  font-weight: 600;
}

.wk-book__has {
  color: #8c8c78;
  font-size: 0.8em;
}

@media screen and (max-width: 600px) {
  .wk-row__count {
    min-width: 0;
    text-align: left;
  }

  .wk-row__go {
    display: none;
  }
}
