:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --ink: #1f2428;
  --cobalt: #2a4f8f;
  --bone: #ece6d8;
  --ochre: #b9842c;
  --ochre-ink: #75521e;
  --muted: #4d5358;
  --line: #c5bdad;
  --sans: "Avenir Next","Avenir","Segoe UI","Helvetica Neue",Arial,sans-serif;
  --serif: "Charter","Bitstream Charter","Iowan Old Style","Sitka Text",Georgia,serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: anywhere;
}
a {
  color: var(--cobalt);
  text-decoration-thickness: .065em;
  text-underline-offset: .17em;
}
a:hover { text-decoration-thickness: .13em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 4px;
  border-radius: 2px;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
svg { font-family: var(--sans); }
button, input, summary { font: inherit; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4, dt {
  font-family: var(--sans);
  line-height: 1.2;
  font-weight: 650;
  text-wrap: balance;
}
h1 {
  margin: 0 0 1.1rem;
  max-width: 24ch;
  font-size: clamp(2rem, 4.3vw, 3.55rem);
  letter-spacing: -.034em;
}
h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  letter-spacing: -.018em;
}
h3 { margin: 1.6rem 0 .65rem; font-size: 1.25rem; }
ul, ol { margin: .6em 0 1.3em; padding-left: 1.2em; }
li { margin: .48em 0; padding-left: .12em; }
li::marker { color: var(--cobalt); }
.container { width: min(100% - 2rem, 1272px); margin-inline: auto; }
.skip-link {
  position: absolute;
  top: 0;
  left: 1rem;
  padding: .65rem .9rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
  z-index: 3;
  font-family: var(--sans);
  font-size: 1rem;
}
.skip-link:focus { transform: translateY(0); }
.site-header { border-top: 5px solid var(--cobalt); border-bottom: 1px solid var(--line); }
.header-inner { padding-block: 1.2rem 1rem; }
.identity { display: flex; align-items: center; gap: .75rem; width: fit-content; max-width: 100%; text-decoration: none; color: var(--ink); }
.joint-mark { width: 35px; height: 45px; flex: 0 0 35px; }
.wordmark { display: block; font: 650 clamp(1.2rem, 2.4vw, 1.6rem)/1.15 var(--sans); letter-spacing: -.03em; }
.tagline { display: block; margin-top: .4rem; max-width: 47ch; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.primary-nav { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .65rem; align-items: start; }
.nav-group { min-width: 0; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .9rem; line-height: 1.4; }
.nav-group summary { cursor: pointer; padding: .6rem .1rem; font-weight: 650; color: var(--cobalt); overflow-wrap: anywhere; }
.nav-group ul { list-style: none; margin: 0 0 .6rem; padding: 0 .1rem; }
.nav-group li { padding: 0; margin: 0 0 .1rem; }
.nav-group a { display: block; padding: .4rem 0; text-decoration-thickness: .05em; }
.main-shell { padding-block: 2.2rem 4rem; }
.contents { margin: 0 0 2rem; padding: 1rem 0 1rem 1rem; border-left: 2px solid var(--cobalt); font-family: var(--sans); font-size: .92rem; line-height: 1.45; }
.contents-title { margin: 0 0 .7rem; font-size: .84rem; letter-spacing: .065em; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.contents ol { list-style: none; padding: 0; margin: 0; }
.contents li { padding: 0; margin: 0 0 .58rem; }
.contents a { text-decoration: none; }
.contents a:hover { text-decoration: underline; }
article { min-width: 0; }
.article-label { margin: 0 0 .9rem; display: flex; align-items: center; gap: .55rem; color: var(--ochre-ink); font: 650 .8rem/1.4 var(--sans); letter-spacing: .045em; text-transform: uppercase; }
.article-label::before { content: ""; width: 22px; height: 2px; background: var(--ochre); }
.key-points, .care-questions {
  margin: 1.25rem 0 1.65rem;
  padding: 1.2rem 1.15rem 1.2rem 1.25rem;
  border-left: 3px solid var(--cobalt);
  background: var(--bone);
}
.key-points h2, .care-questions h2 { margin-bottom: .75rem; font-size: 1.2rem; letter-spacing: -.01em; }
.key-points ul, .care-questions ul { margin-bottom: 0; }
.key-points li, .care-questions li { margin: .55em 0; }
.medical-note { margin: 1.5rem 0; border-left: 3px solid var(--ochre); padding: .25rem 0 .25rem 1rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.article-photo { margin: 1.8rem 0 2.2rem; background: var(--bone); border: 1px solid var(--line); }
.article-photo img { width: 100%; }
.article-body > section { margin: 2.8rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.article-body > section > h2 { padding-top: .25rem; }
.article-body > section:first-child { margin-top: 1rem; }
.hub-section ul { list-style: none; padding: 0; margin-bottom: 0; }
.hub-section li { padding: 1rem 0; border-top: 1px solid var(--line); }
.hub-section li:first-child { border-top: 0; padding-top: .2rem; }
.hub-section a { font-family: var(--sans); font-size: 1.04rem; font-weight: 650; }
.resource-list { list-style: none; padding: 0; }
.resource-list li { margin: 1.3rem 0; padding: 0 0 1.3rem; border-bottom: 1px solid var(--line); }
.resource-list li:last-child { border-bottom: 0; }
.resource-list p { margin: 0; }
.resource-list a { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; }
dl { margin: 0; }
dt { margin: 1.7rem 0 .5rem; font-size: 1.18rem; color: var(--cobalt); scroll-margin-top: 1.5rem; }
dt:first-child { margin-top: .4rem; }
dd { margin: 0 0 1rem; }
.letter-sources { margin-top: 1.4rem; padding-top: .8rem; border-top: 1px dotted var(--line); font-size: .94rem; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 1.5rem 0; font-size: .96rem; line-height: 1.55; }
caption { text-align: left; margin-bottom: .75rem; font: 650 1rem/1.4 var(--sans); color: var(--cobalt); }
th, td { border: 1px solid var(--line); padding: .65rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: normal; }
th { background: var(--bone); font-family: var(--sans); font-size: .94rem; font-weight: 650; }
.diagram { margin: 1.5rem 0 0; padding: 1rem .25rem; border: 1px solid var(--line); background: #fcfaf5; }
.diagram svg { width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.diagram-line { fill: none; stroke: var(--ink); stroke-width: 2; }
.diagram-bone { fill: var(--bone); stroke: var(--ink); stroke-width: 2.5; }
.diagram-soft { fill: #dce5f1; stroke: var(--cobalt); stroke-width: 2.5; }
.diagram-label { fill: var(--ink); font-family: var(--sans); font-size: 23px; font-weight: 600; }
.diagram-guide { fill: none; stroke: var(--muted); stroke-width: 1.7; }
.diagram-divider { stroke: var(--line); stroke-width: 1; }
.name-context { padding: 1rem 1.2rem; border-left: 3px solid var(--cobalt); background: var(--bone); }
.independence-notice { font-size: 1rem; line-height: 1.7; }
.care-questions { margin-top: 3rem; }
.site-footer { border-top: 3px solid var(--cobalt); background: var(--bone); }
.footer-inner { padding-block: 2.5rem 3rem; }
.footer-heading { font: 650 1.25rem/1.3 var(--sans); margin: 0 0 1rem; }
.footer-notice { max-width: 99ch; margin-bottom: 2.5rem; }
.footer-index { display: grid; gap: 1.7rem 2rem; }
.footer-index h3 { font-size: 1rem; margin: 0 0 .8rem; }
.footer-index ul { list-style: none; padding: 0; margin: 0; }
.footer-index li { padding: 0; margin: 0 0 .7rem; font-size: 1rem; line-height: 1.45; }
.footer-home { margin-bottom: 1.4rem; font-family: var(--sans); font-size: 1rem; font-weight: 650; }
@media (min-width: 620px) {
  .container { width: min(100% - 3rem, 1272px); }
  .primary-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .key-points, .care-questions { padding: 1.3rem 1.6rem; }
  .footer-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .header-inner { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(0, 1.7fr); align-items: start; gap: 2rem; padding-block: 1.4rem; }
  .primary-nav { margin-top: 0; }
  .nav-group { border-top: 0; }
  .main-shell { padding-block: 3.8rem 5rem; }
  .article-grid { display: grid; grid-template-columns: minmax(180px, 225px) minmax(0, 800px); gap: clamp(2.2rem, 5vw, 5.5rem); align-items: start; }
  .contents { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow-y: auto; margin-top: 2.3rem; }
  .footer-index { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .primary-nav, .contents, .skip-link { display: none; }
  .article-grid { display: block; }
  body { background: white; font-size: 12pt; }
  .container { width: 100%; }
  .site-header, .site-footer { background: white; }
}

.diagram svg.anatomy-diagram { max-width: 800px; }
.anatomy-diagram .diagram-label { font-size: 44px; }
@media (max-width: 999px) { .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem .9rem; } }
