.competition-entry {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--navy-wash);
  border: 1px solid var(--hair);
  border-radius: 0.3rem;
}

.competition-entry h3 { margin: 0.15rem 0 0; font-family: var(--f-display); font-size: 1.2rem; }
.competition-entry p:last-child { margin: 0.35rem 0 0; color: var(--graphite-2); line-height: 1.5; }
.eyebrow-inline, .amc-kicker {
  margin: 0;
  font-family: var(--f-type);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
}

.amc-exam-list { list-style: none; margin: 0; padding: 0; }
.amc-exam-list > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hair);
}
.amc-exam-list > li:first-child { border-top: 1px solid var(--hair); }
.amc-exam-list h3 { margin: 0.2rem 0 0; font-family: var(--f-display); font-size: 1.35rem; }
.amc-exam-list p { max-width: 60ch; margin: 0.45rem 0 0; line-height: 1.5; color: var(--graphite-2); }
.amc-exam-list .amc-status { font-family: var(--f-type); font-size: 0.76rem; color: var(--navy); }

.amc-layout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: start;
}

.amc-question-map { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.amc-question-map form { margin: 0; }
.amc-number {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  font-family: var(--f-type);
  font-size: 0.72rem;
  color: var(--graphite-3);
  background: var(--sheet);
  border: 1px solid var(--hair-hard);
  border-radius: 50%;
}
.amc-number.answered { color: white; background: var(--navy); border-color: var(--navy); }
.amc-number.helped:not(.answered) { background: var(--navy-wash); border-style: dashed; }
.amc-number.current { outline: 3px solid var(--navy-soft); outline-offset: 2px; }

.amc-paper {
  min-width: 0;
  padding: clamp(1.15rem, 4vw, 2.2rem);
  background: var(--sheet);
  border: 1px solid var(--hair-hard);
  border-radius: 0.3rem;
  box-shadow: var(--shadow);
}
.amc-problem-head { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--hair); font-family: var(--f-type); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
.amc-stem { margin: 1.4rem 0; font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem); line-height: 1.55; text-wrap: pretty; }
.amc-answer fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.amc-actions, .amc-pager { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.amc-actions form, .amc-pager form { margin: 0; }
.amc-pager { justify-content: space-between; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--hair); }
.amc-result, .amc-hint, .amc-walkthrough { margin: 1.25rem 0; padding: 1rem 1.1rem; border: 1px solid var(--hair); border-radius: 0.3rem; background: var(--navy-wash); }
.amc-result.correct { border-color: color-mix(in srgb, var(--correct) 45%, var(--hair)); }
.amc-result.missed { border-color: color-mix(in srgb, var(--miss) 45%, var(--hair)); }
.amc-result p, .amc-hint p { margin: 0; line-height: 1.55; }
.amc-result p + p { margin-top: 0.35rem; }
.amc-verdict { font-family: var(--f-display); font-size: 1.3rem; font-weight: 600; }
.amc-walkthrough h2 { margin: 0.2rem 0 0.7rem; font-family: var(--f-display); }
.amc-walkthrough ol { margin: 0; padding-left: 1.3rem; }
.amc-walkthrough li { padding-left: 0.3rem; line-height: 1.6; }
.amc-walkthrough li + li { margin-top: 0.45rem; }
.amc-takeaway { margin: 1rem 0 0; line-height: 1.55; }

@media (max-width: 56rem) {
  .amc-layout { grid-template-columns: minmax(0, 1fr); }
  .amc-question-map { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 36rem) {
  .amc-exam-list > li { grid-template-columns: minmax(0, 1fr); }
  .amc-exam-list .check-link { width: 100%; box-sizing: border-box; }
  .amc-question-map { grid-template-columns: repeat(5, 1fr); }
  .amc-problem-head { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
}
