/*
Theme Name: Our Family Archive
Description: A contemporary family history journal and connected genealogy workspace.
Version: 1.0.0
Text Domain: family-archive
*/
@font-face{font-family:Archive Serif;src:url(assets/fonts/serif.woff2) format('woff2');font-weight:200 900;font-display:swap}
@font-face{font-family:Archive Sans;src:url(assets/fonts/sans.woff2) format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:Archive Sans;src:url(assets/fonts/sans-bold.woff2) format('woff2');font-weight:600 800;font-display:swap}
:root{--paper:#f7f7f3;--white:#fff;--ink:#24343b;--muted:#59686d;--line:#dce1df;--accent:#76374a;--accent-dark:#582438;--pale:#f2e9ed;--green:#425f54;--blue:#385970;--gold:#866233;--shadow:0 18px 50px #24343b09}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font:17px/1.65 'Archive Sans',sans-serif;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,p,figure{margin:0}h1,h2,h3{font-family:'Archive Serif',Georgia,serif;font-weight:500;line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(42px,5vw,66px)}h2{font-size:clamp(28px,3.2vw,40px)}h3{font-size:25px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #af637b;outline-offset:4px}button{color:inherit}img{max-width:100%;height:auto}svg.icon{width:22px;height:22px;flex:0 0 auto;vertical-align:middle}hr{border:0;border-top:1px solid var(--line)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;top:-80px;left:20px;background:var(--ink);color:#fff;padding:15px;z-index:1000}.skip-link:focus{top:5px}.site-width{width:min(1320px,calc(100% - 96px));margin:0 auto}.site-header{background:#fffffff2;border-bottom:1px solid var(--line);position:relative;z-index:20}.header-inner{min-height:92px;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:12px;line-height:1.05;flex-shrink:0}.brand-mark{height:43px;width:43px;border:1px solid #c9d2ce;border-radius:50%;display:grid;place-items:center;color:var(--accent)}.brand-text{font:23px/1.05 'Archive Serif',Georgia,serif;letter-spacing:-.025em}.brand-text small{display:block;font:10px/1.4 'Archive Sans',sans-serif;letter-spacing:.19em;text-transform:uppercase;margin-top:5px;color:var(--muted)}.primary-nav{display:flex;gap:24px;margin-left:auto;font-size:14px;align-items:center}.primary-nav a{padding:14px 0;position:relative}.primary-nav a:hover,.primary-nav a.current{color:var(--accent)}.primary-nav a.current:after{content:'';height:2px;background:var(--accent);position:absolute;bottom:4px;left:0;right:0}.header-actions{display:flex;align-items:center;gap:12px}.button{border:1px solid transparent;background:var(--accent);color:#fff;min-height:48px;padding:11px 21px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:6px;font-size:15px;font-weight:700;line-height:1.45;transition:background .15s,transform .15s;text-align:center}.button:hover{background:var(--accent-dark);transform:translateY(-1px)}.button.secondary{border-color:#bdc9c5;color:var(--ink);background:transparent}.button.secondary:hover{background:#e8edea}.button.light{background:#fff;color:var(--ink)}.button.small{font-size:14px;min-height:42px;padding:8px 14px}.button.full{width:100%;margin-top:12px}.button.danger-button{background:#942f36}.icon-button{display:inline-grid;place-items:center;min-width:44px;min-height:44px;border:0;background:transparent;border-radius:5px}.icon-button:hover{background:#e9eeeb}.menu-toggle{display:none}.eyebrow{font:700 11px/1.5 'Archive Sans',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}.eyebrow span{color:#a5aea9;margin:0 6px}.muted{color:var(--muted)}.small{font-size:14px}.text-link{display:inline-flex;align-items:center;gap:9px;font-size:14px;font-weight:700;border:0;background:none;padding:6px 0;color:var(--accent);text-align:left;min-height:38px}.text-link:hover{text-decoration:underline;text-underline-offset:5px}.text-link .icon{width:18px;height:18px}.danger{color:#963640}.subtle-link{font-size:13px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.site-main{min-height:65vh;padding-bottom:88px}.home-hero{display:grid;grid-template-columns:1.05fr .9fr;gap:7%;align-items:center;padding:74px 0 60px}.hero-copy h1{font-size:clamp(48px,5.8vw,79px);line-height:1.03;margin:19px 0 25px;max-width:650px;letter-spacing:-.045em}.hero-copy h1 em{font-weight:400;color:var(--accent)}.hero-copy>p:not(.eyebrow){font-size:18px;max-width:490px;color:var(--muted)}.hero-copy .actions{margin-top:29px}.hero-note{margin-top:23px!important;font-size:13px!important;display:flex;gap:8px;align-items:center}.hero-note .icon{width:15px;height:15px}.hero-tree{background:#203b39;color:#fff;min-height:405px;border-radius:12px;padding:30px 32px;position:relative;box-shadow:var(--shadow)}.hero-tree .eyebrow{color:#bdd4c9}.hero-tree h2{font-size:31px;max-width:300px;margin:15px 0 13px}.hero-tree p{color:#cbdbd3;font-size:15px}.hero-tree .tree-mini{margin:29px 0;display:grid;gap:10px}.mini-person{display:flex;align-items:center;gap:13px;background:#ffffff0b;border:1px solid #ffffff24;border-radius:6px;padding:12px 15px;position:relative}.mini-person:hover{background:#ffffff14}.mini-person small{display:block;color:#c5d6cf;font-size:12px}.mini-person .initials{width:40px;height:40px;color:#e1ece6;background:#ffffff10}.mini-person>.icon:last-child{margin-left:auto;width:17px}.hero-tree .button{margin-top:5px}.hero-tree .empty-seed{border:1px dashed #90aaa1;border-radius:6px;min-height:120px;display:flex;align-items:center;gap:18px;padding:20px;margin:27px 0}.empty-seed .icon{width:43px;height:43px}.empty-seed strong{display:block;font-family:'Archive Serif',serif;font-size:21px;font-weight:400}.empty-seed span{display:block;color:#c5d6cf;font-size:14px}.section-block{padding-top:54px;margin-top:15px;border-top:1px solid var(--line)}.section-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}.section-title .eyebrow{margin-bottom:8px}.section-title h2{font-size:35px}.lineage-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.lineage-card{position:relative;border:1px solid var(--line);background:#fff;padding:25px 24px 20px;border-radius:7px;transition:transform .2s,box-shadow .2s;border-top:3px solid var(--accent)}.lineage-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.lineage-card.branch-1{border-top-color:var(--green)}.lineage-card.branch-2{border-top-color:var(--blue)}.lineage-card.branch-3{border-top-color:var(--gold)}.lineage-number{font-size:11px;letter-spacing:.12em;color:var(--muted)}.lineage-card h2{font-size:28px;margin-top:12px}.lineage-card p{font-size:14px;color:var(--muted);margin:12px 0}.lineage-card .text-link{margin-top:9px}.lineage-grid.large{grid-template-columns:repeat(2,1fr)}.large .lineage-card{padding:32px;min-height:230px}.story-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:27px}.story-card{background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.card-image{display:flex;min-height:215px;aspect-ratio:1.6;background:#dfe9e3;position:relative;align-items:center;justify-content:center;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .3s}.card-image:hover img{transform:scale(1.025)}.card-image.is-story{background:#ede7e3}.art-symbol{border:1px solid #71867a44;border-radius:50%;padding:30px;color:#496253}.art-symbol .icon{width:39px;height:39px;stroke-width:1}.art-label{position:absolute;bottom:20px;left:24px;right:24px;font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:#4c6457;text-align:center}.card-copy{padding:24px}.card-copy h3{margin:12px 0;font-size:28px}.card-copy p{font-size:15px;color:var(--muted)}.card-copy .text-link{margin-top:20px}.home-story-feature{display:grid;grid-template-columns:1.1fr 1fr;border:1px solid var(--line);background:#fff;border-radius:10px;overflow:hidden}.home-story-feature .card-image{min-height:300px}.home-story-feature .card-copy{padding:37px 40px}.home-story-feature h3{font-size:36px}.contribution-banner{margin-top:65px;background:#ede6e8;border:1px solid #e4d5db;padding:38px 43px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:25px}.contribution-banner h2{font-size:34px}.contribution-banner p{color:#66565c;margin-top:10px;max-width:600px}.site-footer{border-top:1px solid var(--line);background:#edf0eb;padding:40px 0 24px}.footer-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:25px}.footer-inner p{font-size:14px;margin-top:15px;color:var(--muted)}.footer-links{display:flex;gap:24px;font-size:14px;flex-wrap:wrap}.footer-bottom{margin-top:30px;padding-top:20px;border-top:1px solid #d4ded7;display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.page-intro{padding:53px 0 38px;display:flex;justify-content:space-between;align-items:flex-end;gap:30px}.page-intro .eyebrow{margin-bottom:12px}.page-intro p:not(.eyebrow){color:var(--muted);margin-top:18px;max-width:620px}.page-intro.compact h1{font-size:49px}.page-intro.compact{padding:39px 0 30px}.page-intro.compact p:not(.eyebrow){font-size:16px;margin-top:12px}.count{background:#e9eeea;color:#435b50;font-size:12px;border-radius:20px;padding:5px 11px;white-space:nowrap}.empty-state{text-align:center;padding:55px 25px;max-width:610px;margin:0 auto}.empty-state>.icon{width:36px;height:36px;margin-bottom:19px;color:var(--accent);stroke-width:1.3}.empty-state h3{font-size:30px;margin-bottom:13px}.empty-state p{color:var(--muted);font-size:16px;max-width:470px;margin:0 auto}.empty-state .button{margin-top:25px}.filter-bar{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin-bottom:30px;background:#fff;border:1px solid var(--line);padding:19px 23px;border-radius:7px}.filter-bar label{font-size:13px;display:grid;gap:5px;min-width:180px}.filter-bar select{margin:0}.filter-bar>.muted{margin-left:auto;font-size:14px;align-self:center}.pagination{display:flex;gap:12px;margin-top:30px}.pagination a,.pagination span{padding:8px 15px;border:1px solid var(--line);border-radius:4px}.pagination .current{background:var(--ink);color:#fff}.tree-workspace{display:grid;grid-template-columns:276px minmax(0,1fr);border:1px solid #cfd8d3;border-radius:9px;overflow:hidden;background:#fff;min-height:640px}.people-panel{border-right:1px solid var(--line);padding:22px 18px;display:flex;flex-direction:column}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.panel-head h2{font:700 16px 'Archive Sans',sans-serif;letter-spacing:-.01em}.search-field{position:relative;display:block!important}.search-field .icon{position:absolute;top:13px;left:12px;width:17px;color:var(--muted)}.search-field input{padding-left:37px!important;font-size:13px}.people-panel select{margin-top:9px;font-size:13px}.people-panel #people-directory{margin:17px -7px;max-height:470px;overflow-y:auto;min-height:100px}.directory-person{display:flex;align-items:center;gap:10px;padding:11px 9px;border-radius:5px;font-size:13px}.directory-person:hover,.directory-person.active{background:#f1e8ed}.directory-person button{border:0;background:none;text-align:left;flex:1;padding:2px 0;line-height:1.5}.directory-person a{padding:8px;min-width:35px}.directory-person a:hover{color:var(--accent)}.directory-person strong{font-size:14px}.directory-person small{display:block;font-size:11px;color:var(--muted)}.initials{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7ede8;color:#436055;font:18px 'Archive Serif',serif;flex-shrink:0;overflow:hidden}.initials img{height:100%;width:100%;object-fit:cover}.people-panel>.subtle-link{margin-top:auto;padding-top:20px}.tree-main{min-width:0;display:flex;flex-direction:column}.tree-toolbar{min-height:89px;border-bottom:1px solid var(--line);padding:19px 25px;display:flex;gap:15px;align-items:center;justify-content:space-between}.tree-toolbar strong{font-size:16px}.tree-toolbar p{font-size:12px;margin-top:3px}.view-switch{display:flex;border:1px solid var(--line);padding:3px;border-radius:5px;background:#f7f8f5}.view-switch button{font-size:13px;border:0;padding:7px 13px;background:none;border-radius:3px}.view-switch .selected{background:#fff;box-shadow:0 1px 4px #1e342323;font-weight:700}.tree-canvas{background-color:#f5f7f4;background-image:radial-gradient(#c7d5cc 1px,transparent 1px);background-size:20px 20px;flex:1;min-height:495px;overflow:auto;position:relative;max-height:850px}.tree-canvas .empty-state{padding-top:96px}.tree-drawing{position:relative;padding:35px 25px 40px;min-width:100%;width:max-content;isolation:isolate}.connection-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.connection-lines path{fill:none;stroke:#829d90;stroke-width:1.5}.connection-lines path.partner{stroke:#ab7284;stroke-dasharray:4 4}.tree-row{display:flex;justify-content:center;gap:28px;margin:0 auto 55px;min-width:240px;position:relative}.tree-row:last-child{margin-bottom:0}.person-node{width:207px;border:1px solid #c4d1c8;background:#fff;border-radius:7px;box-shadow:0 5px 18px #2646320c;overflow:hidden}.person-node.focus-node{border:2px solid var(--accent);box-shadow:0 5px 20px #76374a16}.node-body{display:flex;align-items:center;gap:12px;padding:17px 14px;min-height:89px}.node-body:hover{background:#f9f2f5}.node-name{font-family:'Archive Serif',serif;font-size:19px;line-height:1.2;display:block;overflow-wrap:anywhere}.node-dates{display:block;font-size:11px;color:var(--muted);margin-top:6px}.node-action{display:block;width:100%;border:0;border-top:1px solid #e3e8e3;background:#fafbf9;color:var(--accent);padding:8px;font-size:11px;text-align:center;min-height:35px}.node-action:hover{background:#f4e9ef}.tree-bottom{border-top:1px solid var(--line);display:flex;gap:15px;justify-content:space-between;align-items:center;padding:12px 20px;font-size:11px;color:var(--muted)}.tree-bottom .text-link{font-size:12px;white-space:nowrap}.tree-notice{padding:10px 24px;background:#fff4df;font-size:13px;color:#705629}.tree-list{padding:25px;display:grid;gap:11px}.tree-list .relative-row{background:#fff;padding:15px;border:1px solid var(--line);border-radius:6px}.tree-list .relative-row a{display:flex;justify-content:space-between;align-items:center;gap:20px}.back-link{display:inline-block;margin:35px 0 24px;font-size:14px;color:var(--accent)}.profile-heading{display:flex;gap:30px;align-items:center;border-bottom:1px solid var(--line);padding:0 0 40px}.profile-heading>div:nth-child(2){flex:1}.profile-heading h1{margin:9px 0 12px;overflow-wrap:anywhere}.portrait{width:150px;height:175px;border-radius:7px;overflow:hidden;background:#e8eee8;display:grid;place-items:center;flex-shrink:0;border:1px solid var(--line)}.portrait img{width:100%;height:100%;object-fit:cover}.portrait .icon{height:58px;width:58px;color:#849e8c;stroke-width:1}.lifespan{color:var(--muted);font-size:18px}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.chip{display:inline-block;border:1px solid #d6ded6;background:#fff;padding:4px 12px;border-radius:20px;font-size:12px}.chip:hover{border-color:var(--accent);color:var(--accent)}.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 305px;gap:65px;align-items:start;margin-top:45px}.profile-section{margin-bottom:38px;padding-bottom:35px;border-bottom:1px solid var(--line)}.profile-section h2{font-size:31px;margin-bottom:15px}.profile-section .section-title h2{margin:0}.profile-section .section-title{margin-bottom:20px;flex-wrap:wrap}.prose{font-size:18px;line-height:1.8;overflow-wrap:anywhere}.prose p{margin:0 0 1.25em}.prose h2,.prose h3{margin:1.5em 0 .6em}.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:4px}.prose ul,.prose ol{padding-left:25px}.prose blockquote{font:26px/1.5 'Archive Serif',serif;border-left:3px solid var(--accent);margin:28px 0;padding-left:25px}.prose img{border-radius:6px}.facts-panel{border:1px solid var(--line);background:#fff;border-radius:8px;padding:27px}.facts-panel dl{margin:23px 0}.facts-panel dl>div{margin-bottom:20px}.facts-panel dt,.memory-details dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.facts-panel dd,.memory-details dd{margin:4px 0 0;font-size:15px}.facts-panel .danger{font-size:12px;margin-top:15px}.relative-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.relative-row{border-bottom:1px solid var(--line);display:flex;gap:10px;align-items:center;justify-content:space-between;padding:11px 0}.relative-row a{flex:1}.relative-row strong{display:block;font-family:'Archive Serif',serif;font-size:23px;font-weight:500}.relative-row a:hover strong{color:var(--accent)}.relative-row .icon{width:15px;height:15px}.memory-media{margin:25px 0}.memory-media img{max-height:800px;width:auto;border-radius:7px;display:block;margin:auto}.memory-media video{width:100%;max-height:700px;background:#14231f;border-radius:8px}.memory-media figcaption{font-size:13px;color:var(--muted);margin-top:10px;text-align:center}.memory-details{display:flex;flex-wrap:wrap;gap:25px 45px;margin:25px 0}.memory-details div{min-width:140px}.article-header{max-width:830px;margin:50px auto 35px;text-align:center}.article-header h1{margin:17px 0 20px}.article-header .chips{justify-content:center}.article-meta{font-size:13px;color:var(--muted);margin-top:20px}.reading-width{max-width:790px;margin:0 auto}.article-feature{margin:30px auto 45px;max-width:950px}.article-feature img{width:100%;max-height:650px;object-fit:contain;border-radius:9px}.contribute-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:75px;align-items:start}.paper-form{padding:35px 40px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:var(--shadow)}label{display:block;font-size:14px;font-weight:700;margin-bottom:19px}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;padding:11px 13px;border:1px solid #bfcac5;border-radius:5px;background:#fff;color:var(--ink);min-height:46px;margin-top:7px;font-size:16px;font-weight:400;line-height:1.4}textarea{resize:vertical;min-height:90px}input::placeholder,textarea::placeholder{color:#859089}select{min-width:0}input[type=file]{font-size:13px!important;padding:12px!important}fieldset{margin:0 0 22px;border:1px solid var(--line);padding:19px;border-radius:5px}legend{font-size:12px;font-weight:700;letter-spacing:.07em;padding:0 7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid label{min-width:0}.form-heading{display:flex;align-items:center;gap:12px;margin:0 0 25px}.form-heading h2{font-size:27px}.form-heading:not(:first-child){border-top:1px solid var(--line);padding-top:30px;margin-top:28px}.step-label{font:12px 'Archive Sans',sans-serif;border:1px solid #d1dcd4;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;color:var(--muted)}.type-choices{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px;border:0;padding:0;margin-bottom:28px}.type-choices label{padding:14px 9px;border:1px solid var(--line);border-radius:5px;display:flex;gap:6px;align-items:center;justify-content:center;font-size:12px;cursor:pointer;margin:0;position:relative}.type-choices label:has(:checked){border-color:var(--accent);color:var(--accent);background:#f7eff2}.type-choices input{width:13px;height:13px;accent-color:var(--accent)}.type-choices .icon{width:18px;height:18px}.file-drop{border:1px dashed #b9cbbf;background:#f7faf7;text-align:center;border-radius:6px;padding:23px;margin-bottom:28px}.file-drop>.icon{display:block;margin:0 auto 10px;width:30px;height:30px;color:var(--green)}.file-drop strong{display:block;font-size:15px}.file-drop>span{font-size:12px;font-weight:400;display:block;margin:6px 0 17px;color:var(--muted)}.file-drop input{max-width:100%;background:#fff}.checkbox{display:flex;align-items:flex-start;gap:10px;font-size:13px;font-weight:400;line-height:1.5}.checkbox input{margin-top:4px;width:17px;height:17px;accent-color:var(--accent);flex-shrink:0}.form-message:not(:empty){background:#fff0ee;color:#8b343a;padding:13px;border-radius:5px;margin:15px 0;font-size:14px}.form-message.success{background:#edf5ed;color:#2e6644}.paper-form>.small{margin-top:14px}.contribution-aside{padding-top:10px}.contribution-aside h2{font-size:35px;margin:15px 0 20px}.contribution-aside p{font-size:15px;color:var(--muted)}.aside-note{padding-top:25px;margin-top:25px;border-top:1px solid var(--line)}.aside-note h3{font-family:'Archive Sans',sans-serif;font-size:15px;letter-spacing:0;margin-bottom:8px;font-weight:700}.person-results{background:#fff;border:1px solid var(--line);border-radius:5px;max-height:210px;overflow:auto}.person-results:empty{display:none}.person-results button{display:block;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid var(--line);padding:10px 14px;font-size:14px;min-height:44px}.person-results button:hover{background:var(--pale)}.person-picker .chosen-person{font-size:13px;margin:-5px 0 15px}.review-card{padding:28px;border:1px solid var(--line);background:#fff;border-radius:6px;margin-bottom:20px}.review-card h3{margin:10px 0 20px}.review-card .actions{border-top:1px solid var(--line);padding-top:20px}.review-card .memory-media{max-width:500px}progress{width:100%;height:12px;margin:12px 0 20px;accent-color:var(--accent)}dialog{border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);padding:0;max-width:660px;width:calc(100% - 30px);max-height:90vh;box-shadow:0 25px 100px #152b3133}dialog::backdrop{background:#15272bd0;backdrop-filter:blur(3px)}.dialog-heading{padding:24px 30px 20px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.dialog-heading h2{font-size:30px}.dialog-heading .eyebrow{margin-bottom:7px}.dialog-body{padding:24px 30px;max-height:calc(90vh - 195px);overflow-y:auto}.dialog-footer{padding:18px 30px;display:flex;justify-content:flex-end;gap:12px;border-top:1px solid var(--line);background:#fafbf9}.dialog-footer .button{font-size:14px}.lineage-checkboxes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lineage-checkboxes label{margin:0}#relative-fields{background:#f5f0f2;padding:16px;margin-bottom:22px;border-radius:5px}#fa-toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:200;background:#203d33;color:white;box-shadow:0 5px 30px #0002;max-width:min(650px,calc(100% - 30px));border-radius:7px;font-size:14px}#fa-toast:not(:empty){padding:16px 25px}#fa-toast button{background:#fff;border:0;border-radius:3px;margin-left:15px;padding:5px 12px;color:#244235}.success-panel{padding:30px;border:1px solid #bdd1c1;background:#f3f8f2;border-radius:8px}.success-panel h2{margin-bottom:17px}.wp-block-image figcaption{font-size:13px;color:var(--muted)}.wp-block-video video{max-width:100%}.editor-note{padding:17px 22px;border:1px solid #d0dcd4;border-radius:6px;background:#edf3ec;display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 30px;font-size:14px}.wp-admin-bar-site-name{display:block}.taxonomy-hero{max-width:850px}.member-note{font-size:13px;color:var(--muted)}
@media(min-width:1500px){.site-width{width:min(1400px,calc(100% - 130px))}.tree-workspace{grid-template-columns:300px 1fr}}
@media(max-width:1100px){.site-width{width:calc(100% - 56px)}.header-inner{gap:20px}.primary-nav{gap:16px}.header-actions .button{padding:10px 13px;font-size:12px}.brand-text{font-size:20px}.brand-mark{width:35px;height:35px}.home-hero{gap:5%;padding-top:55px}.hero-tree{padding:26px}.lineage-grid{gap:12px}.lineage-card{padding:20px 17px}.lineage-card h2{font-size:23px}.tree-workspace{grid-template-columns:240px 1fr}.profile-layout{gap:35px;grid-template-columns:1fr 270px}.contribute-layout{gap:35px;grid-template-columns:1fr 250px}.paper-form{padding:28px}.story-grid{gap:18px}.card-copy{padding:20px}.card-copy h3{font-size:25px}.profile-heading{gap:22px}.profile-heading h1{font-size:45px}.profile-heading>.button{align-self:flex-end}}
@media(max-width:800px){.site-width{width:calc(100% - 36px)}.header-inner{min-height:78px;flex-wrap:wrap;gap:10px}.brand-text{font-size:21px}.header-actions{margin-left:auto}.header-actions>.button{display:none}.menu-toggle{display:inline-grid}.primary-nav{display:none;order:4;margin:0;width:100%;flex-direction:column;align-items:stretch;padding:8px 0 20px;gap:0}.primary-nav.open{display:flex}.primary-nav a{padding:10px;font-size:16px}.primary-nav a.current:after{display:none}.home-hero{grid-template-columns:1fr;gap:30px;padding:43px 0}.hero-copy h1{font-size:clamp(45px,8vw,65px);max-width:600px}.hero-copy>p:not(.eyebrow){max-width:600px}.hero-tree{min-height:0}.hero-tree .tree-mini{grid-template-columns:1fr 1fr}.hero-tree h2{max-width:100%}.lineage-grid{grid-template-columns:repeat(2,1fr);gap:14px}.section-block{padding-top:35px}.section-title{align-items:flex-start}.section-title h2{font-size:29px}.story-grid{grid-template-columns:repeat(2,1fr)}.home-story-feature{grid-template-columns:1fr 1fr}.home-story-feature .card-copy{padding:25px}.home-story-feature h3{font-size:29px}.contribution-banner{padding:30px;flex-direction:column;align-items:flex-start}.footer-inner{flex-direction:column;gap:25px}.page-intro{padding:35px 0 30px;flex-wrap:wrap;gap:20px}.page-intro.compact h1{font-size:41px}.tree-workspace{grid-template-columns:1fr}.people-panel{border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:9px 15px;padding:20px}.panel-head{grid-column:1 / -1;margin-bottom:0}.people-panel .search-field{margin:0}.people-panel select{margin:7px 0 0;height:46px}.people-panel #people-directory{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;max-height:220px;margin:0}.people-panel .subtle-link{margin:0;padding:0;grid-column:1/-1;font-size:12px}.directory-person{padding:8px}.tree-canvas{min-height:400px}.tree-toolbar{padding:16px}.tree-bottom{font-size:11px;line-height:1.5}.profile-heading{flex-wrap:wrap;gap:20px}.portrait{width:100px;height:125px}.profile-heading h1{font-size:37px}.profile-heading>.button{margin-left:120px}.profile-layout{grid-template-columns:1fr;gap:0}.facts-panel{order:-1;display:block;margin-bottom:32px}.facts-panel dl{display:grid;grid-template-columns:1fr 1fr}.facts-panel .button.full{display:inline-flex;width:auto;margin-right:10px}.facts-panel .danger{display:block}.contribute-layout{grid-template-columns:1fr}.contribution-aside{max-width:650px}.contribution-aside .aside-note{margin-top:20px}.filter-bar{gap:12px;padding:16px}.filter-bar label{flex:1;min-width:140px}.filter-bar>.muted{font-size:12px}.relative-list{gap:20px}.dialog-heading,.dialog-body{padding:20px}.dialog-footer{padding:16px 20px}}
@media(max-width:500px){body{font-size:16px}.hero-copy h1{font-size:49px}.hero-copy .actions{align-items:stretch;flex-direction:column}.hero-note{font-size:12px!important}.hero-tree .tree-mini{grid-template-columns:1fr}.hero-tree{padding:25px}.hero-tree h2{font-size:30px}.lineage-card{padding:19px 17px}.lineage-card h2{font-size:25px}.lineage-card p{font-size:13px}.lineage-card .text-link{font-size:12px}.lineage-grid.large{grid-template-columns:1fr}.large .lineage-card{padding:25px;min-height:0}.story-grid,.home-story-feature{grid-template-columns:1fr}.card-image{min-height:210px}.home-story-feature .card-image{min-height:220px}.home-story-feature .card-copy{padding:26px}.section-title{flex-wrap:wrap;gap:6px}.section-title .text-link{font-size:13px}.section-block{margin-top:0}.contribution-banner{padding:27px;margin-top:40px}.contribution-banner h2{font-size:32px}.footer-links{gap:17px}.footer-bottom{flex-direction:column;gap:10px}.page-intro h1{font-size:42px}.page-intro.compact h1{font-size:40px}.page-intro .actions{width:100%}.page-intro .actions .button{flex:1;font-size:13px;padding:11px 13px}.people-panel{grid-template-columns:1fr}.people-panel .panel-head{grid-column:auto}.people-panel #people-directory{grid-template-columns:1fr;max-height:180px}.people-panel select{font-size:14px}.directory-person .initials{width:32px;height:32px;font-size:16px}.directory-person button{font-size:13px}.tree-toolbar{align-items:flex-start}.tree-toolbar p{max-width:190px}.tree-bottom{display:block}.tree-bottom .text-link{margin-top:3px}.tree-list{padding:16px}.tree-list .relative-row a{display:block}.tree-list .relative-row strong{font-size:22px}.profile-heading h1{font-size:34px}.portrait{width:74px;height:95px}.portrait .icon{height:35px;width:35px}.profile-heading{gap:15px}.profile-heading>div:nth-child(2){min-width:190px}.profile-heading>.button{margin:0}.profile-heading .lifespan{font-size:14px}.profile-heading .eyebrow{font-size:10px}.profile-layout{margin-top:27px}.profile-section .section-title{gap:10px}.profile-section h2{font-size:28px}.prose{font-size:17px;line-height:1.8}.relative-list{grid-template-columns:1fr}.paper-form{padding:24px 19px}.form-grid{grid-template-columns:1fr;gap:0}.type-choices{gap:6px}.type-choices label{font-size:11px;flex-direction:column;padding:12px 3px;gap:5px}.type-choices input{position:absolute;top:5px;right:5px;width:10px;height:10px}.dialog-heading h2{font-size:27px}.dialog-body{max-height:calc(90vh - 190px)}.lineage-checkboxes{grid-template-columns:1fr}.article-header h1{font-size:40px}.article-header{text-align:left;margin-top:35px}.article-header .chips{justify-content:flex-start}.review-card{padding:20px}.editor-note{flex-wrap:wrap}.reading-width{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

input[type="hidden"]{display:none!important}

.primary-nav .mobile-contribute{display:none}@media(max-width:800px){.primary-nav .mobile-contribute{display:block;color:var(--accent);font-weight:700}}

/* Mouse dragging moves the diagram without relying on scroll bounds. */
.tree-canvas.can-pan{cursor:grab;user-select:none;-webkit-user-select:none}
.tree-canvas.can-pan{overflow:hidden}
.tree-canvas.can-pan .node-body{cursor:grab}
.tree-canvas.can-pan img,.tree-canvas.can-pan a{-webkit-user-drag:none}
.tree-canvas.is-panning,.tree-canvas.is-panning *{cursor:grabbing!important}

/* Pan outside the zoomed layout so text is painted at its native display size. */
.tree-stage{position:relative;overflow:hidden}
.tree-camera{position:absolute;left:0;top:0}
.tree-view-controls,.tree-zoom-controls{display:flex;align-items:center;gap:12px}
.tree-zoom-controls[hidden]{display:none}
.tree-zoom-controls{gap:4px}
.tree-zoom-controls button{width:32px;height:32px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--accent);font-size:20px;line-height:1;cursor:pointer}
.tree-zoom-controls button:hover:not(:disabled){background:#f4e9ef}
.tree-zoom-controls button:disabled{opacity:.4;cursor:default}
#tree-zoom{min-width:42px;text-align:center;font-variant-numeric:tabular-nums}
.tree-bottom{flex-wrap:wrap}

/* Keep the selected ancestry centered, with lateral relatives beside it. */
.tree-row{display:grid;grid-template-columns:var(--branch-side-width,max-content) var(--branch-line-width,max-content) var(--branch-side-width,max-content);column-gap:28px;row-gap:12px;width:max-content;align-items:stretch;margin-bottom:70px}
.tree-row-side,.tree-row-line{display:flex;gap:28px;align-items:stretch;width:max-content}
.tree-row-line{gap:48px}.tree-family-group{display:flex;align-items:stretch;gap:28px}
.tree-row-left{justify-self:end}.tree-row-line{justify-self:center}.tree-row-right{justify-self:start}
.tree-row.tree-branch-row{display:block;position:relative;min-width:0;margin-bottom:90px}
.tree-branch-group{position:absolute;display:flex;gap:28px;align-items:center;width:max-content;top:0;left:0}
.tree-branch-group>.tree-row-side:empty{display:none}
.tree-branch-group .tree-family-group{align-items:center}
.tree-row .person-node{flex:0 0 207px;display:flex;flex-direction:column}
.person-node .node-action{margin-top:auto}
.node-role{display:block;font:600 10px/1.5 'Archive Sans',sans-serif;letter-spacing:.04em;text-transform:uppercase;padding:7px 14px 0;color:var(--muted)}
.person-node.lineage-node{border:2px solid var(--accent);background:#fff7fa;box-shadow:0 3px 16px #76374a18}
.lineage-node .node-role{color:var(--accent)}
.person-node.focus-node{box-shadow:0 0 0 3px #76374a25,0 4px 18px #76374a22}
.focus-node .node-role{background:var(--accent);color:#fff;padding:6px 14px}
.connection-lines path.context-connection{stroke:#9eafa5;stroke-width:1.2}
.connection-lines path.partner{stroke:#a68d97}
.connection-lines path.lineage-connection{stroke:var(--accent);stroke-width:3.5;stroke-linejoin:round}
.connection-lines path.partner{stroke:var(--partner-line,#14747c);stroke-width:2;stroke-dasharray:6 4}
.connection-lines path.partner.lineage-connection{stroke:var(--partner-line,#14747c);stroke-width:3.5}
.tree-legend{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:9px 24px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.tree-legend span{display:inline-flex;align-items:center;gap:8px}
.legend-line,.legend-context{display:inline-block;width:25px;height:0;border-top:3px solid var(--accent)}
.legend-context{border-top:1px solid #9eafa5}
.legend-partner{display:inline-block;width:25px;height:0;border-top:3px dashed var(--partner-line,#14747c)}
.tree-toolbar-actions{display:flex;align-items:center;gap:15px;flex-shrink:0}
.tree-toolbar-actions>.text-link{white-space:nowrap;font-size:12px}
.search-field input{padding-right:35px}
#clear-people-search{position:absolute;right:5px;top:5px;width:32px;height:32px;padding:0;border:0;border-radius:4px;background:transparent;color:var(--accent);font-size:24px}
.search-status{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 0;grid-column:1/-1}
.tree-list-generation{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0 24px}
.tree-list-generation .person-node{flex:1 1 207px;max-width:280px;display:flex;flex-direction:column}
.tree-list h3{font-size:22px}
/* Collateral relatives stay readable while the selected line takes priority. */
.node-fact{display:block;margin-top:4px;line-height:1.45;overflow-wrap:anywhere}
.node-fact-label{font-weight:600}
.tree-row .person-node:not(.lineage-node),.tree-list-generation .person-node:not(.lineage-node){width:166px;flex:0 0 166px;max-width:166px;align-self:center}
.person-node:not(.lineage-node) .node-body{gap:8px;padding:11px 10px;min-height:64px}
.person-node:not(.lineage-node) .node-name{font-size:16px;line-height:1.25}
.person-node:not(.lineage-node) .node-dates{font-size:10.5px;margin-top:4px}
.person-node:not(.lineage-node) .initials{width:29px;height:29px;min-width:29px;flex:0 0 29px;font-size:15px}
.person-node:not(.lineage-node) .node-role{font-size:9px;padding:6px 10px 0}
.person-node:not(.lineage-node) .node-action{font-size:10px;padding:8px 6px}
.person-node:not(.lineage-node) .birth-country{font-size:10px;gap:5px;margin-top:5px}
@media(max-width:600px){.tree-toolbar{flex-wrap:wrap}.tree-toolbar-actions{width:100%;justify-content:space-between}.tree-legend{padding:9px 16px}.tree-list-generation .person-node{max-width:none}}

/* Ancestry controls, saved people, and profile preview. */
.person-node .node-branch-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;line-height:1.4}
.node-branch-action>.icon{width:21px;height:21px;flex:none}
.node-branch-action strong{font-size:12px;font-weight:600;display:block}
.node-branch-action small{display:block;font-size:10px;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.person-node .node-add-relative{margin-top:0;min-height:32px}
.node-branch-action:focus-visible,.branch-shortcut:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}
.tree-branch-connections{padding:12px 24px;border-bottom:1px solid var(--line);background:var(--paper)}
.branch-context{display:flex;gap:6px 16px;align-items:baseline;flex-wrap:wrap;font-size:12px;margin-bottom:8px}
.branch-context>span{font-size:11px;color:var(--muted)}
.branch-shortcuts{display:flex;gap:8px;flex-wrap:wrap}
.branch-shortcut{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:5px;background:var(--white);color:var(--ink);padding:7px 11px;text-align:left;min-height:44px;max-width:100%;line-height:1.4}
.branch-shortcut:hover{border-color:var(--accent);background:var(--pale)}
.branch-shortcut>.icon{width:20px;height:20px;flex:none;color:var(--accent)}
.branch-shortcut>span{min-width:0}.branch-shortcut strong{display:block;font-size:12px;overflow-wrap:anywhere}.branch-shortcut small{display:block;font-size:10px;color:var(--muted)}
@media(max-width:600px){.tree-branch-connections{padding:12px 16px}.branch-shortcut{flex:1 1 180px}}
.explorer-controls{padding:12px 24px;border-bottom:1px solid var(--line);background:#fff}
.explorer-history{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.explorer-history .text-link{font-size:12px}.explorer-history button:disabled{cursor:default;opacity:.35}
.ancestry-controls{display:flex;gap:18px;align-items:end;flex-wrap:wrap}
.ancestry-controls label{font-size:11px;margin:0;flex:1;min-width:150px}
.ancestry-controls select{font-size:12px;margin-top:4px;min-height:38px;padding:8px}
.ancestry-controls .checkbox{min-width:180px;align-self:center;align-items:center;gap:8px}
.ancestry-controls .checkbox input{margin:0}
.saved-people{font-size:12px;margin:12px 0 0;grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:10px}
.saved-people summary{cursor:pointer;font-weight:700}.saved-people summary span{color:var(--muted);margin-left:8px}
.saved-person{display:block;border:0;border-radius:4px;width:100%;text-align:left;padding:9px;background:transparent}
.saved-person:hover{background:#f5edf1}.saved-person small{display:block;font-size:11px;color:var(--muted)}
.tree-view-layout{display:flex;flex:1;min-width:0;position:relative}.tree-view-layout>.tree-canvas{min-width:0;width:100%;height:750px;max-height:80vh}
.tree-profile-panel{flex:0 0 370px;width:370px;background:white;border-left:1px solid var(--line);height:750px;max-height:80vh;overflow:auto;padding:20px;position:relative;z-index:3;box-shadow:-5px 0 15px #273a2910}
.tree-profile-panel > header{display:flex;justify-content:space-between;gap:8px}.tree-profile-panel > header h2{font-size:27px;margin:8px 0 10px}.tree-profile-panel > header .icon-button{font-size:26px;align-self:flex-start;flex-shrink:0}
#panel-person-heading{flex:1;min-width:0}
.panel-person-summary{display:flex;align-items:center;gap:12px}
.panel-person-summary .eyebrow{min-width:0;margin:0;overflow-wrap:break-word}
.panel-portrait{width:60px;height:65px;object-fit:cover;flex:0 0 60px;margin:0;border-radius:5px}
#panel-person-actions{display:flex;flex-wrap:wrap;gap:14px;clear:both}#panel-person-actions .text-link{font-size:11px}
.profile-tabs{display:flex;gap:2px;border-bottom:1px solid var(--line);margin:12px 0 20px;overflow-x:auto}
.profile-tabs button{background:none;border:0;border-bottom:3px solid transparent;min-height:42px;padding:7px 9px;font-size:12px;white-space:nowrap}
.profile-tabs button[aria-selected=true]{border-bottom-color:var(--accent);color:var(--accent);font-weight:700}
#panel-person-content{font-size:14px;overflow-wrap:anywhere}.tree-profile-panel .prose{font-size:15px;line-height:1.75}.tree-profile-panel .prose h2,.tree-profile-panel h3{font-size:21px}.tree-profile-panel .prose h3{font-size:18px}
.panel-facts{margin:0 0 20px}.panel-facts>div{margin-bottom:12px}.panel-facts dt{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.panel-facts dd{margin:2px 0 0;font-size:14px}
.source-page-link{border:0;background:none;color:var(--accent);font-size:11px;text-decoration:underline;text-underline-offset:3px;padding:3px 0;display:inline-block}
.panel-relative{border-bottom:1px solid var(--line);padding:12px 0}.panel-relative>button{border:0;background:none;text-align:left;padding:0;display:block;width:100%}.panel-relative small,.panel-relative strong,.panel-relative span{display:block}.panel-relative small,.panel-relative span{font-size:11px;color:var(--muted)}
.panel-memory{display:block;padding-bottom:15px;margin-bottom:15px;border-bottom:1px solid var(--line)}.panel-memory img{display:block;max-height:220px;object-fit:contain;margin-bottom:10px}
.evidence-card{border:1px solid var(--line);border-radius:5px;padding:12px;margin:10px 0}.evidence-card p{font-size:12px}.evidence-card .text-link{font-size:12px}
.preserve-lines{white-space:pre-line;font-size:13px;color:var(--muted)}
.source-evidence{margin-bottom:25px}.source-evidence h3{font-size:22px;margin:8px 0 15px}.source-evidence blockquote{border-left:3px solid var(--accent);padding:10px 17px;background:#faf5f7;margin:0 0 15px;font-size:15px;white-space:pre-line}.source-evidence .button{margin-top:15px}.source-evidence p{font-size:14px}
.life-timeline{list-style:none;padding:0 0 0 18px;margin:18px 0;border-left:2px solid #d8b7c3}.life-timeline li{position:relative;margin:0 0 23px}.life-timeline li:before{content:'';position:absolute;width:8px;height:8px;background:var(--accent);border-radius:50%;left:-23px;top:6px}.life-timeline strong,.life-timeline span{display:block}.life-timeline .event-date{color:var(--accent);font-size:12px;font-weight:700;margin-bottom:3px}.life-timeline p,.life-timeline li>span:not(.event-date){font-size:13px;color:var(--muted)}
.profile-source-list{font-size:13px;max-height:300px;overflow:auto;padding-left:20px}.profile-source-list li{margin-bottom:10px}.profile-source-list a{color:var(--accent);text-decoration:underline}.profile-source-list p{font-size:12px;color:var(--muted)}
@media(max-width:1200px){.tree-profile-panel{position:fixed;right:0;top:46px;bottom:0;width:min(420px,92vw);height:calc(100vh - 46px);max-height:none;z-index:90;box-shadow:-10px 0 50px #18291b35}}
@media(max-width:600px){.explorer-controls{padding:12px 16px}.ancestry-controls{gap:10px}.ancestry-controls label{min-width:130px}.ancestry-controls .checkbox{flex-basis:100%}.explorer-history{gap:14px}.tree-view-layout>.tree-canvas{height:600px;max-height:75vh}}

/* Account identity and personal relationship labels. */
.identity-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--line);border-radius:7px;padding:12px 15px;margin:0 0 14px;background:var(--pale)}
.identity-caption{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);font-weight:700}
#identity-name{font-size:14px}#identity-status{font-size:11px;margin-top:2px;line-height:1.5}
.identity-actions{display:flex;gap:16px;flex-shrink:0}.identity-actions .text-link{font-size:12px}
.identity-intro{font-size:15px;margin-bottom:22px}.node-selected-label{display:block;font-size:9px;letter-spacing:.1em;margin-top:2px}
@media(max-width:600px){.identity-controls{align-items:flex-start;flex-direction:column;gap:4px}.identity-actions{flex-wrap:wrap}.identity-actions .text-link{min-height:34px}#identity-form .dialog-footer{flex-wrap:wrap}}

/* Use the available browser width; retain readable minimums within the workspace. */
.site-width{--page-gutter:clamp(16px,2vw,48px);width:calc(100% - 2 * var(--page-gutter));max-width:none}
.tree-workspace{--tree-height:clamp(500px,75vh,1000px);grid-template-columns:clamp(240px,16vw,380px) minmax(0,1fr)}
.tree-view-layout{flex:0 0 auto;overflow-x:auto;overflow-y:hidden;align-items:stretch}
.tree-view-layout>.tree-canvas{flex:1 0 480px;width:auto;min-width:480px;height:var(--tree-height);max-height:none}
.tree-profile-panel{position:relative;inset:auto;flex:0 0 clamp(320px,24vw,560px);width:clamp(320px,24vw,560px);min-width:320px;height:var(--tree-height);max-height:none;z-index:3;padding:clamp(20px,1.5vw,28px)}
.tree-profile-panel > header{position:sticky;top:0;background:var(--surface,#fff);z-index:1;padding-bottom:8px}
.tree-profile-panel > header h2{overflow-wrap:break-word;word-break:normal;text-wrap:pretty}
@media(min-width:801px){.people-panel #people-directory{flex:1;height:var(--tree-height);max-height:var(--tree-height);min-height:240px}}
@media(max-width:800px){.tree-workspace{grid-template-columns:minmax(0,1fr)}.tree-view-layout>.tree-canvas{flex-basis:360px;min-width:360px}}

/* Person removal stays separate from save and remains readable on small screens. */
#edit-delete-person{margin-right:auto;min-height:44px}
#confirm-title{overflow-wrap:anywhere}
#panel-person-actions .danger{min-height:36px}

/* Compact account identity with one optional family-context control. */
.identity-controls{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:4px 12px;margin:0;min-height:44px}
.identity-summary{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;flex:0 1 auto;min-width:0}
.identity-summary .identity-caption{display:inline-block}
.identity-summary #identity-name{font-size:13px;overflow-wrap:anywhere}
.identity-controls .identity-actions{align-items:center;gap:14px;flex-wrap:wrap;min-width:0}
.identity-controls .identity-actions .text-link{min-height:36px}
@media(max-width:580px){.identity-controls{padding:6px 10px;gap:0 12px}.identity-summary{flex-basis:100%}.identity-controls .identity-actions .text-link{min-height:40px}}

.tree-person-controls{display:flex;align-items:center;flex-wrap:wrap;gap:6px 18px}
.tree-person-controls .identity-controls{display:inline-flex;flex:0 1 auto;width:fit-content;max-width:100%;justify-content:flex-start}
.tree-person-controls .tree-siblings-toggle{display:inline-flex;align-items:center;gap:8px;margin:0;min-height:44px;font-size:12px;font-weight:400;cursor:pointer}
.tree-siblings-toggle input{margin:0}

/* Relationship entry points stay with the family list in the person popout. */
.panel-family-tools{padding:16px;margin:0 0 8px;border:1px solid var(--line);border-radius:7px;background:var(--surface,#fff)}
.panel-family-tools h3{margin:0 0 7px}.panel-family-tools p{font-size:12px;margin:0 0 13px;line-height:1.5}
.panel-family-tools>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.panel-family-tools .button{font-size:12px;padding:9px 12px;min-height:40px}.panel-family-tools .text-link{font-size:12px;min-height:36px;text-align:left}
.connection-context{font-weight:700;overflow-wrap:anywhere;margin:0 0 20px}.connection-preview{padding:14px;border:1px solid var(--line);border-radius:5px;overflow-wrap:anywhere;font-size:14px;line-height:1.6}

/* The identity and navigation stay above an independently scrolling biography. */
.tree-profile-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0}
.tree-profile-panel[hidden]{display:none}
.tree-profile-panel>header{position:relative;top:auto;flex:none;background:var(--surface,#fff);z-index:2}
.tree-profile-panel>#panel-person-actions,.tree-profile-panel>.profile-tabs{flex:none}
#panel-person-content{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:8px;padding-bottom:20px}

/* Shared footer: one compact row, with natural wrapping on narrow screens. */
.site-footer-compact{padding:10px 0}
.site-footer-compact .footer-inner{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 24px;padding-block:0}
.site-footer-compact .footer-brand{display:flex;align-items:center;flex-wrap:wrap;gap:4px 18px}
.site-footer-compact .brand-text{font-size:18px}
.site-footer-compact .footer-private{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}
.site-footer-compact .footer-private .icon{width:14px;height:14px}
.site-footer-compact .footer-links{gap:4px 20px;font-size:13px}
.site-footer-compact .footer-links a{display:inline-flex;align-items:center;min-height:32px}
@media(max-width:600px){
 .site-footer-compact .footer-inner{gap:4px}
 .site-footer-compact .footer-brand{width:100%;justify-content:space-between;gap:4px 12px}
 .site-footer-compact .footer-links{gap:0 16px}
 .site-footer-compact .footer-links a{min-height:44px}
}

/* Keep the expanded archive navigation readable as full labels. */
@media(min-width:801px){.primary-nav{flex-wrap:wrap;column-gap:16px;row-gap:0;justify-content:flex-end}.primary-nav a{white-space:nowrap}}
