/* Diagnostic mini-site. Standalone layout; shared NOVA tokens, logo and language switch. */
.nd-page {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-body);
}
.nd-page button,
.nd-page input,
.nd-page select,
.nd-page textarea {
  font-family: inherit;
}
.nd-page button {
  cursor: pointer;
}
.nd-page button:disabled {
  cursor: default;
  opacity: 0.4;
}
.nd-header {
  height: 80px;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.nd-header > a {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nd-header .nova-logo {
  font-size: 23px;
}
.nd-layout {
  display: grid;
  grid-template-columns: minmax(300px, 35%) minmax(0, 1fr);
  min-height: calc(100svh - 80px);
}
.nd-aside {
  background: var(--ink);
  color: var(--white);
  padding: 64px clamp(30px, 5vw, 90px);
}
.nd-aside > div {
  position: sticky;
  top: 40px;
  max-width: 440px;
  margin: auto;
}
.nd-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
}
.nd-aside h1 {
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.08;
  margin: 30px 0 24px;
}
.nd-aside p {
  color: var(--line);
  font-size: 14px;
}
.nd-aside nav {
  margin: 44px 0;
}
.nd-aside nav button {
  display: flex;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  background: none;
  border: 0;
  color: var(--line);
  padding: 0;
  text-align: left;
  font-size: 13px;
  position: relative;
}
.nd-aside nav button:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 43px;
  left: 14px;
  height: 30px;
  width: 1px;
  background: var(--muted);
  opacity: 0.45;
}
.nd-aside nav button span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-size: 11px;
  flex: none;
}
.nd-aside nav button[aria-current="step"] {
  color: var(--white);
  font-weight: 600;
}
.nd-aside nav button[aria-current="step"] span {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.nd-aside-note {
  border-top: 1px solid var(--muted);
  padding-top: 24px;
  font-size: 13px;
}
.nd-aside-note p {
  font-size: 12px;
  margin-top: 10px;
}
.nd-work {
  padding: 32px clamp(24px, 4.4vw, 80px) 24px;
  min-width: 0;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  scroll-margin-top: 24px;
}
.nd-preview {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 20px;
  margin: 0 0 24px;
  border-bottom: 1px solid var(--line);
}
.nd-step[hidden],
.nd-field[hidden],
.nd-controls [hidden] {
  display: none;
}
.nd-step h2 {
  font-size: clamp(28px, 2.7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.nd-step h2:focus {
  outline: none;
}
.nd-step-intro {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 32px;
}
.nd-field {
  margin-bottom: 28px;
  min-width: 0;
}
.nd-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 12px;
}
.nd-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
}
.nd-choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 150px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  min-height: 58px;
  transition:
    background 140ms,
    border-color 140ms;
}
.nd-choice:hover {
  background: var(--surface-soft);
}
.nd-choice:has(input:checked) {
  border-color: var(--muted);
  background: var(--white);
}
.nd-choice input {
  appearance: none;
  width: 18px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 4px;
  flex: none;
  order: 2;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.nd-choice input[type="radio"] {
  border-radius: 50%;
}
.nd-choice input:checked {
  background: var(--ink);
  border-color: var(--ink);
}
.nd-choice input:checked::before {
  content: "";
  width: 8px;
  height: 5px;
  border: solid var(--white);
  border-width: 0 0 1.5px 1.5px;
  transform: translateY(-1px) rotate(-45deg);
}
/* No pointer rings. A restrained keyboard indicator remains available. */
.nd-page :is(button, a, input, select, textarea, summary):focus {
  outline: none;
  box-shadow: none;
}
.nd-page[data-keyboard]
  :is(button, a, input, select, textarea, summary):focus-visible {
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}
.nd-page[data-keyboard] .nd-choice:has(input:focus-visible) {
  outline: 1px solid var(--muted);
  outline-offset: 4px;
}
.nd-page .nd-choice input:focus-visible {
  outline: none;
}
.nd-required,
.nd-field-error {
  color: var(--diagnostic-bordeaux);
}
.nd-field-error {
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0 0;
  grid-column: 1/-1;
}
.nd-field.is-invalid .nd-options,
.nd-field.is-invalid .nd-map {
  border: 1px solid var(--diagnostic-bordeaux);
  border-radius: var(--radius);
  padding: 8px;
}
.nd-field.is-invalid
  :is(
    input:not([type="radio"]):not([type="checkbox"]):not([type="range"]),
    select,
    textarea
  ),
.nd-photo.is-invalid {
  border-color: var(--diagnostic-bordeaux);
}
.nd-field
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not(
    [type="file"]
  ),
.nd-field textarea,
.nd-field select {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--ink);
}
.nd-field input:focus,
.nd-field textarea:focus,
.nd-field select:focus {
  border-color: var(--muted);
}
.nd-field textarea {
  min-height: 140px;
  background: var(--white);
  resize: vertical;
}
.nd-profile-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 1fr);
  gap: 32px;
  align-items: start;
}
.nd-profile-row .nd-choice {
  flex-basis: 0;
  padding: 14px;
  min-height: 64px;
  font-size: 13px;
  gap: 12px;
}
.nd-age-control {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
}
.nd-age-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nd-age-value output {
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  min-width: 64px;
  text-align: center;
}
.nd-age-value button {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  aspect-ratio: 1;
  padding: 0;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}
.nd-field input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 0;
  flex: 1;
  width: 100%;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
}
.nd-field input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.nd-field input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}
.nd-field input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
}
.nd-field input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
}
.nd-followup {
  padding: 22px;
  background: var(--surface-soft);
  border: 0;
  border-radius: 8px;
}
.nd-followup .nd-choice {
  background: var(--white);
  min-height: 64px;
  padding: 14px 16px;
}
.nd-field .iti {
  width: 100%;
}
.nd-field .iti input[type="tel"] {
  padding-left: 96px !important;
}
.nd-map {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-soft);
}
.nd-map-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-size: 12px;
}
.nd-map-tools > span {
  font-weight: 500;
}
.nd-map-views {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
}
.nd-map-views button {
  min-height: 34px;
  font-size: 11px;
  padding: 6px 13px;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 4px;
}
.nd-map-views button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
.nd-map-canvas {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}
.nd-map-figure {
  position: relative;
  width: 100%;
  max-width: 326px;
  aspect-ratio: 952/1138;
}
.nd-map-figure > img,
.nd-map-overlay,
.nd-map-overlay > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.nd-map-overlay .zone {
  display: inline;
  cursor: pointer;
}
.nd-map-overlay .zone:focus {
  outline: none;
}
.nd-map-overlay .tint {
  fill: transparent;
  pointer-events: all;
  transition:
    fill 140ms,
    fill-opacity 140ms;
}
.nd-map-overlay .zone:hover .tint {
  fill: var(--ink);
  fill-opacity: 0.12;
}
.nd-map-overlay .selected .tint {
  fill: var(--diagnostic-bordeaux);
  fill-opacity: 0.5;
}
.nd-page[data-keyboard] .nd-map-overlay .zone:focus-visible .tint {
  stroke: var(--ink);
  stroke-width: 4px;
  stroke-dasharray: 5 4;
}
.nd-map-overlay .motif {
  display: none;
}
.nd-map-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px 18px;
  font-size: 11px;
  color: var(--text-secondary);
}
.nd-map-caption small {
  font-size: 10px;
}
.nd-map-selection {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--line);
  min-height: 65px;
}
.nd-map-summary {
  font-size: 12px;
  margin: 3px 0;
}
.nd-map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nd-map-chip {
  font-size: 10px;
  line-height: 1.5;
  padding: 6px 9px;
  border: 0;
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}
.nd-map-actions {
  display: flex;
  gap: 12px;
  flex: none;
}
.nd-map-clear {
  font-size: 10px;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--text-secondary);
  min-height: 28px;
}
.nd-map-alternative {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-secondary);
}
.nd-map-alternative summary {
  cursor: pointer;
  min-height: 28px;
}
.nd-zone-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.nd-zone-list .nd-choice {
  font-size: 11px;
  min-height: 44px;
  padding: 10px 12px;
}
.nd-photo {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  align-items: center;
}
.nd-photo img {
  width: 128px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  grid-column: 1;
  grid-row: 1;
}
.nd-photo > div {
  grid-column: 2;
  min-width: 0;
}
.nd-photo .nd-label {
  font-size: 16px;
  margin-bottom: 4px;
}
.nd-photo small {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  margin: 8px 0 14px;
}
.nd-upload-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
}
.nd-upload-control input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.nd-page[data-keyboard] .nd-upload-control:has(input:focus-visible) {
  outline: 2px solid var(--muted);
  outline-offset: 3px;
}
.nd-file-status {
  display: block;
  font-size: 10px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.nd-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.nd-consent .nd-choice,
.nd-test-consent {
  justify-content: start;
  align-items: start;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  padding: 18px 0;
  min-height: 0;
}
.nd-consent input,
.nd-test-consent input {
  order: -1;
  margin-top: 2px;
}
.nd-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 30px;
}
.nd-controls button,
.nd-review-actions button,
.nd-review-button {
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 10px 20px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}
.nd-controls #nd-next {
  margin-left: auto;
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  min-width: 154px;
}
.nd-controls #nd-next:hover {
  background: var(--button-black-hover);
}
#nd-count {
  font-size: 11px;
  color: var(--text-secondary);
}
#nd-error {
  color: var(--alert-error);
  font-size: 13px;
}
.nd-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  font-size: 10px;
  color: var(--muted);
}
.nd-trap {
  position: absolute;
  left: -10000px;
}
.nd-review-button {
  margin: 16px 0;
}
.nd-review-actions {
  display: flex;
  justify-content: space-between;
}
.nd-review-actions button {
  font-size: 12px;
}
.nd-page dialog {
  max-width: 800px;
  width: calc(100% - 32px);
  max-height: 90vh;
  overflow: auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.nd-page dialog::backdrop {
  background: var(--overlay);
}
#nd-document {
  padding-top: 30px;
}
#nd-document h2 {
  font-size: 32px;
}
#nd-document dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
  break-inside: avoid;
  font-size: 12px;
}
#nd-document dd {
  margin: 0;
}
#nd-document .nd-document-photos {
  display: flex;
  gap: 12px;
}
#nd-document .nd-document-photos img {
  width: 30%;
  height: 160px;
  object-fit: contain;
}
#nd-document header {
  border-bottom: 3px solid var(--ink);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
@media (max-width: 1100px) {
  .nd-aside {
    padding: 40px 28px;
  }
  .nd-work {
    padding: 28px;
  }
  .nd-profile-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 760px) {
  .nd-options-multiple {
    grid-template-columns: 1fr;
  }
  .nd-age-control {
    gap: 12px;
  }
  .nd-age-value {
    gap: 8px;
  }
  .nd-photo .nd-field-error {
    grid-column: 1/-1;
  }
  .nd-header {
    height: 66px;
    padding: 0 20px;
  }
  .nd-header .nova-logo {
    font-size: 17px;
  }
  .nd-layout {
    display: block;
  }
  .nd-aside {
    padding: 26px 20px 18px;
  }
  .nd-aside > div {
    max-width: none;
  }
  .nd-aside h1 {
    font-size: 28px;
    max-width: 360px;
    margin: 0;
  }
  .nd-eyebrow,
  .nd-aside-note,
  .nd-aside > div > p {
    display: none;
  }
  .nd-aside nav {
    display: flex;
    gap: 8px;
    margin: 18px 0 0;
  }
  .nd-aside nav button {
    flex: 1;
    min-height: 24px;
    height: 24px;
    font-size: 0;
    border-bottom: 2px solid var(--muted);
  }
  .nd-aside nav button span,
  .nd-aside nav button::after {
    display: none;
  }
  .nd-aside nav button[aria-current="step"] {
    border-color: var(--white);
  }
  .nd-work {
    padding: 22px 20px;
  }
  .nd-preview {
    margin-bottom: 24px;
    font-size: 9px;
    padding-bottom: 12px;
  }
  .nd-step h2 {
    font-size: 28px;
  }
  .nd-step-intro {
    font-size: 13px;
    margin-bottom: 24px;
  }
  .nd-choice {
    flex-basis: 110px;
    font-size: 13px;
  }
  .nd-map-tools {
    padding: 12px;
  }
  .nd-map-tools > span {
    display: none;
  }
  .nd-map-views {
    margin: auto;
  }
  .nd-map-views button {
    min-height: 38px;
    padding: 6px 20px;
  }
  .nd-map-figure {
    max-width: 268px;
  }
  .nd-map-canvas {
    padding: 0 12px;
  }
  .nd-map-caption {
    padding: 8px 12px 14px;
    font-size: 10px;
  }
  .nd-map-caption small {
    font-size: 9px;
  }
  .nd-map-selection {
    padding: 12px;
    flex-wrap: wrap;
  }
  .nd-map-actions {
    margin-left: auto;
  }
  .nd-map-chip {
    padding: 8px;
  }
  .nd-map-clear {
    min-height: 32px;
  }
  .nd-zone-list {
    grid-template-columns: 1fr;
  }
  .nd-contact-grid {
    grid-template-columns: 1fr;
  }
  .nd-photo {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
  }
  .nd-photo img {
    width: 100px;
    height: 144px;
  }
  .nd-photo small {
    font-size: 10px;
  }
  .nd-controls {
    gap: 10px;
  }
  .nd-controls button {
    font-size: 12px;
    padding: 10px 12px;
  }
  .nd-controls #nd-next {
    min-width: 118px;
  }
  #nd-count {
    font-size: 10px;
  }
  .nd-footer {
    flex-wrap: wrap;
    gap: 8px;
  }
  .nd-followup {
    padding: 16px;
  }
  .nd-page dialog {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nd-choice,
  .nd-map-overlay .tint {
    transition: none;
  }
}
@media print {
  body > * {
    display: none !important;
  }
  #nd-review {
    display: block !important;
    position: static;
    border: 0;
    margin: 0;
    padding: 0;
    max-height: none;
    width: 100%;
    max-width: none;
    overflow: visible;
  }
  .nd-review-actions {
    display: none !important;
  }
  #nd-document {
    padding: 0;
  }
  @page {
    size: A4;
    margin: 18mm;
  }
}

.nd-consent-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nd-consent-row .nd-choice {
  flex: 1;
  min-width: 0;
}
.nd-consent-info {
  flex: none;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  padding: 4px;
  display: grid;
  place-items: center;
  font: 500 14px/1 var(--font-body);
}
.nd-privacy-details {
  padding: 16px;
  margin-top: 12px;
  background: var(--surface);
  border-radius: var(--radius);
  font-size: 12px;
}
.nd-privacy-details[hidden] {
  display: none;
}
#nd-document .nova-logo {
  font-size: 20px;
}
#nd-document .nova-logo img {
  width: 1.5em;
  height: 1.5em;
}
.nd-footer a {
  color: inherit;
}

.nd-map-figure > img[hidden] {
  display: none;
}
.nd-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
}
.nd-map-loading img {
  width: 42px;
  height: 42px;
}
.nd-loading-line {
  width: 96px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.nd-loading-line:after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--ink);
  animation: nd-loading 1.3s ease-in-out infinite alternate;
}
@keyframes nd-loading {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nd-loading-line:after {
    animation: none;
    width: 100%;
  }
}
.nd-birth-hint {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}
.nd-controls button,
.nd-review-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.nd-controls button[hidden] {
  display: none;
}
.nd-action-icon {
  width: 18px;
  height: 18px;
  flex: none;
}
#nd-next .nd-action-icon {
  filter: invert(1);
}

.nd-photo-guidance {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0;
  max-width: 48ch;
}
