/* Rodovid v51 · Family Museum: responsive, offline and printable. */
.family-museum-open{border:1px solid rgba(219,179,108,.55);background:linear-gradient(135deg,#233e51,#456778);color:#fff;border-radius:12px;padding:9px 13px;font-weight:800;cursor:pointer;white-space:nowrap}
.family-museum-open:focus-visible,.family-museum-dialog button:focus-visible,.family-museum-dialog select:focus-visible,.family-museum-dialog input:focus-visible{outline:3px solid #d5a95c;outline-offset:3px}
.family-museum-dialog{color:#1e3241;width:min(1050px,calc(100vw - 32px));max-height:min(92vh,950px);border:0;border-radius:24px;padding:0;box-shadow:0 35px 110px #070f2f90;overflow:auto;background:#f9f8f3}
.family-museum-dialog::backdrop{background:#071b2aaf;backdrop-filter:blur(5px)}
.family-museum-head{padding:24px 30px 18px;background:linear-gradient(135deg,#18354c,#375769);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:18px}
.family-museum-head h2{font:700 clamp(24px,3vw,35px)/1.15 Georgia,serif;margin:5px 0}
.family-museum-head p{opacity:.84;max-width:630px;margin:6px 0}
.family-museum-kicker{letter-spacing:.15em;text-transform:uppercase;font-size:11px;color:#e5c785;font-weight:800}
.family-museum-head button{color:#fff;border:1px solid #ffffff78;background:#ffffff22;font-size:22px;border-radius:14px;width:42px;height:42px;cursor:pointer}
.family-museum-controls{padding:20px 30px;display:grid;grid-template-columns:1fr 1fr 180px;gap:12px;background:#f0f1ed}
.family-museum-controls label{font-size:12px;font-weight:800;display:grid;gap:6px;min-width:0;color:#2e4655}
.family-museum-controls input,.family-museum-controls select{min-width:0;width:100%;font:inherit;font-size:14px;padding:11px;border:1px solid #b7c6c5;border-radius:11px;background:#fff;color:#152e42}
.family-museum-controls .museum-verified-toggle{grid-column:1/-1;display:flex;gap:9px;align-items:center;font-weight:600;font-size:13px}
.museum-verified-toggle input{width:18px;height:18px}
.family-museum-status{padding:10px 30px;font-size:12px;color:#52717a}
.family-museum-exhibit{--museum-accent:#a6783a;background:#fcfbf5;margin:6px 30px 22px;border:1px solid #d8d1c0;box-shadow:0 10px 26px #2138471b;padding:clamp(22px,4vw,55px);font-family:Georgia,"Noto Serif",serif;color:#302d2b;position:relative}
.family-museum-exhibit[data-museum-theme="midnight"]{--museum-accent:#ead09d;background:#142c39;color:#f6eee1;border-color:#5b7582}
.family-museum-exhibit[data-museum-theme="rose"]{--museum-accent:#964e5e;background:#fff5f0;color:#46343a;border-color:#edc4c5}
.museum-masthead{text-align:center;border-bottom:double 5px var(--museum-accent);padding-bottom:20px;margin-bottom:28px}
.museum-kicker{color:var(--museum-accent);font:800 11px/1.5 Manrope,sans-serif;letter-spacing:.15em}
.museum-name{font:700 clamp(26px,4.4vw,49px)/1.15 Georgia,serif;margin:10px 0 7px;overflow-wrap:anywhere}
.museum-alternate{margin:0;opacity:.8;font-size:14px}
.museum-ornament{color:var(--museum-accent);margin-top:17px;font-size:18px;letter-spacing:.45em}
.museum-intro{display:flex;align-items:flex-start;gap:24px;margin-bottom:27px}
.museum-portrait{object-fit:cover;width:130px;height:170px;border:6px solid #fff;box-shadow:0 6px 20px #0002;flex-shrink:0}
.museum-vitals{flex:1;min-width:0}
.museum-mini-title{font:900 11px Manrope,sans-serif;letter-spacing:.14em;color:var(--museum-accent)}
.museum-vitals p{margin:8px 0}
.museum-vitals .museum-disclaimer{font:12px/1.6 Manrope,sans-serif;opacity:.75}
.museum-story,.museum-timeline,.museum-appendix{padding-top:14px;border-top:1px solid currentColor;margin-top:23px}
.family-museum-exhibit h4{font:700 24px Georgia,serif;margin:8px 0 17px}
.museum-biography{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75}
.museum-event{display:grid;grid-template-columns:78px minmax(0,1fr);gap:15px;position:relative;margin:0 0 16px}
.museum-year{font:800 21px Georgia,serif;color:var(--museum-accent);text-align:right;padding:3px 12px 0 0;border-right:3px solid var(--museum-accent)}
.museum-event-body{min-width:0;padding:2px 0 15px;border-bottom:1px solid #9994}
.museum-event-top{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.museum-event-top strong{font-size:17px;overflow-wrap:anywhere}
.museum-certainty{border:1px solid currentColor;border-radius:999px;padding:4px 8px;font:700 10px Manrope,sans-serif}
.museum-confirmed{color:#438473}.museum-possible{color:#b88937}.museum-unknown{color:#8e8194}
.museum-date,.museum-source{display:block;opacity:.7;margin-top:6px;overflow-wrap:anywhere}
.museum-event-body p{margin:6px 0;overflow-wrap:anywhere}
.museum-source-list{padding-left:20px;overflow-wrap:anywhere;line-height:1.7}
.museum-empty{opacity:.75;font-style:italic}
.museum-exhibit-footer{border-top:1px solid currentColor;opacity:.6;font:11px/1.6 Manrope,sans-serif;padding-top:16px;margin-top:26px;text-align:center}
.family-museum-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:16px 30px 22px;border-top:1px solid #dcded7}
.family-museum-foot button{padding:11px 16px;border-radius:10px;border:1px solid #acc0c3;background:#fff;color:#1c3f53;font-weight:800;cursor:pointer}
.family-museum-foot button.primary{background:#244f68;color:#fff}
.family-museum-foot button:disabled{opacity:.45;cursor:not-allowed}
@media(max-width:720px){.family-museum-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0}.family-museum-head{padding:17px}.family-museum-controls{padding:14px 17px;grid-template-columns:1fr}.family-museum-controls .museum-verified-toggle{grid-column:1}.family-museum-status{padding:9px 17px}.family-museum-exhibit{margin:5px 10px 15px;padding:18px}.museum-intro{gap:12px}.museum-portrait{width:83px;height:108px;border-width:3px}.museum-event{grid-template-columns:55px minmax(0,1fr);gap:9px}.museum-year{font-size:15px;padding-right:6px}.family-museum-foot{padding:12px 17px;justify-content:stretch}.family-museum-foot button{flex:1;min-width:120px}.family-museum-open{padding:8px 10px}}
@media(max-width:620px){.topbar .actions .family-museum-open{width:40px;min-width:40px;height:40px;padding:5px;font-size:18px;border-radius:12px}.topbar .actions .family-museum-open span{display:none}}
@media(prefers-reduced-motion:reduce){.family-museum-dialog,.family-museum-open{animation:none!important;transition:none!important}}
@media print{@page{size:A4;margin:13mm}body>*:not(#family-museum-dialog){display:none!important}.family-museum-dialog{position:static!important;display:block!important;width:100%!important;max-width:none!important;max-height:none!important;overflow:visible!important;box-shadow:none!important;border:0!important;background:white!important;color:black!important}.family-museum-dialog::backdrop{display:none}.family-museum-head,.family-museum-controls,.family-museum-status,.family-museum-foot{display:none!important}.family-museum-exhibit{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:white!important;color:#222!important}.museum-event,.museum-intro,.museum-story{break-inside:avoid}.museum-masthead{break-after:avoid}.museum-portrait{max-height:150px}.museum-event-body{border-color:#ddd!important}}
