.history-mock-page {
  background: #f7f3ea;
  color: #2c241b;
}

.history-mock-page .ona-mock-back,
.history-mock-page .ona-question header span,
.history-mock-page .ona-eyebrow,
.history-mock-page .ona-result .ona-eyebrow {
  color: #9a5a08;
}

.history-mock-page .ona-mock-hero {
  background:
    radial-gradient(circle at 90% 5%, rgba(255, 233, 166, .2), transparent 24%),
    linear-gradient(135deg, #3b2410, #8a4d08 62%, #c77a11);
  box-shadow: 0 22px 60px rgba(92, 51, 7, .2);
}

.history-mock-page .ona-mock-hero .ona-eyebrow {
  color: #ffe2a6;
}

.history-mock-page .ona-mock-hero p {
  color: #fff4dc;
}

.history-mock-page .ona-question,
.history-mock-page .history-match-row,
.history-mock-page .ona-result {
  border-color: #e6d9c7;
}

.history-mock-page .ona-options label:hover {
  border-color: #c77a11;
  background: #fffaf0;
}

.history-mock-page .ona-option-key {
  color: #7b4305;
  background: #f7ead4;
}

.history-mock-page .ona-submit button,
.history-mock-page .ona-result button {
  background: #c5730a;
}

.history-mock-page .ona-result {
  border-color: #b76808;
}

.history-source-note {
  margin: 16px 0 0;
  color: #fff1cf;
  font-size: .82rem;
  font-weight: 700;
}

.history-official-source-link {
  display: inline-flex;
  margin-top: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: #fff;
  color: #8a4d00;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(108, 63, 0, 0.12);
}

.history-question-diagram {
  margin: 1rem 0;
  padding: 0.75rem;
  border: 1px solid rgba(174, 112, 29, 0.2);
  border-radius: 18px;
  background: #fff;
}

.history-question-diagram img {
  display: block;
  width: min(100%, 720px);
  height: auto;
  margin: 0 auto;
}

.history-session-label {
  display: inline-flex;
  align-items: center;
  margin: 2px auto 13px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 999px;
  color: #3b2410;
  background: #ffe2a6;
  box-shadow: 0 8px 22px rgba(52, 29, 7, .18);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .01em;
}

.history-coverage {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.history-coverage span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  color: #fff4dc;
  background: rgba(52,29,7,.28);
  font-size: .78rem;
  font-weight: 700;
}

.history-provenance-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #216044;
  background: #e8f6ee;
  font-size: .72rem;
  font-weight: 850;
}

.history-provenance-badge.is-editorial {
  color: #865007;
  background: #fff1d2;
}

.history-timer {
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(52, 29, 7, .34) !important;
  font-variant-numeric: tabular-nums;
}

.history-shared-bank {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 17px;
  border: 1px solid #e1cfb5;
  border-radius: 15px;
  background: #fff8e9;
}

.history-shared-bank strong {
  color: #6f410b;
  line-height: 1.5;
}

.history-shared-bank ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #514536;
  line-height: 1.5;
}

.history-y2-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.history-y2-choice select {
  min-width: 180px;
  min-height: 46px;
  padding: 9px 36px 9px 12px;
  border: 1px solid #d5cac3;
  border-radius: 11px;
  color: #2c241b;
  background: #fff;
  font: inherit;
}

.history-match {
  display: grid;
  gap: 11px;
}

.history-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  border: 1px solid #dfd5ce;
  border-radius: 13px;
  background: #fff;
}

.history-match-row strong {
  line-height: 1.5;
}

.history-match-row select {
  width: 100%;
  min-height: 44px;
  padding: 9px 34px 9px 11px;
  border: 1px solid #d5cac3;
  border-radius: 10px;
  color: #2c241b;
  background: #fff;
  font: inherit;
}

.history-match-options {
  display: grid;
  gap: 4px;
  margin: 13px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  color: #5e5144;
  background: #fbf5e9;
  list-style: none;
  line-height: 1.65;
}

.history-explanation {
  display: none;
  margin: 8px 0 0;
  color: #66584a;
  font-size: .9rem;
  line-height: 1.55;
}

.ona-question.is-correct .history-explanation,
.ona-question.is-wrong .history-explanation {
  display: block;
}

.history-result-detail {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 17px 0;
}

.history-result-detail span {
  padding: 8px 11px;
  border-radius: 10px;
  background: #f5ead8;
  color: #6c430f;
  font-size: .86rem;
  font-weight: 800;
}

@media (max-width: 700px) {
  .history-match-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
