.marking-check {
  max-width: 900px;
}

.marking-check h1 {
  max-width: 820px;
}

.marking-back {
  display: inline-block;
  margin-bottom: 28px;
  color: #765617;
  text-decoration: none;
  border-bottom: 1px solid #b69648;
  padding-bottom: 3px;
  font-weight: 600;
}

.marking-check-intro {
  max-width: 720px;
  margin-bottom: 40px;
}

.self-check-intro p {
  margin: 0 0 12px;
}

.self-check-intro p:last-child {
  margin-bottom: 0;
}

.marking-form {
  max-width: 820px;
}

.marking-question {
  margin: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid #e5ded1;
}

.marking-question:first-child {
  border-top: 0;
  padding-top: 0;
}

.marking-question legend {
  max-width: 780px;
  margin: 0 0 12px;
  padding: 0;
  color: #2d1b05;
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
}

.marking-hint {
  max-width: 740px;
  margin: 0 0 20px;
  color: #62513b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.marking-hint a {
  color: #765617;
  text-underline-offset: 3px;
}

.marking-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 700px;
}

.marking-option {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c5b79d;
  border-radius: 6px;
  background: #fff;
  font-weight: 500;
  cursor: pointer;
}

.marking-option input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: #8e6828;
}

.marking-option:has(input:checked) {
  border-color: #8e6828;
  background: #f5f0e5;
}

.marking-option:focus-within {
  outline: 3px solid #b69648;
  outline-offset: 2px;
}

.marking-result {
  margin-top: 20px;
  padding: 28px;
  border: 1px solid #e5ded1;
  border-radius: 11px;
  background: #f5f0e5;
}

.marking-result h2 {
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
}

.marking-good,
.marking-result-prompt {
  margin: 0;
  color: #56411b;
  line-height: 1.6;
}

.marking-result-item {
  padding: 20px 0;
  border-top: 1px solid #ded5c5;
}

.marking-result-item:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.marking-result-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  line-height: 1.5;
}

.marking-result-item p {
  margin: 0;
  color: #56411b;
  line-height: 1.6;
}

.marking-result-item .marking-legal {
  margin-top: 9px;
  color: #62513b;
  font-size: 0.9rem;
}

.marking-disclaimer {
  margin: 22px 0 0;
  color: #62513b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.self-employed-labor {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #ded5c5;
}

.self-employed-labor > h3 {
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.7vw, 1.65rem);
  font-weight: 400;
  line-height: 1.35;
}

.self-employed-labor-note {
  margin: 18px 0 0;
  color: #56411b;
  line-height: 1.6;
}

@media (max-width: 700px) {
  .marking-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marking-question {
    padding: 25px 0;
  }

  .marking-result {
    padding: 22px;
  }
}

@media (max-width: 390px) {
  .marking-options {
    grid-template-columns: 1fr;
  }
}
