.mutual-page { max-width: 1120px; }
.mutual-hero { grid-template-columns: minmax(0, 780px); }
.mutual-hero h1 { max-width: 16ch; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.module-picker { display: grid; gap: 0.8rem; margin: 1.4rem 0; }
.module-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  margin: 0;
  padding: 1rem;
  border: 2px solid var(--line);
  border-radius: 1rem;
  background: var(--paper-soft);
  cursor: pointer;
}
.module-card:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); }
.module-card input { width: 1.2rem; height: 1.2rem; margin-top: 0.25rem; accent-color: var(--plum); }
.module-card span { display: grid; gap: 0.28rem; color: var(--ink); }
.module-card strong { color: var(--plum-dark); font-size: 1.15rem; }
.module-card small { color: var(--ink); font-weight: 400; }
.module-card b { color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.recommendation { padding: 0.8rem 1rem; border-left: 4px solid var(--clay); background: var(--paper-soft); }
.selection-summary { color: var(--plum-dark); font-size: 1.08rem; font-weight: 700; }
.resume-notice .button-row { margin-top: 0.8rem; }

.mutual-assessment-head { align-items: end; margin-bottom: 1.2rem; }
.question-page { display: grid; gap: 1rem; }
.question-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(62, 38, 63, 0.06);
}
.question-card fieldset { margin: 0; }
.question-card legend { width: 100%; margin-bottom: 0.8rem; color: var(--ink); font-size: 1.05rem; }
.question-number { display: inline-block; margin-right: 0.35rem; color: var(--plum); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.rating-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.5rem; }
.rating-choice { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 50px; margin: 0; padding: 0.45rem 0.35rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--paper-soft); color: var(--ink); text-align: center; cursor: pointer; }
.rating-choice:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); background: var(--card); }
.rating-choice input { margin: 0 0 0.25rem; accent-color: var(--plum); }
.rating-choice span { font-size: 0.79rem; line-height: 1.25; }

.capacity-card h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }
.capacity-card > .small { margin-top: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem; }
.check-option { display: flex; align-items: flex-start; gap: 0.55rem; margin: 0; padding: 0.65rem 0.75rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--paper-soft); color: var(--ink); font-weight: 400; cursor: pointer; }
.check-option:has(input:checked) { border-color: var(--plum); box-shadow: inset 0 0 0 1px var(--plum); background: var(--card); }
.check-option input { flex: 0 0 auto; margin-top: 0.2rem; accent-color: var(--plum); }

.exposure-answer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.exposure-context { margin-top: 0.55rem; color: var(--muted); font-size: 0.88rem; }

.mutual-save-tools { margin-top: 2rem; }
.mutual-save-tools > summary, .glossary-details > summary, .unmeasured-details > summary { color: var(--plum); font-size: 1.08rem; font-weight: 700; cursor: pointer; }
.email-row, .email-results { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 0.8rem; align-items: end; }
.email-row label, .email-results label { margin: 0; }
.email-row button, .email-results button { min-height: 49px; }

.mutual-interpretation { border-width: 2px; }
.mutual-interpretation h2 { margin-bottom: 0.8rem; }
.mutual-interpretation p { max-width: 78ch; }
.mutual-interpretation p:last-child { margin-bottom: 0; }
.scope-note { padding-top: 0.8rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }

.next-step-grid, .role-result-grid, .strength-result-grid, .capacity-result-grid, .exposure-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.next-step-card, .role-result, .strength-result, .capacity-result, .exposure-result {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(62, 38, 63, 0.06);
  break-inside: avoid;
}
.next-step-card { border-top: 5px solid var(--clay); }
.next-step-card h3, .role-result h3, .strength-result h3, .capacity-result h3, .exposure-result h3 { margin-bottom: 0.45rem; }
.result-score { display: inline-block; margin-bottom: 0.65rem; color: var(--plum); font-weight: 700; }
.source-label { color: var(--muted); font-size: 0.82rem; }
.result-bar { height: 0.6rem; margin: 0.45rem 0 0.9rem; border-radius: 999px; overflow: hidden; background: var(--paper-soft); }
.result-bar span { display: block; height: 100%; border-radius: inherit; background: var(--clay); }
.role-result ol, .strength-result ul { margin-bottom: 0; }
.result-watch { margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px solid var(--line); font-size: 0.9rem; }

.capacity-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.capacity-result ul { margin-bottom: 0; }
.capacity-empty { color: var(--muted); }

.exposure-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.exposure-result-grid.single-result { grid-template-columns: minmax(0, 1fr); }
.exposure-result { position: relative; padding-top: 1.4rem; border-top-width: 8px; }
.exposure-result.green { border-top-color: #3f8469; }
.exposure-result.yellow { border-top-color: #d0a329; }
.exposure-result.orange { border-top-color: #c46830; }
.exposure-result.red { border-top-color: #9e3249; }
.band-name { display: inline-block; margin-bottom: 0.35rem; font-size: 1.35rem; font-weight: 700; }
.band-qualifier { display: block; color: var(--muted); font-size: 0.88rem; }

.glossary-details { margin-top: 1.2rem; }
.glossary-grid { display: grid; gap: 1rem; margin-top: 1.2rem; }
.glossary-item { padding-top: 1rem; border-top: 1px solid var(--line); }
.glossary-item:first-child { padding-top: 0; border-top: 0; }
.glossary-item h3 { margin-bottom: 0.35rem; }
.glossary-item p { margin: 0.3rem 0; }
.glossary-item .result-bar { max-width: 420px; }
.exposure-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.unmeasured-details { margin-top: 2rem; }
.results-actions { margin-top: 2rem; }
.email-results { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.email-results .status { grid-column: 1 / -1; margin: 0; }
.email-results .small { grid-column: 1 / -1; margin: 0; }
.reset-panel { margin-top: 1rem; border: 2px solid var(--red); }
.danger { border-color: var(--red) !important; color: var(--red) !important; }

@media (max-width: 980px) {
  .next-step-grid, .role-result-grid, .strength-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .rating-row { grid-template-columns: 1fr; }
  .rating-choice { min-height: 0; flex-direction: row; justify-content: flex-start; gap: 0.45rem; text-align: left; }
  .rating-choice input { margin: 0; }
  .rating-choice span { font-size: 0.9rem; }
  .check-grid, .exposure-answer, .next-step-grid, .role-result-grid, .strength-result-grid, .capacity-result-grid, .exposure-result-grid, .exposure-glossary { grid-template-columns: 1fr; }
  .email-row, .email-results { grid-template-columns: 1fr; }
  .email-row button, .email-results button { width: 100%; }
}

@media print {
  .mutual-hero, #resume-notice, #setup, #assessment, .results-actions, .reset-panel, .glossary-details > summary, .unmeasured-details > summary { display: none !important; }
  #results[hidden] { display: none !important; }
  #results:not([hidden]) { display: block !important; }
  .glossary-details, .unmeasured-details { display: block !important; }
  .glossary-details > .glossary-grid { display: grid !important; }
  .unmeasured-details > p { display: block !important; }
  .next-step-grid, .role-result-grid, .strength-result-grid, .capacity-result-grid, .exposure-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .next-step-card, .role-result, .strength-result, .capacity-result, .exposure-result { box-shadow: none; break-inside: avoid-page; page-break-inside: avoid; }
}
