/* Item-specific source wording stays intact within five readable reference rows. */
.maturity-scale {
  margin-top: 22px;
  border: 1px solid #cddbd2;
  border-radius: 12px;
  background: #f5f8f5;
  min-width: 0;
}
.maturity-scale > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 16px 18px;
  border-radius: 11px;
  color: #244b3b;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.maturity-scale > summary::-webkit-details-marker { display: none; }
.maturity-scale > summary:hover { background: #eaf1eb; }
.maturity-scale > summary:focus-visible { outline-offset: -4px; }
.scale-summary-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.scale-range {
  flex: none;
  padding: 2px 9px;
  border: 1px solid #c5d6cb;
  border-radius: 6px;
  background: #fff;
  color: #375d49;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.scale-expand { flex: none; transition: transform .15s; }
.maturity-scale[open] > summary { border-radius: 11px 11px 0 0; border-bottom: 1px solid #dbe5dc; }
.maturity-scale[open] > summary .scale-expand { transform: rotate(180deg); }
.scale-content { padding: 16px; }
.scale-levels { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.scale-level {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  border: 1px solid #d7e2d9;
  border-radius: 9px;
  background: #fff;
  min-width: 0;
}
.scale-level-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 16px;
  border-right: 1px solid #e0e8e0;
  border-radius: 8px 0 0 8px;
  background: #f1f5f0;
  min-width: 0;
}
.scale-number {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  background: #e0eadd;
  color: #284833;
  border: 1px solid #c6d6c4;
  border-radius: 9px;
  font-size: 20px;
  font-weight: 750;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.scale-level[data-level="2"] .scale-number { background: #d5e5d7; }
.scale-level[data-level="3"] .scale-number { background: #c8ded0; }
.scale-level[data-level="4"] .scale-number { background: #bcd7c9; }
.scale-level[data-level="5"] .scale-number { background: #accfc0; }
.scale-stage-block { min-width: 0; align-self: center; }
.scale-stage { display: block; color: #263f33; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.scale-stage-reference { display: block; margin-top: 4px; color: #536556; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.scale-level-copy { padding: 18px 20px; min-width: 0; align-self: center; }
.maturity-scale .scale-description {
  color: #283d32;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.maturity-scale .scale-reference {
  color: #53625a;
  font-size: 13px;
  line-height: 1.7;
  margin: 7px 0 0;
  word-break: normal;
  overflow-wrap: anywhere;
}
.scale-note { display: flex; align-items: flex-start; gap: 9px; padding: 16px 2px 1px; }
.scale-note-marker { color: #43624e; font-weight: 700; font-size: 15px; line-height: 1.7; }
.maturity-scale .scale-note p { color: #3d5545; font-size: 13px; line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.maturity-scale .scale-note .scale-note-reference { color: #53625a; font-size: 12px; margin-top: 3px; }
.item-scale.maturity-scale { padding-top: 0; }
/* The response column is narrower than the public framework, even on desktop. */
.item-scale .scale-level { grid-template-columns: 185px minmax(0, 1fr); }
.item-scale .scale-level-heading { padding: 16px 13px; gap: 10px; }
.item-scale .scale-level-copy { padding: 16px; }
@media (max-width: 1050px) {
  .item-scale .scale-level { grid-template-columns: minmax(0, 1fr); }
  .item-scale .scale-level-heading { border-right: 0; border-bottom: 1px solid #e0e8e0; border-radius: 8px 8px 0 0; }
}
@media (max-width: 600px) {
  .maturity-scale { border-radius: 10px; margin-top: 18px; }
  .maturity-scale > summary { padding: 13px 12px; gap: 8px; font-size: 14px; }
  .scale-content { padding: 10px; }
  .scale-range { padding: 2px 6px; font-size: 11px; }
  .scale-level, .item-scale .scale-level { grid-template-columns: minmax(0, 1fr); }
  .scale-level-heading, .item-scale .scale-level-heading { padding: 12px; border-right: 0; border-bottom: 1px solid #e0e8e0; border-radius: 8px 8px 0 0; }
  .scale-level-copy, .item-scale .scale-level-copy { padding: 13px; }
  .scale-stage { font-size: 15px; }
  .maturity-scale .scale-description { font-size: 14px; line-height: 1.85; }
  .maturity-scale .scale-reference { font-size: 12px; line-height: 1.8; }
  .scale-note { padding: 13px 2px 2px; }
  .maturity-scale .scale-note p { font-size: 12px; }
  .maturity-scale .scale-note .scale-note-reference { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .scale-expand { transition: none; } }
@media print {
  .maturity-scale { border-color: #9aa79f; background: #fff; }
  .maturity-scale > summary { background: #fff; color: #182b21; }
  .scale-level { break-inside: avoid; page-break-inside: avoid; }
  .scale-note { break-inside: avoid; }
  .maturity-scale .scale-description, .maturity-scale .scale-reference, .maturity-scale .scale-note p { color: #17281d; }
}
