.hip-pattern {
  margin: 1.5rem 0;
  padding: clamp(1rem, 4vw, 1.7rem);
  background: #f8f5ec;
  border: 1px solid #b6c2b8;
  border-radius: 12px;
  color: #1e2d25;
}

.hip-pattern h3 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  line-height: 1.15;
}

.hip-pattern label {
  display: inline-block;
  padding: .55rem .25rem;
  cursor: pointer;
}

.hip-pattern input {
  width: 1.1rem;
  height: 1.1rem;
  vertical-align: middle;
  accent-color: #24513b;
}

.hip-pattern input:focus-visible + label,
.hip-clinical summary:focus-visible {
  outline: 2px solid #24513b;
  outline-offset: 3px;
}

.hip-views {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .35rem;
}

.hip-view {
  padding: 1rem;
  border: 1px solid #dcdcd1;
  border-radius: 8px;
  background: #fffdf8;
}

.hip-view h4 {
  margin: 0;
  font-size: 1rem;
}

.hip-view svg {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: .5rem auto;
}

.hip-view p {
  font-size: .95rem;
  line-height: 1.45;
}

.hip-view small {
  font-size: .9em;
}

.hip-effort { color: #744912; font-weight: 700; }
.hip-lift { color: #24513b; font-weight: 700; }
.hip-body { fill: #e6e9df; stroke: #62736a; stroke-width: 2.5; }
.hip-joint { fill: #fffdf8; stroke: #243b32; stroke-width: 2; }
.hip-opposite { stroke: #94621b; }
.hip-affected { stroke: #24513b; }
.hip-thigh, .hip-arrow, .hip-start {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hip-thigh { stroke-width: 12; }
.hip-arrow { stroke-width: 2.5; }
.hip-start { display: none; stroke: #62736a; stroke-width: 3; stroke-dasharray: 5 5; }
#hip-start:checked ~ .hip-views .hip-start { display: inline; }

.hip-pattern .hip-caption {
  margin: 1rem 0 0;
  font-size: .9rem;
}

.hip-clinical {
  padding: .9rem 1.15rem;
  border: 1px solid #b6c2b8;
  border-radius: 8px;
  background: #fffdf8;
}

.hip-clinical summary {
  cursor: pointer;
  color: #24513b;
  font-weight: 700;
}

.hip-journal ol {
  padding-inline-start: 1.5rem;
}

@media (max-width: 560px) {
  .hip-views { grid-template-columns: 1fr; }
}
