/* Shared royal identity: tree, profiles, family links, and QR tree. */
:root{--green:#123f32;--gold:#bb9652;--paper:#f8f3e9;--line:#ba9a5f}
body{background-color:#f8f3e9;background-image:radial-gradient(ellipse at 15% 0,#ead7b940,transparent 55%);color:#183e31}
body>header{background:linear-gradient(120deg,#082d24,#174b3a);color:#fff2cd;border-bottom:1px solid #bf9a53}
body>header .brand small{color:#e0c994}body>header button{background:#ffffff0d;color:#fff2cd;border-color:#b7985b80}
.hero h1{font-family:FamilyAmiri,Georgia,serif;color:#164936}.viewport{background-color:#f6f0e3;background-image:radial-gradient(#b3975433 .8px,transparent .8px);background-size:22px 22px;border-color:#c9ae75;box-shadow:inset 0 0 35px #c5a46412}
#tree .card,.public-tree-person,#person,#editor,.member-editor{--royal-bg:#456579;--royal-ink:#fff3d4;--royal-muted:#e6d4aa;--royal-border:#caa768;--royal-soft:#ffffff10;--royal-art:url('/membership-assets/gold-linework.svg?v=soft70'),linear-gradient(135deg,#56758a,#3c5c72);color:var(--royal-ink);background:var(--royal-art);background-size:cover;background-position:center;border:1px solid var(--royal-border);box-shadow:inset 0 0 0 5px #d7b36d12,0 8px 26px #162b2520}
#tree .card.female,.public-tree-person[data-gender=f],#person[data-gender=f],#editor[data-gender=f],.member-editor[data-gender=f]{--royal-bg:#f6e0e3;--royal-ink:#65384c;--royal-muted:#784b5e;--royal-border:#c29b75;--royal-soft:#fff8f6a6;--royal-art:linear-gradient(110deg,#f8e5e6d9,#efd0d8de),url('/membership-assets/rose.png')}
#tree .card{border-radius:22px;padding-top:24px}#tree .card.root{border-top:4px solid #cfac67}#tree .card:after{content:'✧';position:absolute;left:10px;top:8px;color:var(--royal-border);font-size:19px;pointer-events:none}#tree .card h3{color:var(--royal-ink)}#tree .card .tag,#tree .card .person-status{color:var(--royal-muted)}#tree .card .avatar{background:var(--royal-soft);border:1px solid var(--royal-border);color:var(--royal-ink);box-shadow:0 0 0 4px #d4b77916}#tree .card button{background:var(--royal-soft);color:var(--royal-ink);border-color:#c9aa7170}#tree .card button:hover{background:#bd965b33}.bond:after{background:#f6f0e3}.public-tree-person.is-you{border:3px solid #cb9b41;box-shadow:0 0 0 7px #d9b96f55}.public-tree-person.is-you strong{color:var(--royal-muted)}
#person,#editor{border-radius:25px}#person .profile-heading{background:transparent;color:var(--royal-ink);border-bottom:1px solid #bd9b5c77;padding-bottom:18px}#person .profile-heading h2,#person h3,#editor h2,#person .eyebrow,#person .note,#editor .note,#person label,#editor label{color:var(--royal-ink)}#person .profile-details>*,#person .profile-section,#person .compact-profile-actions{background:var(--royal-soft);color:var(--royal-ink);border-color:#c3a47466}#person .profile-details :is(dt,dd,span,strong),#person .profile-section p{color:inherit}#person .compact-profile-tabs{background:var(--royal-bg);border-radius:12px}#person button,#editor button{background:var(--royal-soft);color:var(--royal-ink);border-color:#bc9b6466}#person button[aria-pressed=true],#person button.primary,#editor button.primary{background:linear-gradient(120deg,#e6cc91,#be9652);color:#253b30;border-color:#e1c38a}#person[data-gender=f] button.primary,#editor[data-gender=f] button.primary{background:linear-gradient(120deg,#92576c,#6a3b51);color:#fff3e5;border-color:#c9a583}#person>.actions,#editor .actions{background:var(--royal-bg);border-color:#bda16a55}#editor :is(input,select,textarea){background:#fffaf1;color:#343d32;border-color:#c9ae7e;font-size:16px}#editor[data-gender=f] :is(input,select,textarea){background:#fff9f7;color:#65384c}#person .member-portrait{border:1px solid var(--royal-border)}
.member-editor{padding:26px;border-radius:25px;position:relative}.member-editor .member-identity-header{margin:-26px -26px 18px;padding:30px 24px;display:flex;flex-direction:column;text-align:center;gap:12px;background:transparent;color:var(--royal-ink);border-bottom:1px solid #c4a16c66}.member-editor .member-identity-header:before{background-image:var(--member-art);background-position:center;opacity:.16}.member-editor[data-gender=f] .member-identity-header{background:transparent;color:var(--royal-ink)}.member-editor[data-gender=f] .member-identity-header:before{background-image:url('/membership-assets/rose.png');opacity:.35}.member-identity-badge{width:76px;height:76px;background:var(--royal-soft);border-color:var(--royal-border);box-shadow:0 0 0 5px #c9a56e18}.member-identity-header small{font-family:FamilyAmiri,serif;font-size:22px}.member-identity-header h2{font-size:29px}.member-completion{flex-direction:column;align-items:stretch;margin-bottom:10px}.member-completion span{flex:initial;color:var(--royal-muted)}.member-completion progress{width:100%;height:10px;appearance:none;border:0;border-radius:20px;overflow:hidden;background:#c0aa7d40}.member-completion progress::-webkit-progress-bar{background:#c0aa7d40;border-radius:20px}.member-completion progress::-webkit-progress-value{background:linear-gradient(90deg,#a77935,#f3d79c);border-radius:20px}.member-completion progress::-moz-progress-bar{background:#d8b16f}.member-editor[data-gender=f] progress::-webkit-progress-value{background:linear-gradient(90deg,#683c50,#ba8495)}.member-editor label,.member-editor .note{color:var(--royal-ink)}.member-editor :is(input,select,textarea){color:#263c32;background:#fff9ed;border:1px solid #c3a775;font-size:16px;min-height:48px}.member-editor[data-gender=f] :is(input,select,textarea){color:#61384b;background:#fff9f6;border-color:#cda799}.member-editor button,.member-editor .membership-open{background:var(--royal-soft);color:var(--royal-ink);border-color:var(--royal-border)}.member-editor .member-card-hint{background:var(--royal-soft);color:var(--royal-muted)}.member-editor details{border-color:#c5a56766}#familyForm #save{background:linear-gradient(120deg,#ebd298,#b88c47);color:#163b2c;border:1px solid #c39d57;box-shadow:0 5px 25px #2a302333}.family-welcome h1{color:#204a39}.family-welcome .family-motto{color:#876739}
#familyNoticeBell{position:relative;display:inline-flex;align-items:center;gap:7px;white-space:nowrap}#familyNoticeBadge{background:#b5564d;color:#fff;border-radius:20px;font:12px Tahoma;padding:3px 6px}#familyNoticeDialog{width:min(94vw,620px);max-height:85svh;overflow:auto;background:#fcf7ee;border:1px solid #ba9a5f;color:#214434}#familyNoticeDialog .notice-head{display:flex;justify-content:space-between;align-items:center;gap:10px}#familyNoticeDialog h2{margin:0;font-size:22px}.notice-item{background:#fffdf8;border:1px solid #dfd3b9;border-radius:16px;padding:16px;margin:12px 0}.notice-item.is-unread{border-inline-start:4px solid #ae8842;background:#f7efde}.notice-item p{line-height:1.8;margin:4px 0;overflow-wrap:anywhere}.notice-item time{font-size:12px;color:#706c5a}.notice-item button{font-size:13px;margin:7px 0 0 7px}.notice-subtitle{font-size:13px;line-height:1.8;color:#6f705f}#familyNoticeToast{position:fixed;bottom:20px;right:16px;left:16px;max-width:440px;margin:auto;background:#153e30;color:#fff4d7;border:1px solid #c6a469;border-radius:16px;padding:16px;box-shadow:0 8px 30px #0003;z-index:50;font-size:15px;line-height:1.7;cursor:pointer}
@media(max-width:600px){body>header{flex-wrap:wrap!important;gap:8px!important}.header-actions{gap:5px;flex-wrap:wrap}#familyNoticeBell{font-size:12px;padding:9px}.member-editor{padding:20px}.member-editor .member-identity-header{margin:-20px -20px 14px;padding:25px 18px}.member-identity-header h2{font-size:25px}.member-identity-header small{font-size:20px}.member-editor .grid{grid-template-columns:1fr}.member-editor .grid>div{min-width:0}#person .compact-profile-tabs button{white-space:normal;line-height:1.6}#familyNoticeDialog{padding:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
#person .attachment-card{background:var(--royal-soft);color:var(--royal-ink);border-color:#bd9b5c66}#person .attachment-actions a{color:#224b3a;background:#fff9ed}#person .profile-detail dt{color:var(--royal-muted)}#person .profile-detail dd{color:var(--royal-ink)}#person .profile-section{padding:16px;border-radius:14px}#person a{color:var(--royal-muted)}#editor .computed{color:#244b40}#person .compact-profile-actions summary{color:var(--royal-ink)}

/* Fine botanical gold linework echoes the membership-card corner engraving. */
body{background-image:url('/membership-assets/gold-linework.svg?v=soft70'),radial-gradient(ellipse at 15% 0,#ead7b940,transparent 55%);background-size:620px 800px,100% 100%;background-repeat:repeat, no-repeat}
.viewport{background-image:url('/membership-assets/gold-linework.svg?v=soft70');background-size:540px 700px}
#tree .card:not(.female),.public-tree-person:not([data-gender=f]),#person:not([data-gender=f]),#editor:not([data-gender=f]),.member-editor:not([data-gender=f]){background-color:#456579;--royal-ink:#f0f4fa;--royal-muted:#e2cfaa}
.member-editor:not([data-gender=f]) .member-identity-header:before{background-image:url('/membership-assets/gold-linework.svg?v=soft70');opacity:.8}

/* Clear remembrance text on the pale status pill. */
#tree .card:not(.female) .person-status{color:#456579;background:#f4f0e9;font-weight:700}
#tree .card.female .person-status{color:#65384c;background:#fff3f3;font-weight:700}
