.brand-logo{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 6px 10px rgba(53,16,27,.18))}
.hero-family-layout{display:grid;grid-template-columns:minmax(0,.82fr) minmax(500px,1.18fr);gap:clamp(34px,4.5vw,72px);align-items:center;background:linear-gradient(135deg,#fffaf0 0%,#f8ead9 100%);overflow:hidden}
.hero-family-layout .hero-copy{position:relative;z-index:2;min-width:0}\n.hero-family-layout h1{max-width:100%;font-size:clamp(3.4rem,4.8vw,5.5rem);line-height:.9}
.hero-family-photo{position:relative;margin:0 -46px 0 0;padding:12px;border-radius:30px;background:rgba(255,255,255,.8);box-shadow:0 28px 70px rgba(53,16,27,.2);transform:none}
.hero-family-photo img{display:block;width:100%;aspect-ratio:4/3;max-height:560px;object-fit:cover;object-position:center 46%;border-radius:22px}
.hero-family-photo figcaption{position:absolute;right:28px;bottom:28px;padding:9px 15px;border-radius:999px;background:rgba(53,16,27,.86);color:#fff7e8;font-weight:800;letter-spacing:.02em;backdrop-filter:blur(8px)}
.message-with-photo{max-width:1120px;display:grid;grid-template-columns:330px minmax(0,1fr);gap:46px;align-items:stretch;padding:34px}
.message-portrait{width:100%;height:100%;min-height:440px;object-fit:cover;object-position:center top;border-radius:22px;border:2px solid rgba(245,219,167,.65);box-shadow:0 24px 55px rgba(0,0,0,.32)}
.message-copy{position:relative;display:flex;flex-direction:column;justify-content:center;min-width:0}.message-paragraphs p{font-size:clamp(1.05rem,1.35vw,1.18rem);line-height:1.72;margin:0 0 14px}.message-paragraphs p:last-child{margin-bottom:0}.message-copy .quote{top:-55px;left:-18px}
.business-grid-complete{grid-template-columns:repeat(3,minmax(0,1fr))}
.business-card{display:flex;flex-direction:column;align-items:flex-start;min-height:340px}
.business-logo{width:100%;height:96px;object-fit:contain;object-position:left center;margin:0 0 18px;padding:10px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px rgba(111,33,53,.1)}
.business-card h3{margin-top:0}.business-card p{flex:1}
.business-card a{position:relative;z-index:1;display:inline-flex;align-items:center;margin-top:18px;padding:10px 15px;border-radius:999px;background:var(--wine);color:#fff!important;font-weight:900;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease}
.business-card a:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(111,33,53,.24)}
.store-card,.pathshala-card{position:relative;overflow:hidden;border-color:rgba(111,33,53,.28)!important;background:linear-gradient(145deg,#fffdf8,#f8ecdc)!important}
.store-card:after{content:"STORE";position:absolute;right:-8px;top:8px;color:rgba(111,33,53,.05);font:800 4.5rem Georgia,serif}
.pathshala-card:after{content:"LEARN";position:absolute;right:-8px;top:8px;color:rgba(111,33,53,.05);font:800 4.5rem Georgia,serif}
@media(max-width:1040px){.hero-family-layout{grid-template-columns:1fr}.hero-family-photo{max-width:820px;margin:0 0 0 auto}.business-grid-complete{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.brand-logo{width:48px;height:48px}.message-with-photo{grid-template-columns:220px 1fr;gap:30px;padding:28px}}
@media(max-width:680px){.hero-family-layout{padding-inline:20px}.hero-family-photo{width:100%;margin:0;padding:7px;border-radius:20px}.hero-family-photo img{aspect-ratio:4/3;object-position:center;border-radius:15px}.hero-family-photo figcaption{right:16px;bottom:16px;font-size:.8rem}.message-with-photo{grid-template-columns:1fr;padding:24px}.message-portrait{width:min(76vw,300px);height:auto;min-height:0;aspect-ratio:4/5;margin:auto}.message-copy .quote{top:-40px}.brand-logo{width:44px;height:44px}.business-grid-complete{grid-template-columns:1fr}.business-card{min-height:0}.business-logo{height:84px}}

.dashboard-link{display:inline-flex;margin-top:12px;color:var(--wine);font-weight:900;text-decoration:none}
.status-message{margin:28px 0;padding:14px 18px;border-radius:14px;background:#e7f6ed;color:#185c38;font-weight:800}
.manager-layout{display:grid;grid-template-columns:minmax(0,.9fr) minmax(420px,1.1fr);gap:28px;margin-top:38px;align-items:start}
.manager-form,.member-list{padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(67,28,35,.07)}
.manager-form h2,.member-list h2{margin:0 0 22px;font:700 1.8rem Georgia,serif;color:var(--wine)}
.member-list h2{display:flex;justify-content:space-between}.member-list h2 span{color:var(--gold)}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.manager-form label{display:block;margin-bottom:16px;font-weight:800;color:var(--wine-dark)}
.manager-form input,.manager-form select,.manager-form textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #d8c8bb;border-radius:11px;background:#fff;font:inherit;color:var(--ink)}
.manager-form textarea{resize:vertical}.manager-form .check{display:flex;align-items:center;gap:8px}.manager-form .check input{width:auto;margin:0}
.form-actions{display:flex;gap:12px;flex-wrap:wrap}
.member-row{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--line)}
.member-row:last-child{border-bottom:0}.member-avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,var(--wine),var(--gold));color:#fff;font-weight:900}
.member-row strong,.member-row small{display:block}.member-row small{color:var(--muted)}
.member-actions{display:flex;gap:10px;align-items:center}.member-actions a,.member-actions button{border:0;background:none;color:var(--wine);font:inherit;font-weight:800;cursor:pointer;text-decoration:none}.member-actions form{margin:0}.empty-state{padding:28px;border-radius:16px;background:#fff9ef;color:var(--muted)}
@media(max-width:980px){.manager-layout{grid-template-columns:1fr}}
@media(max-width:600px){.form-grid{grid-template-columns:1fr}.member-row{grid-template-columns:44px 1fr}.member-actions{grid-column:2}.manager-form,.member-list{padding:22px}.member-manager{padding-inline:18px}}

.family-tree-page{overflow-x:hidden}.family-tree{margin-top:48px;padding:42px 28px 56px;border:1px solid var(--line);border-radius:30px;background:linear-gradient(180deg,#fffdf8,#f7eadb);overflow-x:auto}
.tree-level{display:flex;justify-content:center}.tree-couple{display:flex;justify-content:center;gap:16px;align-items:stretch;position:relative}.tree-couple:has(.tree-person+.tree-person):after{content:"♥";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--wine);color:#f5dba7;font-size:.72rem;z-index:2}
.tree-person{display:flex;align-items:center;gap:13px;width:240px;min-height:92px;padding:13px;border:1px solid #dfcdbb;border-radius:18px;background:#fff;box-shadow:0 12px 28px rgba(67,28,35,.09)}
.tree-person.is-late{border-color:rgba(201,149,61,.55);background:linear-gradient(145deg,#fffdf8,#fff5e6)}.tree-person img,.tree-initial{flex:0 0 66px;width:66px;height:66px;border-radius:50%;object-fit:cover;object-position:center top;border:3px solid #f2dfbd}
.tree-initial{display:grid;place-items:center;background:linear-gradient(135deg,var(--wine),var(--gold));color:#fff;font-size:1.5rem;font-weight:900}.tree-person strong,.tree-person small{display:block}.tree-person strong{color:var(--wine-dark);line-height:1.35}.tree-person small{margin-top:4px;color:var(--gold);font-weight:800}
.tree-root .tree-person:first-child{width:290px;min-height:118px;border-width:2px}.tree-root .tree-person:first-child img{width:88px;height:88px;flex-basis:88px}
.tree-connector.vertical,.tree-connector.short{width:2px;height:44px;margin:0 auto;background:var(--gold)}.tree-connector.short{height:34px}
.tree-branches{position:relative;display:grid;grid-template-columns:repeat(2,minmax(500px,1fr));gap:46px;padding-top:30px;min-width:1040px}.tree-branches:before{content:"";position:absolute;left:25%;right:25%;top:0;height:2px;background:var(--gold)}.tree-branch{position:relative}.tree-branch:before{content:"";position:absolute;left:50%;top:-30px;width:2px;height:30px;background:var(--gold)}
.tree-children{display:flex;justify-content:center;gap:18px}.tree-children .tree-person{width:210px}.tree-empty{margin-top:40px}
@media(max-width:700px){.family-tree{padding-inline:18px}.tree-couple{flex-direction:column}.tree-couple:has(.tree-person+.tree-person):after{top:50%;left:50%}.tree-person,.tree-root .tree-person:first-child{width:260px}.tree-branches{grid-template-columns:repeat(2,minmax(290px,1fr));min-width:620px;gap:30px}.tree-children{flex-direction:column;align-items:center}.tree-children .tree-person{width:250px}}

.event-form{margin-top:38px}.event-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.event-venue{grid-column:span 2}.event-list{display:grid;gap:18px;margin-top:30px}
.event-card{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:22px;align-items:center;padding:24px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 12px 32px rgba(67,28,35,.06)}
.event-card>time{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:82px;border-radius:17px;background:linear-gradient(145deg,var(--wine),var(--wine-dark));color:#fff}.event-card time strong{font:700 2.1rem/1 Georgia,serif;color:#f5dba7}.event-card time span{margin-top:7px;font-size:.72rem;font-weight:800;text-transform:uppercase}
.event-details h2{margin:4px 0 5px;font:700 1.6rem Georgia,serif;color:var(--wine)}.event-details p{margin:4px 0;color:var(--muted)}.event-type{color:var(--gold);font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.event-past{opacity:.68}.event-past>time{background:#6f6668}
@media(max-width:900px){.event-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.event-form-grid{grid-template-columns:1fr}.event-venue{grid-column:auto}.event-card{grid-template-columns:72px 1fr;padding:18px}.event-card>time{min-height:72px}.event-card>.member-actions{grid-column:2}}


.tracking-privacy{margin:26px 0;padding:15px 18px;border:1px solid #ead7bc;border-radius:15px;background:#fff8e9;color:var(--wine-dark)}
.tracking-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.65fr);gap:26px;align-items:start;margin-top:26px}
.tracking-map-wrap{position:relative;min-width:0;padding:9px;border:1px solid var(--line);border-radius:25px;background:#fff;box-shadow:0 16px 40px rgba(67,28,35,.09)}
#tracking-map{width:100%;height:min(62vh,590px);min-height:430px;border-radius:18px;z-index:1}
.map-message{position:absolute;z-index:500;left:50%;bottom:28px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);margin:0;padding:11px 16px;border-radius:999px;background:rgba(53,16,27,.9);color:#fff;text-align:center}
.tracking-layout aside{padding:24px;border:1px solid var(--line);border-radius:24px;background:#fff}.tracking-layout aside h2{display:flex;justify-content:space-between;margin:0 0 18px;font:700 1.45rem Georgia,serif;color:var(--wine)}.tracking-layout aside h2 span{color:var(--gold)}
.tracker-list{display:grid;gap:12px}.tracker-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;padding:14px;border:1px solid #eadfd3;border-radius:15px;background:#fffcf7}.tracker-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#f5e5c8;font-size:1.2rem}.tracker-card strong,.tracker-card small{display:block}.tracker-card strong{color:var(--wine-dark)}.tracker-card small{margin-top:3px;color:var(--muted);font-size:.76rem}.tracker-status{padding:5px 8px;border-radius:999px;background:#eee;color:#6f6668;font-size:.68rem;font-weight:900}.tracker-status.online{background:#daf3e3;color:#116039}
@media(max-width:900px){.tracking-layout{grid-template-columns:1fr}#tracking-map{height:480px;min-height:360px}}
@media(max-width:600px){.tracking-page{padding-inline:16px}.tracking-layout aside{padding:18px}#tracking-map{height:400px;min-height:320px}.tracker-card{grid-template-columns:38px minmax(0,1fr) auto}.tracker-icon{width:38px;height:38px}}


.member-photo-preview{display:block;width:132px;height:152px;margin:0 0 18px;object-fit:cover;object-position:center top;border:3px solid #f2dfbd;border-radius:18px;box-shadow:0 12px 28px rgba(67,28,35,.14)}
.manager-form label small{display:block;margin-top:6px;color:var(--muted);font-weight:500;font-size:.75rem}.member-avatar-photo{object-fit:cover;object-position:center top}
.relationship-manager{margin-top:34px;padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(67,28,35,.07)}.relationship-manager h2{margin:0 0 8px;font:700 1.9rem Georgia,serif;color:var(--wine)}.relationship-manager>div>p:last-child{color:var(--muted)}
.relationship-form{display:grid;grid-template-columns:1fr .8fr 1fr auto;gap:14px;align-items:end;margin:24px 0}.relationship-form label{font-weight:800;color:var(--wine-dark)}.relationship-form select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #d8c8bb;border-radius:11px;background:#fff;font:inherit}
.relationship-list{display:grid;gap:10px}.relationship-list article{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:13px 16px;border-radius:13px;background:#fff9ef;color:var(--muted)}.relationship-list strong{color:var(--wine-dark)}.relationship-list form{margin:0}.relationship-list button{border:0;background:none;color:var(--wine);font:inherit;font-weight:900;cursor:pointer}
.tree-additional{margin-top:58px;padding-top:34px;border-top:2px solid #ead7bc}.tree-additional h2{margin:0 0 7px;text-align:center;font:700 1.8rem Georgia,serif;color:var(--wine)}.tree-additional>p{text-align:center;color:var(--muted)}.tree-additional-grid{display:grid;grid-template-columns:repeat(3,minmax(230px,1fr));gap:18px;margin-top:26px}.tree-additional-grid>div{min-width:0}.tree-additional-grid .tree-person{width:100%}.tree-relation-note{display:block;padding:8px 12px;color:var(--muted);font-size:.75rem;line-height:1.5;text-align:center}
@media(max-width:900px){.relationship-form{grid-template-columns:1fr 1fr}.tree-additional-grid{grid-template-columns:repeat(2,minmax(230px,1fr))}}
@media(max-width:600px){.relationship-form{grid-template-columns:1fr}.relationship-list article{align-items:flex-start}.tree-additional-grid{grid-template-columns:1fr}}


.account-create,.account-list{margin-top:30px;padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(67,28,35,.07)}.account-create h2,.account-list h2{margin:0 0 8px;font:700 1.85rem Georgia,serif;color:var(--wine)}.account-create>div>p{color:var(--muted)}
.account-create form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:end;margin-top:22px}.account-create label,.account-fields label{font-weight:800;color:var(--wine-dark)}.account-create input,.account-create select,.account-fields input,.account-fields select{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #d8c8bb;border-radius:11px;background:#fff;font:inherit;color:var(--ink)}
.account-list{display:grid;gap:18px}.account-list>h2{margin-bottom:4px}.account-card{padding:20px;border:1px solid #eadfd3;border-radius:18px;background:#fffcf7}.account-card-head{display:flex;align-items:center;gap:13px;margin-bottom:16px}.account-card-head img,.account-card-head>span{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center top;background:linear-gradient(135deg,var(--wine),var(--gold));color:#fff;font-weight:900}.account-card-head strong,.account-card-head small{display:block}.account-card-head small{margin-top:3px;color:var(--muted)}
.account-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.account-fields .check{display:flex;align-items:center;gap:8px}.account-fields .check input{width:auto;margin:0}.account-security-note{margin-top:24px;padding:16px 18px;border-radius:15px;background:#fff8e9;color:var(--wine-dark)}
.dashboard-grid article .dashboard-link+.dashboard-link{display:block;margin-top:7px}
@media(max-width:900px){.account-create form,.account-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.account-create,.account-list{padding:20px}.account-create form,.account-fields{grid-template-columns:1fr}}


.gallery-upload{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:end;margin-top:30px;padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(67,28,35,.07)}.gallery-upload>div{grid-column:1/-1}.gallery-upload h2{margin:0 0 8px;font:700 1.85rem Georgia,serif;color:var(--wine)}.gallery-upload>div>p:last-child{color:var(--muted)}.gallery-upload label{font-weight:800;color:var(--wine-dark)}.gallery-upload input,.gallery-upload textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #d8c8bb;border-radius:11px;background:#fff;font:inherit}.gallery-upload label small{display:block;margin-top:5px;color:var(--muted);font-weight:500}.gallery-upload .gallery-caption{grid-column:span 2}.gallery-upload .check{display:flex;align-items:center;gap:8px}.gallery-upload .check input{width:auto;margin:0}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 18px}.gallery-toolbar>div{color:var(--muted)}.gallery-toolbar>div strong{color:var(--wine);font-size:1.35rem}.gallery-toolbar label{font-weight:800;color:var(--wine-dark)}.gallery-toolbar select{margin-left:8px;padding:9px 12px;border:1px solid #d8c8bb;border-radius:10px;background:#fff}
.private-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.gallery-item{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:0 14px 34px rgba(67,28,35,.08)}.gallery-item.featured{border:2px solid var(--gold)}.gallery-item>a{display:block;aspect-ratio:4/3;overflow:hidden;background:#f3eadf}.gallery-item>a img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}.gallery-item:hover>a img{transform:scale(1.025)}.gallery-item-copy{padding:18px}.gallery-item-copy>span{color:var(--gold);font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.gallery-item-copy h2{margin:6px 0;font:700 1.35rem Georgia,serif;color:var(--wine)}.gallery-item-copy p{margin:7px 0;color:var(--muted)}.gallery-item-copy small{color:var(--muted)}
.gallery-edit{border-top:1px solid var(--line);padding:13px 18px}.gallery-edit summary{color:var(--wine);font-weight:900;cursor:pointer}.gallery-edit form{display:grid;gap:10px;margin-top:14px}.gallery-edit label{font-size:.78rem;font-weight:800;color:var(--wine-dark)}.gallery-edit input,.gallery-edit textarea{display:block;width:100%;margin-top:4px;padding:9px;border:1px solid #d8c8bb;border-radius:9px;font:inherit}.gallery-edit .check{display:flex;align-items:center;gap:7px}.gallery-edit .check input{width:auto;margin:0}.gallery-archive{border:0;background:none;color:#9b203d;font:inherit;font-weight:900;cursor:pointer;text-align:left}
@media(max-width:960px){.private-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-upload{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.gallery-upload{grid-template-columns:1fr;padding:20px}.gallery-upload .gallery-caption{grid-column:auto}.private-gallery-grid{grid-template-columns:1fr}.gallery-toolbar{align-items:flex-start;flex-direction:column}}


.document-upload{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;align-items:end;margin-top:30px;padding:30px;border:1px solid var(--line);border-radius:24px;background:#fff;box-shadow:0 14px 38px rgba(67,28,35,.07)}.document-upload>div{grid-column:1/-1}.document-upload h2{margin:0 0 8px;font:700 1.85rem Georgia,serif;color:var(--wine)}.document-upload>div>p:last-child{color:var(--muted)}.document-upload label{font-weight:800;color:var(--wine-dark)}.document-upload input,.document-upload textarea{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #d8c8bb;border-radius:11px;background:#fff;font:inherit}.document-upload .document-description{grid-column:span 2}.document-upload .check{display:flex;align-items:center;gap:8px}.document-upload .check input{width:auto;margin:0}
.document-toolbar{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:30px 0 18px}.document-toolbar>div{color:var(--muted)}.document-toolbar>div strong{color:var(--wine);font-size:1.35rem}.document-toolbar label{font-weight:800;color:var(--wine-dark)}.document-toolbar select{margin-left:8px;padding:9px 12px;border:1px solid #d8c8bb;border-radius:10px;background:#fff}
.document-list{display:grid;gap:15px}.document-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:0 10px 28px rgba(67,28,35,.06)}.document-card.important{border:2px solid var(--gold);background:linear-gradient(145deg,#fff,#fff9ed)}.document-icon{display:grid;place-items:center;width:60px;height:64px;border-radius:13px;background:linear-gradient(145deg,var(--wine),var(--wine-dark));color:#f5dba7;font-size:.72rem;font-weight:900}.document-copy>span{color:var(--gold);font-size:.72rem;font-weight:900;text-transform:uppercase}.document-copy h2{margin:5px 0;font:700 1.35rem Georgia,serif;color:var(--wine)}.document-copy p{margin:6px 0;color:var(--muted)}.document-copy small{color:var(--muted)}
.document-edit{grid-column:2/-1;border-top:1px solid var(--line);padding-top:12px}.document-edit summary{color:var(--wine);font-weight:900;cursor:pointer}.document-edit form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:13px}.document-edit label{font-size:.78rem;font-weight:800;color:var(--wine-dark)}.document-edit input,.document-edit textarea{display:block;width:100%;margin-top:4px;padding:9px;border:1px solid #d8c8bb;border-radius:9px;font:inherit}.document-edit .check{display:flex;align-items:center;gap:7px}.document-edit .check input{width:auto;margin:0}.document-edit form:last-child{display:block}.document-archive{border:0;background:none;color:#9b203d;font:inherit;font-weight:900;cursor:pointer}
@media(max-width:900px){.document-upload{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.document-upload{grid-template-columns:1fr;padding:20px}.document-upload .document-description{grid-column:auto}.document-toolbar{align-items:flex-start;flex-direction:column}.document-card{grid-template-columns:52px 1fr}.document-icon{width:50px;height:55px}.document-card>.button{grid-column:2;justify-self:start}.document-edit{grid-column:1/-1}.document-edit form{grid-template-columns:1fr}}


/* Keep both spouse cards visible on standard laptop screens. */
@media(max-width:1200px) and (min-width:701px){
  .tree-branches{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;gap:24px}
  .tree-branch .tree-person{width:min(190px,calc(50% - 8px));padding:11px;gap:9px}
  .tree-branch .tree-person img,.tree-branch .tree-initial{width:54px;height:54px;flex-basis:54px}
  .tree-branch .tree-person strong{font-size:.88rem}
  .tree-children .tree-person{width:190px}
}
@media(max-width:700px){
  .tree-branches{grid-template-columns:1fr;min-width:0;gap:48px}
  .tree-branches:before{display:none}
  .tree-branch:before{display:none}
  .tree-branch .tree-couple{align-items:center}
  .tree-branch .tree-person,.tree-children .tree-person{width:min(100%,280px)}
}


/* Definitive spouse-pair layout: both cards stay inside their branch column. */
.tree-branch .tree-couple{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:14px}
.tree-branch .tree-couple .tree-person{width:auto;min-width:0}
@media(max-width:700px){
  .tree-branch .tree-couple{grid-template-columns:1fr;justify-items:center}
  .tree-branch .tree-couple .tree-person{width:min(100%,280px)}
}


/* Full-width generation branches: no spouse card can sit outside the viewport. */
.tree-branches{grid-template-columns:1fr!important;min-width:0!important;gap:58px!important}
.tree-branches:before{display:none!important}
.tree-branch:before{display:none!important}
.tree-branch{width:100%;max-width:760px;margin-inline:auto}
.tree-branch .tree-couple{grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;gap:18px}
.tree-branch .tree-couple .tree-person{width:auto!important;max-width:none}
@media(max-width:700px){
  .tree-branch .tree-couple{grid-template-columns:1fr!important;justify-items:center}
  .tree-branch .tree-couple .tree-person{width:min(100%,300px)!important}
}


/* Full-width natural family hero — text stays clear of every face. */
.hero-family-full{
  position:relative;
  display:block;
  width:100%;
  min-height:clamp(640px,calc(100vh - 76px),860px);
  padding:0;
  overflow:hidden;
  border-radius:0;
  background:#dce9d7;
}
.hero-family-photo-full{position:absolute;inset:0;margin:0}
.hero-family-photo-full:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(18,38,22,.08) 0%,rgba(18,38,22,0) 55%,rgba(18,38,22,.18) 100%);
  pointer-events:none;
}
.hero-family-photo-full img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 54%;
}
.hero-copy-overlay{
  position:absolute;
  z-index:2;
  top:clamp(32px,5vw,72px);
  right:clamp(24px,5vw,80px);
  left:auto;
  width:min(470px,38vw);
  padding:clamp(22px,2.5vw,34px);
  border:1px solid rgba(255,255,255,.7);
  border-radius:26px;
  background:rgba(255,250,240,.88);
  box-shadow:0 24px 60px rgba(24,45,28,.22);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.hero-copy-overlay h1{margin:.25rem 0 .8rem;font-size:clamp(2.5rem,4vw,4.6rem);line-height:.88}
.hero-copy-overlay .hero-lead{max-width:42ch;margin-bottom:1.1rem;font-size:clamp(.96rem,1.15vw,1.08rem);line-height:1.55}
.hero-copy-overlay .hero-actions{gap:9px}
.hero-copy-overlay .button{padding:10px 15px;font-size:.86rem}
.hero-copy-overlay .privacy-note{margin-top:12px;font-size:.76rem;line-height:1.45}

@media(max-width:980px){
  .hero-family-full{min-height:0;overflow:visible;background:#fffaf0}
  .hero-family-photo-full{position:relative;aspect-ratio:4/3}
  .hero-family-photo-full img{object-position:center center}
  .hero-copy-overlay{
    position:relative;
    top:auto;right:auto;left:auto;
    width:auto;
    margin:-18px 18px 0;
    padding:24px;
    border-radius:22px;
    background:#fffaf0;
    box-shadow:0 16px 40px rgba(53,16,27,.14);
    backdrop-filter:none;
  }
  .hero-copy-overlay h1{font-size:clamp(2.7rem,10vw,4.2rem)}
}
@media(max-width:560px){
  .hero-family-photo-full{aspect-ratio:4/3}
  .hero-copy-overlay{margin:-8px 12px 0;padding:22px 18px}
  .hero-copy-overlay .hero-actions{display:grid;grid-template-columns:1fr}
  .hero-copy-overlay .button{width:100%;justify-content:center;text-align:center}
}


/* Final hero correction: the text never covers the family photograph. */
.hero-family-full{
  display:flex;
  flex-direction:column;
  width:100%;
  min-height:0;
  padding:0;
  overflow:hidden;
  border-radius:0;
  background:#fffaf0;
}
.hero-copy-overlay{
  position:relative;
  z-index:2;
  order:1;
  top:auto;
  right:auto;
  left:auto;
  display:grid;
  grid-template-columns:minmax(230px,.65fr) minmax(300px,1fr) auto;
  grid-template-areas:
    "eyebrow lead actions"
    "title lead note";
  align-items:center;
  gap:6px 28px;
  width:100%;
  margin:0;
  padding:22px clamp(28px,5vw,76px);
  border:0;
  border-radius:0;
  background:linear-gradient(100deg,#fffaf0,#f8ead9);
  box-shadow:0 10px 30px rgba(53,16,27,.08);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.hero-copy-overlay .eyebrow{grid-area:eyebrow;margin:0}
.hero-copy-overlay h1{grid-area:title;margin:0;font-size:clamp(2.5rem,3.8vw,4.4rem);line-height:.84}
.hero-copy-overlay .hero-lead{grid-area:lead;margin:0;max-width:48ch;font-size:clamp(.95rem,1.08vw,1.08rem);line-height:1.55}
.hero-copy-overlay .hero-actions{grid-area:actions;display:flex;justify-content:flex-end;gap:8px;max-width:410px}
.hero-copy-overlay .button{padding:10px 14px;font-size:.82rem;white-space:nowrap}
.hero-copy-overlay .privacy-note{grid-area:note;margin:5px 0 0;text-align:right;font-size:.72rem;line-height:1.4}
.hero-family-photo-full{
  position:relative;
  inset:auto;
  order:2;
  width:100%;
  margin:0;
  background:#dce9d7;
}
.hero-family-photo-full:after{display:none}
.hero-family-photo-full img{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:auto;
  object-fit:contain;
  object-position:center;
}

@media(max-width:1100px){
  .hero-copy-overlay{
    grid-template-columns:minmax(220px,.7fr) 1fr;
    grid-template-areas:
      "eyebrow lead"
      "title lead"
      "actions note";
  }
  .hero-copy-overlay .hero-actions{justify-content:flex-start;max-width:none;margin-top:10px}
  .hero-copy-overlay .privacy-note{text-align:right}
}
@media(max-width:760px){
  .hero-copy-overlay{
    display:block;
    width:100%;
    margin:0;
    padding:24px 20px;
    border-radius:0;
    box-shadow:none;
  }
  .hero-copy-overlay h1{margin:7px 0 14px;font-size:clamp(2.7rem,13vw,4rem)}
  .hero-copy-overlay .hero-lead{margin-bottom:16px}
  .hero-copy-overlay .hero-actions{display:grid;grid-template-columns:1fr;gap:9px}
  .hero-copy-overlay .privacy-note{margin-top:12px;text-align:left}
}


/* Remove inherited hero spacing between the information strip and photograph. */
.hero-family-full{gap:0!important}


/* Professional hero composition: photograph first, compact actions below. */
.hero-family-full{display:flex!important;flex-direction:column!important;gap:0!important;background:#fffaf0}
.hero-family-photo-full{
  order:1!important;
  width:100%;
  height:clamp(540px,66vh,720px);
  overflow:hidden;
  background:#dfe9d8;
}
.hero-family-photo-full img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 58%!important;
}
.hero-copy-overlay{
  order:2!important;
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(210px,.55fr) minmax(320px,1fr) auto!important;
  grid-template-areas:"title lead actions"!important;
  align-items:center!important;
  gap:24px!important;
  width:100%!important;
  min-height:132px;
  margin:0!important;
  padding:20px clamp(28px,5vw,72px)!important;
  border:0!important;
  border-top:1px solid rgba(111,33,53,.1)!important;
  border-radius:0!important;
  background:linear-gradient(105deg,#fffaf0,#f7ead8)!important;
  box-shadow:0 -12px 35px rgba(44,22,24,.08)!important;
}
.hero-copy-overlay .eyebrow,.hero-copy-overlay .privacy-note{display:none!important}
.hero-copy-overlay h1{
  grid-area:title!important;
  margin:0!important;
  font-size:clamp(2.25rem,3.2vw,3.65rem)!important;
  line-height:.86!important;
  white-space:nowrap;
}
.hero-copy-overlay .hero-lead{
  grid-area:lead!important;
  max-width:52ch!important;
  margin:0!important;
  font-size:1rem!important;
  line-height:1.55!important;
}
.hero-copy-overlay .hero-actions{
  grid-area:actions!important;
  display:flex!important;
  justify-content:flex-end!important;
  gap:9px!important;
  margin:0!important;
}
.hero-copy-overlay .button{padding:10px 14px!important;font-size:.8rem!important;white-space:nowrap}

@media(max-width:1050px){
  .hero-family-photo-full{height:clamp(500px,62vh,650px)}
  .hero-copy-overlay{
    grid-template-columns:220px 1fr!important;
    grid-template-areas:"title lead" "actions actions"!important;
    gap:14px 24px!important;
  }
  .hero-copy-overlay .hero-actions{justify-content:flex-start!important}
}
@media(max-width:700px){
  .hero-family-photo-full{height:auto;aspect-ratio:4/3}
  .hero-family-photo-full img{object-position:center center!important}
  .hero-copy-overlay{
    display:block!important;
    min-height:0;
    padding:22px 18px!important;
  }
  .hero-copy-overlay h1{white-space:normal;margin-bottom:13px!important}
  .hero-copy-overlay .hero-lead{margin-bottom:16px!important}
  .hero-copy-overlay .hero-actions{display:grid!important;grid-template-columns:1fr!important}
  .hero-copy-overlay .button{width:100%;justify-content:center}
}

/* SHEKHAR HERO FULL IMAGE START */
.hero-family-full {
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
}

.hero-family-photo-full {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    background: #2c0712 !important;
}

.hero-family-photo-full img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
}

@media (max-width: 768px) {
    .hero-family-full,
    .hero-family-photo-full {
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-family-photo-full img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}
/* SHEKHAR HERO FULL IMAGE END */
