.check-page [hidden] {
  display: none !important;
}
.check-shell {
  width: min(740px, calc(100% - 48px));
  margin-inline: auto;
}
.check-header-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.85rem;
}
.check-header-links a {
  padding-block: 12px;
}
.check-header-links a:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
}
.check-contact-link {
  color: var(--copper-light);
}
.check-intro {
  padding-top: 32px;
}
.check-intro h1 {
  font-size: 2.2rem;
  max-width: none;
  margin-bottom: 12px;
}
.check-intro > p {
  max-width: 52ch;
}
.check-about {
  margin-top: 12px;
  font-size: 0.85rem;
}
.check-about summary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  min-height: 44px;
  color: var(--cream);
  cursor: pointer;
  list-style: none;
}
.check-about summary::-webkit-details-marker {
  display: none;
}
.check-about summary:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.check-about[open] summary .arrow {
  transform: rotate(180deg);
}
.check-about > div {
  max-width: 62ch;
  padding-block: 8px;
}
#check-app {
  margin-top: 28px;
  scroll-margin-top: 0;
}
.check-progress-nav {
  margin-bottom: 30px;
}
#check-progress {
  color: var(--copper-light);
  font-size: 0.82rem;
}
.check-progress-nav ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.check-step-button {
  display: block;
  width: 100%;
  min-height: 56px;
  border: 0;
  background: none;
  padding: 13px 0 0;
  color: var(--muted);
  text-align: left;
  font-size: 0.76rem;
}
.check-step-bar {
  display: block;
  height: 4px;
  margin-bottom: 10px;
  background: var(--steel);
  border-radius: 2px;
}
.check-step-button[aria-current="step"] {
  color: var(--cream);
}
.check-step-button[aria-current="step"] .check-step-bar,
.check-step-button.is-complete .check-step-bar {
  background: var(--copper-light);
}
.check-step-button:disabled {
  cursor: default;
}
.check-step-button:not(:disabled):hover .check-step-label {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.check-question {
  padding: 0;
  border: 0;
  min-width: 0;
}
.check-question legend {
  display: block;
  width: 100%;
  color: var(--cream);
  font-size: 2.1rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 500;
}
.check-question legend:focus,
#result-title:focus {
  outline: none;
}
.check-hint {
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
}
.check-options {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.check-choice {
  display: flex;
  gap: 16px;
  align-items: center;
  min-height: 62px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 15px 18px;
  cursor: pointer;
  transition:
    background 150ms,
    border-color 150ms;
}
.check-choice:hover {
  border-color: var(--copper-light);
}
.check-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--copper-light);
}
.check-choice input:focus-visible {
  outline: none;
}
.check-choice:has(input:focus-visible) {
  outline: 3px solid var(--copper-light);
  outline-offset: 4px;
}
.check-choice:has(input:checked) {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--charcoal);
}
.check-choice:has(input:checked) input {
  accent-color: var(--charcoal);
}
.check-choice-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
}
.check-choice-detail {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3px;
}
.check-choice:has(input:checked) .check-choice-detail {
  color: var(--charcoal);
}
.check-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
#check-back:disabled {
  opacity: 0.4;
  cursor: default;
}
.check-error {
  margin-top: 20px;
  color: var(--cream);
  padding-left: 14px;
  border-left: 3px solid var(--copper-light);
  font-size: 0.9rem;
}
.check-privacy {
  font-size: 0.77rem;
  margin-top: 26px;
  max-width: 65ch;
}
.check-fallback {
  margin-top: 36px;
  padding: 24px;
  background: var(--panel);
  border-radius: var(--radius);
}
#result-title {
  max-width: 22ch;
  font-size: 2.6rem;
}
#result-intro {
  margin-top: 20px;
}
.check-suggestions {
  padding: 0;
  list-style: none;
  margin-top: 32px;
}
.check-suggestions li {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.check-suggestions h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}
.check-suggestions p {
  font-size: 0.94rem;
}
.check-suggestions .check-first-step {
  color: var(--cream);
  margin-top: 16px;
}
.check-first-step span {
  display: block;
  color: var(--copper-light);
  margin-bottom: 5px;
  font-size: 0.78rem;
  font-weight: 600;
}
.check-next-step {
  background: var(--panel);
  padding: 30px;
  border-radius: var(--radius);
  margin-top: 16px;
}
.check-next-step h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.check-next-step .button {
  margin-top: 24px;
}
.check-next-step .check-mail-help {
  font-size: 0.77rem;
  margin-top: 14px;
}
.check-answer-summary {
  border-block: 1px solid var(--line);
  margin-top: 32px;
}
.check-answer-summary summary {
  padding-block: 18px;
  cursor: pointer;
  font-size: 0.9rem;
}
.check-answer-summary dl {
  margin: 0;
  padding-bottom: 24px;
}
.check-answer-summary dt {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}
.check-answer-summary dd {
  margin: 3px 0 0;
  font-size: 0.9rem;
}
.check-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
}
.check-text-button {
  background: none;
  border: 0;
  padding: 10px 0;
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-size: 0.85rem;
  min-height: 44px;
}
.check-footer {
  margin-top: 64px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--muted);
}
.check-footer a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 600px) {
  .check-header-links {
    gap: 0;
    font-size: 0.76rem;
  }
  .check-contact-link {
    display: none;
  }
  .check-header-links a {
    max-width: 11ch;
    line-height: 1.4;
  }
  .check-intro {
    padding-top: 32px;
  }
  .check-intro h1 {
    font-size: 1.7rem;
    max-width: 20ch;
  }
  .check-question legend {
    font-size: 1.55rem;
  }
  #result-title {
    font-size: 1.9rem;
  }
  .check-intro > p:last-child {
    font-size: 0.94rem;
  }
  #check-app {
    margin-top: 28px;
  }
  .check-progress-nav {
    margin-bottom: 24px;
  }
  .check-progress-nav ol {
    gap: 8px;
  }
  .check-step-label {
    display: none;
  }
  .check-step-button {
    min-height: 44px;
    padding-top: 12px;
  }
  .check-step-bar {
    margin-bottom: 0;
  }
  .check-choice {
    padding: 14px;
    gap: 12px;
  }
  .check-choice-title {
    font-size: 0.89rem;
  }
  .check-actions .button {
    padding-inline: 18px;
    gap: 12px;
    white-space: normal;
  }
  .check-next-step {
    padding: 24px;
  }
  .check-next-step .button {
    width: 100%;
    white-space: normal;
    gap: 12px;
  }
  .check-footer {
    flex-direction: column;
    gap: 8px;
  }
}
