.skip-link {
  background: var(--bright, #f6bd16);
  color: #101113;
  font-size: 13px;
  font-weight: 800;
  left: 18px;
  padding: 12px 16px;
  position: fixed;
  top: -80px;
  transition: top .18s;
  z-index: 1000;
}

.skip-link:focus {
  top: 18px;
}

button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #f6bd16;
  outline-offset: 4px;
}

.question-remaining {
  color: #8b6500;
  font-weight: 800;
}

.methodology-reading-guide {
  background: #fff8e8;
  border: 1px solid rgba(139, 101, 0, .22);
  display: grid;
  gap: 12px;
  grid-template-columns: 210px 1fr;
  margin-top: 28px;
  padding: 25px 28px;
}

.methodology-reading-guide b {
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.methodology-reading-guide p {
  color: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}

.confidence-warning {
  background: #fff4d7;
  border-left: 5px solid #e8a912;
  margin: 24px auto;
  max-width: 1120px;
  padding: 25px 30px;
}

.confidence-warning b {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.confidence-warning p {
  color: #626473;
  font-size: 13px;
  line-height: 1.7;
  margin: 8px 0 0;
}

.measurement-history {
  background: #101113;
  color: #fff;
  margin: 0 auto;
  max-width: 1220px;
  padding: 76px clamp(28px, 7vw, 84px);
}

.measurement-history .section-label {
  color: #f6bd16;
}

.measurement-history h2 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 14px 0 18px;
  max-width: 850px;
}

.history-lead {
  color: #bcb9c6;
  line-height: 1.7;
  margin: 0;
}

.history-metrics {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 40px;
}

.history-metric {
  background: #1d1d1f;
  border-top: 3px solid #6e6c74;
  min-height: 190px;
  padding: 25px;
}

.history-metric.tone-good {
  border-color: #6bc095;
}

.history-metric.tone-warning {
  border-color: #e8a912;
}

.history-metric-label {
  color: #a8a5b2;
  display: block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  min-height: 32px;
  text-transform: uppercase;
}

.history-metric strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 52px;
  font-weight: 400;
  line-height: 1;
  margin: 12px 0 7px;
}

.history-metric small {
  color: #8f8c99;
  display: block;
  font-size: 10px;
}

.history-metric b {
  color: #fff;
  display: block;
  font-size: 11px;
  margin-top: 16px;
}

.history-metric.tone-good b {
  color: #9de1bf;
}

.history-metric.tone-warning b {
  color: #f6d987;
}

.dimension-change-box {
  background: #f6f4ef;
  color: #101113;
  margin-top: 28px;
  padding: 30px 34px;
}

.dimension-change-box h3 {
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 20px;
}

.dimension-change-row {
  align-items: center;
  border-top: 1px solid rgba(16, 17, 19, .13);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto 54px;
  padding: 14px 0;
}

.dimension-change-row span {
  font-size: 13px;
  font-weight: 700;
}

.dimension-change-row small {
  color: #626473;
}

.dimension-change-row b {
  color: #8b6500;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  text-align: right;
}

.dimension-change-row b.unchanged {
  color: #88868f;
}

.history-actions {
  margin-top: 24px;
}

.measurement-history .secondary {
  border-color: rgba(255, 255, 255, .34);
  color: #fff;
}

.measurement-history .secondary:hover {
  background: #fff;
  color: #101113;
}

.history-privacy {
  color: #85828f;
  font-size: 10px;
  line-height: 1.6;
  margin: 24px 0 0;
}

.history-empty {
  background: #8b6500;
}

.history-empty .section-label,
.history-empty .history-privacy {
  color: #fff0bd;
}

.history-empty .history-lead {
  color: #fff;
  max-width: 820px;
}

@media (max-width: 900px) {
  .history-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .methodology-reading-guide {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .question-remaining {
    display: block;
    margin-top: 7px;
  }

  .quiz-meta {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .history-metrics {
    grid-template-columns: 1fr;
  }

  .history-metric {
    min-height: 165px;
  }

  .dimension-change-row {
    gap: 10px;
    grid-template-columns: 1fr auto;
  }

  .dimension-change-row small {
    grid-column: 1;
  }

  .dimension-change-row b {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .measurement-history {
    margin: 0;
    padding: 58px 21px;
  }
}

@media print {
  .measurement-history,
  .confidence-warning,
  .skip-link {
    display: none !important;
  }
}
