.engagement {
  --engagement-wash: #f5f8fb;
  width: 100%;
  max-width: 688px;
  margin-inline: auto;
  padding: 48px 24px 64px;
  color: var(--ink);
}
.engagement [hidden] {
  display: none !important;
}
.engagement h1,
.engagement h2,
.engagement legend {
  font-family: Manrope, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.31;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.engagement p {
  font-size: 15px;
  line-height: 1.6;
}
.engagement a {
  color: var(--blue);
  text-underline-offset: 4px;
}
.engagement a:hover {
  text-decoration: underline;
}
.engagement :is(a, button, input, textarea, legend, [tabindex]):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.engagement .engagement-label {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}
.engagement-index-intro,
.engagement-tool-list {
  display: grid;
  gap: 24px;
}
.engagement-index-intro {
  margin-bottom: 24px;
}
.engagement-tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 144px;
  align-items: center;
  gap: 16px;
  border-radius: 16px;
  padding: 20px;
  background: var(--engagement-wash);
}
.engagement-card-copy {
  display: grid;
  gap: 12px;
}
.engagement-tool-card h2,
.engagement-further h3,
.engagement-result-items h3 {
  font: 600 16px/24px Inter, sans-serif;
}
.engagement-card-art {
  display: block;
  width: 144px;
  height: 96px;
  object-fit: contain;
  border-radius: 12px;
}
.engagement-tool-card > .engagement-button {
  grid-column: 1 / -1;
}
.engagement .engagement-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #fff;
  background: var(--blue);
  font: 600 16px/24px Inter, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease;
}
.engagement .engagement-button:hover {
  background: #080bb7;
}
.engagement .engagement-button-secondary {
  color: var(--blue);
  background: #fff;
}
.engagement .engagement-button-quiet {
  color: var(--muted);
  background: #fff;
}
.engagement :is(.engagement-button-secondary, .engagement-button-quiet):hover {
  background: var(--engagement-wash);
}
.engagement-directory-link {
  margin-top: 24px;
}
.engagement-close {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}
.engagement-close a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  font-weight: 600;
}
.engagement-identity {
  display: grid;
  gap: 8px;
  margin-bottom: 48px;
}
.engagement-identity h1 {
  color: var(--blue);
  font: 600 14px/20px Inter, sans-serif;
}
.engagement-identity p,
.engagement .engagement-hint,
.engagement-local-note,
.engagement-result-items p {
  color: var(--muted);
}
.engagement [data-progress] {
  margin-bottom: 12px;
  text-transform: uppercase;
}
.engagement-question {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0 0 32px;
}
.engagement-question legend {
  width: 100%;
  padding: 0;
}
.engagement-question .engagement-hint {
  margin-top: 12px;
  margin-bottom: 24px;
}
.engagement-choices {
  display: grid;
  gap: 12px;
}
.engagement-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: 600 16px/24px Inter, sans-serif;
  cursor: pointer;
}
.engagement-choice:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: var(--engagement-wash);
}
.engagement-choice:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.engagement-choice input {
  appearance: auto;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--blue);
}
.engagement-choice input:focus-visible {
  outline: none;
}
.engagement-choice span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.engagement-step-actions,
.engagement-result-actions,
.engagement-reading-links {
  display: grid;
  gap: 12px;
}
.engagement-step-actions {
  margin-top: -8px;
}
.engagement-local-note {
  margin-top: 24px;
}
.engagement .engagement-error {
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  margin-bottom: 24px;
  background: var(--engagement-wash);
  font-weight: 600;
}
.engagement-result > :is(h2, .engagement-hint) {
  margin-top: 12px;
}
.engagement-result-items {
  display: grid;
  gap: 20px;
  padding: 20px;
  margin-block: 24px;
  border-radius: 16px;
  background: var(--engagement-wash);
}
.engagement-result-items p {
  margin-top: 4px;
}
.engagement-copy-status:empty {
  display: none;
}
.engagement-copy-status,
.engagement-copy-fallback {
  margin-top: 12px;
}
.engagement-copy-fallback {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  resize: vertical;
}
.engagement-result-actions,
.engagement-further {
  margin-top: 24px;
}
.engagement-further-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.engagement-further-heading img {
  flex: 0 0 120px;
  width: 120px;
  height: 80px;
  object-fit: contain;
  border-radius: 12px;
}
.engagement-reading-links a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--engagement-wash);
  font-size: 15px;
  line-height: 24px;
}
.engagement-nojs {
  padding: 20px;
  margin-bottom: 32px;
  border-radius: 16px;
  background: var(--engagement-wash);
}
@media (max-width: 600px) {
  .engagement-tool {
    padding-top: 16px;
  }
  .engagement-identity {
    margin-bottom: 32px;
  }
  .engagement-identity p {
    display: none;
  }
  .engagement-tool-card {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
  .engagement-card-art {
    width: 96px;
    height: 64px;
  }
}
@media (max-width: 360px) {
  .engagement-tool-card {
    grid-template-columns: 1fr;
  }
  .engagement-card-art {
    grid-row: 1;
    width: 120px;
    height: 80px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .engagement .engagement-button {
    transition: none;
  }
}
