/* The Legacy route retains the original site styles and record composition. */
body:has([data-family-explorer]) [hidden] { display: none !important; }
.legacy-family, .legacy-chapters {
  max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px,4vw,48px);
}
.legacy-family { position: relative; isolation: isolate; padding-block: clamp(52px,7vw,98px) 0; }
.legacy-family-brush { position: absolute; left: 0; top: 40px; width: min(460px,43%); height: auto; opacity: .35; transform: rotate(-6deg); z-index: -1; pointer-events: none; }
.legacy-family-intro { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 60px; }
.legacy-family-intro > p { margin: 0; max-width: 420px; line-height: 1.7; color: #3A4048; }
.legacy-kicker { margin: 0 0 16px; color: #78604A; text-transform: uppercase; letter-spacing: .13em; font: 500 12px/1.5 'IBM Plex Mono',monospace; }
.legacy-family-intro h2 { margin: 0; font-size: clamp(34px,4.2vw,56px); line-height: 1; letter-spacing: -.035em; }
.legacy-family-intro h2 em { color: #2D4DB5; font: italic 400 1em/1 'Instrument Serif',Georgia,serif; }
.legacy-explorer { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,510px),1fr)); gap: 28px; align-items: start; }
.legacy-years { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,198px),1fr)); gap: 18px; }
.legacy-year h3 { margin: 0 0 9px; padding-bottom: 8px; border-bottom: 2px solid #161B22; color: #091B4D; font: italic 400 28px/1 'Instrument Serif',Georgia,serif; }
.legacy-year ul, .legacy-litter-list { list-style: none; margin: 0; padding: 0; }
.legacy-year li + li { margin-top: 10px; }
.legacy-year a { display: flex; align-items: center; gap: 10px; min-height: 78px; padding: 8px 10px; border: 1.5px solid #D3CAB9; border-radius: 6px 12px 8px 10px; background: #fff; color: #161B22; text-decoration: none; }
.legacy-year img { width: clamp(48px,5vw,64px); height: clamp(48px,5vw,64px); flex: 0 0 auto; object-fit: cover; border-radius: 5px; background: #F8F6F1; }
.legacy-year a > span { min-width: 0; overflow-wrap: anywhere; }
.legacy-year small { display: block; color: #78604A; font: 500 10px/1.5 'IBM Plex Mono',monospace; }
.legacy-year a[aria-current="true"] { background: #091B4D; border-color: #091B4D; color: white; }
.legacy-year a[aria-current="true"] small { color: #F3DEAC; }
.legacy-year a[data-related] { border-color: #2D4DB5; }
.legacy-panels { display: grid; gap: 18px; min-width: 0; }
.legacy-dossier { padding: clamp(18px,3vw,34px); border-radius: 6px 20px 8px 18px; background: #fff; box-shadow: 0 1px 0 rgba(22,27,34,.05), 0 24px 50px -30px rgba(56,45,34,.35); scroll-margin-block-start: calc(var(--legacy-header,96px) + 12px); }
.legacy-dossier h3 { display: inline; font-size: 28px; margin: 0; }
.legacy-dossier summary { cursor: pointer; }
.legacy-dossier details[open] summary { margin-bottom: 12px; }
[data-mode="focus"] .legacy-dossier summary { list-style: none; pointer-events: none; }
[data-mode="focus"] .legacy-dossier summary::-webkit-details-marker { display: none; }
.legacy-dossier-record { scroll-margin-block-start: calc(var(--legacy-header,96px) + 24px); }
.legacy-dossier-record > .legacy-kicker { margin-bottom: 4px; }
.legacy-registered { margin: 5px 0 0; color: #6E5D49; }
.legacy-dossier dl { margin: 20px 0 18px; border-top: 1px solid #DDD6CA; }
.legacy-dossier dl > div { display: grid; grid-template-columns: minmax(70px,26%) minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #DDD6CA; }
.legacy-dossier dt { color: #78604A; font: 500 11px/1.6 'IBM Plex Mono',monospace; text-transform: uppercase; }
.legacy-dossier dd { margin: 0; overflow-wrap: anywhere; }
.legacy-dossier a, .legacy-litter a { color: #091B4D; text-underline-offset: .17em; }
.legacy-litter-list { margin-top: clamp(36px,4vw,50px); border-top: 2px solid #161B22; }
.legacy-litter { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px 28px; padding-block: 22px; border-bottom: 1px solid #DDD6CA; }
.legacy-litter h3 { margin: 0; color: #091B4D; font: italic 400 clamp(26px,2.6vw,34px)/1.05 'Instrument Serif',Georgia,serif; }
.legacy-litter h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.legacy-litter p { margin: 4px 0; }
.legacy-litter .legacy-litter-meta { color: #78604A; font: 400 11px/1.6 'IBM Plex Mono',monospace; letter-spacing: .08em; }
.legacy-litter .legacy-pairing { color: #161B22; font-weight: 600; }
.legacy-litter ul { margin: 6px 0 0; padding: 0; list-style: none; color: #3A4048; }
.legacy-litter li { display: inline; }
.legacy-litter li:not(:last-child)::after { content: " · "; }
.legacy-litter li a { display: inline-block; min-height: 24px; color: #2D4DB5; text-underline-offset: .16em; overflow-wrap: anywhere; }
.legacy-litter a:hover, .legacy-litter a:focus-visible { text-decoration: underline; }
.legacy-litter .legacy-litter-link { color: #2D4DB5; font-size: 14px; font-weight: 600; text-decoration: none; justify-self: start; align-self: center; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.legacy-chapters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid #E6E1D7; }
.legacy-chapters a { color: #161B22; text-decoration: none; }
.legacy-chapters a:hover { color: #2D4DB5; }
.legacy-chapters a:last-child { margin-inline-start: auto; text-align: right; }
.legacy-family a:focus-visible, .legacy-dossier-record:focus-visible, .legacy-dossier summary:focus-visible { outline: 2px solid #2D4DB5; outline-offset: 3px; }
@media (min-width: 720px) {
  .legacy-litter { grid-template-columns: minmax(160px,.9fr) minmax(0,1.7fr) auto; }
  .legacy-litter .legacy-litter-link { justify-self: end; }
}
@media (min-width: 1180px) {
  .legacy-family,.legacy-chapters { max-width: var(--editorial-width,1240px); padding-inline: var(--editorial-gutter,48px); }
}
@media (min-width: 1150px) and (min-height: 850px) {
  [data-mode="focus"] .legacy-explorer > div:first-child { position: sticky; top: calc(var(--legacy-header,96px) + 16px); }
}
@media (forced-colors: active) {
  .legacy-year a[aria-current="true"] { border-color: Highlight; }
  .legacy-family-brush { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html:has([data-family-explorer]) { scroll-behavior: auto; }
}
