/* Version 19: responsive priority recommendation cards
   Priority recommendations now use a consistent outer card in both one- and
   two-column layouts. Wide containers switch to two columns automatically,
   while narrower layouts remain one column. */

.hwa {
  --hwa-ink: #0a2239;
  --hwa-ink-strong: #071a2f;
  --hwa-copy: #405466;
  --hwa-muted: #697d8d;
  --hwa-soft: #8fa0ad;
  --hwa-line: #dfe7ed;
  --hwa-line-strong: #cbd8e1;
  --hwa-surface: #f6f9fb;
  --hwa-surface-2: #eef5f8;
  --hwa-accent: #22b8d6;
  --hwa-accent-dark: #087d99;
  --hwa-accent-soft: #e9f9fc;
  --hwa-focus: #0b6f86;
  --hwa-success: #15856f;
  --hwa-danger: #b4233c;
  --hwa-sticky-offset: 130px;
  color: var(--hwa-ink);
  scroll-margin-top: var(--hwa-sticky-offset);
  font-family: inherit;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hwa *,
.hwa *::before,
.hwa *::after {
  box-sizing: border-box;
}

.hwa button,
.hwa input {
  font: inherit;
}

.hwa button,
.hwa label,
.hwa a {
  -webkit-tap-highlight-color: transparent;
}

.hwa-data {
  display: none !important;
}

/* Module frame: intentionally transparent so the assessment belongs to the page. */
.hwa .hwa-shell {
  width: min(1240px, calc(100% - 40px));
  margin: 18px auto 64px;
  background: transparent;
}

.hwa .hwa-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 8px 18px;
  border-bottom: 1px solid var(--hwa-line);
}

.hwa .eyebrow,
.hwa .brand,
.hwa .kicker {
  margin: 0;
}

.hwa .eyebrow,
.hwa .kicker {
  color: var(--hwa-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hwa .brand {
  margin-top: 4px;
  color: var(--hwa-ink-strong);
  font-size: 17px;
  font-weight: 700;
}

.hwa .text-button {
  padding: 6px 0;
  font-size: 14px;
  color: var(--hwa-accent-dark);
  background: none;
  border: 0;
  font-weight: 700;
  cursor: pointer;
}

.hwa .text-button:hover {
  color: var(--hwa-ink-strong);
}

.hwa .text-button:focus-visible,
.hwa .button:focus-visible,
.hwa .rating-card:focus-within,
.hwa .na:focus-within,
.hwa .review-item:focus-visible,
.hwa .course-link:focus-visible,
.hwa .modal-close:focus-visible {
  outline: 3px solid rgba(34, 184, 214, 0.32);
  outline-offset: 3px;
}

.hwa .screen {
  display: none;
  padding: 46px 8px 12px;
  scroll-margin-top: var(--hwa-sticky-offset);
}

.hwa .screen.active {
  display: block;
}

.hwa h1,
.hwa h2,
.hwa h3,
.hwa h4 {
  color: var(--hwa-ink-strong);
}

.hwa h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(36px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hwa .intro-title-break {
  display: block;
}

.hwa h2 {
  margin: 0;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.hwa .lead,
.hwa .heading > p:last-child {
  max-width: 780px;
  color: var(--hwa-copy);
  font-size: 18px;
  line-height: 1.65;
}

/* Intro */
.hwa .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(390px, 0.9fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: start;
}

.hwa .lead {
  margin: 18px 0 0;
}

.hwa .intro-list {
  display: grid;
  gap: 12px;
  max-width: 700px;
  margin: 30px 0 28px;
  padding: 0;
  list-style: none;
  color: var(--hwa-copy);
}

.hwa .intro-list li {
  position: relative;
  padding-left: 27px;
  font-size: 16px;
  line-height: 1.55;
  list-style: none;
}

.hwa .intro-list li::marker {
  content: '';
}

.hwa .intro-list li::before {
  content: '✓' !important;
  position: absolute;
  left: 1px;
  top: 0;
  display: block;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--hwa-success);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  transform: none !important;
}

.hwa .intro-list li::after {
  content: none !important;
  display: none !important;
}

.hwa .scale-card {
  padding: 26px 28px;
  background: var(--hwa-surface);
  border: 1px solid var(--hwa-line);
  border-radius: 16px;
}

.hwa .scale-card h2 {
  margin-bottom: 20px;
  font-size: 20px;
}

.hwa .scale {
  display: grid;
  gap: 14px;
}

.hwa .scale > div {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
}

.hwa .scale > div > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--hwa-ink-strong);
  background: #fff;
  border: 1px solid var(--hwa-line-strong);
  border-radius: 50%;
  font-size: 14px;
}

.hwa .scale span {
  color: var(--hwa-copy);
  font-size: 14px;
  line-height: 1.5;
}

.hwa .scale span strong {
  display: block;
  margin-bottom: 2px;
  color: var(--hwa-ink-strong);
}

/* Buttons */
.hwa .button {
  min-height: 48px;
  font-size: 15px;
  padding: 12px 23px;
  border-radius: 9px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.hwa .button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.hwa .button.primary {
  color: #fff;
  background: var(--hwa-ink-strong);
  border: 1px solid var(--hwa-ink-strong);
}

.hwa .button.primary:hover:not(:disabled) {
  background: #0d2a45;
  border-color: #0d2a45;
}

.hwa .button.secondary {
  color: var(--hwa-ink-strong);
  background: #fff;
  border: 1px solid var(--hwa-line-strong);
}

.hwa .button.secondary:hover:not(:disabled) {
  border-color: var(--hwa-ink-strong);
}

.hwa .button:disabled {
  color: #9ba8b2;
  background: #f1f4f6;
  border-color: #e2e8ec;
  cursor: not-allowed;
  transform: none;
}

/* Question progress */
.hwa .progress-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 420px);
  gap: 44px;
  align-items: end;
  max-width: 980px;
  margin: 0 auto 38px;
}

.hwa .question-area {
  margin: 0;
  color: var(--hwa-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hwa .progress-text {
  margin: 7px 0 0;
  color: var(--hwa-muted);
  font-size: 13px;
  font-weight: 600;
}

.hwa .track {
  height: 5px;
  overflow: hidden;
  background: #e7edf1;
  border-radius: 999px;
}

.hwa .track span {
  display: block;
  height: 100%;
  background: var(--hwa-accent);
  border-radius: inherit;
  transition: width 0.25s ease;
}

/* Question body: no dark nested card. */
.hwa .question-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.hwa .question-title {
  margin: 0 0 13px;
  color: var(--hwa-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hwa .question-copy {
  max-width: 900px;
  color: var(--hwa-ink-strong);
  font-size: clamp(23px, 1.7vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.012em;
}

.hwa .rating-group {
  margin: 42px 0 0;
  padding: 0;
  border: 0;
}

.hwa .rating-group legend {
  padding: 0;
  color: var(--hwa-ink-strong);
  font-size: 16px;
  font-weight: 700;
}

.hwa .rating-hint {
  margin: 5px 0 17px;
  color: var(--hwa-muted);
  font-size: 14px;
}

.hwa .ratings {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hwa .rating-card {
  position: relative;
  display: flex;
  min-height: 98px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  color: var(--hwa-ink-strong);
  background: #fff;
  border: 1px solid var(--hwa-line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.hwa .rating-card:hover {
  border-color: #8ca5b6;
  transform: translateY(-1px);
}

.hwa .rating-card input,
.hwa .na input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hwa .radio-mark {
  display: block;
  width: 27px;
  height: 27px;
  background: #fff;
  border: 2px solid #8fa3b2;
  border-radius: 50%;
  box-shadow: inset 0 0 0 6px transparent;
}

.hwa .rating-card b {
  color: var(--hwa-ink-strong);
  font-size: 18px;
  line-height: 1;
}

.hwa .rating-card > span:last-child {
  color: var(--hwa-copy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hwa .rating-card.selected {
  background: var(--hwa-accent-soft);
  border-color: var(--hwa-accent-dark);
  box-shadow: 0 0 0 2px rgba(34, 184, 214, 0.12);
}

.hwa .rating-card.selected .radio-mark {
  background: var(--hwa-accent);
  border-color: var(--hwa-accent-dark);
  box-shadow: inset 0 0 0 6px #fff;
}

.hwa .rating-card.selected > span:last-child {
  color: var(--hwa-ink-strong);
}

.hwa .rating-or {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 17px auto 13px;
  color: var(--hwa-soft);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hwa .rating-or::before,
.hwa .rating-or::after {
  content: '';
  width: 44px;
  height: 1px;
  background: var(--hwa-line);
}

.hwa .na {
  position: relative;
  font-size: 14px;
  display: flex;
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0 auto;
  padding: 11px 18px;
  color: var(--hwa-copy);
  background: #fff;
  border: 1px solid var(--hwa-line-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.hwa .na:hover {
  border-color: #8ca5b6;
}

.hwa .na .radio-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.hwa .na.selected {
  color: var(--hwa-ink-strong);
  background: var(--hwa-accent-soft);
  border-color: var(--hwa-accent-dark);
}

.hwa .na.selected .radio-mark {
  background: var(--hwa-accent);
  border-color: var(--hwa-accent-dark);
  box-shadow: inset 0 0 0 5px #fff;
}

.hwa .validation {
  margin: 15px 0 0;
  color: var(--hwa-danger);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.hwa .nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--hwa-line);
}

/* Review */
.hwa .heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.hwa .heading .kicker {
  margin-bottom: 9px;
}

.hwa .heading > p:last-child {
  margin: 16px 0 0;
}

.hwa .review-list {
  display: grid;
  max-width: 1080px;
  margin: 0 auto;
  border-top: 1px solid var(--hwa-line);
}

.hwa .review-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 17px 4px;
  color: var(--hwa-ink-strong);
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hwa-line);
  cursor: pointer;
  transition: background 0.16s ease;
}

.hwa .review-item:hover {
  background: var(--hwa-surface);
}

.hwa .review-number {
  color: var(--hwa-accent-dark);
  font-weight: 700;
}

.hwa .review-item strong {
  color: var(--hwa-ink-strong);
  font-size: 15px;
}

.hwa .review-item small {
  display: block;
  margin-top: 3px;
  color: var(--hwa-muted);
  font-size: 13px;
}

.hwa .review-answer {
  padding: 6px 10px;
  color: var(--hwa-ink-strong);
  background: var(--hwa-surface-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

/* Results */
.hwa .overview {
  display: grid;
  grid-template-columns: minmax(340px, 0.36fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 60px);
  align-items: stretch;
  margin-top: 38px;
}

.hwa .overall {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 280px;
  height: 100%;
  padding: 28px;
  background: var(--hwa-surface);
  border: 1px solid var(--hwa-line);
  border-radius: 14px;
}

.hwa .overall-label {
  color: var(--hwa-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hwa .overall-score {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  min-height: 0;
  padding: 20px 0;
  text-align: center;
}

.hwa .overall-score strong {
  margin: 0;
  color: var(--hwa-ink-strong);
  font-size: clamp(52px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.hwa .overall-score span {
  color: var(--hwa-ink-strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.hwa .overall small {
  color: var(--hwa-copy);
  font-size: 14px;
  line-height: 1.5;
}

.hwa .area-profile {
  display: grid;
  height: 100%;
  align-self: stretch;
  border-top: 1px solid var(--hwa-line);
}

.hwa .area-row {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.45fr) auto;
  gap: 18px;
  align-items: center;
  padding: 15px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hwa-line);
  border-radius: 0;
}

.hwa .area-name {
  color: var(--hwa-ink-strong);
  font-size: 15px;
  font-weight: 700;
}

.hwa .area-track {
  height: 7px;
  overflow: hidden;
  background: #e6edf1;
  border-radius: 999px;
}

.hwa .area-track span {
  display: block;
  height: 100%;
  background: var(--hwa-accent);
  border-radius: inherit;
}

.hwa .area-rating {
  color: var(--hwa-copy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.hwa .result-section {
  margin-top: 62px;
}

.hwa .result-section > .kicker {
  margin-bottom: 8px;
}

.hwa .section-intro {
  max-width: 820px;
  margin: 10px 0 24px;
  color: var(--hwa-copy);
  font-size: 16px;
  line-height: 1.65;
}

.hwa .combined-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hwa-line);
}

.hwa .capability-block {
  padding: 32px 0 36px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hwa-line);
  border-radius: 0;
}

.hwa .capability-block.progression {
  padding-left: 20px;
  border-left: 3px solid var(--hwa-success);
}

.hwa .capability-head {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

.hwa .capability-meta {
  margin: 0 0 7px;
  color: var(--hwa-muted);
  font-size: 12px;
  font-weight: 700;
}

.hwa .capability-block h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.35;
}

.hwa .rating-pill {
  padding: 7px 11px;
  color: #5d3fa3;
  background: #f2edff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.hwa .progression .rating-pill {
  color: #0f6e5c;
  background: #e9f8f4;
}

.hwa .development-detail {
  max-width: 850px;
  margin-top: 22px;
}

.hwa .development-label,
.hwa .next-step-label {
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hwa .development-label {
  color: #6e55aa;
}

.hwa .development-detail h4 {
  margin: 0;
  color: var(--hwa-ink-strong);
  font-size: 18px;
  line-height: 1.4;
}

.hwa .development-detail p:last-child {
  max-width: 820px;
  margin: 9px 0 0;
  color: var(--hwa-copy);
  font-size: 15px;
  line-height: 1.65;
}

.hwa .next-step {
  max-width: 920px;
  margin-top: 24px;
  padding: 22px 24px 23px;
  background: var(--hwa-surface);
  border: 1px solid var(--hwa-line);
  border-left: 4px solid var(--hwa-accent);
  border-radius: 12px;
}

.hwa .next-step.recommended {
  background: #f1fbfd;
  border-color: #cfeef3;
  border-left-color: var(--hwa-accent);
}

.hwa .next-step.supporting {
  background: #f5f8fa;
  border-left-color: #7fa9b7;
}

.hwa .next-step.learning-options {
  background: #f8f6fd;
  border-color: #e5def5;
  border-left-color: #9b84dd;
}

.hwa .next-step.progression-course {
  background: #f2faf7;
  border-color: #d9eee8;
  border-left-color: var(--hwa-success);
}

.hwa .next-step-label {
  color: var(--hwa-accent-dark);
}

.hwa .next-step.supporting .next-step-label {
  color: #476d79;
}

.hwa .next-step.learning-options .next-step-label {
  color: #6e55aa;
}

.hwa .next-step.progression-course .next-step-label {
  color: #0f6e5c;
}

.hwa .next-step h4 {
  margin: 0;
  color: var(--hwa-ink-strong);
  font-size: 19px;
  line-height: 1.35;
}

.hwa .next-step p {
  max-width: 820px;
  margin: 9px 0 0;
  color: var(--hwa-copy);
  font-size: 15px;
  line-height: 1.65;
}

.hwa .next-step .course-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 15px;
  padding: 0 2px;
  font-size: 15px;
  color: var(--hwa-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.hwa .next-step .course-link:hover {
  text-decoration: underline;
}

.hwa .actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.hwa .actions.actions--single {
  grid-template-columns: minmax(0, 1fr);
}

.hwa .actions.actions--three .action-card:first-child {
  grid-column: 1 / -1;
}

.hwa .action-card {
  min-width: 0;
  padding: 19px 20px 20px;
  background: var(--hwa-surface);
  border: 1px solid var(--hwa-line);
  border-radius: 12px;
}

.hwa .action-card.progression-course {
  border-top: 3px solid var(--hwa-success);
}

.hwa .action-label {
  margin: 0 0 8px;
  color: #0f6e5c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hwa .action-card h4 {
  margin: 0;
  color: var(--hwa-ink-strong);
  font-size: 18px;
  line-height: 1.35;
}

.hwa .action-card p {
  margin: 9px 0 0;
  color: var(--hwa-copy);
  font-size: 15px;
  line-height: 1.65;
}

.hwa .course-link {
  display: inline-flex;
  margin-top: 15px;
  font-size: 15px;
  color: var(--hwa-accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.hwa .course-link:hover {
  text-decoration: underline;
}

.hwa .empty {
  padding: 20px 0;
  color: var(--hwa-muted);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hwa-line);
  border-radius: 0;
}

.hwa .results-nav {
  justify-content: flex-start;
  margin-top: 42px;
}

/* Rating guide modal */
.hwa .modal[hidden] {
  display: none;
}

.hwa .modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.hwa .backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 18, 31, 0.66);
  backdrop-filter: blur(2px);
}

.hwa .modal-panel {
  position: relative;
  width: min(700px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  color: var(--hwa-ink);
  background: #fff;
  border: 1px solid var(--hwa-line);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(7, 26, 47, 0.22);
}

.hwa .modal-panel h2 {
  margin: 8px 48px 24px 0;
}

.hwa .modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  width: 38px;
  height: 38px;
  color: var(--hwa-ink-strong);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.hwa .modal-close:hover {
  background: var(--hwa-surface);
}

.hwa .guide-note {
  margin: 22px 0 0;
  padding: 15px 16px;
  color: var(--hwa-copy);
  background: var(--hwa-surface);
  border-radius: 10px;
  line-height: 1.55;
}

/* Tablet */
@media (max-width: 900px) {
  .hwa .hwa-shell {
    width: min(100% - 28px, 1080px);
  }

  .hwa .screen {
    padding-top: 42px;
  }

  .hwa .hero,
  .hwa .overview {
    grid-template-columns: 1fr;
  }

  .hwa .hero {
    gap: 36px;
  }

  .hwa .scale-card {
    max-width: 680px;
  }

  .hwa .progress-row {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .hwa .ratings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hwa .rating-card {
    min-height: 98px;
  }

  .hwa .ratings .rating-card:nth-child(4),
  .hwa .ratings .rating-card:nth-child(5) {
    grid-column: auto;
  }

  .hwa .overview {
    gap: 28px;
  }

  .hwa .overall {
    max-width: 520px;
    min-height: 240px;
    height: auto;
  }
}

/* Mobile */
@media (max-width: 650px) {
  .hwa {
    --hwa-sticky-offset: 150px;
  }

  .hwa .hwa-shell {
    width: calc(100% - 24px);
    margin: 8px auto 44px;
  }

  .hwa .hwa-top {
    align-items: flex-start;
    padding: 14px 0 16px;
  }

  .hwa .eyebrow {
    font-size: 11px;
  }

  .hwa .brand {
    font-size: 15px;
  }

  .hwa .text-button {
    max-width: 120px;
    padding-top: 0;
    text-align: right;
    font-size: 13px;
  }

  .hwa .screen {
    padding: 26px 0 8px;
  }

  .hwa h1 {
    font-size: clamp(32px, 8.5vw, 40px);
  }

  .hwa h2 {
    font-size: 24px;
  }

  .hwa .lead,
  .hwa .heading > p:last-child {
    font-size: 16px;
  }

  .hwa .hero {
    gap: 30px;
  }

  .hwa .scale-card {
    padding: 22px 20px;
  }

  .hwa .progress-row {
    gap: 12px;
    margin-bottom: 22px;
  }

  .hwa .question-copy {
    max-width: none;
    font-size: clamp(21px, 5.5vw, 24px);
    line-height: 1.38;
    letter-spacing: -0.008em;
  }

  .hwa .rating-group {
    margin-top: 26px;
  }

  .hwa .rating-group legend {
    font-size: 16px;
  }

  .hwa .rating-hint {
    margin: 4px 0 14px;
  }

  .hwa .ratings {
    display: block;
    border-top: 1px solid var(--hwa-line);
  }

  .hwa .rating-card {
    display: grid;
    grid-template-columns: 28px 30px 1fr;
    min-height: 58px;
    align-items: center;
    justify-content: initial;
    gap: 12px;
    padding: 9px 6px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--hwa-line);
    border-radius: 0;
    transform: none;
  }

  .hwa .rating-card:hover {
    transform: none;
  }

  .hwa .rating-card.selected {
    background: var(--hwa-accent-soft);
    border-color: var(--hwa-line);
    box-shadow: none;
  }

  .hwa .rating-card .radio-mark {
    width: 24px;
    height: 24px;
  }

  .hwa .rating-card b {
    width: 30px;
    font-size: 16px;
    text-align: center;
  }

  .hwa .rating-card > span:last-child {
    font-size: 15px;
    font-weight: 700;
  }

  .hwa .rating-or {
    margin: 14px auto 11px;
  }

  .hwa .na {
    width: 100%;
    min-height: 54px;
    justify-content: flex-start;
    padding: 11px 14px;
    font-size: 14px;
  }

  .hwa .nav {
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }

  .hwa .nav .button {
    flex: 1;
    padding-inline: 14px;
  }

  .hwa .review-item {
    grid-template-columns: 34px 1fr;
    padding: 16px 0;
  }

  .hwa .review-answer {
    grid-column: 2;
    justify-self: start;
  }

  .hwa .overall {
    min-height: 240px;
    height: auto;
  }

  .hwa .area-row {
    grid-template-columns: 1fr auto;
    gap: 10px 14px;
  }

  .hwa .area-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .hwa .capability-head {
    display: block;
  }

  .hwa .rating-pill {
    display: inline-block;
    margin-top: 12px;
  }

  .hwa .development-detail {
    margin-top: 18px;
  }

  .hwa .next-step {
    margin-top: 20px;
    padding: 18px 18px 19px;
  }

  .hwa .actions {
    grid-template-columns: 1fr;
  }

  .hwa .capability-block.progression {
    padding-left: 14px;
  }

  .hwa .modal-panel {
    padding: 26px 20px 22px;
  }
}
/* --------------------------------------------------------------------------
   V19: responsive priority recommendation cards
   The component remains the same in every layout. Only the grid changes.
   -------------------------------------------------------------------------- */

/* Query the actual recommendation-section width rather than the viewport. */
.hwa .result-section[data-priority-section] {
  container-type: inline-size;
  container-name: hwa-priority-results;
}

/* One-column is the safe default at every size. */
.hwa [data-priority-list] {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  border-top: 0;
}

/* Whole recommendation becomes one clearly bounded customer-facing component. */
.hwa [data-priority-list] .capability-block {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--hwa-line);
  border-radius: 14px;
}

/* Allow long titles/rating pills to wrap cleanly rather than compete for width. */
.hwa [data-priority-list] .capability-head {
  flex-wrap: wrap;
}

.hwa [data-priority-list] .rating-pill {
  margin-left: auto;
}

/*
   Keep the diagnostic copy natural, then let any extra row height sit between
   the diagnosis and next-step panel. This keeps the action area visually
   anchored without stretching its text or changing line-height.
*/
.hwa [data-priority-list] .development-detail {
  max-width: none;
  margin-bottom: 24px;
}

.hwa [data-priority-list] .development-detail p:last-child {
  max-width: none;
}

.hwa [data-priority-list] .next-step {
  width: 100%;
  max-width: none;
  margin-top: auto;
}

.hwa [data-priority-list] .next-step p {
  max-width: none;
}

/* Two columns only when the recommendation section itself is genuinely wide. */
@container hwa-priority-results (min-width: 1080px) {
  .hwa [data-priority-list] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Fallback for older browsers without container-query support. */
@supports not (container-type: inline-size) {
  @media (min-width: 1280px) {
    .hwa [data-priority-list] {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 24px;
    }
  }
}

/* Keep the card treatment, but trim its padding on small screens. */
@media (max-width: 650px) {
  .hwa [data-priority-list] {
    gap: 16px;
  }

  .hwa [data-priority-list] .capability-block {
    padding: 20px 18px 22px;
  }

  .hwa [data-priority-list] .rating-pill {
    margin-left: 0;
  }

  .hwa [data-priority-list] .development-detail {
    margin-bottom: 20px;
  }
}
