/*
 * Desktop wrong-question card component.
 * Mobile has an isolated implementation in mobile-v3.css.
 */

.report-list {
  display: grid;
  gap: 18px;
}

.report-item {
  --report-red: #a7191d;
  --report-gold: #bd8c3e;
  --report-line: #dfc99e;
  overflow: hidden;
  border: 1px solid var(--report-line);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 12px 30px rgb(12 29 46 / 8%);
}

.report-item details,
.report-item summary {
  margin: 0;
}

.report-item summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 78px;
  grid-template-areas: none;
  grid-template-rows: auto;
  min-height: 150px;
  padding: 0;
  cursor: pointer;
  list-style: none;
  background: linear-gradient(110deg, #fffdf8 0%, #fffaf1 100%);
}

.report-item summary::-webkit-details-marker {
  display: none;
}

.report-item summary::marker {
  content: "";
}

.report-item summary:focus-visible {
  outline: 3px solid rgb(189 140 62 / 36%);
  outline-offset: -3px;
}

.report-item__index {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 150px;
  color: #fffaf0;
  background:
    radial-gradient(circle at 28% 18%, rgb(255 255 255 / 12%), transparent 38%),
    linear-gradient(155deg, #bd2529, #941115);
  font-family: "Times New Roman", "Noto Serif SC", serif;
}

.report-item__index b {
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
}

.report-item__index small {
  margin-top: 13px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.report-summary-main {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 24px 30px;
  gap: 8px;
}

.report-summary-title {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.report-summary-title > strong {
  overflow: hidden;
  color: #102940;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-item .cause-tag {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid #cf5759;
  border-radius: 6px;
  color: #ad2528;
  background: #fff8f4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.report-summary-meta {
  overflow: hidden;
  color: #7b6c59;
  font-size: 14px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-item__prompt-preview {
  display: flex;
  min-width: 0;
  margin-top: 3px;
  color: #42566a;
  font-size: 15px;
  line-height: 1.6;
  gap: 10px;
}

.report-item__prompt-preview b {
  flex: 0 0 auto;
  color: var(--report-gold);
}

.report-item__prompt-preview span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-toggle {
  display: grid;
  align-content: center;
  justify-items: center;
  border-left: 1px solid #eadcc2;
  color: var(--report-gold);
  gap: 7px;
}

.report-toggle__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d9b979;
  border-radius: 50%;
}

.report-chevron {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.report-toggle__copy {
  font-size: 13px;
  font-weight: 700;
}

.report-toggle__open {
  display: none;
}

.report-item details[open] .report-toggle__closed {
  display: none;
}

.report-item details[open] .report-toggle__open {
  display: inline;
}

.report-item details[open] .report-chevron {
  transform: rotate(180deg);
}

.report-review {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  padding: 0 30px 26px;
  border-top: 1px solid #eadcc2;
  background: #fffdf8;
}

.report-review__section {
  min-width: 0;
  padding: 24px 26px;
  border-bottom: 1px dashed #dfc99e;
}

.report-review__section:nth-child(odd) {
  border-right: 1px dashed #dfc99e;
}

.report-review__section h3 {
  display: flex;
  align-items: center;
  margin: 0 0 17px;
  color: #123047;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 19px;
  line-height: 1.35;
  gap: 10px;
}

.report-review__section h3 b {
  color: #b32125;
  font-family: "Times New Roman", serif;
  font-size: 16px;
  font-weight: 600;
}

.report-review .method-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 9px;
}

.report-review .method-list li {
  padding: 7px 12px;
  border: 1px solid #dec79e;
  border-radius: 7px;
  color: #475d6d;
  background: #fffbf3;
  font-size: 14px;
  line-height: 1.3;
}

.report-review__prompt blockquote {
  margin: 0;
  padding: 15px 18px;
  border-left: 4px solid #b32125;
  color: #5c4140;
  background: #fbefea;
  font-size: 15px;
  line-height: 1.8;
}

.report-review .report-timeline {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 14px;
}

.report-review .report-timeline li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  position: relative;
  color: #41576a;
  font-size: 15px;
  line-height: 1.7;
  gap: 12px;
}

.report-review .report-timeline li:not(:last-child)::after {
  position: absolute;
  top: 32px;
  bottom: -16px;
  left: 16px;
  width: 1px;
  background: #d6aa5c;
  content: "";
}

.report-review .report-timeline b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #d6aa5c;
  border-radius: 50%;
  color: #b32125;
  background: #fffdf8;
  font-family: "Times New Roman", serif;
  font-size: 15px;
  font-weight: 600;
}

.redo-standard {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  padding: 15px 17px;
  border: 1px solid #b9cec2;
  border-radius: 9px;
  color: #355d4c;
  background: #eff5ee;
  gap: 13px;
}

.redo-standard > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #527965;
  font-size: 18px;
  font-weight: 700;
}

.redo-standard p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

.report-source-line {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  padding: 18px 26px 0;
  color: #7a6c5a;
  font-size: 13px;
  line-height: 1.5;
  gap: 20px;
}

.report-source-line span:nth-child(2) {
  margin-right: auto;
}

.report-source-action {
  color: #9e741f;
  font-weight: 700;
}

.score-fieldset {
  margin: 20px 30px 0;
}

.score-fieldset > p {
  margin: 7px 0 12px;
  color: #786b5c;
  font-size: 14px;
}

.score-input {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #d7c19a;
  border-radius: 10px;
  background: #fffdf8;
  gap: 10px;
}

.score-input input {
  width: 76px;
  min-height: 44px;
  border: 0;
  border-bottom: 2px solid #b68a42;
  color: #102940;
  background: transparent;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.score-input input:focus {
  outline: 0;
  border-bottom-color: #9f1d22;
}

.score-input span {
  color: #685c4d;
  font-size: 15px;
}

@media (max-width: 1040px) {
  .report-item summary {
    grid-template-columns: 96px minmax(0, 1fr) 70px;
  }

  .report-item__index {
    min-height: 144px;
  }

  .report-summary-main {
    padding-inline: 22px;
  }

  .report-review {
    padding-inline: 20px;
  }
}

@media print {
  .report-item details:not([open]) > *:not(summary) {
    display: block;
  }

  .report-toggle {
    display: none;
  }
}
