/* Person pages, background articles, the onward band and the sources page.
   Shares the tokens of style.css. */

.ph { position: relative; background: var(--night); color: var(--on-night); overflow: hidden; isolation: isolate; }
.ph.with-img { min-height: 88vh; min-height: 88svh; display: flex; align-items: flex-end; }
.ph.no-img { padding-top: clamp(110px, 16vh, 170px); }
.ph-img { position: absolute; inset: 0; z-index: -1; }
.ph-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.32) brightness(.62) contrast(1.08); transform-origin: 60% 40%; animation: kenburns 38s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
@media (prefers-reduced-motion: reduce) { .ph-img img { animation: none; } }
.ph.village { min-height: 72vh; min-height: 72svh; }
.ph.village .ph-img img { filter: grayscale(.4) sepia(.55) brightness(.42) contrast(1.15); transform-origin: 50% 50%; }
.ph-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 13, 10, .55) 0%, rgba(17, 13, 10, .05) 28%, rgba(17, 13, 10, .2) 52%, rgba(17, 13, 10, .94) 100%); }
.ph-in { position: relative; width: min(var(--wrap), calc(100% - 36px)); margin: 0 auto; padding: 0 0 clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2rem; }
.ph-k { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .45rem; font: 600 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); margin-bottom: 1.2rem; }
.ph-k .dot { opacity: .5; }
.ph-k a, .ph-rel a { color: var(--on-night); text-decoration-color: rgba(255, 241, 214, .4); }
.ph-rel { text-transform: none; letter-spacing: 0; font: 500 .92rem/1.4 var(--sans); }
.ph-name { display: flex; flex-direction: column; font-weight: 340; letter-spacing: -.035em; color: var(--glow); font-variation-settings: "SOFT" 100, "WONK" 0; }
.ph-given { font: italic 300 clamp(1.5rem, 3vw, 2.4rem)/1.1 var(--display); letter-spacing: -.01em; color: var(--on-night); margin-bottom: .1em; }
.ph-sur { font: 340 clamp(3.2rem, 9vw, 8rem)/.92 var(--display); letter-spacing: -.04em; }
.theme .ph-name { font: 340 clamp(2.8rem, 7vw, 6.2rem)/.95 var(--display); }
.ph-name.unknown { font: italic 300 clamp(2.6rem, 6vw, 5rem)/1 var(--display); color: var(--on-night-2); }
.ph-called { font: italic 400 1.2rem/1.3 var(--display); color: var(--amber-l); margin: .8rem 0 0; }
.mat .ph-called { color: var(--heather-l); }
.ph-years { font: 300 clamp(1.5rem, 2.6vw, 2.2rem)/1 var(--display); color: var(--on-night); margin: 1.1rem 0 .9rem; font-variant-numeric: lining-nums; letter-spacing: -.01em; }
.ph-vitals { list-style: none; padding: 0; margin: 0 0 1rem; font: 400 .98rem/1.6 var(--sans); color: var(--on-night-2); }
.ph-vitals b { font-weight: 600; color: var(--on-night); }
.ph-tags { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
/* "Bekijk de stamboom vanuit hier" (step 12): the tree with this person in the centre */
.ph-from { margin: 1.1rem 0 0; }
.ph .conf { color: var(--on-night-2); }
.ph-var { font: 400 .86rem/1.4 var(--sans); color: var(--on-night-2); }
.ph-lede { font: 400 clamp(1.1rem, 1.6vw, 1.3rem)/1.55 var(--serif); color: var(--on-night); max-width: 40rem; margin-top: 1.4rem; }
.ph-ring { position: relative; display: block; width: clamp(180px, 22vw, 280px); aspect-ratio: 1; border-radius: 50%; background: rgba(17, 13, 10, .72); box-shadow: 0 0 0 1px rgba(255, 241, 214, .1), 0 30px 60px -30px #000; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: hidden; }
.ph-ring .rings-tip { display: none; }
/* the caption of the opening picture: on a ground of its own, because the picture behind it can be light or busy */
.ph-cap { position: absolute; right: clamp(16px, 3vw, 36px); top: 104px; max-width: 24rem; text-align: right; font: 400 .8rem/1.45 var(--sans); color: rgba(246, 240, 228, .96); margin: 0; padding: .6rem .8rem; border-radius: 10px; background: rgba(17, 13, 10, .16); backdrop-filter: blur(8px) brightness(.86); -webkit-backdrop-filter: blur(8px) brightness(.86); text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
/* a browser without any backdrop blur (Firefox before 103) would show the words on the picture itself with only a faint
   tint: there the caption gets a darker ground of its own */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .ph-cap { background: rgba(17, 13, 10, .58); } }
.ph-cap .credit { display: block; margin-top: .25rem; opacity: .78; font-size: .92em; }
@media (max-width: 760px) {
  .ph.with-img { min-height: 78vh; min-height: 78svh; }
  .ph-in { grid-template-columns: 1fr; }
  .ph-ring { display: none; }
  .ph-cap { display: none; }
}

.pbody { width: min(64rem, calc(100% - 36px)); margin: 0 auto; padding: clamp(48px, 8vw, 96px) 0 0; }
.pbody.tail { padding: 2rem 0 5rem; }
.lr-lede { font: 400 clamp(1.3rem, 2.2vw, 1.62rem)/1.5 var(--serif); color: var(--ink); max-width: 42rem; margin: 0 0 2.2rem 11rem; }
.lr-lede::first-letter { font: 400 3.6em/.8 var(--display); float: left; margin: .08em .1em 0 0; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1; }
.lr-lede.story { margin-bottom: 4rem; }
.lr-lede.short::first-letter { font: inherit; float: none; margin: 0; color: inherit; }
.lr-tools { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: 0 0 3.5rem 11rem; font: 400 .9rem/1.4 var(--sans); color: var(--ink-3); }
.lr-tools summary { cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; }
.lr-tools ol, .lr-tools ul { margin: .7rem 0 0; padding-left: 1.2rem; color: var(--ink-2); line-height: 1.7; }
.lr-key ul { list-style: none; padding: 0; }
.lr-key li { display: flex; gap: .6rem; align-items: center; }
.k-mark { display: inline-block; width: 18px; height: 10px; flex: none; border-radius: 2px; }
.k-person .k-mark, .lr-sec.person .k-mark { background: var(--ink); }
.k-context .k-mark, .lr-sec.context .k-mark { background: repeating-linear-gradient(135deg, var(--ink-3) 0 1.5px, transparent 1.5px 4px); border: 1px solid var(--ink-3); }
.k-lead .k-mark, .lr-sec.lead .k-mark { border: 2px dotted var(--ink-2); background: none; }

.lr-sec { display: grid; grid-template-columns: 9rem minmax(0, 42rem); gap: 2rem; margin-bottom: clamp(48px, 7vw, 84px); position: relative; }
.lr-mar { padding-top: .5rem; text-align: right; }
.lr-kind { display: inline-flex; flex-direction: row-reverse; align-items: center; gap: .5rem; font: 600 .68rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.lr-num { font: 300 2.4rem/1 var(--display); color: var(--rule); margin: 0; font-variant-numeric: lining-nums; }
.lr-title { font: 400 clamp(1.6rem, 2.8vw, 2.2rem)/1.12 var(--display); letter-spacing: -.015em; margin-bottom: 1.2rem; font-variation-settings: "SOFT" 60; }
.lr-text { font-size: 1.14rem; line-height: 1.72; color: var(--ink); }
.lr-sec.context .lr-main { background: var(--paper-2); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); margin-left: -1rem; }
.lr-sec.context .lr-text { color: var(--ink-2); font-size: 1.06rem; }
.lr-sec.context .lr-title { font-style: italic; }
.lr-sec.lead .lr-main { border-left: 3px dotted var(--ink-3); padding-left: 1.4rem; margin-left: calc(-1.4rem - 3px); }
.pull { margin: 2rem 0 2rem -2rem; padding: 0 0 0 1.6rem; border-left: 3px solid var(--amber); }
.mat .pull { border-left: 3px dotted var(--heather); }
.pull p { font: italic 350 clamp(1.4rem, 2.4vw, 1.9rem)/1.3 var(--display); color: var(--ink); margin: 0; font-variation-settings: "SOFT" 100; }
.pull p::before { content: "“"; }
.pull p::after { content: "”"; }
.caveat { margin: 1.4rem 0; padding: 1rem 1.2rem; border: 1px dashed var(--ink-3); border-radius: 10px; font: 400 .95rem/1.55 var(--sans); color: var(--ink-2); }
.cv-h { font-weight: 600; margin-bottom: .3rem; color: var(--ink); }
.caveat p:last-child { margin: 0; }
.lr-links { font: 400 .9rem/1.6 var(--sans); color: var(--ink-3); }
.lr-links a { color: var(--ink-2); }

.fig { margin: 2.2rem 0 0; }
.fig-open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; border-radius: 10px; overflow: hidden; position: relative; }
.fig-open img { width: 100%; height: auto; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.fig-open:hover img { transform: scale(1.025); }
.fig-zoom { position: absolute; right: .7rem; bottom: .7rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; background: rgba(17, 13, 10, .7); color: #fff; font-size: 1rem; opacity: 0; transition: opacity .3s; }
.fig-open:hover .fig-zoom, .fig-open:focus-visible .fig-zoom { opacity: 1; }
.fig figcaption { font: 400 .86rem/1.5 var(--sans); color: var(--ink-2); margin-top: .7rem; }
.fig .credit { color: var(--ink-3); font-size: .78rem; }
.fig .credit a { color: inherit; }
@media (min-width: 1100px) { .fig:not(.tall):not(.map) { margin-right: -10rem; } }
.fig.tall { max-width: 26rem; }
.fig.map .fig-open img { max-height: 70vh; object-fit: contain; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--on-night); overflow: visible; }
.lightbox::backdrop { background: rgba(10, 8, 6, .92); }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; margin: auto; }
.lb-cap { font: 400 .9rem/1.5 var(--sans); max-width: 60rem; margin: .8rem auto 0; text-align: center; }
.lb-cap .credit { opacity: .7; }
.lb-x { position: fixed; right: 16px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); color: #fff; font-size: 1.6rem; cursor: pointer; }

@media (max-width: 860px) {
  .lr-lede, .lr-tools { margin-left: 0; }
  .lr-sec { grid-template-columns: 1fr; gap: .6rem; }
  .lr-mar { text-align: left; display: flex; align-items: baseline; gap: 1rem; padding: 0; }
  .lr-kind { flex-direction: row; }
  .lr-num { font-size: 1.2rem; }
  .lr-sec.context .lr-main { margin-left: -.5rem; margin-right: -.5rem; }
  .pull { margin-left: 0; }
}

/* blocks: register, family, children, work and home, documents */
.blk { margin: 0 0 clamp(56px, 8vw, 96px) 11rem; max-width: 46rem; }
.blk-h { font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--display); letter-spacing: -.015em; margin-bottom: .6rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .9rem; }
.blk-n { font: 500 .9rem/1 var(--sans); color: var(--ink-3); letter-spacing: 0; }
.blk-intro { font: 400 .95rem/1.5 var(--sans); color: var(--ink-3); margin-bottom: 1.8rem; }
.empty-note { color: var(--ink-3); font-style: italic; }
@media (max-width: 860px) { .blk { margin-left: 0; } }

.reg { list-style: none; margin: 0; padding: 0; position: relative; }
.reg-i { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1.4rem; position: relative; padding-bottom: 1.6rem; }
.reg-i::before { content: ""; position: absolute; left: calc(6.5rem + .7rem - 1px); top: .9rem; bottom: -.3rem; border-left: 2px solid var(--rule); }
.reg-i:last-child::before { display: none; }
.reg-i.inferred::before { border-left-style: dashed; }
.reg-i.lead::before { border-left-style: dotted; }
.reg-i::after { content: ""; position: absolute; left: calc(6.5rem + .7rem - 6px); top: .55rem; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink-2); }
.reg-i.t-birth::after, .reg-i.t-baptism::after { background: var(--amber); border-color: var(--amber); }
.reg-i.t-marriage::after { background: var(--accent); border-color: var(--accent); }
.mat .reg-i.t-birth::after, .mat .reg-i.t-baptism::after { background: var(--heather); border-color: var(--heather); }
.reg-d { text-align: right; display: grid; justify-items: end; align-content: start; }
.reg-y { font: 400 1.45rem/1.1 var(--display); font-variant-numeric: lining-nums; }
.reg-dm { font: 400 .8rem/1.3 var(--sans); color: var(--ink-3); }
.reg-b { padding-left: 1.4rem; }
.reg-w { margin: .2rem 0 .3rem; font: 600 .98rem/1.4 var(--sans); }
.reg-w .place { font-weight: 400; color: var(--ink-2); }
.reg-x { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
@media (max-width: 520px) {
  .reg-i { grid-template-columns: 4.2rem 1fr; gap: .8rem; }
  .reg-i::before { left: calc(4.2rem + .4rem - 1px); }
  .reg-i::after { left: calc(4.2rem + .4rem - 6px); }
  .reg-y { font-size: 1.2rem; }
  .reg-b { padding-left: 1rem; }
}

.kin { display: flex; flex-direction: column; gap: 1.8rem; padding: 1rem 0; }
.kin-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; position: relative; width: 100%; }
.kin-row.parents::after, .kin-row.couple::after { content: ""; position: absolute; left: 50%; bottom: -1.8rem; height: 1.8rem; border-left: 1.5px solid var(--rule); }
.kin-row.couple:last-child::after { display: none; }
.kc { display: grid; gap: .15rem; align-content: start; min-width: 11rem; max-width: 16rem; flex: 1 1 11rem; padding: .85rem 1rem; border-radius: 12px; background: var(--paper-2); text-decoration: none; border: 1.5px solid transparent; transition: transform .2s, border-color .2s; }
a.kc:hover { transform: translateY(-2px); border-color: var(--rule); }
.kc.inferred { border: 1.5px dashed var(--ink-3); }
.kc.lead { border: 2px dotted var(--ink-3); }
.kc.self { background: var(--ink); color: var(--paper); }
.kc.self .kc-y { color: var(--fb-paper-70); color: color-mix(in srgb, var(--paper) 70%, transparent); }   /* floor-ok: a fixed colour before it */
.kc.empty { background: none; border: 1.5px dashed var(--rule); color: var(--ink-3); }
.kc-l { font: 600 .66rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; margin-bottom: .25rem; }
.kc-n { font: 500 1.05rem/1.25 var(--display); }
.kc-y { font: 400 .82rem/1.3 var(--sans); color: var(--ink-3); }
.kin-wed { display: grid; justify-items: center; align-content: center; gap: .15rem; font: 400 .82rem/1.3 var(--sans); color: var(--ink-3); min-width: 7rem; }
@media (max-width: 600px) {
  .kin-row { flex-direction: column; align-items: stretch; gap: .6rem; }
  .kin-row .kc { max-width: none; flex: none; }
  .kin-row.couple .kin-wed { display: flex; justify-content: center; align-items: center; gap: .5rem; min-width: 0; padding: .1rem 0; }
  .kin-row.parents::after, .kin-row.couple::after { display: none; }
}

.kids { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.kid { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.kid-y { font: 400 1.1rem/1.4 var(--display); color: var(--ink-3); font-variant-numeric: lining-nums; }
.kid-n { font-size: 1.05rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: baseline; }
.kid-f { display: block; font: 400 .88rem/1.45 var(--sans); color: var(--ink-3); }
.kid-tag { font: 600 .64rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .3em .5em; border-radius: 4px; background: var(--accent); color: var(--paper); }
.kid.in-tree .kid-n { font-weight: 600; }
.kid.young .kid-y { opacity: .65; }

.blk.two { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 52rem; }
.facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .7rem; }
.facts li { display: grid; grid-template-columns: 6.2rem 1fr; gap: .8rem; }
.f-y { font: 400 .95rem/1.4 var(--display); color: var(--ink-3); font-variant-numeric: lining-nums; }
.f-n { display: block; font: 400 .86rem/1.45 var(--sans); color: var(--ink-3); margin-top: .2rem; }
@media (max-width: 640px) { .blk.two { grid-template-columns: 1fr; } }

.doc { background: var(--paper-2); border-radius: var(--r); padding: 1.4rem 1.5rem; margin: 1.2rem 0; }
.doc h3 { font: 500 1.2rem/1.2 var(--display); margin-bottom: .8rem; }
.doc-text { margin: 0 0 .8rem; font: italic 400 1.02rem/1.65 var(--serif); color: var(--ink-2); white-space: pre-line; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font: 400 .82rem/1.4 var(--sans); color: var(--ink-3); margin: 0; }
.prayer-cards { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.4rem; }
.prayer { margin: 0; max-width: 19rem; }
.prayer-card { background: #fbf8f1; color: #2a241e; padding: 10px; border-radius: 4px; box-shadow: var(--shadow); }
.prayer-in { border: 3px double #2a241e; padding: 1.2rem 1rem; text-align: center; font: 400 .9rem/1.5 var(--serif); }
.prayer-in p { margin: 0 0 .35rem; }
.prayer figcaption { display: grid; gap: .2rem; margin-top: .7rem; font: 400 .8rem/1.4 var(--sans); color: var(--ink-3); }
.qs { padding-left: 1.2rem; color: var(--ink-2); }
.qs li { margin-bottom: .5rem; }

/* onward */
.onward { background: var(--night); color: var(--on-night); padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px); margin-top: clamp(32px, 6vw, 72px); }
.onward > * { width: min(var(--wrap), calc(100% - 36px)); margin-left: auto; margin-right: auto; }
.ow-gens { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; }
/* one child alone takes the whole row: spanning both columns is the same as one column, and needs no :has() */
.ow-gens > :only-child { grid-column: 1 / -1; }
.ow-h { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.ow-arrow { font: 300 1.4rem/1 var(--display); color: var(--glow); }
.gc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gc-row.one { grid-template-columns: 1fr; }
.gc-row.many { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gc { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 1.2rem 1.2rem 1.1rem; border-radius: var(--r); overflow: hidden; background: var(--night-3); text-decoration: none; color: var(--on-night); border: 1px solid rgba(255, 241, 214, .07); transition: transform .3s; }
a.gc:hover { transform: translateY(-3px); }
.gc.empty { background: none; border: 1.5px dashed rgba(255, 241, 214, .18); color: var(--on-night-2); }
.gc-img { position: absolute; inset: 0; z-index: -1; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) sepia(.35) brightness(.55); transition: transform 1.6s cubic-bezier(.2, .7, .2, 1); }
a.gc:hover .gc-img img { transform: scale(1.06); }
.gc.map .gc-img img { filter: grayscale(1) sepia(.5) brightness(.32) contrast(1.3); }
.gc.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, rgba(17, 13, 10, .9)); }
.gc-b { display: grid; gap: .25rem; }
.gc-l { font: 600 .66rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.gc-n { font: 400 1.45rem/1.1 var(--display); letter-spacing: -.01em; }
.gc-y { font: 400 .86rem/1.3 var(--sans); color: var(--on-night-2); }
.gc-s { justify-self: start; margin-top: .4rem; font: 600 .66rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: .35em .6em; border-radius: 4px; background: var(--glow); color: var(--night); }
.gc.pat { border-bottom: 3px solid var(--amber-l); }
.gc.mat { border-bottom: 3px dotted var(--heather-l); }
.ow-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: clamp(32px, 5vw, 56px); }
.ow-l { display: grid; gap: .2rem; padding: .8rem 1.1rem; border-radius: 12px; border: 1px solid rgba(255, 241, 214, .14); text-decoration: none; font: 400 .95rem/1.3 var(--sans); transition: background .2s; }
.ow-l:hover { background: rgba(255, 241, 214, .06); }
.ow-k { font: 600 .64rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-2); }
.ow-next { display: grid; gap: .5rem; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid rgba(255, 241, 214, .12); text-decoration: none; }
.ow-next-k { font: 600 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--amber-l); }
.ow-next-t { font: 340 clamp(2rem, 4.5vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; color: var(--glow); font-variation-settings: "SOFT" 100; transition: color .3s; }
.ow-next:hover .ow-next-t { color: var(--amber-l); }
.ow-next-l { color: var(--on-night-2); max-width: 40rem; }
@media (max-width: 760px) { .ow-gens { grid-template-columns: 1fr; } .gc { min-height: 170px; } }

/* sources at the end of a page */
.src-list { border-top: 1px solid var(--rule); padding: 1rem 0; }
.src-list summary { cursor: pointer; font: 600 .9rem/1.4 var(--sans); color: var(--ink-2); }
.sources { margin: 1rem 0 0; padding-left: 1.6rem; font: 400 .86rem/1.5 var(--sans); color: var(--ink-2); display: grid; gap: .5rem; }
.si-a { display: block; color: var(--ink-3); font-size: .8rem; }
.si-l { font-weight: 600; }
.notes { margin-top: 1rem; font: 400 .88rem/1.5 var(--sans); color: var(--ink-3); }
.notes summary { cursor: pointer; }

/* the sources page */
.arch-l { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; font: 400 .92rem/1.3 var(--sans); }
.arch-l li { display: grid; grid-template-columns: minmax(10rem, 22rem) 1fr 3.5rem; gap: 1rem; align-items: center; }
.arch-bar { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; }
.arch-bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 4px; }
.arch-c { text-align: right; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.arch-bar .w1 { width: 5%; } .arch-bar .w2 { width: 10%; } .arch-bar .w3 { width: 15%; } .arch-bar .w4 { width: 20%; } .arch-bar .w5 { width: 25%; }
.arch-bar .w6 { width: 30%; } .arch-bar .w7 { width: 35%; } .arch-bar .w8 { width: 40%; } .arch-bar .w9 { width: 45%; } .arch-bar .w10 { width: 50%; }
.arch-bar .w11 { width: 55%; } .arch-bar .w12 { width: 60%; } .arch-bar .w13 { width: 65%; } .arch-bar .w14 { width: 70%; } .arch-bar .w15 { width: 75%; }
.arch-bar .w16 { width: 80%; } .arch-bar .w17 { width: 85%; } .arch-bar .w18 { width: 90%; } .arch-bar .w19 { width: 95%; } .arch-bar .w20 { width: 100%; }
.page .blk { margin-left: 0; }
.changes { padding-left: 1.2rem; color: var(--ink-2); font-size: .98rem; }
.changes li { margin-bottom: .5rem; }
.colophon p { color: var(--ink-2); font: 400 .92rem/1.6 var(--sans); }
.th-grid.small { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.th-grid.small .thc.first { grid-column: auto; grid-row: auto; }
.th-grid.small .thc.first .thc-img { aspect-ratio: 4 / 3; }
.th-grid.small .thc.first .thc-t { font-size: 1.55rem; }

/* family statements (site/contrib.js): what relatives know, the question on an empty slot, and the form */
.ph-vitals li.stated .conf, .stmt-by .conf { margin-left: .2em; color: inherit; }
.kc.ask { cursor: pointer; text-align: left; font: inherit; color: var(--ink-2); border: 2px dotted var(--ink-3); }
.kc.ask:hover, .kc.ask:focus-visible { border-color: var(--accent); color: var(--ink); }
.kc-ask { font: 600 .82rem/1.3 var(--sans); color: var(--accent); margin-top: .2rem; }
.stmt-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .9rem; }
.stmt-i { padding: .9rem 1.1rem; border: 2px dotted var(--rule); border-radius: 12px; background: var(--paper-2); }
.stmt-f { font: 500 1.05rem/1.35 var(--display); margin: 0 0 .35rem; }
.stmt-by { font: 400 .9rem/1.5 var(--sans); color: var(--ink-2); margin: 0; }
.stmt-note { margin: .6rem 0 0; padding: 0 0 0 .9rem; border-left: 2px solid var(--rule); font: italic 400 .98rem/1.5 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.stmt-note p { margin: 0 0 .3rem; }
.stmt-note .stmt-nl { font: 600 .68rem/1.2 var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.stmt-act { margin: .4rem 0 0; }
.pg.slot .pbody { padding-top: clamp(24px, 5vw, 48px); }
.stmt-dlg { width: min(36rem, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; border: 1px solid var(--rule); border-radius: 16px; padding: 1.4rem 1.4rem 1.2rem; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.stmt-dlg::backdrop { background: rgba(10, 8, 6, .72); }
.stmt-x { position: absolute; right: .6rem; top: .5rem; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font-size: 1.5rem; cursor: pointer; }
.stmt-k { font: 600 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 2.4rem .3rem 0; }
.stmt-h { font: 400 1.7rem/1.15 var(--display); margin: 0 2rem .5rem 0; }
.stmt-intro, .stmt-living { font: 400 .92rem/1.5 var(--sans); color: var(--ink-2); margin: 0 0 .6rem; }
.stmt-living { padding: .55rem .75rem; border-radius: 8px; background: var(--paper-2); }
.stmt-form { margin-top: .8rem; }
.stmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
.stmt-fld { display: grid; gap: .25rem; align-content: start; }
.stmt-fld.wide { margin-top: .8rem; }
.stmt-fld label { font: 600 .82rem/1.3 var(--sans); color: var(--ink-2); }
.stmt-opt { font-weight: 400; color: var(--ink-3); }
.stmt-fld input, .stmt-fld textarea { font: 400 1rem/1.4 var(--serif); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px; padding: .5rem .65rem; width: 100%; box-sizing: border-box; }
.stmt-fld input:focus, .stmt-fld textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.stmt-fld textarea { resize: vertical; min-height: 4.5rem; }
.stmt-hint { font: 400 .8rem/1.4 var(--sans); color: var(--ink-3); margin: 0; }
.stmt-status { font: 400 .92rem/1.45 var(--sans); min-height: 1.3em; margin: .8rem 0 0; }
.stmt-status.ok { color: var(--ink); }
.stmt-status.err { color: var(--accent); }
.stmt-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.stmt-btns .pill[disabled] { opacity: .5; cursor: default; }
.stmt-wd { margin-left: auto; }
@media (max-width: 520px) {
  .stmt-dlg { padding: 1.1rem 1rem 1rem; }
  .stmt-grid { grid-template-columns: 1fr; }
  .stmt-wd { margin-left: 0; }
}
.stmt-fixed { margin: 0 0 .9rem; padding: .6rem .8rem; border: 2px dotted var(--rule); border-radius: 10px; }
.stmt-fixed-h { font: 600 .7rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .35rem; }
.stmt-fixed dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .8rem; margin: 0; font: 400 .95rem/1.4 var(--sans); }
.stmt-fixed dt { color: var(--ink-2); }
.stmt-fixed dd { margin: 0; color: var(--ink); }

/* ---------- "Waar je vandaan komt" (site/made.js) ----------
   One bar is the person in the centre: the father's side on the left half, the mother's on the right, each place
   a slice as wide as its average share. Solid: from the records; open and dotted: a lead or the family's word;
   dashed and empty: not known. Widths come in as --w (share of the half, in per cent) through the CSSOM. */
.made { max-width: 64rem; }
.mf-top { margin-bottom: clamp(44px, 6vw, 72px); }
.mf-top h1 { margin-bottom: 1.4rem; }
.mf-old { font: italic 400 1.15rem/1.5 var(--display); color: var(--ink-2); max-width: 38rem; margin: 1.4rem 0 .9rem; }
.mf-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem 0; font: 400 .95rem/1.4 var(--sans); color: var(--ink-2); max-width: 46rem; }
.mf-chain li { display: inline-flex; align-items: baseline; gap: .3em; }
.mf-chain li:not(:last-child)::after { content: "→" / ""; margin: 0 .55em; color: var(--ink-3); }
.mf-chain a { text-decoration-color: var(--rule); }
.mf-chain .lead a { text-decoration-style: dotted; }
.mf-chain .you { font-weight: 600; color: var(--ink); }
.mf-cy { font-size: .78rem; color: var(--ink-3); font-variant-numeric: lining-nums; }

.mf-sec { margin: 0 0 clamp(64px, 9vw, 112px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--rule); }
.mf-h2 { font: 400 clamp(1.9rem, 3.6vw, 2.8rem)/1.05 var(--display); letter-spacing: -.02em; margin-bottom: 1rem; font-variation-settings: "SOFT" 80; }
.mf-intro { color: var(--ink-2); max-width: 40rem; font-size: 1.04rem; line-height: 1.6; margin-bottom: .8rem; }
.mf-note { font: 400 .88rem/1.5 var(--sans); color: var(--ink-3); max-width: 40rem; margin: 1rem 0 0; }

/* the bar */
.mb-wrap { margin: 2rem 0 1.1rem; }
.mb-ends { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 .55rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.mb-ends > span { display: inline-flex; align-items: center; }
.mb-ends > span:last-child .side-mark { margin: 0 0 0 .4em; }
.mb-you { position: relative; font: 500 1rem/1 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink); padding-bottom: .1rem; }
.mb-you::after { content: ""; position: absolute; left: 50%; top: calc(100% + .2rem); width: 1px; height: .45rem; background: var(--ink-3); }
.mb { display: flex; gap: 4px; height: 4.6rem; }
.mb.small { height: 2.5rem; margin-top: .4rem; }
.mb-half { flex: 1 1 0; display: flex; min-width: 0; }
.mb-sl { position: relative; flex: 0 0 calc(var(--w) * 1%); min-width: 0; container-type: inline-size; text-decoration: none; color: var(--paper); overflow: hidden; }   /* floor-ok: see the note above the queries */
.mb-f, .mb-lead { position: absolute; top: 0; bottom: 0; left: 1px; right: 1px; }
.mb-f { right: calc(100% - var(--s, 100) * 1% + 1px); }
.mb-lead { left: calc(var(--s, 0) * 1% + 1px); border: 2px dotted; }
.mb-half > .mb-sl:first-child > :is(.mb-f, .mb-lead) { left: 0; }
.mb-half > .mb-sl:last-child > :is(.mb-f, .mb-lead) { right: 0; }
.mb-half.pat > .mb-sl:first-child > :is(.mb-f, .mb-lead) { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.mb-half.mat > .mb-sl:last-child > :is(.mb-f, .mb-lead) { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
.pat .mb-sl.t0 .mb-f { background: var(--fb-amber-86); background: color-mix(in srgb, var(--amber) 86%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.pat .mb-sl.t1 .mb-f { background: var(--fb-amber-66); background: color-mix(in srgb, var(--amber) 66%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.pat .mb-sl.t2 .mb-f { background: var(--fb-amber-46); background: color-mix(in srgb, var(--amber) 46%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.pat .mb-sl.t3 .mb-f { background: var(--fb-amber-32); background: color-mix(in srgb, var(--amber) 32%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-sl.t0 .mb-f { background: var(--fb-heather-86); background: color-mix(in srgb, var(--heather) 86%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-sl.t1 .mb-f { background: var(--fb-heather-66); background: color-mix(in srgb, var(--heather) 66%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-sl.t2 .mb-f { background: var(--fb-heather-46); background: color-mix(in srgb, var(--heather) 46%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-sl.t3 .mb-f { background: var(--fb-heather-32); background: color-mix(in srgb, var(--heather) 32%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.pat .mb-lead { border-color: var(--amber); background: var(--fb-amber-12); background: color-mix(in srgb, var(--amber) 12%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-lead { border-color: var(--heather); background: var(--fb-heather-12); background: color-mix(in srgb, var(--heather) 12%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mb-sl.t2, .mb-sl.t3, .mb-sl.rest, .mb-sl.unknown { color: var(--ink); }
.mb-sl.open { color: var(--ink); }
.pat .mb-sl.rest .mb-f { background: var(--fb-amber-16); background: color-mix(in srgb, var(--amber) 16%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mat .mb-sl.rest .mb-f { background: var(--fb-heather-16); background: color-mix(in srgb, var(--heather) 16%, var(--paper)); }   /* floor-ok: a fixed colour before it */
.mb .mb-sl.unknown .mb-f { background: transparent; border: 1.5px dashed var(--ink-3); opacity: .7; }
.mb-sl.unknown { color: var(--ink-3); }
a.mb-sl:hover .mb-f { filter: brightness(1.08) saturate(1.1); }
.mb-t { position: absolute; left: .55rem; right: .3rem; bottom: .45rem; display: grid; gap: .1rem; font: 600 .78rem/1.15 var(--sans); white-space: nowrap; }
.mb-n { overflow: hidden; text-overflow: ellipsis; }
.mb-p { font: 400 .74rem/1 var(--sans); opacity: .85; font-variant-numeric: tabular-nums; }
.mb.small .mb-t { bottom: auto; top: 50%; transform: translateY(-50%); display: flex; gap: .4rem; align-items: baseline; font-size: .72rem; }
/* the words in a narrow slice of the bar shrink and then go. A slice's width comes from the data (--w), not from the
   screen, so no @media rule can stand in for these queries. Without them (Chrome before 105, Safari before 16, Firefox
   before 110) the words stay, and the slice (overflow: hidden, white-space: nowrap) cuts them cleanly at its own edge;
   nothing spills into the next slice, and each slice keeps its colour, its title (name and share on hover) and its line in
   the list under the bar */
@container (max-width: 2.3rem) { .mb-t { display: none !important; } }   /* floor-ok: see the note above the queries */
@container (max-width: 4.6rem) { .mb-n { display: none; } .mb-t { left: .3rem; } }   /* floor-ok: see the note above the queries */
@container (max-width: 6.5rem) { .mb-n { font-size: .7rem; } .mb-t { left: .35rem; } }   /* floor-ok: see the note above the queries */
.mb-by { font: 600 .72rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 1.1rem 0 0; }

/* the key under the bar */
.mf-key { margin: 0 0 2.2rem; }
.mf-key-l { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font: 400 .84rem/1.3 var(--sans); color: var(--ink-3); }
.mf-key-l li { display: inline-flex; align-items: center; gap: .5rem; }
.mf-key-l i { width: 1.6rem; height: .8rem; border-radius: 3px; flex: none; }
.k-rec { background: linear-gradient(90deg, var(--amber) 50%, var(--heather) 50%); }
.k-lead { border: 2px dotted var(--ink-2); }
.k-unk { border: 1.5px dashed var(--ink-3); }

/* the places, per side: the text that says what the bar shows */
.ml-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem clamp(1.5rem, 4vw, 3.5rem); }
.ml-side { font: 600 .72rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; margin: 0 0 .7rem; }
.ml-col.pat { border-left: 2px solid var(--amber); padding-left: 1.1rem; }
.ml-col.mat { border-left: 2px dotted var(--heather); padding-left: 1.1rem; }
.ml-l, .ml-sub { list-style: none; margin: 0; padding: 0; }
.ml { display: grid; grid-template-columns: .7rem 1fr; gap: 0 .7rem; padding: .5rem 0; border-bottom: 1px solid var(--fb-rule-60); border-bottom: 1px solid color-mix(in srgb, var(--rule) 60%, transparent); }   /* floor-ok: a fixed colour before it */
.ml:last-child { border-bottom: 0; }
.ml-sw { width: .7rem; height: .7rem; border-radius: 2px; margin-top: .45rem; }
.ml-sw.pat { background: var(--amber); } .ml-sw.mat { background: var(--heather); }
.ml-sw.rest { opacity: .35; }
.ml.lead .ml-sw { background: none; border: 2px dotted var(--ink-2); }
.ml-sw.unknown { border: 1.5px dashed var(--ink-3); background: none; }
.ml-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.ml-n { font: 500 1.08rem/1.3 var(--display); text-decoration: none; }
a.ml-n:hover { text-decoration: underline; }
.ml.unknown .ml-n { color: var(--ink-3); font-style: italic; }
.ml-p { font: 600 .86rem/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ml-both { font: 400 .8rem/1 var(--sans); color: var(--ink-3); }
.ml-who { grid-column: 2; display: block; font: 400 .86rem/1.45 var(--sans); color: var(--ink-3); margin-top: .15rem; }
.ml-who a { color: var(--ink-2); text-decoration-color: var(--rule); }
.ml-who a.lead { text-decoration-style: dotted; }
.ml-more summary { cursor: pointer; }
.ml-sub { margin: .4rem 0 .2rem; display: grid; gap: .45rem; font: 400 .9rem/1.4 var(--sans); }
.ml-sub a { font-weight: 600; }
.ml-sub .ml-who { display: inline; }
@media (max-width: 640px) { .ml-cols { grid-template-columns: 1fr; } }

/* the names */
.nm-wall { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1.05rem; }
.nm a { font-family: var(--display); font-weight: 400; text-decoration: none; color: var(--ink); letter-spacing: -.01em; transition: color .2s; }
.nm a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.nm.lead a { text-decoration: underline dotted; text-decoration-color: var(--ink-3); text-underline-offset: .2em; }
.nm.sz5 a { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 340; line-height: 1.1; }
.nm.sz4 a { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 360; line-height: 1.15; }
.nm.sz3 a { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.25; }
.nm.sz2 a { font-size: 1.08rem; color: var(--ink-2); line-height: 1.4; }
.nm.sz1 a { font-size: .92rem; color: var(--ink-3); line-height: 1.5; }
.nm-v { font: 400 .74rem/1 var(--sans); color: var(--ink-3); margin-left: .35em; }

/* who we know: one row per generation, the centre at the bottom */
.kg { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 5px; }
.kg-row { display: grid; grid-template-columns: 15.5rem 1fr; gap: 1rem; align-items: center; }
.kg-l { margin: 0; display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; font: 400 .82rem/1.2 var(--sans); color: var(--ink-3); }
.kg-g { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.kg-k { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kg-bar { display: flex; justify-content: center; align-items: center; }
.kg-svg { display: block; width: calc(var(--f, 1) * 100%); height: 15px; overflow: visible; }
.kg-bg { fill: var(--fb-ink-7); fill: color-mix(in srgb, var(--ink) 7%, transparent); }   /* floor-ok: a fixed colour before it */
.kg-c.pat { fill: var(--amber); } .kg-c.mat { fill: var(--heather); }
.kg-c.lead { fill-opacity: .38; }
.kg-ask { fill: transparent; cursor: pointer; }
.kg-ask:hover { fill: var(--fb-accent-45); fill: color-mix(in srgb, var(--accent) 45%, transparent); }   /* floor-ok: a fixed colour before it */
.kg-sep { stroke: var(--paper); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.kg-sep.mid { stroke-width: 4px; }
.kg-you { margin-top: .5rem; }
.kg-you .kg-bar { flex-direction: column; gap: .35rem; }
.kg-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--fb-ink-12); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 12%, transparent); }   /* floor-ok: a fixed colour before it */
.kg-name { font: 500 1rem/1 var(--display); }
.kg-ask-b { margin-top: 2rem; padding: 1.3rem 1.4rem 1.4rem; border-radius: var(--r); background: var(--paper-2); max-width: 46rem; }
.kg-ask-h { font: 400 1.4rem/1.2 var(--display); margin: 0 0 .4rem; }
.kg-ask-l { display: flex; flex-wrap: wrap; gap: .5rem; }
.kg-askb { color: var(--ink); }
@media (max-width: 640px) {
  .kg-row { grid-template-columns: 1fr; gap: .2rem; }
  .kg-l { justify-content: flex-start; }
  .kg { gap: 9px; }
  .kg-you .kg-l { display: none; }
}

/* what they did */
.wk { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.wk a { display: inline-flex; align-items: baseline; gap: .55rem; padding: .5rem .85rem; border-radius: 999px; background: var(--paper-2); text-decoration: none; border: 1px solid transparent; transition: border-color .2s; }
.wk a:hover { border-color: var(--rule); }
.wk-t { font: 400 1.02rem/1.2 var(--serif); }
.wk-n { font: 400 .78rem/1 var(--sans); color: var(--ink-3); }
.wk-i.many .wk-t { font-weight: 600; }

/* on the home page: the bar alone, small */
.made-b { padding-top: 0; }
.made-b .band-h { margin-bottom: 1.4rem; }
.made-b .band-h h2 { font: 400 clamp(2rem, 4vw, 3rem)/1.05 var(--display); letter-spacing: -.02em; margin-bottom: .8rem; }
.made-b .lede { font-size: 1.05rem; }
.made-b .band-more { margin-top: 1.6rem; }
.dna-go { margin: 1.2rem 0 0; }

/* ---------- importing a tree (site/import.js) ---------- */
.hero-import { margin: 1rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--on-night-2); max-width: 27rem; }
.hero-import a { color: var(--amber-l); }
.page.imp { max-width: 46rem; }
.page.imp .page-h { margin-bottom: clamp(24px, 4vw, 40px); }
.page.imp { min-height: 82vh; box-sizing: border-box; }
.page.imp.imp-on .lede { display: none; }
.page.imp.imp-on .page-h { margin-bottom: 1.2rem; }
.page.imp.imp-on .page-h h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin-bottom: 0; }
.page.imp .kicker a { color: inherit; }
.imp-body { font: 400 1.02rem/1.55 var(--sans); color: var(--ink); }
.imp-body p { margin: 0 0 .9rem; max-width: 40rem; }
.imp-h { font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.2 var(--display); letter-spacing: -.01em; margin: 1.2rem 0 .9rem; }
.imp-h:focus { outline: none; }
.imp-private { padding: .7rem .9rem; border-radius: 10px; background: var(--paper-2); color: var(--ink-2); font-size: .95rem; }
.imp-how, .imp-note, .imp-fileinfo { color: var(--ink-2); font-size: .93rem; }
.imp-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.imp-file:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
.imp-pick { margin: 1.1rem 0; }
.imp-pick label { cursor: pointer; }
.imp-link { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: .15em; cursor: pointer; }
.imp-err { color: var(--accent); font-weight: 600; }
.imp-ok { padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--rule); }
.imp-bar { display: block; width: min(100%, 28rem); height: .7rem; accent-color: var(--accent); }
.imp-you { font-size: 1.12rem; }
.imp-cands { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; max-width: 40rem; }
.imp-cand { display: block; width: 100%; text-align: left; padding: .7rem .95rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-2); color: var(--ink); font: 400 1rem/1.4 var(--sans); cursor: pointer; overflow-wrap: anywhere; }
.imp-cand:hover, .imp-cand:focus-visible { border-color: var(--ink-2); }
.imp-kin { color: var(--ink-2); }
.imp-search { display: grid; gap: .3rem; margin: 1.2rem 0 .7rem; max-width: 28rem; }
.imp-search label { font: 600 .82rem/1.3 var(--sans); color: var(--ink-2); }
.imp-q { font: 400 1rem/1.4 var(--serif); color: var(--ink); background: var(--paper-2); border: 1px solid var(--rule); border-radius: 8px; padding: .55rem .7rem; width: 100%; box-sizing: border-box; }
.imp-q:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.imp-none { color: var(--ink-2); min-height: 1.4em; }
.imp-counts { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .45rem; max-width: 40rem; }
.imp-counts > li { padding: .6rem .9rem; border: 1px solid var(--rule); border-radius: 10px; }
.imp-counts > li.add { border: 2px dotted var(--ink-3); background: var(--paper-2); }
.imp-counts b { font: 500 1.25rem/1 var(--display); margin-right: .15em; }
.imp-why { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .92rem; }
.imp-check, .imp-differs { margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--rule); border-radius: 12px; max-width: 40rem; box-sizing: border-box; }
.imp-check h3, .imp-differs h3 { font: 600 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; }
.imp-check ul, .imp-differs ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.imp-check li.imp-gp { padding-left: 1.4rem; font-size: .95rem; }
.imp-rel, .imp-missing { color: var(--ink-2); }
.imp-differs p { margin: .6rem 0 0; color: var(--ink-2); font-size: .92rem; }
.imp-notes { margin: 0 0 1.2rem; padding-left: 1.1rem; color: var(--ink-2); font-size: .93rem; max-width: 40rem; display: grid; gap: .3rem; }
.imp-btns { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin: 1.2rem 0 .8rem; }
.imp-btns .imp-pick { margin: 0; }
.imp-btns .pill[disabled], .imp-last .pill[disabled] { opacity: .5; cursor: default; }
.imp-last { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.imp-alt { margin-top: 1.4rem; }

/* photos from the family (spec/photos.md 6; pages/person/Photos.tsx, parts/Lightbox.tsx, panels/photo-form.tsx): an
   album leaf, apart from the researched pictures. The prints stand at their own proportions in rows of one height
   (each item grows with its ratio, --ar, set by the page from the picture's size; --w is the width of the rendition,
   which a small print never exceeds); nothing is boxed. The dotted line is what the family says, as everywhere:
   once under the heading, and around the place for a new photo. */
.fp-blk { --row: 10.5rem; }
.fp-blk .blk-h { padding-bottom: .9rem; border-bottom: 2px dotted var(--rule); margin-bottom: 1.4rem; }
.fp-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.8rem 1.2rem; }
.fp-list.n1 { --row: 24rem; }
.fp-list.n2 { --row: 17rem; }
.fp-i { flex: var(--ar, 1) 1 calc(var(--ar, 1) * var(--row)); min-width: 8.5rem; max-width: min(calc(var(--ar, 1) * var(--row) * 1.55), max(var(--w, 100%), 8.5rem), 100%); }
.fp-fig { margin: 0; }
.fp-i.told { min-width: 12.5rem; }
.fp-open { display: block; width: 100%; max-width: min(var(--w, 100%), calc(var(--ar, 1) * var(--row) * 1.55)); padding: 0; border: 0; background: var(--paper-3); cursor: zoom-in; border-radius: 2px; box-shadow: 0 0 0 1px var(--fb-ink-12), 0 1px 2px rgba(40, 28, 16, .08), 0 10px 22px -16px rgba(40, 28, 16, .45); }
.fp-open img { display: block; width: 100%; height: auto; border-radius: 2px; }
.fp-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fp-fig figcaption { display: grid; gap: .25rem; justify-items: start; margin-top: .7rem; font: 400 .86rem/1.45 var(--sans); color: var(--ink-2); }
.fp-words { font: italic 400 1.02rem/1.5 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.fp-by { font-size: .8rem; }
/* "Aanpassen", for the member's own: a quiet word under the line, with room around it for a finger */
.fp-edit, .fp-back { appearance: none; background: none; border: 0; margin: 0; padding: .7rem .9rem .7rem 0; min-height: 44px; font: 400 .82rem/1.2 var(--sans); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: .2em; cursor: pointer; }
.fp-fig .fp-edit { margin: -.35rem 0 -.7rem; }
.fp-edit:focus-visible, .fp-back:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.fp-said { font: 400 .92rem/1.45 var(--sans); color: var(--ink-2); margin: 1.2rem 0 0; }
/* one photo: large, with what was said of it beside it (under it when the print is wide, and on a phone) */
.fp-list.n1 .fp-i { flex: 1 1 100%; max-width: 100%; }
.fp-list.n1 .fp-fig { display: grid; grid-template-columns: minmax(0, min(calc(var(--ar, 1) * var(--row)), var(--w, 100%))) minmax(11rem, 1fr); gap: 1.2rem 1.8rem; align-items: end; }
.fp-list.n1 .wide .fp-fig { grid-template-columns: minmax(0, min(calc(var(--ar, 1) * 19rem), var(--w, 100%), 100%)); }
.fp-list.n1 figcaption { margin: 0; padding-bottom: .2rem; }
.fp-list.n1 .fp-words { font-size: 1.22rem; line-height: 1.45; margin-bottom: .3rem; }
.fp-list.n1 .fp-new { flex-basis: 100%; }
/* the place for a new photo: an empty print, dotted; the whole of it is the file field */
.fp-add { position: relative; display: grid; align-content: center; justify-items: center; gap: .5rem; box-sizing: border-box; height: var(--row); padding: .8rem; border: 2px dotted var(--ink-3); border-radius: 3px; color: var(--ink-2); font: 400 .9rem/1.3 var(--sans); text-align: center; cursor: pointer; }
.fp-new { flex: 0 0 8.5rem; min-width: 0; }
.fp-list.n1 .fp-add, .fp-list.n2 .fp-add { height: auto; min-height: 44px; display: inline-flex; gap: .6rem; padding: .7rem 1.1rem; }
.fp-frame::before { content: "+"; font: 300 1.9rem/1 var(--display); color: var(--ink-3); }
.fp-list.n1 .fp-frame::before, .fp-list.n2 .fp-frame::before { font-size: 1.2rem; }
.fp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.fp-add:focus-within, .fp-pick:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
/* nobody added one yet: the invitation, an empty print beside the question */
.fp-add.fp-invite { display: grid; grid-template-columns: 7.5rem auto; grid-template-rows: 1fr auto auto 1fr; justify-content: start; justify-items: start; align-content: stretch; column-gap: 1.5rem; row-gap: .2rem; height: auto; padding: 0; border: 0; text-align: left; }
.fp-invite .fp-frame { grid-row: 1 / -1; display: grid; place-content: center; width: 100%; height: 9.5rem; border: 2px dotted var(--ink-3); border-radius: 3px; }
.fp-invite .fp-q { grid-row: 2; font: 400 clamp(1.35rem, 2.4vw, 1.7rem)/1.2 var(--display); letter-spacing: -.01em; color: var(--ink); }
.fp-invite .fp-a { grid-row: 3; font: 400 .95rem/1.4 var(--sans); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: .22em; }
.fp-invite:focus-within { outline-offset: 6px; }

/* a family photo enlarged: the words of who added it first, then its line and where it comes from */
.lightbox.family { width: 100vw; max-width: 100vw; text-align: center; }
.lightbox.family::backdrop { background: rgba(10, 8, 6, .97); }
.lightbox.family img { max-width: min(94vw, 70rem); max-height: 72vh; box-shadow: 0 0 0 1px rgba(255, 241, 214, .14); }
.lb-text { max-width: 40rem; margin: 1.1rem auto 0; padding: 0 3.6rem; }
.lb-words { margin: 0 0 .5rem; font: italic 400 1.2rem/1.5 var(--serif); color: var(--on-night); overflow-wrap: anywhere; }
.lightbox.family .lb-cap { margin: 0; color: var(--on-night-2); }
.lb-own { margin: 0; }
.lb-own .fp-edit { color: var(--on-night); text-decoration-color: var(--on-night-2); padding-right: 0; }
.lb-go { position: fixed; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); color: #fff; font: 400 1.7rem/1 var(--sans); padding: 0 0 .15em; cursor: pointer; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

/* the form: the print on one side, what is said of it on the other */
.fp-dlg { width: min(50rem, calc(100vw - 24px)); padding: 1.6rem 1.8rem 1.5rem; }
.fp-form { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 1.6rem 2rem; align-items: start; margin-top: 1rem; }
.fp-file { display: grid; gap: .2rem; justify-items: start; }
.fp-file.none { align-content: center; justify-items: center; min-height: 12rem; border: 2px dotted var(--ink-3); border-radius: 3px; }
.fp-preview { display: block; max-width: 100%; width: auto; height: auto; max-height: 60vh; border-radius: 2px; box-shadow: 0 0 0 1px var(--fb-ink-12), 0 10px 22px -16px rgba(40, 28, 16, .45); }
.fp-pick { position: relative; overflow: hidden; display: inline-flex; align-items: center; min-height: 44px; font: 400 .82rem/1.2 var(--sans); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: .2em; cursor: pointer; }
.fp-pick.first { padding: .62em 1.1em; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 .9rem/1 var(--sans); text-decoration: none; }
.fp-pick.off { opacity: .5; }
.fp-fields { display: grid; gap: 1.3rem; min-width: 0; }
.fp-who { border: 0; padding: 0; margin: 0; min-width: 0; }
.fp-who legend, .fp-fields .stmt-fld > label:first-child { font: 600 .82rem/1.3 var(--sans); color: var(--ink-2); padding: 0; margin: 0 0 .15rem; }
/* who is on it: the names that stand there read as a line of the caption; the others are names to click */
.fp-chips { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 1.1rem; margin: 0; }
.fp-chip { appearance: none; display: inline-flex; align-items: baseline; gap: .35em; min-height: 44px; padding: .55rem 0; margin: 0; border: 0; background: none; color: var(--ink-2); font: 400 .98rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.fp-chip-n { text-decoration-line: underline; text-decoration-style: dotted; text-decoration-color: var(--ink-3); text-decoration-thickness: 2px; text-underline-offset: .28em; }
.fp-chip.on { color: var(--ink); font: 400 1.25rem/1.25 var(--display); }
.fp-chip.on .fp-chip-n { text-decoration: none; }
.fp-chip-x { font: 400 1rem/1 var(--sans); color: var(--ink-3); }
.fp-chip-x:empty { display: none; }
.fp-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fp-search { display: block; margin-top: .3rem; }
.fp-search input, .fp-fields .stmt-fld input, .fp-fields .stmt-fld textarea { min-height: 44px; }
.fp-search input { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: .55rem 0; width: 100%; box-sizing: border-box; }
.fp-search input:focus { outline: 0; border-bottom: 2px solid var(--accent); }
.fp-hint { font: 400 .86rem/1.45 var(--sans); color: var(--ink-2); margin: .4rem 0 0; }
.fp-grid { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .7rem 1rem; }
.fp-about { display: inline-flex; align-items: center; gap: .45em; font: 400 .9rem/1.3 var(--sans); color: var(--ink-2); min-height: 44px; margin-bottom: -.6rem; }
.fp-about input { width: 1.2rem; height: 1.2rem; min-height: 0; accent-color: var(--ink); }
.fp-caption textarea { min-height: 5.5rem; }
.fp-who-line { margin-top: .5rem; padding-top: 0; border-top: 0; }
.fp-fields .stmt-status { margin: 0; min-height: 0; }
.fp-fields .stmt-status:empty { display: none; }
.fp-fields .stmt-btns { margin-top: 0; align-items: center; }
.fp-fields .stmt-btns .pill { min-height: 44px; }
.fp-back { margin-left: auto; padding-right: 0; color: var(--ink-2); }
.fp-back[disabled] { opacity: .5; cursor: default; }
.fp-busy { display: block; height: 4px; margin-top: .4rem; border-radius: 2px; background: linear-gradient(90deg, var(--rule) 0, var(--accent) 50%, var(--rule) 100%); background-size: 200% 100%; animation: fp-busy 1.2s linear infinite; }
@keyframes fp-busy { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .fp-busy { animation: none; background: var(--accent); opacity: .5; } }
@media (hover: hover) {
  .fp-chip:hover, .fp-edit:hover, .fp-back:hover, .fp-pick:hover, .fp-add:hover .fp-a { color: var(--accent); }
  .fp-add:hover, .fp-invite:hover .fp-frame { border-color: var(--accent); }
  .fp-add.fp-invite:hover { border-color: transparent; }
  .fp-open:hover img { filter: brightness(1.04); }
  .lb-go:hover { background: rgba(0, 0, 0, .7); }
}
@media (prefers-contrast: more) {
  .fp-add, .fp-invite .fp-frame, .fp-file.none { border-color: var(--ink); }
  .fp-by, .fp-chip-x { color: var(--ink-2); }
}
@media (forced-colors: active) {
  .fp-add, .fp-invite .fp-frame, .fp-file.none { border-color: CanvasText; }
  .fp-add.fp-invite { border: 0; }
  .fp-open { box-shadow: none; outline: 1px solid CanvasText; }
  .fp-chip.on { outline: 1px solid CanvasText; outline-offset: -6px; padding-left: .5rem; padding-right: .5rem; }
}
@media print {
  .fp-add, .fp-new, .fp-edit, .fp-said { display: none; }
  .fp-blk.empty { display: none; }
  .fp-i { break-inside: avoid; }
  .fp-open { box-shadow: none; }
}
@media (max-width: 43em) {
  .fp-dlg { padding: 1.2rem 1rem 1rem; }
  .fp-form { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .fp-preview { max-height: 34vh; }
  .fp-file.none { min-height: 8rem; }
}
@media (max-width: 32.5em) {
  .fp-blk { --row: 8rem; }
  .fp-list { gap: 1.5rem .9rem; }
  .fp-list.n1 { --row: 20rem; }
  .fp-list.n2 { --row: 11rem; }
  .fp-i { min-width: 7rem; }
  .fp-i.told { min-width: 10.5rem; }
  .fp-new { flex-basis: 7rem; }
  .fp-list.n1 .fp-fig, .fp-list.n1 .wide .fp-fig { grid-template-columns: minmax(0, min(calc(var(--ar, 1) * var(--row)), var(--w, 100%), 100%)); }
  .fp-add.fp-invite { grid-template-columns: 5.5rem auto; column-gap: 1.1rem; }
  .fp-invite .fp-frame { height: 7rem; }
  .lb-text { padding: 0 1rem; }
  .lb-go { top: auto; bottom: 14px; }
}
