/*! EMET Education (www.emet-education.com) — © 2026 Mikaël Chelli. Tous droits réservés / All rights reserved. Copie, extraction des modèles 3D, fouille de données et réutilisation interdites sans accord écrit / No copying, 3D model extraction, data mining or reuse without written consent. https://www.emet-education.com/legal/#cgu */
/* ------------------------------------------------------------------
   distal-radius-fracture.css — ajustements de style propres à la maquette
   « fracture du radius distal ». La charte générale (coquille UI, scène
   3D, panneau, responsive) vient de /core/css/ui.css ; les pictogrammes,
   les segments et la jauge à crans reprennent ceux du scaphoïde.
------------------------------------------------------------------ */

.field-label { display: block; margin: 12px 0 6px; font-size: 13px; font-weight: 500; }
p.field-label { margin-bottom: 4px; }

/* le type : trois pictogrammes (le radius vu de face, le cartilage en bleu, le trait en rouge) */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 4px; }
.type {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px 5px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--surface); color: var(--ink-2); cursor: pointer;
  font: 500 11.5px/1.15 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif; text-align: center;
  transition: border-color .15s, background .15s;
}
.type svg { width: 100%; max-width: 64px; height: auto; }
.type svg .b { fill: #ecdfc6; stroke: #c9b896; stroke-width: 1; }
.type svg .a { fill: none; stroke: #8fb3c9; stroke-width: 2.2; stroke-linecap: round; }
.type svg .f { fill: none; stroke: #c0392b; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.type:hover { border-color: var(--accent); background: var(--surface-3); }
.type:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.type.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--ink); }

/* jauge à crans : un tiret sous chaque cran, le nom au-dessus, le cran choisi en couleur */
.ticks { display: flex; justify-content: space-between; padding: 0 8px; margin-top: -3px; pointer-events: none; }
.ticks i { display: block; width: 2px; height: 6px; border-radius: 1px; background: var(--border-2); }
.tick-labels { position: relative; height: 16px; margin: 4px 0 -2px; pointer-events: none; }
.tick-labels span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; line-height: 16px; color: var(--ink-2); white-space: nowrap; }
.tick-labels span:first-child { transform: translateX(-9px); }
.tick-labels span:last-child { transform: translateX(calc(-100% + 9px)); }
.tick-labels span.is-active { color: var(--accent); font-weight: 600; }

/* segments : deux, trois ou quatre (deux rangées) choix */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 2px 0 10px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg.seg-3 { grid-template-columns: 1fr 1fr 1fr; }
.seg button {
  appearance: none; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--ink-2);
  padding: 7px 6px; cursor: pointer; font: 500 12.5px/1.1 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  transition: background .15s, color .15s;
}
.seg button:first-child { border-left: 0; }
.seg.seg-2x2 button:nth-child(3) { border-left: 0; }
.seg.seg-2x2 button:nth-child(n+3) { border-top: 1px solid var(--border); }
.seg button:hover { background: var(--surface-3); color: var(--ink); }
.seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.seg button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); color: var(--ink); font-weight: 600; }

/* la lecture : AO/OTA, éponyme, stabilité, puis les paramètres radiographiques (hors normes en rouge) */
.classif {
  margin: 12px 0 4px; padding: 7px 9px; border-radius: 8px;
  background: var(--surface-3); color: var(--ink-2);
  font: 500 12.5px/1.35 "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
}
.classif p { margin: 0; }
.classif strong { color: var(--ink); font-weight: 600; }
.classif .params { display: grid; grid-template-columns: 1fr auto; gap: 1px 10px; margin: 6px 0 0; }
.classif .params div { display: contents; }
.classif .params dt { color: var(--ink-2); }
.classif .params dd { margin: 0; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.classif .params div.is-bad dd { color: #c0392b; font-weight: 600; }
.classif .classif-ulnar { margin-top: 6px; }
