:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --card: #fffcf6;
  --ink: #2a3025;
  --muted: #5d6153;
  --olive: #425436;
  --line: #dfd8ca;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.58 var(--sans); }
h1,h2,h3,p,figure,blockquote { margin: 0; }
h1,h2,h3 { font: 400 42px/1.08 var(--serif); letter-spacing: -.045em; }
a { color: var(--olive); text-underline-offset: .22em; }
button,select,input { color: inherit; font: inherit; }
button,select { cursor: pointer; }
button { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .42; cursor: default; }
button:focus-visible, select:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #945829;
  outline-offset: 4px;
}
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 20px; }
.sr-only,.skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip:focus { position: fixed; inset: 12px auto auto 12px; z-index: 5; padding: 8px 15px; background: var(--card); }
.frame { width: min(1320px, calc(100% - 100px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.mast-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font: 21px/1.2 var(--serif); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; color: #794b2e; background: #eee0cf; width: 35px; height: 35px; border-radius: 50%; font: 20px/1 var(--sans); }
.masthead nav { display: flex; align-items: center; gap: clamp(8px,2.2vw,30px); }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; }
.masthead nav a:hover,.masthead nav a[aria-current]:not([aria-current="false"]) { color: var(--olive); text-decoration: underline; }
.home-page { background: #f8f4eb; }
.home-page .frame { width: min(1200px, calc(100% - clamp(32px,10vw,118px))); }
.home-cover { border-bottom: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0,1.17fr) minmax(0,1fr); align-items: center; gap: clamp(20px,4vw,54px); min-height: 390px; padding: clamp(26px,5vw,54px) 0; }
.eyebrow { color: #694b35; font-size: 13px; line-height: 1.35; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; }
.eyebrow span { margin: 0 .22em; }
.intro h1 { font-size: clamp(46px,7.6vw,80px); line-height: 1.08; margin: 12px 0 17px; }
.intro h1 em { display: block; color: #856042; font-weight: 400; }
.intro-lede { color: var(--muted); font-size: clamp(16px,1.85vw,18px); line-height: 1.5; max-width: 43ch; }
.intro-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-top: 21px; }
.intro-actions a { min-height: 44px; font-size: 15px; }
.intro-figure { width: min(100%,308px); justify-self: center; }
.intro-figure img { display: block; width: 100%; height: auto; border-radius: 50%; }
.intro-figure figcaption { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 15px; margin-top: 9px; font-size: 13px; color: var(--muted); }
.intro-side { display: inline-flex; align-items: center; gap: 7px; }
.intro-side::before { content: ''; display: block; width: 9px; height: 9px; background: #346486; border-radius: 50%; }
.intro-side-zuzana::before { background: #a84942; border-radius: 1px; transform: rotate(45deg); }
.intro-stories,.home-archive { padding-block: clamp(23px,4vw,43px); }
.intro-stories h2,.home-archive h1 { font-size: clamp(34px,5.2vw,54px); }
.intro-story-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(13px,3vw,34px); margin-top: 17px; }
.intro-story-list article { min-width: 0; }
.story-card-photo { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 15px; background: #eae3d3; }
.intro-story-list article:first-child .story-card-photo { object-position: center 45%; }
.intro-story-list article:last-child .story-card-photo { object-fit: contain; }
.intro-story-list h3 { font-size: clamp(24px,3vw,34px); margin: 5px 0 8px; overflow-wrap: anywhere; }
.story-card-link { display: block; color: var(--ink); text-decoration: none; }
.story-card-link h3 { text-decoration: underline; text-decoration-color: #9a8266; text-decoration-thickness: .045em; }
.story-card-link:hover h3 { color: var(--olive); }
.intro-story-list p:not(.eyebrow) { color: var(--muted); margin-bottom: 4px; }
.archive-credit { margin-top: 9px; color: var(--muted); }
.album-section { margin-top: 30px; }
.album-section h2 { font-size: clamp(30px,4vw,40px); }
.home-archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.archive-item { display: flex; flex-direction: column; min-width: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.archive-preview { position: relative; display: block; }
.archive-item img { display: block; width: 100%; aspect-ratio: 16 / 11; object-fit: contain; background: #ede6d6; }
.archive-zoom { position: absolute; right: 8px; bottom: 8px; padding: 5px 9px; border-radius: 5px; color: var(--olive); background: var(--card); font-size: 13px; font-weight: 650; }
.archive-preview:hover .archive-zoom { text-decoration: underline; }
.archive-preview:focus-visible { outline-offset: -4px; }
.archive-item-body { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 10px; }
.archive-item h3 { font-size: 24px; }
.archive-item p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.archive-item .archive-people { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 3px 12px; padding-block: 7px 4px; margin-top: auto; }
.archive-people a { font-size: 14px; }
.explorer-page { --masthead-height: 72px; }
.explorer-page .masthead { position: sticky; top: 0; z-index: 4; background: var(--paper); }
.explorer-page :is(section[id],#profile-name,#prameny) { scroll-margin-top: calc(var(--masthead-height) + 16px); }
.explorer { padding-top: clamp(15px,3vw,37px); }
#route-notice { margin-bottom: 12px; color: var(--muted); }
.stage { display: grid; grid-template-columns: minmax(0,1.74fr) minmax(300px,1fr); align-items: start; gap: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 29px #51442208; min-width: 0; }
.chart-panel { position: relative; padding: 22px clamp(18px,2.5vw,33px) 19px; background: radial-gradient(ellipse 68% 70% at 50% 56%, #fffdf9 45%, var(--card) 100%); overflow: clip; }
.panel-header,.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.panel-header h2,.section-header h2 { margin-top: 4px; }
.chart-tools { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.chart-views { min-height: 40px; }
.chart-focus { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 9px; }
.fan-selected { display: none; min-width: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; }
.stage.fan-wide .fan-selected { display: inline; }
.chart-focus #fan-focus { background: #eef1e8; border-color: #c9d2be; color: var(--olive); }
.chart-focus #fan-focus:not(:disabled):hover { background: #e4e9d9; }
.chart-focus #fan-wide { display: none; margin-inline-start: auto; }
.chart-focus button[aria-pressed="true"] { background: #eef1e8; border-color: #c9d2be; color: var(--olive); }
.fan-zoom-controls { min-height: 40px; }
.fan-zoom-controls button:not(:last-child) { min-width: 36px; padding-inline: 8px; font-size: 18px; line-height: 1; }
select,.soft-button,.solid-button,.segmented button,.generation-control { border: 1px solid #d9d1c2; border-radius: 8px; font-size: 14px; font-weight: 620; }
select,.soft-button,.solid-button { min-height: 40px; padding: 8px 13px; }
select { max-width: 100%; background: #f9f4e9; }
.soft-button { background: #f8f2e6; display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.soft-button:hover,.generation-control button:hover,.segmented button:hover,.map-controls button:hover { background: #ede6d8; }
.solid-button { display: inline-flex; align-items: center; justify-content: center; background: var(--olive); border-color: var(--olive); color: #fffdf6; text-decoration: none; }
.solid-button:hover { background: #34442b; }
.generation-control { height: 37px; display: inline-flex; align-items: center; white-space: nowrap; flex-shrink: 0; overflow: hidden; }
.generation-control button,.map-controls button { padding: 0; width: 35px; height: 100%; background: var(--card); border: 0; font-size: 21px; line-height: 1; }
.generation-control span { padding: 0 8px; font-size: 13px; }
.search-icon { position: relative; width: 12px; height: 12px; border: 1.6px solid currentColor; border-radius: 50%; }
.search-icon::after { position: absolute; content: ''; width: 5px; height: 1.6px; background: currentColor; rotate: 45deg; right: -4px; bottom: -2px; }
.directory { position: absolute; z-index: 3; inset: 130px 18px auto; display: grid; gap: 8px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); box-shadow: 0 15px 34px #382b202b; }
.directory label { font-size: 14px; font-weight: 650; }
input { min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fffdf8; }
.search-results { max-height: 260px; overflow: auto; }
.search-results button,.relation { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 6px; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--olive); }
.search-results button:hover,.relation:hover { background: #f2ebdc; }
.search-results span,.relation span { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
#fan-scroll-hint { margin-top: 10px; color: var(--muted); font-size: 14px; }
.fan-lineage { margin-top: 12px; padding: 7px 10px; border-inline-start: 3px solid var(--fan-lineage-color); border-radius: 4px; background: #f2ece1; }
.fan-lineage p { color: var(--muted); font-size: 13px; font-weight: 650; }
.fan-lineage ol { display: flex; flex-wrap: wrap; gap: 1px 7px; list-style: none; margin: 0; padding: 0; font-size: 14px; }
.fan-lineage li { display: inline-flex; align-items: baseline; gap: 7px; max-width: 100%; }
.lineage-name { overflow-wrap: anywhere; }
.fan-lineage li:last-child .lineage-name { font-weight: 700; }
.lineage-parent,.lineage-marriage { color: var(--fan-lineage-color); }
.lineage-marriage { padding-inline: 5px; border: 1px dashed currentColor; border-radius: 4px; font-size: 12px; }
#chart-fan { width: min(100%, var(--fan-size, 640px)); aspect-ratio: 1; margin: 7px auto 0; overflow: hidden; touch-action: pan-y; }
#chart-fan:focus-visible { outline-offset: -3px; }
#chart-fan.is-zoomed { touch-action: none; cursor: grab; }
#chart-fan[data-dragging],#chart-fan[data-dragging] .fan-person { cursor: grabbing; }
#fan { display: block; width: 100%; height: 100%; user-select: none; }
.fan-segment { stroke: #fffaf3; stroke-width: 1; }
.fan-segment.fan-outer { stroke-width: .55; }
.fan-spouse { stroke: #557c9b; stroke-width: 1.7; stroke-dasharray: 3 2; }
.fan-guide { fill: none; stroke: #e9e2d5; stroke-width: .8; pointer-events: none; }
.fan-empty { fill: #f7f3eb; stroke: #d6cebf; stroke-width: 1; stroke-dasharray: 2.5 2.5; pointer-events: none; }
.fan-person { cursor: pointer; }
.fan-person:hover .fan-segment { stroke: #5b5947; stroke-width: var(--fan-mark-width,2.6); }
.fan-lineage-member .fan-segment,.fan-lineage-member .fan-center-background { stroke: var(--fan-lineage-color); stroke-width: var(--fan-mark-width,2.1); }
.fan-person.selected .fan-segment { stroke: #503d2c; stroke-width: var(--fan-mark-width,2.8); }
#fan .fan-person:focus { outline: none; }
#fan .fan-person:focus-visible:not(.selected) .fan-segment,#fan .fan-person:focus-visible > circle { stroke: #945829; stroke-width: var(--fan-mark-width,3.8); stroke-dasharray: 4 2; }
.fan-label { font: 650 14px/1 var(--sans); fill: #282c24; pointer-events: none; }
.fan-dates { font: 500 12px/1 var(--sans); fill: #394037; pointer-events: none; }
.fan-center { font: 400 23px/1 var(--serif); fill: #fff9ed; pointer-events: none; }
.fan-center-small { font: 550 12px/1 var(--sans); fill: #f2e8d5; pointer-events: none; }
#chart-generations { display: grid; gap: 18px; max-block-size: 565px; margin-block: 15px; padding: 5px 8px 5px 4px; overflow: auto; scrollbar-color: #cbbda8 transparent; }
.generation-section h3 { margin-bottom: 8px; color: #694b35; font: 650 15px/1.3 var(--sans); letter-spacing: 0; }
.generation-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); list-style: none; margin: 0; padding: 0; gap: 5px 8px; }
.generation-list li { min-width: 0; }
.generation-person { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 8px; width: 100%; min-height: 40px; padding: 8px 10px; background: var(--card); border: 1px solid #e5dbcc; border-inline-start: 4px solid var(--branch-color,#cdbca2); border-radius: 7px; text-align: start; }
.generation-person:hover,.generation-person[aria-pressed=true] { background: #f2ebdc; }
.generation-person[aria-pressed=true] { outline: 1px solid #927758; }
.generation-person-name { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.generation-person-dates { color: var(--muted); font-size: 12px; white-space: nowrap; }
.generation-person-relationship { flex-basis: 100%; color: #346486; font-size: 13px; }
.chart-key { border-top: 1px solid #eae2d5; padding-top: 13px; display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
#legend { display: flex; flex-wrap: wrap; gap: 6px 17px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #0002; }
.legend-companion { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid #b4cadb; border-radius: 5px; background: #ecf3f8; color: #295571; font-size: 14px; text-align: start; }
.legend-companion .legend-swatch { border: 1.5px dashed #557c9b; border-radius: 3px; background: #d5e4ed; flex-shrink: 0; }
.legend-companion:hover,.legend-companion[aria-pressed=true] { background: #dbe9f3; }
.profile-panel { overflow: hidden; }
.profile-image { min-height: 188px; position: relative; overflow: hidden; }
.profile-image img { display: block; width: 100%; height: clamp(180px,22vw,284px); background: #dbd5c6; object-fit: cover; object-position: var(--image-position,50% 50%); }
.profile-image figcaption { color: white; padding: 26px 18px 11px; position: absolute; inset: auto 0 0; background: linear-gradient(transparent,#171e19d9); font-size: 13px; }
.profile-image.placeholder { display: grid; place-items: center; min-height: 182px; color: #6e563a; background: radial-gradient(circle at center,#f2eadc,#e9dfcc); }
.profile-image.placeholder span { display: grid; width: 86px; aspect-ratio: 1; border: 1px solid #cbb99e; border-radius: 50%; place-items: center; font: 34px var(--serif); letter-spacing: -.04em; }
.profile-body { padding: clamp(18px,7%,34px); container-type: inline-size; }
.profile-body h2 {
  font-size: 2rem;
  font-size: clamp(1.5rem,11cqi,3rem);
  line-height: 1.06;
  margin-top: 10px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.profile-years { font-weight: 650; font-variant-numeric: tabular-nums; color: #795a3d; margin-top: 9px; }
.profile-intro { margin-top: 16px; color: var(--muted); font-size: 16px; }
.profile-relations { margin-top: 12px; border-top: 1px solid var(--line); }
.profile-relations .relation { font-size: 14px; padding-inline: 0; }
.profile-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.profile-actions a { color: inherit; text-decoration: none; }
.profile-actions a.solid-button { color: #fffdf6; }
.profile-position { color: var(--muted); font-size: 14px; margin-top: 13px; }
.map-section,.story-section { margin-top: 64px; }
.section-header { margin-bottom: 19px; }
.section-header h2,.story-section h2 { font-size: clamp(36px,5vw,62px); }
.segmented { white-space: nowrap; display: flex; gap: 3px; background: #ebe5d8; border-radius: 8px; padding: 3px; }
.segmented button { border-color: transparent; background: transparent; padding: 5px 10px; }
.segmented button[aria-pressed=true] { background: var(--card); border-color: var(--line); }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
#map-swiss[aria-pressed=true] { background: var(--olive); color: var(--card); border-color: var(--olive); }
.map-panel { --map-jan: #346486; --map-zuzana: #a84942; --map-other: #646759; --map-city: #646459; display: grid; grid-template-columns: minmax(0,2.25fr) minmax(220px,1fr); overflow: hidden; background: var(--place-background,var(--card)); }
.map-panel:has(.map-detail[data-side=jan]) { --place-background: #eaf1f6; }
.map-panel:has(.map-detail[data-side=zuzana]) { --place-background: #faece7; }
.map-panel:has(.map-detail[data-side=shared]) { --place-background: #f6efe9; }
.map-period { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 7px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.map-period-fields,.map-period-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.map-period-fields label { display: grid; gap: 3px; font-size: 14px; font-weight: 650; }
.map-period-fields input { width: 75px; min-height: 44px; font-size: 16px; }
.map-period-fields input[aria-invalid=true] { border-color: #a84942; }
.map-period-actions button { min-height: 44px; }
.map-period-help,.map-period-error,.map-period-result { flex-basis: 100%; font-size: 13px; }
.map-period-help { color: var(--muted); }
.map-period-error { color: #8c3934; }
.map-period-result { color: var(--olive); font-weight: 650; }
.map-period-result:empty { display: none; }
.map-key { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.map-family-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.map-family-option,.map-family-label,.map-side-badge { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.map-family-option { padding: 5px 10px; min-height: 34px; border: 1px solid var(--line); border-radius: 7px; background: transparent; }
.map-family-option:hover { background: #f0e9db; }
.map-family-option[aria-pressed=true] { background: #eee6d6; border-color: #a89b85; font-weight: 650; }
.map-family-label { margin-inline: 5px; min-height: 30px; color: var(--muted); }
.map-city-key { display: inline-flex; align-items: center; gap: 7px; min-height: 26px; color: var(--muted); font-size: 13px; }
.map-city-key-dots { display: inline-flex; flex: none; align-items: center; gap: 4px; }
.map-city-key-dots::before,.map-city-key-dots::after { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--map-city); }
.map-city-key-dots::after { width: 8px; height: 8px; }
.map-side-icon { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--map-other); }
.map-side-jan { background: var(--map-jan); }
.map-side-zuzana { background: var(--map-zuzana); border-radius: 1px; rotate: 45deg; }
.map-side-shared { background: linear-gradient(90deg,var(--map-jan) 50%,var(--map-zuzana) 50%); }
.map-side-badge { width: fit-content; margin-top: 7px; padding: 3px 8px; border: 1px solid #4a3a2326; border-radius: 5px; background: #fffcf5a0; color: #4c4841; font-weight: 650; }
.map-drawing { position: relative; min-width: 0; background: #e1ebef; }
#map-svg { width: 100%; height: 100%; min-height: 305px; display: block; touch-action: pan-y; }
.map-credit { position: absolute; bottom: 6px; right: 8px; font-size: 12px; color: #43584d; background: #f7f3e9eb; border-radius: 3px; padding: 1px 4px; }
.map-credit a { color: currentColor; }
.map-credit { max-width: calc(100% - 16px); text-align: right; }
.map-controls { display: grid; z-index: 1; position: absolute; top: 13px; left: 13px; border-radius: 7px; overflow: hidden; box-shadow: 0 2px 7px #24382e26; }
.map-controls button { height: 34px; border-bottom: 1px solid var(--line); }
.map-detail { min-width: 0; padding: 24px; max-height: 505px; overflow: auto; background: var(--place-background,var(--card)); }
.map-detail[data-side=shared] { background: linear-gradient(120deg,#eaf1f6,#f8eee8); }
.map-detail h3 { font-size: 27px; }
.map-detail h3 { margin-top: 6px; }
.map-detail > p:not(.eyebrow) { margin-top: 9px; color: var(--muted); }
.map-place-region { margin-bottom: 8px; }
.map-group-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.map-group-actions .soft-button { min-height: 44px; }
.map-group-list { display: grid; gap: 5px; padding: 0; margin: 0; list-style: none; }
.map-group-list button { display: grid; grid-template-columns: 10px minmax(0,1fr); align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); text-align: left; line-height: 1.35; }
.map-group-list button:hover { background: #f2ebdc; }
.map-group-list button:focus-visible { outline-offset: -3px; }
.map-detail .relation { font-size: 15px; }
.map-detail .map-person-link { display: grid; grid-template-columns: 10px minmax(0,1fr) auto; align-items: center; }
.map-country { fill: #f6f3ea; stroke: #b8c0b7; stroke-width: .85px; vector-effect: non-scaling-stroke; }
.map-home-country { fill: #f2e8d4; }
.map-region-boundary { fill: none; stroke: #c3b9a6; stroke-width: .8px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-lake { fill: #d4e6eb; stroke: #9ab8bd; stroke-width: .85px; vector-effect: non-scaling-stroke; }
.map-lake-label { font-family: var(--serif); font-style: italic; fill: #476973; }
.map-mark { cursor: pointer; }
.map-marker-hit { fill: transparent; }
.map-mark .pin-ring { fill: none; stroke: transparent; stroke-width: 1.35px; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-mark:focus { outline: none; }
.map-mark.active .pin-ring,.map-mark[aria-expanded=true] .pin-ring,.map-mark:hover .pin-ring { stroke: #526357; }
.map-mark:focus-visible .pin-ring { stroke: #945829; stroke-width: 2.1px; }
.map-pin,.map-cluster-disc { stroke: #fffdf8; stroke-width: 1.5px; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-cluster-disc { stroke-width: 2px; }
.map-cluster-count { fill: #fffdf8; font-family: var(--sans); font-weight: 740; pointer-events: none; }
.map-place-label { font-family: var(--sans); font-weight: 650; fill: #343c34; stroke: #f9f5ed; stroke-width: 2.5px; stroke-linejoin: round; paint-order: stroke; pointer-events: none; }
.map-selection-label { fill: #fffdf8; stroke: #9caa9f; stroke-width: .8px; vector-effect: non-scaling-stroke; }
.map-label-leader { stroke: #78877d; stroke-width: .9px; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-mark.active .map-place-label { fill: #25382e; stroke: none; font-weight: 700; }
.map-geography-labels { pointer-events: none; }
.map-country-label { font-family: var(--sans); font-weight: 630; fill: #697569; letter-spacing: .095em; }
.map-context-labels { pointer-events: none; }
.map-context-labels text { font-family: var(--sans); stroke: #f8f4ea; stroke-width: 2px; stroke-linejoin: round; paint-order: stroke; }
.map-context-city circle { fill: var(--map-city); stroke: #fffaf0; stroke-width: .85px; vector-effect: non-scaling-stroke; }
.map-context-city text { fill: #595e51; font-weight: 550; }
.map-context-city.featured text { fill: #3f473e; font-weight: 650; }
.story-section { border-top: 1px solid var(--line); padding-top: 30px; }
.story-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(270px,1fr); gap: clamp(25px,7vw,100px); }
.records-only .story-grid { grid-template-columns: minmax(0,1fr); gap: 12px; max-width: 760px; }
#story-content h2 { margin-top: 9px; overflow-wrap: anywhere; }
.story-byline { color: #795a3d; font-weight: 650; margin-block: 10px 22px; }
.story-paragraph { max-width: 66ch; margin-block: 0 14px; }
.story-map-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-block: 18px; font-size: 14px; }
.story-map-links > span { color: var(--muted); font-weight: 650; }
.archive-excerpt { max-width: 66ch; margin-top: 22px; border-block: 1px solid var(--line); }
.archive-excerpt summary { padding: 11px 4px; color: var(--olive); font-weight: 650; cursor: pointer; }
.archive-excerpt summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.archive-excerpt blockquote { margin: 4px 0 15px; }
.archive-excerpt blockquote p { font-size: clamp(18px,2vw,22px); }
.archive-excerpt blockquote p + p { margin-top: 12px; }
blockquote { margin-top: 27px; padding: 12px 0 13px 19px; border-left: 3px solid #ad865f; color: #63503d; }
blockquote p { font: italic 24px/1.43 var(--serif); }
blockquote cite { display: block; font: normal 14px/1.5 var(--sans); margin-top: 10px; }
.story-origin { margin-top: 17px; color: var(--muted); font-size: 14px; }
.story-records :is(h3,h4) { margin: 0 0 11px; font: 400 27px/1.08 var(--serif); letter-spacing: -.045em; }
.record-group { margin-bottom: 26px; }
.sources-details { border-block: 1px solid var(--line); padding: 0 4px; }
.sources-details summary { padding-block: 11px; cursor: pointer; color: var(--olive); font: 400 27px/1.08 var(--serif); letter-spacing: -.045em; }
.sources-details summary:hover { text-decoration: underline; }
.sources-details[open] .source-list { padding-bottom: 9px; }
.family-parents { margin-top: 26px; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline li { border-left: 1px solid #cfc1ad; margin-left: 5px; padding: 0 0 12px 15px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: -4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: #947453; }
.timeline time,.timeline small { display: block; color: var(--muted); font-size: 14px; }
.timeline strong { display: block; }
.event-place { color: var(--olive); border: 0; padding: 0; background: transparent; text-decoration: underline; text-underline-offset: .18em; }
.event-sources { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.event-sources-label { margin-inline-end: 3px; font-weight: 650; }
.source-list { padding-left: 18px; margin: 0; font-size: 15px; }
.source-list li { padding-bottom: 6px; }
.profile-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); gap: 12px; margin-top: 21px; }
.profile-gallery:has(> a:nth-child(4)):has(.full-frame) { grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); }
.profile-gallery:has(> a:nth-child(4)):not(:has(.full-frame)) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.profile-gallery a { color: inherit; text-decoration: none; }
.profile-gallery img { width: 100%; max-height: 170px; object-fit: cover; border-radius: 8px; }
.profile-gallery img.full-frame { display: block; width: auto; height: auto; max-width: 100%; max-height: 290px; object-fit: contain; }
.profile-gallery:has(> a:nth-child(4)):not(:has(.full-frame)) img { display: block; width: 100%; height: auto; max-height: none; aspect-ratio: 3 / 2; object-fit: cover; }
.profile-gallery figcaption { font-size: 13px; }
@media(max-width: 600px) {
  .profile-gallery:has(> a:nth-child(4)):not(:has(.full-frame)) { grid-template-columns: minmax(0,1fr); }
}
.footer { margin-top: 55px; border-top: 1px solid var(--line); }
.footer > div { display: flex; justify-content: space-between; gap: 15px; padding-block: 22px; color: var(--muted); font-size: 14px; }
@media(max-width: 1050px) {
  .frame { width: min(100% - 56px,1320px); }
  .stage { gap: 16px; grid-template-columns: minmax(0,1.48fr) minmax(260px,1fr); }
}
@media(min-width: 1000px) {
  .chart-focus #fan-wide { display: inline-flex; }
  .stage.fan-wide { grid-template-columns: minmax(0,1fr); }
  .stage.fan-wide .profile-panel { width: min(100%,760px); justify-self: start; }
}
@media(max-width: 760px) {
  .frame { width: calc(100% - 30px); }
  .mast-inner { min-height: 59px; }
  .explorer-page { --masthead-height: 59px; }
  .stage,.map-panel,.story-grid { grid-template-columns: minmax(0,1fr); }
  .chart-panel { padding-inline: 13px; }
  .panel-header h2 { font-size: 32px; }
  .map-section,.story-section { margin-top: 41px; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .map-detail { max-height: 340px; }
  .story-grid { gap: 23px; }
  .profile-image img { height: 205px; }
  body.from-person .profile-panel { order: -1; }
  body.from-person .profile-image { min-height: 107px; }
  body.from-person .profile-image img { height: 107px; }
  body.from-person .profile-body { padding: 14px 17px; }
  body.from-person .profile-intro { margin-top: 8px; }
  body.from-person .profile-actions { margin-top: 9px; }
  .footer { margin-top: 32px; }
  .footer > div { padding-block: 15px; }
  .home-archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width: 650px) {
  .masthead .brand { display: none; }
  .masthead nav { width: 100%; justify-content: space-between; gap: 5px; }
  .masthead nav a { font-size: 14px; }
  .intro { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .intro-figure { width: min(100%,245px); }
  .intro-story-list,.home-archive-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width: 360px) {
  .explorer-page { --masthead-height: 88px; }
  .masthead nav { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 5px; }
  .masthead nav a { justify-content: center; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.map-event-list { display: grid; gap: 4px; list-style: none; padding-inline-start: 26px; margin: 5px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.map-event-title { color: var(--ink); font-weight: 650; }
.map-event-date { display: inline-block; padding: 0 5px; border-radius: 4px; background: #eee6d6; font-size: 13px; font-variant-numeric: tabular-nums; }
.map-event-list small { display: block; margin: 2px 0 4px; font: inherit; }
@media(max-width: 760px) {
  body.from-person main { display: flex; flex-direction: column; }
  body.from-person #pribeh { order: 1; }
  body.from-person #mapa { order: 2; }
}

#choose-place { display: block; width: 100%; margin-block: 9px 13px; }
