/* Official contest long post and the official publish form. */
.contest-visual {
  margin: 24px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #eef0f7;
}
.contest-visual img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}
.contest-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.contest-head .badge {
  margin: 0;
}
.contest-phase[data-phase='open'],
.contest-phase[data-phase='voting'] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.contest-facts {
  display: grid;
  gap: 18px;
  margin: 24px 0 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbfe;
}
.contest-facts > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
}
.contest-facts dt {
  font-size: 14px;
  color: #646e85;
  font-weight: 650;
}
.contest-facts dd {
  margin: 0;
  color: #303957;
  line-height: 1.7;
}
.chip {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e0e4ed;
  font-size: 14px;
}
.contest-schedule {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.contest-schedule li {
  display: flex;
  gap: 14px;
}
.contest-schedule span {
  min-width: 5.5em;
  color: #646e85;
}
.contest-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  font-size: 14px;
}
.contest-toc a {
  color: var(--blue);
  font-weight: 650;
}
.contest-section {
  scroll-margin-top: 112px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.contest-section .body {
  margin: 14px 0 26px;
}
.tag {
  display: inline-block;
  vertical-align: 2px;
  margin-right: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
  color: #646e85;
  background: #f0f2f8;
}
.tag.official {
  color: #fff;
  background: #252b43;
}
.official-floor {
  background: #fafbff;
  margin: 0 -16px;
  padding: 20px 16px;
}
.official-floor .meta time {
  color: #646e85;
  font-size: 13px;
}
.locked-note {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f5f9;
  font-size: 14px;
}
.locked-note a {
  color: var(--blue);
  font-weight: 650;
}
.pin-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: #646e85;
}
.pin-control select {
  padding: 8px 10px;
}
.pinned-list {
  margin-bottom: 20px;
}
.contest-form .field select {
  width: 100%;
}
.contest-times {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  margin: 24px 0;
}
.contest-times legend {
  font-size: 14px;
  color: #646e85;
  padding: 0 6px;
}
.contest-times .field {
  margin: 16px 0;
}
@media (max-width: 720px) {
  .contest-facts {
    padding: 18px;
  }
  .contest-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .contest-section {
    scroll-margin-top: 92px;
  }
}
