@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/sofia-sans-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:"Sofia Sans Semi Condensed";font-style:normal;font-weight:100 900;font-display:swap;src:url(/assets/fonts/sofia-sans-semi-condensed-latin-wght-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}

/* Tokens. Light palette first; dark follows the system unless data-theme pins it. */
:root {
  color-scheme: light dark;
  --paper: #ffffff;
  --ink: #13202c;
  --muted: #51606e;
  --rule: #cbd5dd;
  --wash: #edf2f6;
  --blue: #16406e;
  --on-blue: #f4f8fc;
  --on-blue-soft: #a9c6e6;
  --straw: #f0c055;
  --straw-rule: #c9952a;
  --accent: #8a5f0b;
  --link: #1556a0;
  --body: "Sofia Sans", Bahnschrift, "DIN Alternate", "Segoe UI", system-ui, sans-serif;
  --head: "Sofia Sans Semi Condensed", "Sofia Sans", Bahnschrift, "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --measure: 43rem;
  --wrap: 76rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1822;
    --ink: #e7edf3;
    --muted: #9fb0c0;
    --rule: #2b3b4a;
    --wash: #16232f;
    --blue: #123a66;
    --straw-rule: #d6a640;
    --accent: #e6b450;
    --link: #8dbdf0;
  }
}
:root[data-theme="dark"] {
  --paper: #0e1822;
  --ink: #e7edf3;
  --muted: #9fb0c0;
  --rule: #2b3b4a;
  --wash: #16232f;
  --blue: #123a66;
  --straw-rule: #d6a640;
  --accent: #e6b450;
  --link: #8dbdf0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.5;
  font-synthesis-weight: none;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
a { color: var(--link); text-decoration-thickness: .07em; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--straw-rule); outline-offset: 2px; }
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999rem; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 20; background: var(--paper); padding: .5rem .8rem; }

/* Preview bar, only in the private preview build */
.preview { background: var(--wash); border-bottom: 1px solid var(--rule); font-size: .88rem; color: var(--muted); }
.preview .wrap { padding-block: .45rem; }

/* Header */
.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1.5rem; padding-block: 1rem .85rem; }
.wordmark { font-family: var(--head); font-weight: 750; font-size: 1.55rem; color: var(--ink); text-decoration: none; }
.sections { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; font-size: 1.02rem; }
.sections a { color: var(--ink); text-decoration: none; padding-block: .15rem; border-bottom: 2px solid transparent; }
.sections a:hover { border-bottom-color: var(--rule); }
.sections a[aria-current="page"] { border-bottom-color: var(--straw-rule); font-weight: 650; }

/* Part switcher: the six part numbers are the real structure of the series */
.parts { border-block: 1.5px solid var(--ink); }
.parts ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.parts li { border-right: 1px solid var(--rule); }
.parts li:first-child { border-left: 1px solid var(--rule); }
.parts a { display: flex; align-items: center; gap: .7rem; height: 100%; padding: .6rem .8rem; color: var(--ink); text-decoration: none; }
.parts a:hover { background: var(--wash); }
.parts .n { font-family: var(--head); font-weight: 750; font-size: 1.95rem; line-height: 1; }
.parts .w { font-size: .86rem; line-height: 1.2; color: var(--muted); }
.parts a[aria-current="page"] { background: var(--blue); color: var(--on-blue); }
.parts a[aria-current="page"] .w { color: var(--on-blue-soft); }
.parts li.gone .n { text-decoration: line-through; text-decoration-thickness: .07em; }
@media (max-width: 900px) {
  .parts ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .parts li:nth-child(-n+3) { border-bottom: 1px solid var(--rule); }
  .parts li:nth-child(4) { border-left: 1px solid var(--rule); }
}
@media (max-width: 540px) {
  .parts .wrap { padding-inline: 0; }
  .parts ol { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .parts li:nth-child(-n+3) { border-bottom: 0; }
  .parts li:first-child, .parts li:nth-child(4) { border-left: 0; }
  .parts li:first-child { border-left: 0; }
  .parts li:last-child { border-right: 0; }
  .parts a { justify-content: center; padding: .55rem .2rem; }
  .parts .w { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

/* Page head */
main { padding-bottom: 4rem; }
.head { padding-top: 2.4rem; }
.crumb { font-size: .92rem; margin: 0 0 1rem; color: var(--muted); }
.crumb a { color: var(--muted); }
h1 {
  font-family: var(--head);
  font-weight: 750;
  font-size: clamp(2.5rem, 1.2rem + 5.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.012em;
  margin: 0;
}
h1 .sub { display: block; font-weight: 400; font-size: .5em; line-height: 1.12; letter-spacing: 0; margin-top: .4em; max-width: 26ch; text-wrap: balance; }
.lead { font-size: 1.32rem; line-height: 1.42; max-width: var(--measure); margin: 1.5rem 0 0; }
.byline { font-size: .92rem; color: var(--muted); margin: .9rem 0 0; max-width: var(--measure); }

/* Drawing sheet: sketch on the left, title block on the right, as on an engineering drawing */
.sheet { margin: 2rem 0 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); border: 1.5px solid var(--ink); }
.sheet .drawing { background: var(--blue); display: flex; align-items: center; justify-content: center; padding: 1.1rem; }
.sheet .drawing svg { width: 100%; height: auto; max-height: 23rem; display: block; }
.sheet dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-left: 1.5px solid var(--ink); }
.sheet .f { padding: .6rem .85rem .65rem; border-bottom: 1px solid var(--rule); min-width: 0; }
.sheet .f:nth-last-child(-n+2):not(.wide) { border-bottom: 0; }
.sheet .f.r { border-left: 1px solid var(--rule); }
.sheet .f.wide { grid-column: 1 / -1; }
.sheet dt { font-size: .82rem; line-height: 1.2; color: var(--muted); margin: 0 0 .2rem; }
.sheet dd { margin: 0; font-weight: 600; line-height: 1.3; }
.sheet figcaption { grid-column: 1 / -1; border-top: 1.5px solid var(--ink); padding: .55rem .85rem; font-size: .88rem; color: var(--muted); margin: 0; max-width: none; }
@media (max-width: 860px) {
  .sheet { grid-template-columns: 1fr; }
  .sheet dl { border-left: 0; border-top: 1.5px solid var(--ink); }
}
@media (max-width: 520px) {
  .sheet dl { grid-template-columns: 1fr; }
  .sheet .f.r { border-left: 0; }
  .sheet .f:nth-last-child(2):not(.wide) { border-bottom: 1px solid var(--rule); }
}
.dw text { font-family: var(--body); font-size: 18px; fill: var(--on-blue); }
.dw .dim { font-family: var(--head); font-weight: 700; font-size: 26px; }
.dw .o { fill: none; stroke: var(--on-blue); stroke-width: 2.6; }
.dw .ghost { stroke-dasharray: 9 6; }
.dw .thin { fill: none; stroke: var(--on-blue-soft); stroke-width: 1.3; }
.dw .ctr { fill: none; stroke: var(--on-blue-soft); stroke-width: 1.2; stroke-dasharray: 16 4 3 4; }
.dw .hatch { stroke: var(--on-blue-soft); stroke-width: 1; opacity: .6; }
.dw .arrow { fill: var(--on-blue-soft); stroke: none; }
.dw .seam { stroke: var(--straw); stroke-width: 6; fill: none; }

/* Article flow: prose keeps a reading measure, tables and figures may run wider */
.flow > * { max-width: var(--measure); }
.flow > .full { max-width: none; }
.flow h2 {
  font-family: var(--head);
  font-weight: 750;
  font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.1rem);
  line-height: 1.1;
  margin: 3.3rem 0 .9rem;
  padding-top: 1.1rem;
  border-top: 1.5px solid var(--ink);
  max-width: none;
}
.flow h2 span { display: block; max-width: var(--measure); text-wrap: balance; }
.flow p { margin: 0 0 1rem; }
sup.ref { font-size: .7em; line-height: 0; vertical-align: .55em; margin-left: .1em; white-space: nowrap; }
sup.ref a { text-decoration: none; font-weight: 600; }
sup.ref a:hover { text-decoration: underline; }

.reading { border-left: 4px solid var(--straw-rule); padding: .1rem 0 .15rem 1.1rem; margin: 1.5rem 0; }
.reading .tag { font-family: var(--head); font-weight: 750; font-size: 1.02rem; color: var(--accent); margin: 0 0 .25rem; }
.reading p { margin: 0 0 .5rem; }
.reading .basis { font-size: .88rem; color: var(--muted); margin: 0; }

.see { list-style: none; margin: 1rem 0; padding: 0; }
.see li { margin: .3rem 0; }
.see a { font-weight: 650; }

/* Tables */
.tbl { margin: 1.7rem 0 2.1rem; }
.tbl .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; line-height: 1.38; font-variant-numeric: tabular-nums lining-nums; }
caption { caption-side: top; text-align: left; font-family: var(--head); font-weight: 700; font-size: 1.18rem; padding: 0 0 .55rem; }
th, td { text-align: left; vertical-align: top; padding: .6rem 1.15rem .6rem 0; border-bottom: 1px solid var(--rule); }
th:last-child, td:last-child { padding-right: 0; }
thead th { font-weight: 600; font-size: .88rem; color: var(--muted); border-bottom: 1.5px solid var(--ink); vertical-align: bottom; }
tbody th { font-weight: 700; }
.tbl.nowrap1 tbody th { white-space: nowrap; }
.tbl.w1 table { min-width: 42rem; }
.tbl.w2 table { min-width: 58rem; }
.tbl .meta { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; max-width: var(--measure); }

/* Part finder */
.finder { margin: 1.5rem 0 2.4rem; }
.finder table { table-layout: fixed; border: 1.5px solid var(--ink); }
.finder th, .finder td { padding: 0; border: 1px solid var(--rule); }
.finder thead th { padding: .65rem 1rem; background: var(--wash); color: var(--ink); font-size: .98rem; font-weight: 650; border-bottom: 1.5px solid var(--ink); }
.finder thead th:first-child { width: 22%; }
.finder tbody th { padding: .9rem 1rem; background: var(--wash); font-family: var(--head); font-size: 1.2rem; line-height: 1.2; vertical-align: middle; }
.finder td a, .finder td .none { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; padding: .9rem 1rem; min-height: 5.6rem; color: var(--ink); text-decoration: none; }
.finder td a:hover { background: var(--wash); }
.finder td a:hover .pn { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.finder .pn { display: block; font-family: var(--head); font-weight: 750; font-size: 1.55rem; line-height: 1.1; color: var(--link); }
.finder .pd { display: block; font-size: .92rem; line-height: 1.3; color: var(--muted); margin-top: .15rem; }
.finder .none { grid-template-columns: 1fr; color: var(--muted); font-size: .95rem; }
.finder svg { color: var(--ink); flex: none; }
figcaption { font-size: .92rem; color: var(--muted); margin-top: .65rem; max-width: var(--measure); }
@media (max-width: 640px) {
  .finder td a { grid-template-columns: 1fr; padding: .7rem .6rem; }
  .finder td a svg { display: none; }
  .finder tbody th, .finder thead th { padding: .6rem; font-size: 1rem; }
  .finder thead th:first-child { width: 27%; }
  .finder .pn { font-size: 1.3rem; }
}

/* Lineage chart */
.lineage { margin: 1.4rem 0 2.2rem; }
.lineage .scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lineage svg { display: block; width: 100%; min-width: 56rem; height: auto; }
.lg-grid { stroke: var(--rule); stroke-width: 1; }
.lg-row { stroke: var(--ink); stroke-width: 2; fill: none; }
.lg-node { fill: var(--ink); }
.lg-cur { fill: var(--link); stroke: var(--paper); stroke-width: 2; }
.lg-pre { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.lg-merge { stroke: var(--straw-rule); stroke-width: 2.5; fill: none; }
.lg-mh { fill: var(--straw-rule); }
.lg-today { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.lg-t { font-family: var(--body); font-size: 13.5px; fill: var(--muted); }
.lg-ti { font-family: var(--body); font-size: 13.5px; fill: var(--ink); }
.lg-tb { font-family: var(--head); font-weight: 750; font-size: 18px; fill: var(--ink); }

/* Sources and method */
.sources ol { margin: 0; padding-left: 1.6rem; font-size: .97rem; line-height: 1.42; }
.sources li { margin: 0 0 .65rem; padding-left: .2rem; overflow-wrap: anywhere; }
.sources li:target { background: var(--wash); outline: 2px solid var(--straw-rule); outline-offset: 3px; }
.sources .when { color: var(--muted); }
.about { margin-top: 2.4rem; padding: 1.1rem 1.25rem 1.2rem; background: var(--wash); font-size: .97rem; }
.about h2 { font-family: var(--head); font-weight: 750; font-size: 1.2rem; margin: 0 0 .5rem; padding: 0; border: 0; }
.about p { margin: 0 0 .6rem; }
.about p:last-child { margin-bottom: 0; }

.foot { border-top: 1.5px solid var(--ink); padding-block: 1.4rem 2.6rem; font-size: .92rem; color: var(--muted); }
.foot p { margin: 0 0 .4rem; max-width: var(--measure); }
.foot .legal { margin-top: .9rem; }
.foot .legal a { color: inherit; margin-right: 1.5rem; }

/* Legal pages and the not-found page: plain text, no claim graph */
.flow.plain { padding-top: .4rem; }
.flow.plain > p:first-child { margin-top: 1.4rem; }
.flow.plain h2 { margin-top: 2.4rem; }
.flow .lines { line-height: 1.6; }

/* Data viewer used by the private preview instead of file downloads */
dialog.pv { width: min(52rem, 94vw); max-height: 86vh; padding: 0; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); }
dialog.pv::backdrop { background: rgb(8 16 24 / .55); }
dialog.pv .pvh { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid var(--rule); font-family: var(--head); font-weight: 700; }
dialog.pv pre { margin: 0; padding: 1rem; overflow: auto; max-height: 62vh; font-size: .84rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog.pv .pvb { display: flex; gap: .6rem; padding: .7rem 1rem; border-top: 1px solid var(--rule); }
dialog.pv button { font: inherit; font-size: .95rem; padding: .4rem .9rem; border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
dialog.pv button.primary { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .preview, .parts, .sections, .skip { display: none; }
  .sheet .drawing { background: none; }
  .dw text { fill: #000; } .dw .o { stroke: #000; } .dw .thin, .dw .ctr, .dw .hatch { stroke: #555; } .dw .arrow { fill: #555; } .dw .seam { stroke: #000; }
}
