/* Clinic presentation only. Anatomy, injury colours and model controls are unchanged. */
@font-face {
  font-family:"Clinic Manrope";
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url("./clinic-brand/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family:"Clinic Cormorant Garamond";
  font-style:normal;
  font-weight:400 600;
  font-display:swap;
  src:url("./clinic-brand/cormorant-garamond-latin.woff2") format("woff2");
}
body.clinic-injury-viewer {
  --clinic-navy:#031a2b;
  --clinic-paper:#f4f0e8;
  --clinic-champagne:#d5c2a3;
  --clinic-border:#cdbfa9;
  --clinic-brand-space:64px;
  background:var(--clinic-paper);
  color:#0b2233;
  font-family:"Clinic Manrope",Arial,sans-serif;
}
.clinic-injury-viewer>.clinic-viewer-header {
  position:sticky;
  top:0;
  z-index:100;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  height:auto;
  min-height:88px;
  padding:14px 5%;
  gap:12px 24px;
  flex-wrap:wrap;
  background:var(--clinic-navy);
  color:var(--clinic-paper);
  border-bottom:1px solid var(--clinic-champagne);
}
.clinic-viewer-header .clinic-brand { display:inline-flex; align-items:center; gap:10px; color:inherit; letter-spacing:normal; text-decoration:none; }
.clinic-brand>img { width:40px; height:44px; object-fit:contain; flex:none; }
.clinic-brand .clinic-wordmark { display:flex; flex-direction:column; margin:0; color:inherit; letter-spacing:normal; }
.clinic-wordmark strong { font:500 40px/.9 "Clinic Cormorant Garamond",Georgia,serif; letter-spacing:.16em; padding-left:.16em; }
.clinic-wordmark small { margin-top:9px; color:#39c5c7; font:500 8px/1.3 "Clinic Manrope",Arial,sans-serif; letter-spacing:.18em; }
.clinic-guides-link { margin-left:auto; min-height:44px; display:flex; align-items:center; color:inherit; font-size:12px; text-underline-offset:4px; }
.clinic-viewer-header .edition { color:var(--clinic-champagne); font-size:10px; max-width:none; }
.clinic-viewer-header .clinic-book-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:64px;
  min-height:44px;
  padding:10px 18px;
  border:1px solid var(--clinic-champagne);
  border-radius:4px;
  background:var(--clinic-champagne);
  color:var(--clinic-navy);
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  text-decoration:none;
  white-space:nowrap;
}
.clinic-viewer-header .clinic-book-link:hover { background:var(--clinic-paper); }
.clinic-viewer-header a:focus-visible { outline:3px solid var(--clinic-champagne); outline-offset:4px; }
.clinic-injury-viewer .intro h1 { font-family:"Clinic Cormorant Garamond",Georgia,serif; font-style:italic; font-weight:400; color:var(--clinic-navy); }
.clinic-injury-viewer .intro>p { color:#465968; }
.clinic-injury-viewer .workspace { border-color:var(--clinic-border); background:var(--clinic-paper); }
.clinic-injury-viewer .simple-chooser .example-picker { color:#795f3b; }
.clinic-injury-viewer .simple-chooser select { font-family:inherit; color:#0b2233; background:#faf7f1; border-color:var(--clinic-border); }

/* Keep the stamp inside the viewport (not a removable page header).
   Reserve its own footer strip: reduce the canvas area and lift the existing
   dock/gesture by the same amount. Clinical labels/geometry are not restyled. */
.clinic-injury-viewer .viewport { background:var(--clinic-navy); }
.clinic-injury-viewer .viewport>#scene { bottom:var(--clinic-brand-space); }
.clinic-injury-viewer .viewport>.viewport-dock { margin-bottom:var(--clinic-brand-space); }
.clinic-injury-viewer .viewport>.gesture { bottom:var(--clinic-brand-space); }
.clinic-injury-viewer .viewport.has-lumbar-visual {
  padding-bottom:calc(16px + var(--clinic-brand-space))!important;
  background:var(--clinic-paper);
}
.clinic-viewer-brand {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:20;
  height:var(--clinic-brand-space);
  padding:8px max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px));
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  background:var(--clinic-navy);
  color:var(--clinic-paper);
  border-top:1px solid rgba(213,194,163,.5);
  pointer-events:none;
  box-sizing:border-box;
}
.clinic-viewer-brand>img { width:28px; height:31px; object-fit:contain; flex:none; }
.clinic-viewer-brand>span { min-width:0; }
.clinic-viewer-brand strong,.clinic-viewer-brand small { display:block; overflow-wrap:anywhere; }
.clinic-viewer-brand strong { font-size:12px; line-height:1.4; font-weight:600; }
.clinic-viewer-brand small { margin-top:2px; font-size:11px; line-height:1.4; color:var(--clinic-champagne); }
@media(max-width:600px) {
  .clinic-injury-viewer>.clinic-viewer-header { grid-template-columns:minmax(0,1fr) auto; padding:12px 4%; gap:8px 14px; }
  .clinic-guides-link { grid-column:1; grid-row:2; margin-left:0; }
  .clinic-viewer-header .edition { grid-column:2; grid-row:2; max-width:80px; text-align:right; font-size:9px; letter-spacing:.5px; }
  .clinic-viewer-header .clinic-book-link { grid-column:2; grid-row:1; justify-self:end; }
}
@media(max-width:420px) {
  body.clinic-injury-viewer { --clinic-brand-space:72px; }
  .clinic-brand>img { width:32px; height:36px; }
  .clinic-wordmark strong { font-size:32px; }
}
