/* Check Task: an illustrative task completion report and the three verdicts. */
.ct-page .ri-demo-head {
  align-items: center;
  flex-wrap: wrap;
}
.ct-page .ri-demo-head code {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.ct-page .ri-demo-head .ri-toolbar {
  gap: 8px;
  padding: 0;
}
.ct-page .ri-demo-head .ri-toolbar[hidden] {
  display: none;
}
.ct-page .ri-demo-head .ri-toolbar button {
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 500;
}
.ct-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}
.ct-ticket {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--line);
  background: #fff;
}
.ct-page .ct-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
.ct-label img {
  width: 18px;
  height: 18px;
}
body[data-site-family].ct-page main .ct-ticket h3 {
  margin: 0 0 20px;
  font-size: 21px !important;
  line-height: 1.3;
}
.ct-ticket ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
.ct-ticket ol li::marker {
  color: var(--muted);
}
.ct-report {
  min-width: 0;
  padding: 28px;
}
.ct-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 18px;
}
.ct-page .ct-report-head code {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.ct-verdict {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.ct-verdict b {
  padding: 4px 12px;
  border: 1px solid;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
}
.ct-verdict-partial b {
  border-color: #ecdfb8;
  background: #faf4e3;
  color: #6b5726;
}
.ct-verdict-done b {
  border-color: #c6dece;
  background: #e3f3e9;
  color: #226249;
}
.ct-checks {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.ct-checks li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.ct-page .ct-mark {
  color: var(--muted);
  font-size: 13px;
}
.ct-checks strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.ct-checks small {
  grid-column: 2 / -1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.ct-page .ct-checks small code {
  font-size: 12px;
}
.ct-state {
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.ct-state-done {
  background: #e3f3e9;
  color: #226249;
}
.ct-state-partial {
  background: #faf4e3;
  color: #6b5726;
}
.ct-state-missing {
  background: #fbecee;
  color: #8a3a44;
}
.ct-gaps {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}
.ct-gaps strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
}
.ct-gaps ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.ct-page .ct-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}
.ct-page .ct-ask svg {
  width: 16px;
  height: 16px;
  color: var(--blue-dark);
}

/* Verdicts: three bands instead of the four score bands. */
.ct-page .ri-bands {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ct-page .ri-bands strong {
  font-size: 26px;
}
.ct-page .ct-note {
  max-width: 72ch;
  margin: 24px 0 0;
  font-size: 15px;
}
.ct-page .ct-also {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* The shared 100px right inset makes room for motion controls this page does not have. */
@media (max-width: 1000px) {
  .ct-page .ri-demo-head {
    padding-right: 24px;
  }
}
@media (max-width: 640px) {
  .ct-page .ri-demo-head {
    align-items: flex-start;
    padding-right: 16px;
  }
  .ct-page .ri-demo-head .ri-toolbar {
    align-self: stretch;
  }
}
@media (max-width: 760px) {
  .ct-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ct-ticket {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .ct-page .ri-bands {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .ct-ticket,
  .ct-report {
    padding: 20px 16px;
  }
}
