:root {
  color-scheme: light;
  --paper: #f7f4ea;
  --panel: #fffdf6;
  --ink: #25392e;
  --muted: #505b4e;
  --deep: #243f35;
  --dark: #192e26;
  --line: #dcd7c7;
  --gold: #e3be79;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans) }
a { color: inherit; text-underline-offset: .25em }
button { font: inherit; color: inherit; cursor: pointer }
:focus-visible { outline: 3px solid #a36a20; outline-offset: 4px }
img { display: block; max-width: 100%; object-fit: cover }
figure, p, h1, h2, h3, h4 { margin: 0 }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08 }
h2 { font-size: clamp(2.65rem, 6vw, 4.9rem); letter-spacing: -.065em }
h3 { font-size: clamp(1.6rem, 3vw, 2.35rem); letter-spacing: -.035em }
.frame { width: min(100% - 2rem, 72rem); margin-inline: auto }
.skip { position: fixed; z-index: 20; top: .25rem; left: 1rem; transform: translateY(-150%); padding: .6rem 1rem; background: var(--panel) }
.skip:focus { transform: none }
.masthead { background: var(--dark); color: #f7f3e8 }
.navigation, .foot { min-height: 4rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap }
.navigation nav { display: flex; gap: clamp(1rem, 4vw, 2rem) }
.navigation a, .foot a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none }
.navigation a:hover, .foot a:hover { text-decoration: underline }
.brand { font-weight: 750; font-size: .8rem; letter-spacing: .21em }
.hero { background: var(--deep); color: #faf3e5; position: relative; overflow: hidden }
.hero-inner { display: grid; gap: 2rem; padding-block: clamp(2.8rem, 8vw, 7rem); align-items: center }
.hero-text { position: relative }
.eyebrow { font: 750 .74rem/1.4 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: #6b5b3a; margin-bottom: .8rem }
.hero .eyebrow { color: var(--gold) }
.hero h1 { font-size: clamp(3.5rem, 9.8vw, 7.8rem); letter-spacing: -.083em; line-height: .99; margin: .6rem 0 1.2rem; text-wrap: balance }
.hero h1 i { font-weight: 400; color: var(--gold) }
.hero-description { font-size: clamp(1rem, 2vw, 1.2rem); max-width: 34rem; color: #f2e9d8 }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: .45rem; font-size: .94rem; text-decoration: none; font-weight: 680 }
.button:hover { text-decoration: underline }
.primary { margin-top: 1.5rem; background: var(--gold); color: #283429; border-color: transparent }
.hero-places { display: flex; align-items: center; gap: .55rem; margin-top: 1.7rem; color: #e6dfd0; font-size: .91rem }
.hero-places span { width: .25rem; height: .25rem; border-radius: 50%; background: var(--gold) }
.hero-image { margin: 0; background: #eae3d0; color: #303d2d; border-radius: .45rem; padding: .5rem; box-shadow: 0 18px 55px #0b201d6b }
.hero-image img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: center 54%; border-radius: .23rem }
.hero-image figcaption { display: flex; gap: .5rem; justify-content: space-between; flex-wrap: wrap; padding: .62rem .5rem .3rem; font-size: .82rem }
.section { padding-block: clamp(3.2rem, 8vw, 6rem) }
.section-intro { margin-bottom: 1.8rem }
.section-intro > p:last-child { color: var(--muted); margin-top: .8rem; max-width: 44rem }
.generation-tree { max-width: 46rem; margin: 2.6rem auto 1.6rem }
.generation-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.5rem, 3vw, 1.6rem); position: relative }
.generation-row + .generation-row { margin-top: 2.25rem }
.generation-row + .generation-row::before { content: ""; width: 50%; height: 1.2rem; border-top: 1px solid #ac9f83; border-inline: 1px solid #ac9f83; position: absolute; top: -1.24rem; left: 25%; pointer-events: none }
.generation-row:first-child::after { content: ""; height: .96rem; border-left: 1px solid #ac9f83; position: absolute; left: 50%; bottom: -.96rem }
.legend { display: flex; flex-wrap: wrap; gap: .42rem; margin: 0 0 1.35rem; justify-content: center }
.tag { display: inline-flex; align-items: center; gap: .32rem; background: #e9ebde; color: #384737; font-size: .73rem; font-weight: 650; border-radius: 999px; padding: .19rem .54rem; line-height: 1.5 }
.tag::before { content: ""; width: .38rem; height: .38rem; border-radius: 50%; background: currentColor }
.tag.family { background: #e8eaf0; color: #46516a }
.tag.lead { background: #f3e5cb; color: #744b25 }
.tag.missing { background: #f2e2dc; color: #783f37 }
.branch-grid { display: grid; gap: 1rem; align-items: start }
.branch { min-width: 0; border: 1px solid var(--line); border-radius: .8rem; background: #efece0; overflow: hidden }
.branch[data-branch=ryan] { background: #eceee4 }
.branch[data-branch=dehaye] { background: #e9ebe9 }
.branch[data-branch=pascale] { background: #efebe8 }
.branch > summary { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) 2rem; list-style: none; gap: .75rem; cursor: pointer; padding: 1.15rem }
summary::-webkit-details-marker { display: none }
.branch > summary::after { content: "+"; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #c5c0b0; border-radius: 50%; font-size: 1.15rem }
.branch[open] > summary::after { content: "−" }
.branch h3 { margin-top: .2rem }
.branch-place { color: #526151; font-size: .78rem; font-weight: 650 }
.branch-flow { padding: 0 .8rem .85rem }
.tree-level { border-inline-start: 1px solid #b6ae98; margin-inline-start: .52rem; padding: .15rem 0 .68rem 1rem; position: relative }
.tree-level::before { content: ""; width: .52rem; height: .52rem; border: 1px solid #857b62; border-radius: 50%; background: var(--paper); position: absolute; top: .86rem; left: -.32rem }
.tree-level.gap { border-inline-start-style: dashed }
.level-label { display: flex; flex-wrap: wrap; gap: .38rem; align-items: center; margin-bottom: .4rem; font-size: .77rem; font-weight: 700; color: #5c5545 }
.person-grid { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit,minmax(min(100%,11rem),1fr)) }
.person { display: flex; align-items: center; text-align: start; padding: .57rem; gap: .6rem; width: 100%; min-height: 4rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--panel); transition: background 160ms, border-color 160ms, transform 160ms }
.person:hover { background: #fbf2dc; border-color: #a3926c; transform: translateY(-1px) }
.generation-row:first-child .person { background: var(--deep); color: #fff6e6; border-color: var(--deep); }
.generation-row:first-child .person:hover { background: #315246 }
.generation-row:first-child .role { color: #eee1c6 }
.person .name { display: block; line-height: 1.15; font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.37rem); font-weight: 600; letter-spacing: -.022em; overflow-wrap: anywhere }
.role { display: block; margin-top: .15rem; color: var(--muted); font-size: .76rem; line-height: 1.35 }
.avatar { flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border-radius: .35rem; display: grid; place-items: center; overflow: hidden; background: #e5e3d5; color: #35483b; font: 700 .72rem var(--sans); letter-spacing: .05em }
.avatar img { width: 100%; height: 100% }
.side-people { border-top: 1px solid #cfc9b8; margin-top: .6rem; padding-top: .55rem }
.side-people > summary { padding: .38rem 0 .65rem; min-height: 2.75rem; color: #485447; font-size: .9rem; cursor: pointer; list-style: revert }
.record-section { background: #eae5d7 }
.record-controls { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.3rem }
.record-controls button { border: 1px solid #c0b9a7; border-radius: 100px; background: var(--panel); padding: .35rem .85rem; min-height: 2.75rem }
.record-controls button[aria-pressed=true] { background: var(--deep); color: #fff9ee; border-color: var(--deep) }
.record-grid, .research-grid { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit,minmax(min(100%, 16.5rem),1fr)) }
.record-tile { min-width: 0; min-height: 4.8rem; display: flex; align-items: center; text-align: start; gap: .72rem; padding: .65rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); transition: background 160ms, border-color 160ms }
.record-tile:hover { background: #faf1dc; border-color: #a3926c }
.record-tile strong { display: block; font-family: var(--serif); font-size: 1.17rem; line-height: 1.14 }
.record-tile small { display: block; color: var(--muted); font-size: .76rem; margin-top: .28rem; line-height: 1.3 }
.record-icon { flex: 0 0 3.15rem; height: 3.4rem; overflow: hidden; border-radius: .26rem; background: #e8e4d7; display: grid; place-items: center }
.record-icon img { width: 100%; height: 100% }
.record-icon svg { width: 1.5rem; color: #786747 }
.research-grid article { border: 1px solid var(--line); border-radius: .55rem; background: var(--panel); padding: .95rem 1rem }
.research-grid h3 { font-size: 1.42rem; margin: .42rem 0 .48rem }
.research-grid p { margin-bottom: .55rem; color: var(--muted) }
.research-grid button { background: transparent; border: 0; padding: .45rem 0; text-decoration: underline; text-underline-offset: .26em; min-height: 2.75rem }
.foot { padding-block: .7rem }
.foot p, .foot > a:last-child { font-size: .86rem }
dialog { border: 0; max-height: 92dvh; width: min(100%, 52rem); max-width: 100%; padding: 0; color: var(--ink); background: var(--panel); border-radius: .9rem .9rem 0 0; margin: auto auto 0; box-shadow: 0 20px 80px #101d1870; overscroll-behavior: contain }
body:has(dialog[open]) { overflow: hidden }
dialog::backdrop { background: #121f1ac4 }
dialog[open] { animation: slide-in 260ms ease-out both }
.sheet { position: relative; }
.dismiss { position: sticky; top: .6rem; float: right; z-index: 5; margin: .64rem .66rem -3.6rem 0; border: 1px solid #dbd5c9; border-radius: 50%; background: #fffdf6; width: 2.75rem; height: 2.75rem; line-height: 1; font-size: 1.7rem; display: grid; place-items: center }
.detail-head { display: grid; gap: .9rem; align-items: center; padding: 1.1rem 3.8rem 1.1rem 1.1rem; background: var(--deep); color: #f9f0dc }
.detail-head .eyebrow { color: var(--gold); margin-bottom: .35rem }
.detail-head h2 { font-size: clamp(2.15rem, 6vw, 3.9rem); margin-bottom: .55rem; overflow-wrap: anywhere }
.detail-head .avatar { width: clamp(3.2rem, 10vw, 5.5rem); height: clamp(3.2rem, 10vw, 5.5rem); font-size: 1.2rem }
.detail-head:has(.avatar) { grid-template-columns: auto minmax(0,1fr) }
.detail-content { padding: clamp(1rem, 4vw, 2.2rem); }
.detail-content > p { margin-bottom: .9rem }
.evidence-photo { margin-bottom: 1.15rem }
.evidence-photo img { border-radius: .42rem; width: 100%; max-height: 24rem; object-fit: contain; background: #eae5d7 }
.evidence-photo figcaption { font-size: .82rem; color: var(--muted); margin-top: .42rem }
.detail-content h3 { font-size: 1.65rem; margin: 1.1rem 0 .64rem }
.evidence-list { display: grid; gap: .48rem }
.evidence-list .record-tile { animation: reveal 270ms ease-out both; animation-delay: calc(var(--nth, 0) * 32ms) }
.gap-note { background: #f4e6de; border-inline-start: 3px solid #a3674e; margin-top: 1.25rem; padding: .75rem .85rem; border-radius: .2rem }
.gap-note h3 { margin: 0 0 .3rem; font-size: 1.28rem }
.detail-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1rem }
.detail-actions .button { background: #edeadd; }
.source-note { font-size: .85rem; color: var(--muted) }
@keyframes slide-in { from { opacity: .35; transform: translateY(1.55rem) } to { opacity: 1; transform: none } }
@keyframes reveal { from { opacity: 0; transform: translateY(.65rem) } to { opacity: 1; transform: none } }
@media (min-width: 46rem) {
  .frame { width: min(100% - 4rem, 72rem) }
  .hero-inner { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem) }
  .branch-grid { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .branch > summary { padding: 1.3rem }
  .branch-flow { padding-inline: 1.05rem }
  dialog { margin: auto; border-radius: .9rem }
  .detail-head { padding: 1.3rem 4.1rem 1.3rem 2rem }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001s !important; transition-duration: .001s !important }
}
.detail-footer { padding-top: 0 }
.back-detail { background: #edeadd }
.detail-content .source-note:last-child { margin: .75rem 0 0 }
@media (max-width: 26rem) {
  .generation-row .person { align-items: flex-start; flex-direction: column; min-height: 6.25rem }
}
@media (max-width: 46rem) {
  .evidence-photo img { max-height: 15rem }
}

/* Mahogany cabinet, oak branches and paper evidence sheets. */
:root {
  --paper: #f4eee1;
  --panel: #fffaf0;
  --ink: #332118;
  --muted: #665548;
  --deep: #512919;
  --dark: #28130e;
  --line: #d7c6ab;
  --gold: #e7be82;
  --mahogany: radial-gradient(ellipse at 28% 8%, #a4502b51, transparent 68%),
    repeating-linear-gradient(3deg, #1308061a 0, #7d341218 2px, transparent 5px, #16080521 9px, transparent 15px),
    linear-gradient(125deg, #482219, #2d1510 54%, #3d1c13);
}
html { scroll-padding-top: 1rem }
body { background: radial-gradient(ellipse at 80% 0%, #e9d4b3 0, transparent 48rem), var(--paper) }
.navigation { min-height: 3.2rem }
.hero { background: var(--mahogany); border-block: 1px solid #775034 }
.hero-inner { gap: 1.7rem; padding-block: clamp(1.8rem, 5vw, 4rem) }
.hero h1 { font-size: clamp(3.45rem, 9.4vw, 8rem); margin: .1rem 0 1.1rem }
.hero-description { max-width: 28rem }
.hero .primary { gap: .7rem; margin-top: 1.25rem }
.hero-image { background: #bd8b52; padding: .45rem; box-shadow: 0 14px 33px #170906aa, inset 0 0 0 1px #edca94 }
.hero-image img { aspect-ratio: 8 / 5; object-position: 50% 61%; border-radius: 2px }
.hero-image figcaption { color: #2e180f; font-weight: 700; padding: .5rem .35rem .15rem }
.hero-image figcaption span { font-weight: 500 }
#tree.frame { width: min(100% - 1.25rem, 82rem); padding-block: 2.25rem 3.5rem }
.tree-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .55rem 2rem; margin-inline: .2rem; margin-bottom: 1.1rem }
.tree-intro > p:last-child { margin: 0 0 .25rem; max-width: 26rem }
.tree-intro .eyebrow { margin-bottom: .5rem }
.wood-frame {
  color: #fff0d7;
  border: 1px solid #e3b67a;
  border-radius: 1rem;
  background: var(--mahogany);
  box-shadow: 0 12px 35px #49281945, inset 0 0 0 4px #3f2016, inset 0 0 0 5px #9b6843;
  padding: .65rem;
}
.tree-toolbar { display: flex; justify-content: space-between; gap: .65rem; flex-wrap: wrap; padding: .2rem .12rem .6rem }
.tree-views, .camera { display: flex; flex-wrap: wrap; gap: .35rem }
.tree-toolbar button {
  min-height: 2.7rem;
  border: 1px solid #9d714b;
  border-radius: .4rem;
  padding: .28rem .7rem;
  color: #fde5c2;
  background: #321a14;
  font-size: .83rem;
  font-weight: 675;
}
.tree-toolbar button:hover { background: #5e3523 }
.tree-toolbar button[aria-pressed=true] { color: #2e190f; background: linear-gradient(#f0d1a3,#d9a467); border-color: #f0d5ac }
.wood-scroll {
  position: relative;
  overflow: auto;
  max-height: min(655px, 78svh);
  min-height: 310px;
  scrollbar-color: #bf8b53 #351a14;
  border: 1px solid #a5724f;
  border-radius: .55rem;
  background: radial-gradient(ellipse at 50% 35%, #89512f66, #2b151290), var(--mahogany);
  box-shadow: inset 0 0 42px #190b07c2;
}
#chart-stage {
  position: relative;
  transform: perspective(1400px) rotateX(var(--pitch,0deg)) rotateY(var(--angle,0deg));
  transform-style: preserve-3d;
  transition: transform 260ms ease-out;
  user-select: none;
}
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; fill: none; stroke-linecap: round }
.tree-trunk { stroke: #bc8c52; stroke-width: 7; opacity: .85 }
.branch-shadow { stroke: #22100b; stroke-width: 7; opacity: .75 }
.line-documented { stroke: #e0ad71; stroke-width: 3.2 }
.line-supported { stroke: #e0ad71; stroke-width: 3.2; stroke-dasharray: 13 5 }
.line-family { stroke: #e7c9a2; stroke-width: 2.2 }
.line-lead, .line-missing { stroke: #dfb98a; stroke-width: 2; stroke-dasharray: 5 6 }
.generation-caption {
  position: absolute;
  top: 13px;
  transform: translateX(-50%);
  text-align: center;
  width: 145px;
  color: #ffe0b0;
  font: 700 .67rem/1.25 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.medallion {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 145px;
  color: #fff1db;
  transform: translate(-50%,-35px) translateZ(12px);
  border: 0;
  background: none;
  padding: 0 .1rem .18rem;
  border-radius: .6rem;
  text-shadow: 0 1px 4px #1e0b06;
}
.medallion .avatar {
  width: 67px;
  height: 67px;
  margin-bottom: .26rem;
  border-radius: 50%;
  border: 3px solid #e1ba83;
  box-shadow: 0 0 0 1px #6c452b, 0 5px 10px #210c08a8, inset 0 0 8px #5c3a28;
  transition: scale .16s;
}
.medallion:hover .avatar, .medallion:focus-visible .avatar { scale: 1.11 }
.medallion strong { font: 600 1rem/1.06 var(--serif); text-wrap: balance; background: #3b1d15; box-shadow: 0 0 6px 2px #3b1d15; padding: .1rem .21rem; border-radius: .1rem }
.medallion small { font-size: .66rem; line-height: 1.15; color: #fae0ba; margin-top: .15rem; background: #3b1d15; border-radius: .12rem; padding: 0 .12rem }
.avatar { border-radius: 50%; background: #e6cfaa; color: #715035 }
.portrait-empty { background: radial-gradient(circle at top, #edce99, #9c653b); color: #51301d }
.portrait-empty svg { width: 62%; height: 62% }
.tree-key { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .5rem .12rem .1rem; color: #f1d7b4; font-size: .71rem }
.tree-key span { display: inline-flex; align-items: center; gap: .4rem }
.tree-key i { width: 16px; border-top: 3px solid #e0ad71 }
.tree-key .supported { border-top: 3px dashed #e0ad71 }
.tree-key .reported { border-top: 2px solid #e7c9a2 }
.tree-key .proposed { border-top: 2px dashed #dfb98a }
.tree-hint { margin-inline-start: auto }
.family-index { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin-top: 1.35rem }
.family-index > section { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .6rem; background: #fbf4e7 }
.family-index label { display: block; margin: .65rem 0 .25rem; color: var(--muted); font-size: .82rem }
.family-index input, .family-index select { width: 100%; min-height: 2.75rem; font: inherit; color: var(--ink); border: 1px solid #a98768; background: var(--panel); border-radius: .35rem; padding: .25rem .55rem }
.household-parents, .household-children { display: flex; justify-content: center; flex-wrap: wrap; gap: .32rem }
.household-parents .person, .household-children .person { flex: 1 1 9rem }
#family-group, #person-results { margin-top: .75rem }
.household-connector { width: 50%; height: 1.05rem; margin: 0 auto; border-bottom: 2px solid #a37346; background: linear-gradient(90deg,transparent calc(50% - 1px),#a37346 calc(50% - 1px),#a37346 calc(50% + 1px),transparent calc(50% + 1px)) }
#family-group[data-evidence=lead] .household-connector { border-bottom-style: dashed }
.person .avatar { width: 2.55rem; height: 2.55rem }
.record-section { background: #e9ddc7 }
.detail-head { background: var(--mahogany); border-bottom: 3px solid #bd884e }
.detail-head .avatar { border: 2px solid #d8aa70 }
.profile-portrait { float: left; width: min(43%, 15rem); margin: 0 1.25rem .8rem 0 }
.profile-portrait img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 35%; max-height: none; background: #eedab6; box-shadow: 0 4px 10px #41241824 }
.photo-carousel {
  max-width: 40rem; margin: 0 auto 1.45rem; padding: .6rem 0 .8rem; text-align: center;
  border: 1px solid #c9a77f; border-radius: .75rem;
  background: radial-gradient(ellipse at 50% 27%, #fffae9, #ead3af);
}
.photo-carousel-stage {
  --photo-height: clamp(10.4rem, 49vw, 17.6rem);
  display: grid; place-items: center; overflow: hidden; isolation: isolate; perspective: 680px;
  height: calc(var(--photo-height) + 2rem); touch-action: pan-y pinch-zoom; user-select: none; cursor: grab;
}
.photo-carousel-stage:active { cursor: grabbing }
.photo-carousel-card {
  grid-area: 1 / 1; display: grid; place-items: center; pointer-events: none;
  width: 66%; height: calc(var(--photo-height) + .75rem); padding: .38rem;
  border: 1px solid #ad845b; border-radius: .45rem; background: #fbf1d9;
  box-shadow: 0 .45rem 1.1rem #5a331c46;
  transform: translateX(calc(var(--side) * (38% + var(--depth) * 5%)))
    translateZ(calc(-44px * var(--depth))) rotateY(calc(-29deg * var(--side))) scale(calc(1 - .095 * var(--depth)));
  opacity: calc(1 - var(--depth) * .19);
  transition: transform 420ms cubic-bezier(.22,.75,.23,1), opacity 340ms ease;
}
.photo-carousel-card > img { width: 100%; height: var(--photo-height); object-fit: contain; border-radius: .22rem }
.photo-carousel-card > :is(.photo-crop,.photo-upright) {
  width: min(100%, calc(var(--photo-height) * var(--photo-ratio))); border-radius: .22rem; overflow: hidden;
}
.photo-carousel-controls { display: grid; grid-template-columns: 2.75rem minmax(7em, auto) 2.75rem; justify-content: center; align-items: center; gap: .65rem }
.photo-carousel-arrow {
  width: 2.75rem; min-height: 2.75rem; padding: 0; border: 1px solid #b68658; border-radius: 50%; cursor: pointer;
  background: #5b311e; color: #fff3dc; font: 1.85rem/1 var(--sans);
}
.photo-carousel-arrow:hover { background: #77442a }
.photo-carousel-count { color: #56311d; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums }
.photo-carousel-caption { padding: .25rem .8rem 0; color: #50361f; font-size: .88rem; text-wrap: pretty }
.photo-carousel-original { display: inline-flex; align-items: center; min-height: 2.75rem; color: #633820; font-size: .83rem; font-weight: 650 }
@media (prefers-reduced-motion: reduce) {
  .photo-carousel-card { transition: none }
}
.profile-biography { margin-block-end: 1.1rem }
.detail-content .profile-biography h3 { margin-block: 0 .54rem }
.profile-summary { line-height: 1.65; text-wrap: pretty; margin-block: 0 .75rem }
.profile-summary:last-child { margin-block-end: 0 }
.profile-relationships { margin-bottom: .65rem; display: flow-root }
.profile-relationships[open], .related-details { clear: both }
.profile-relationships summary, .related-details summary { color: #633820; font-weight: 700; cursor: pointer; margin-block: .6rem .35rem }
.profile-relationships h4 { margin: .65rem 0 .3rem }
.detail-content > h3, .gap-note, .evidence-list { clear: both }
.detail-content > h3 { padding-top: .55rem }
@media (min-width: 46rem) {
  .hero-inner { grid-template-columns: 1.08fr .92fr }
  .evidence-list { grid-template-columns: repeat(2, minmax(0,1fr)) }
}
@media (max-width: 45.99rem) {
  .family-index { grid-template-columns: 1fr }
  .tree-hint { margin-inline-start: 0; width: 100% }
  .hero-image img { aspect-ratio: 2 / 1 }
  .wood-frame { padding: .45rem }
  .tree-toolbar { gap: .42rem }
  .tree-toolbar button { font-size: .76rem; padding-inline: .56rem }
  .generation-caption { font-size: .60rem }
}
.hero-image img { aspect-ratio: 8 / 5; object-position: 50% 33% }
.hero-image-main img { aspect-ratio: 4 / 5; object-position: 50% 57% }
[data-tree-view="ryan"] .hero-image-main img { aspect-ratio: auto }
[data-tree-view="ryan"] .family-index { grid-template-columns: 1fr }
[data-upperchurch-page] { margin-top: 1rem }
.detail-trail { padding: .44rem 3.7rem .44rem 1rem; background: #ead8b8 }
.detail-trail .button { min-height: 2.45rem; border-color: #b68e62; background: #fff6e5 }

.person-memorial { border: 1px solid #c8ab85; padding: .45rem .8rem .7rem; background: #f5ebd8; border-radius: .5rem; margin-top: .8rem }
.memorial-facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .6rem; margin: .5rem 0; font-size: .87rem }
.memorial-facts dt { font-weight: 700 }
.memorial-facts dd { margin: 0 }
.person-memorial .evidence-list { margin-top: .6rem }

.sibling-trigger {
  position: absolute;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  border: 0;
  background: transparent;
  color: #3e2112;
  transform: translate(19px,-47px) translateZ(22px);
  font-size: .77rem;
  font-weight: 800;
  display: grid;
  place-content: center;
  isolation: isolate;
}
.sibling-trigger::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .49rem;
  border: 1px solid #f7d6a5;
  background: linear-gradient(#f7d8a8,#cf995a);
  border-radius: 50%;
  box-shadow: 0 2px 5px #241008b0;
}
.sibling-trigger:hover::before, .sibling-trigger[aria-expanded=true]::before { background: #fff2d5 }
.sibling-medallion { z-index: 2; animation: sibling-appear .22s ease-out both }
.sibling-medallion .avatar, .in-sibling-group .avatar { border-color: #ffe0aa; box-shadow: 0 0 0 1px #956035, 0 0 18px #e3a95f62 }
.sibling-exit { opacity: 0; transition: opacity .15s; pointer-events: none; animation: none }
.sibling-edge { stroke: #f4c994; stroke-width: 2.7 }
.sibling-edge.line-lead { stroke-dasharray: 4 6 }
@keyframes sibling-appear { from {opacity:0} to {opacity:1} }

#ryan-profile { margin-inline-start: auto }
#ryan-profile[hidden] { display: none }
.ryan-sibling-view { overflow-anchor: none; max-height: min(800px, 81svh) }
.ryan-generation-labels { position: sticky; top: 0; height: 0; z-index: 3; pointer-events: none }
.ryan-generation-labels::before { content: ""; position: absolute; inset: 0 0 auto; height: 2.75rem; background: linear-gradient(#48261a 30%, #48261a00) }
.ryan-generation-labels .generation-caption { text-shadow: 0 1px 4px #1e0b06, 0 0 5px #1e0b06 }
.ryan-sibling-medallion, .ryan-spur-medallion { width: 132px; cursor: pointer }
.ryan-sibling-medallion[hidden] { display: none }
.ryan-sibling-medallion small, .ryan-spur-medallion[data-relationship="descendant"] small { display: none }
.ryan-sibling-medallion[aria-expanded="true"] strong { background: #6a442c }
.ryan-ancestor-medallion, .ryan-ancestor-sibling-badge { transition: opacity .22s ease, filter .22s ease }
.ryan-ancestor-medallion strong, .ryan-ancestor-sibling strong { line-height: 1.14 }
.ryan-sibling-muted { opacity: .67; filter: grayscale(.75) }
.ryan-sibling-medallion.sibling-medallion, .ryan-ancestor-sibling { animation-duration: .4s }
.ryan-spur-medallion { animation: ryan-branch-open .7s cubic-bezier(.22,.72,.25,1) var(--branch-delay, 0ms) both }
.ryan-family-lines path { animation: sibling-appear .62s ease-out both }
@keyframes ryan-branch-open {
  from { opacity: 0; transform: translate(calc(-50% + 18px), -29px) translateZ(12px) scale(.91) }
  to { opacity: 1; transform: translate(-50%, -35px) translateZ(12px) scale(1) }
}
.ryan-family-lines path { stroke-linejoin: round }
@media (max-width: 38rem) {
  .ryan-sibling-medallion, .ryan-spur-medallion, .ryan-ancestor-medallion, .ryan-ancestor-sibling { width: 108px }
  .ryan-sibling-medallion strong, .ryan-spur-medallion strong, .ryan-ancestor-medallion strong, .ryan-ancestor-sibling strong { font-size: .91rem }
  .ryan-generation-labels .generation-caption { width: 105px }
}
@media (prefers-reduced-motion: reduce) {
  .ryan-spur-medallion { animation-delay: 0ms }
}

.research-highlights { margin: 0 0 1rem }
.research-highlights .button { background: var(--panel) }

.life-timeline { list-style: none; padding: 0 0 0 1rem; margin: 0 0 1.65rem .4rem; border-left: 2px solid #aa7955 }
.life-timeline li { position: relative; padding: .05rem 0 1rem .55rem }
.life-timeline li:last-child { padding-bottom: .15rem }
.life-timeline li::before { content: ""; position: absolute; left: -1.34rem; top: .36rem; width: .58rem; height: .58rem; border-radius: 50%; background: #805025; border: 1px solid #fff3da }
.life-date { display: block; color: var(--muted); font-size: .8rem; font-weight: 700 }
.life-timeline h4 { margin: .12rem 0 .3rem; font: 650 1.2rem/1.18 var(--serif) }
.life-timeline p { margin: .35rem 0 0 }
.life-source { border: 0; background: transparent; color: #512815; padding: .55rem 0; min-height: 2.75rem; text-decoration: underline; text-underline-offset: .18em }

.artifact-card { min-width: 0; display: grid; align-content: start; gap: .28rem; padding: .8rem; border: 1px solid #b88c61; border-left: .26rem solid #87552e; border-radius: .55rem; background: #fff5e5 }
.record-kind { display: block; color: #74553d; font-size: .76rem; font-weight: 750; margin-bottom: .18rem }
.artifact-title { font: 650 1.14rem/1.18 var(--serif) }
.artifact-source { color: var(--muted); font-size: .76rem; line-height: 1.3 }
.artifact-actions { display: flex; flex-wrap: wrap; gap: .15rem .65rem; align-items: center; margin-top: .28rem }
.artifact-open { border-color: #53301b; background: #5c321d; color: #fff7e9; padding: .45rem .65rem; min-height: 2.75rem; font-size: .86rem }
.artifact-open:hover { background: #432417 }
.artifact-entry, .life-source { background: transparent; border: 0; padding: .35rem .05rem; min-height: 2.75rem; color: #56351e; text-align: start; text-decoration: underline; text-underline-offset: .2rem; font-size: .86rem }
.record-search { display: grid; gap: .25rem; max-width: 27rem; margin: 1rem 0 }
.record-search label { font-size: .9rem; font-weight: 700 }
.record-search input { width: 100%; min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid #ad8768; border-radius: .4rem; background: var(--panel); color: var(--ink); font: inherit }
#record-count { min-height: 1.45rem; color: var(--muted); font-size: .85rem }
.navigation nav { flex-wrap: wrap; column-gap: clamp(.75rem, 4vw, 2rem); row-gap: 0 }
.research-subtitle { margin: 2rem 0 .85rem }
.research-grid .review-card { border-width: 1px 1px 1px .25rem; border-left-color: #825135; background: #fff7e9 }
.review-card h3 { line-height: 1.18 }
.review-link { min-height: 2.75rem; color: #603921; font-weight: 650; text-align: start }
.profile-reviews { margin-bottom: 1.35rem }
.review-finding { display: grid; justify-items: start; gap: .5rem; border-left: .25rem solid #825135; border-radius: .35rem; background: #f4e4ce; padding: .85rem 1rem; margin-bottom: 1.1rem }
.review-steps { padding-inline-start: 1.45rem; margin-block: .8rem 1.5rem }
.review-steps > li { margin-bottom: 1.4rem; padding-inline-start: .22rem }
.review-steps h4 { font-size: 1.25rem; margin-bottom: .35rem }
.review-steps .evidence-list { margin-block: .55rem 0 }
.tag.supported { background: #f5dfbb; color: #5b3417 }
.tag.unresolved { background: #eee4d9; color: #593925 }
.archive-entry { background: #f8f3e9; border-color: #ccb999 }
.archive-entry .record-icon { background: #eadfcb }
.profile-notices { margin: .85rem 0 }
.profile-notices .button { background: #fff4e1; color: #583219; border-color: #b8885d }

.photo-crop { display: block; position: relative; width: 100%; aspect-ratio: 1; border-radius: inherit; overflow: hidden }
.avatar > .photo-crop { height: 100% }
.photo-crop img, .evidence-photo .photo-crop img, .profile-portrait .photo-crop img { position: absolute; max-width: none; max-height: none; height: auto; aspect-ratio: auto; object-fit: fill; border-radius: 0; box-shadow: none }
.evidence-photo > .photo-crop { max-width: 19rem; border-radius: .45rem; background: #e4dac5 }
.profile-portrait > .photo-crop { max-width: none }

.photo-upright { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9 }
.photo-crop > .photo-upright { position: absolute }
.photo-upright > img, .photo-crop .photo-upright > img, .evidence-photo .photo-upright > img, .profile-portrait .photo-upright > img { position: absolute; top: 50%; left: 50%; width: 56.25%; max-width: none; height: auto; max-height: none; aspect-ratio: auto; transform: translate(-50%, -50%) rotate(-90deg); object-fit: fill; border: 0; border-radius: 0 }

.ryan-hero .hero-image img { aspect-ratio: 1200 / 581; object-fit: contain }
.ryan-site .navigation { gap: .4rem 1.25rem }
.ryan-site .navigation nav { flex-wrap: wrap; gap: 0 1rem }
.generation-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem }
.generation-nav .button, .history-jump { background: #f9eddb; border-color: #b78961; color: #4b2618 }
.ryan-generation { border-block-start: 1px solid #c69e76; padding-block: 1.65rem; scroll-margin-top: 1rem }
.ryan-generation > h3 { margin-bottom: .85rem }
.ryan-generation > .source-note { margin-bottom: .8rem }
.ryan-family-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; align-items: start }
.ryan-family-card { display: grid; gap: .52rem; padding: .75rem; border: 1px solid #bc9974; border-radius: .65rem; background: var(--panel) }
.ryan-family-card > .person { background: #f0dfc8; border-color: #bb9270 }
.ryan-family-card .person-grid { grid-template-columns: 1fr }
.ryan-family-card .source-note { padding: 0 .25rem }
.family-role { font: 650 1.03rem/1.35 var(--serif); color: #563520; margin: .3rem 0 .12rem }
#kinane-list > .family-role { margin-top: 1rem }
.family-source { border: 0; background: transparent; text-align: start; color: #663318; min-height: 2.75rem; padding: .25rem; text-decoration: underline }
.history-jump { margin: 0 0 1rem }

.evidence-wide-crop:not(.profile-portrait) > .photo-crop { max-width: 100% }
