/* Moduuli 5 — toimituksellinen instrumentti, Kano v4:n hyväksytty kieli. */
.module-data { --hairline: #C5CBD4; }

.module-data .data-family,
.module-data .decision-family {
  border-top: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
}

.module-data .data-family > div,
.module-data .decision-family > div {
  padding: 20px;
}

.module-data .data-family > div:first-child,
.module-data .decision-family > div:first-child { padding-left: 0; }
.module-data .data-family > div:last-child,
.module-data .decision-family > div:last-child { padding-right: 0; }

.module-data .data-family > div + div,
.module-data .decision-family > div + div {
  border-left: 1px solid var(--slate);
}

.module-data .data-family h3,
.module-data .decision-family h3 {
  align-items: center;
  display: flex;
  font-size: 18px;
  gap: 10px;
  line-height: 1.25;
  margin: 0 0 9px;
}

.module-data .data-family h3::before,
.module-data .decision-family h3::before {
  background: var(--slate);
  content: "";
  flex: 0 0 10px;
  height: 10px;
  width: 10px;
}

.module-data [data-kind="stock"] h3::before { background: var(--amber); }
.module-data [data-kind="owned"] h3::before { background: var(--petrol); }
.module-data [data-kind="borrowed"] h3::before { background: var(--wine); }
.module-data .data-family p,
.module-data .decision-family p { font-size: 15px; line-height: 1.5; margin: 0; }

.module-data .scope-note {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--petrol);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 15px 0 17px;
}

.module-data .side-note {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.module-data .side-note > div { padding-right: 18px; }

.module-data .case-numbers {
  border-top: 1px solid rgba(255, 255, 255, .36);
  border-bottom: 1px solid rgba(255, 255, 255, .36);
  gap: 0;
}

.module-data .case-numbers div {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 20px 20px 22px 0;
}

.module-data .case-numbers div + div {
  border-left: 1px solid rgba(255, 255, 255, .36);
  padding-left: 24px;
}

.module-data .navteq-test {
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  margin: 34px 0 28px;
  padding: 20px 0 22px;
}

.module-data .navteq-test .eyebrow { color: #ff9aae; }
.module-data .navteq-test p {
  color: #fff;
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  margin: 8px 0 0;
}

.module-data .data-lab {
  background: var(--surface);
  border: 1px solid var(--slate);
  border-radius: 0;
  box-shadow: none;
  margin-top: 28px;
}

.module-data .lab-inputs { padding: 0 24px; }
/* Kokeile-ohje on lomakkeen viimeinen alue, ja se sisentää itsensä kuten muutkin. */
.module-data .lab-ohje { margin-top: 0; padding: 14px 24px 20px; }

.module-data .lab-title-row {
  align-items: center;
  display: grid;
  gap: 10px 18px;
  grid-template-columns: 180px minmax(260px, 1fr);
  padding: 24px 0;
}

.module-data .lab-title-row label {
  font-family: var(--font-head);
  font-weight: 600;
}

.module-data .lab-title-row input {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.module-data .lab-title-row span {
  color: var(--gray);
  font-size: 13px;
  grid-column: 2;
}

.module-data .data-lab fieldset {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
  min-width: 0;
  padding: 22px 0 24px;
}

.module-data .data-lab legend {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 14px;
  padding: 0;
  width: 100%;
}

.module-data .data-lab legend span {
  color: var(--wine);
  display: inline-block;
  font-size: 13px;
  letter-spacing: .06em;
  margin-right: 10px;
}

.module-data .choice-row,
.module-data .check-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
}

.module-data .choice-row.three { grid-template-columns: repeat(3, 1fr); }
.module-data .check-row { grid-template-columns: repeat(5, 1fr); }

.module-data .choice-row label,
.module-data .check-row label { min-width: 0; }

.module-data .choice-row input,
.module-data .check-row input {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.module-data .choice-row label span,
.module-data .check-row label span {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  font-family: var(--font-head);
  font-size: 13px;
  justify-content: center;
  line-height: 1.25;
  min-height: 46px;
  padding: 8px;
  text-align: center;
}

.module-data .choice-row input:checked + span,
.module-data .check-row input:checked + span {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.module-data .choice-row input:focus-visible + span,
.module-data .check-row input:focus-visible + span,
.module-data .lab-title-row input:focus-visible {
  outline: 3px solid rgba(204, 0, 51, .3);
  outline-offset: 3px;
}

.module-data .lab-output {
  border-top: 2px solid var(--slate);
  padding: 24px;
}

.module-data .output-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.module-data .output-head h3 {
  font-size: 24px;
  line-height: 1.2;
  margin: 4px 0 0;
}

.module-data #result-kind {
  border-bottom: 2px solid var(--petrol);
  color: var(--petrol);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: .1em;
  padding-bottom: 5px;
}

.module-data .lab-output[data-kind="stock"] #result-kind { border-color: var(--amber); color: #92620f; }
.module-data .lab-output[data-kind="borrowed"] #result-kind { border-color: var(--wine); color: var(--wine); }

.module-data .result-family {
  border-top: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0 0;
}

.module-data .result-family > div {
  align-items: center;
  color: var(--gray);
  display: flex;
  font-family: var(--font-head);
  font-size: 13px;
  gap: 9px;
  min-height: 52px;
  padding: 10px 14px;
}

.module-data .result-family > div + div { border-left: 1px solid var(--slate); }
.module-data .result-family span { background: var(--slate); height: 10px; width: 10px; }
.module-data .result-family [data-kind="stock"] span { background: var(--amber); }
.module-data .result-family [data-kind="owned"] span { background: var(--petrol); }
.module-data .result-family [data-kind="borrowed"] span { background: var(--wine); }

.module-data .result-family[data-result="stock"] [data-kind="stock"],
.module-data .result-family[data-result="owned"] [data-kind="owned"],
.module-data .result-family[data-result="borrowed"] [data-kind="borrowed"] {
  background: var(--navy);
  color: #fff;
}

.module-data .output-copy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.module-data .output-copy > div { padding: 20px; }
.module-data .output-copy > div:first-child { padding-left: 0; }
.module-data .output-copy > div:last-child { padding-right: 0; }
.module-data .output-copy > div + div { border-left: 1px solid var(--hairline); }
.module-data .output-copy span {
  color: var(--gray);
  display: block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.module-data .output-copy p { font-size: 14px; line-height: 1.5; margin: 7px 0 0; }

.module-data .try {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--amber);
  border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  padding: 14px 0 16px;
}

@media (max-width: 760px) {
  .module-data .data-family,
  .module-data .decision-family,
  .module-data .output-copy { grid-template-columns: 1fr; }

  .module-data .data-family > div,
  .module-data .data-family > div:first-child,
  .module-data .data-family > div:last-child,
  .module-data .decision-family > div,
  .module-data .decision-family > div:first-child,
  .module-data .decision-family > div:last-child { padding: 16px 0 18px; }

  .module-data .data-family > div + div,
  .module-data .decision-family > div + div,
  .module-data .output-copy > div + div {
    border-left: 0;
    border-top: 1px solid var(--slate);
  }

  .module-data .case-numbers div { padding-right: 12px; }
  .module-data .case-numbers div + div { padding-left: 14px; }
  .module-data .lab-inputs { padding: 0 16px; }
  .module-data .lab-title-row { grid-template-columns: 1fr; }
  .module-data .lab-title-row span { grid-column: 1; }
  .module-data .choice-row,
  .module-data .choice-row.three,
  .module-data .check-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-data .generator-row label:last-child,
  .module-data .check-row label:last-child { grid-column: 1 / -1; }
  .module-data .lab-output { padding: 18px 16px; }
  .module-data .lab-ohje { padding: 14px 16px 18px; }
  .module-data .output-head { flex-direction: column; }
  .module-data .result-family { grid-template-columns: 1fr; }
  .module-data .result-family > div + div { border-left: 0; border-top: 1px solid var(--slate); }
  .module-data .output-copy > div,
  .module-data .output-copy > div:first-child,
  .module-data .output-copy > div:last-child { padding: 16px 0; }
}
