:root{--ink:#263630;--paper:#f7f5f0;--card:#fffefa;--green:#29473d;--green-deep:#203a32;--gold:#bd9b68;--line:#e5dfd4;--sage:#e8efe9;--shadow:0 18px 50px rgba(39,55,46,.09)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse at 15% 0%,#fff 0,transparent 42%),var(--paper);color:var(--ink);font:16px/1.65 system-ui,-apple-system,"Segoe UI",sans-serif}header{background:linear-gradient(115deg,var(--green-deep),var(--green));color:white;padding:.65rem max(1.1rem,calc((100% - 1220px)/2));border-bottom:1px solid rgba(215,190,145,.45);box-shadow:0 5px 24px rgba(26,48,39,.12);display:flex;align-items:center;justify-content:space-between;gap:1.4rem;flex-wrap:wrap}header a{color:white;text-decoration:none}.brand{display:flex;align-items:center;gap:.8rem;min-width:max-content}.brand img{width:54px;height:54px}.brand span{display:grid;line-height:1.15}.brand strong{font:600 1.18rem Georgia,serif;letter-spacing:.1em}.brand small{margin-top:.25rem;color:#ddc99f;font-size:.65rem;letter-spacing:.2em}nav{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}nav a{padding:.55rem .78rem;border-radius:999px;color:#f8f7f1;font-size:.92rem;transition:background .2s,color .2s}nav a:hover,nav a:focus-visible{background:rgba(255,255,255,.13);color:#fff}main{max-width:1220px;margin:2.3rem auto;padding:0 1.25rem;min-height:65vh}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;line-height:1.2;color:var(--green-deep);font-weight:500}h1{font-size:clamp(2.25rem,5vw,3.8rem);letter-spacing:-.035em}h2{font-size:clamp(1.5rem,3vw,2.1rem)}a{color:#31583d}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid transparent;border-radius:999px;padding:.72rem 1.15rem;background:var(--green);color:white;font:600 .94rem system-ui,sans-serif;cursor:pointer;text-decoration:none;box-shadow:0 5px 14px rgba(41,71,61,.12);transition:transform .18s,background .18s,box-shadow .18s}button:hover,.button:hover{background:#355c4e;transform:translateY(-1px);box-shadow:0 8px 20px rgba(41,71,61,.18)}.button.secondary,button.secondary{background:transparent;border-color:#a9b8ac;color:var(--green)}input,textarea,select{font:inherit;padding:.72rem .8rem;border:1px solid #d3cec3;border-radius:10px;background:#fffefa;max-width:100%;width:100%;color:var(--ink)}.remember-login{display:flex;align-items:center;gap:.55rem;margin:.7rem 0}.remember-login input{width:auto;min-width:1rem}input:focus,textarea:focus,select:focus{outline:3px solid rgba(189,155,104,.22);border-color:var(--gold)}label{display:block;margin:.75rem 0;color:#46564e;font-size:.94rem;font-weight:550}.panel,.card{background:var(--card);border:1px solid var(--line);border-radius:18px;padding:clamp(1.1rem,3vw,1.7rem);margin:1.1rem 0;box-shadow:var(--shadow)}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.1rem}.muted{color:#68746d}.flash{background:#e8efe9;color:#29473d;padding:.85rem 1rem;border:1px solid #cad8cc;border-radius:12px}.toolbar{display:flex;gap:.65rem;flex-wrap:wrap}table{border-collapse:collapse;width:100%;background:#fffefa;border-radius:12px;overflow:hidden}td,th{text-align:left;padding:.7rem;border-bottom:1px solid var(--line)}footer{max-width:1220px;margin:2rem auto 0;padding:2rem 1.25rem 2.5rem;color:#6e776f;border-top:1px solid var(--line);font-size:.9rem}.danger{color:#9a3027}pre{overflow:auto;white-space:pre-wrap}.eyebrow{font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;color:#9b7a4d;font-weight:700}.family-hero{display:grid;grid-template-columns:.88fr 1.12fr;gap:clamp(1.5rem,4vw,4rem);align-items:center;padding:clamp(1.3rem,4vw,3.5rem);border:1px solid var(--line);border-radius:28px;background:linear-gradient(135deg,#fffefa,#f2f0e8);box-shadow:var(--shadow);overflow:hidden}.family-hero-copy h1{margin:.55rem 0 1rem}.family-hero-copy p{max-width:34rem;color:#5f6c64;font-size:1.08rem}.family-collage{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:9px;aspect-ratio:1.35;border-radius:22px;overflow:hidden;background:#e7e7dc;box-shadow:0 18px 38px rgba(32,58,50,.17)}.collage-cell{position:relative;min-height:120px;overflow:hidden;background:linear-gradient(135deg,#d9e4dc,#b6c9ba)}.collage-cell:nth-child(2){background:linear-gradient(135deg,#eee5d8,#cfb992)}.collage-cell:nth-child(3){background:linear-gradient(135deg,#dce5e8,#b8cbcd)}.collage-cell:nth-child(4){background:linear-gradient(135deg,#ece3e7,#d1bac2)}.collage-cell img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.collage-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:rgba(41,71,61,.68);font:italic 1rem Georgia,serif;letter-spacing:.04em}.collage-placeholder:before{content:"";position:absolute;width:44px;height:44px;border:1px solid rgba(41,71,61,.3);border-radius:50%;top:calc(50% - 28px);left:calc(50% - 22px)}.collage-placeholder span{position:relative;margin-top:4.2rem}.hero-actions{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin-top:1.4rem}.banner-editor{margin-top:1rem}.banner-editor form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem}.banner-editor button{grid-column:1/-1;justify-self:start}.tree-scroll{background:#f3f2ec;border-color:#e0dccf;border-radius:18px;box-shadow:inset 0 1px 3px rgba(40,50,42,.04)}.tree-node .placeholder-initial{fill:#29473d}.tree-node .node-name,.tree-node .node-date{text-anchor:middle}.tree-node .node-name{font:600 12px system-ui,sans-serif;fill:#fff}.tree-node .node-date{font:11px system-ui,sans-serif;fill:#fff}.tree-node .node-edit{font:600 11px system-ui,sans-serif;fill:#fff;stroke:#222;stroke-width:2px;paint-order:stroke}@media(max-width:800px){header{padding:.55rem 1rem;justify-content:center}.brand{margin-right:auto}nav{justify-content:center}main{margin:1.4rem auto;padding:0 1rem}.family-hero{grid-template-columns:1fr;gap:1.4rem}.family-collage{max-height:420px}.family-hero-copy h1{font-size:clamp(2.2rem,10vw,3.2rem)}}@media(max-width:520px){nav{width:100%;gap:.15rem}nav a{padding:.45rem .55rem;font-size:.83rem}.family-hero{padding:1.15rem;border-radius:20px}.family-collage{gap:6px;border-radius:16px}.collage-cell{min-height:90px}.banner-editor form{grid-template-columns:1fr}.banner-editor button{grid-column:auto}}
.home-family{padding:2rem 0 1rem}.home-family>h2{margin:.2rem 0}.banner-editor summary{cursor:pointer;color:var(--green);font-weight:700}.banner-editor summary::marker{color:var(--gold)}
.nav-dropdown,.account-menu{position:relative}.nav-dropdown>summary,.account-menu>summary{list-style:none;cursor:pointer;color:#f8f7f1;padding:.5rem .7rem;border-radius:999px;font-size:.92rem}.nav-dropdown>summary::-webkit-details-marker,.account-menu>summary::-webkit-details-marker{display:none}.nav-dropdown>summary:hover,.account-menu>summary:hover{background:rgba(255,255,255,.13)}.nav-dropdown-menu,.account-dropdown{position:absolute;z-index:20;right:0;top:calc(100% + .45rem);min-width:220px;display:grid;gap:.2rem;padding:.55rem;background:#fffefa;color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.nav-dropdown-menu a,.account-dropdown a,.account-dropdown button{display:block;padding:.55rem .7rem;border-radius:9px;color:var(--green-deep);text-decoration:none;font-size:.92rem}.nav-dropdown-menu a:hover,.account-dropdown a:hover{background:var(--sage)}.account-avatar{width:36px;height:36px;border:1px solid #d9c69f;border-radius:50%;display:grid;place-items:center;background:#f3ead8;color:var(--green-deep);font-size:.8rem;font-weight:700}.account-dropdown strong{padding:.45rem .7rem;max-width:250px;overflow-wrap:anywhere;font-size:.85rem}.account-dropdown form{margin:0}.account-dropdown button{width:100%;border:0;box-shadow:none;background:transparent;justify-content:flex-start}.language-switch{white-space:nowrap}
.account-avatar-photo{display:block;object-fit:cover}.account-settings-photo{width:112px;height:112px;border-radius:50%;object-fit:cover;border:3px solid #dcc99f}.profile-gallery{display:flex;align-items:flex-start;gap:.8rem;flex-wrap:wrap;margin:.8rem 0 1rem}.profile-gallery img{width:144px;height:192px;object-fit:cover;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow)}.photo-preview-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;margin:.8rem 0}.photo-preview-grid img{width:100%;height:130px;object-fit:cover;border-radius:12px}.photo-meta{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,2fr) auto;gap:.5rem;align-items:center;margin:.7rem 0;padding:.65rem;background:#faf9f5;border:1px solid var(--line);border-radius:12px}.comment-list{display:grid;gap:.55rem}.comment-list article{padding:.75rem 1rem;background:#f7f5f0;border-radius:12px}.comment-list p{margin:.2rem 0}@media(max-width:620px){.photo-meta{grid-template-columns:1fr}.profile-gallery img{width:120px;height:160px}}
.upload-drop-zone{padding:1rem;border:2px dashed #aeb9ad;border-radius:16px;background:#fbfaf6;transition:border-color .2s,background .2s}.upload-drop-zone.is-dragging{border-color:var(--gold);background:#f5eddd}.photo-preview-grid figure{margin:0}.photo-preview-grid figcaption{font-size:.8rem;overflow-wrap:anywhere;color:#59665e}.album-photo-preview{display:block;width:100%;height:230px;object-fit:cover;border-radius:14px}.album-photo-card form{margin:.6rem 0}.album-photo-card .toolbar form{display:flex}
.album-cover-preview{display:block;width:min(100%,420px);height:220px;object-fit:cover;border-radius:16px;margin:.8rem 0 1rem;border:1px solid var(--line)}

/* Header menus are overlays: opening them must never change header or page layout. */
header{position:relative;z-index:30;overflow:visible}
header nav{position:relative;overflow:visible}
header nav>.nav-dropdown,header nav>.account-menu{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;align-self:center}
header nav>.nav-dropdown>summary,header nav>.account-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;user-select:none}
header nav>.nav-dropdown>summary::-webkit-details-marker,header nav>.account-menu>summary::-webkit-details-marker{display:none}
header nav>.nav-dropdown>.nav-dropdown-menu,header nav>.account-menu>.account-dropdown{position:absolute;inset:auto 0 auto auto;top:calc(100% + .55rem);z-index:1000;display:none;min-width:220px;width:max-content;max-width:min(340px,calc(100vw - 1.5rem));max-height:min(70vh,520px);overflow:auto;box-sizing:border-box;padding:.55rem;background:#fffefa;color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 18px 45px rgba(19,35,28,.24)}
header nav>.nav-dropdown[open]>.nav-dropdown-menu,header nav>.account-menu[open]>.account-dropdown{display:grid;gap:.2rem}
header nav>.nav-dropdown>.nav-dropdown-menu a,header nav>.account-menu>.account-dropdown a,header nav>.account-menu>.account-dropdown button{color:var(--green-deep);white-space:normal}
header nav>.account-menu>summary{width:42px;height:42px;padding:0;margin:0;border:2px solid rgba(221,201,159,.9);border-radius:50%;overflow:hidden;background:#f3ead8;box-shadow:0 2px 8px rgba(0,0,0,.16)}
header nav>.account-menu>summary:hover,header nav>.account-menu>summary:focus-visible{outline:2px solid #ead5a7;outline-offset:2px;background:#f3ead8}
header nav>.account-menu .account-avatar{width:100%;height:100%;border:0;border-radius:50%;font-size:.8rem}
header nav>.account-menu .account-avatar-photo{width:100%;height:100%;object-fit:cover;border-radius:50%}
@media(max-width:800px){header{z-index:30}header nav{z-index:31}header nav>.nav-dropdown>.nav-dropdown-menu,header nav>.account-menu>.account-dropdown{max-width:min(340px,calc(100vw - 2rem))}}

/* Albums Phase 1: editorial archive browsing and photo-rich album pages. */
.albums-page,.album-detail,.album-editor-shell{max-width:1120px;margin:0 auto}
.albums-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;margin:0 0 1.5rem}
.albums-heading h1,.album-editor-shell h1,.album-detail h1{margin:.3rem 0 .65rem;font-size:clamp(2.2rem,5vw,3.55rem)}
.album-intro{max-width:44rem;color:#68746d;font-size:1.08rem;margin:.25rem 0 0}
.album-new-button{flex:0 0 auto}
.album-searchbar{display:flex;gap:.55rem;align-items:center;padding:.65rem;background:#fffefa;border:1px solid var(--line);border-radius:15px;box-shadow:0 6px 20px rgba(39,55,46,.05)}
.album-searchbar input{border:0;background:transparent;box-shadow:none}
.album-filter-tabs{display:flex;gap:.45rem;flex-wrap:wrap;margin:1rem 0 .75rem}
.album-filter-tabs a{padding:.45rem .85rem;border:1px solid var(--line);border-radius:999px;color:#536259;text-decoration:none;font-size:.9rem}
.album-filter-tabs a.is-active{background:var(--green);border-color:var(--green);color:#fff}
.album-filter-row{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin:0 0 1.5rem;color:#66736b;font-size:.9rem}
.album-filter-row select{width:auto;min-width:170px;padding:.5rem .7rem}
.album-filter-row label{display:flex;align-items:center;gap:.45rem;margin:0}
.album-featured{display:grid;grid-template-columns:1.1fr .9fr;min-height:300px;margin:1.4rem 0 2.2rem;overflow:hidden;border:1px solid #e3dccf;border-radius:24px;background:linear-gradient(120deg,#fffefa,#f1ede3);box-shadow:var(--shadow)}
.album-feature-image{min-height:300px;background:#e8e3d8}
.album-feature-image img,.album-feature-placeholder{display:block;width:100%;height:100%;min-height:300px;object-fit:cover}
.album-feature-placeholder,.album-card-placeholder{display:grid;place-items:center;background:linear-gradient(135deg,#e2e8df,#e9dfcd);color:#a3895e;font-size:2.6rem}
.album-feature-copy{align-self:center;padding:clamp(1.4rem,4vw,3rem)}
.album-feature-copy h2{font-size:clamp(1.7rem,3.3vw,2.6rem);margin:.35rem 0 .75rem}
.album-feature-copy>p:not(.eyebrow){color:#5e6b63}
.album-meta-line,.album-card-meta{color:#768078;font-size:.86rem}
.album-list-heading,.album-section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1.5rem 0 .85rem}
.album-list-heading h2,.album-section-heading h2{margin:0}
.album-list-heading span,.album-count{color:#78837b;font-size:.9rem}
.album-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.05rem}
.album-card{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fffefa;box-shadow:0 8px 22px rgba(39,55,46,.055);transition:transform .18s,box-shadow .18s}
.album-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.album-card-image{display:block;aspect-ratio:1.48;background:#ebe7dd;overflow:hidden}
.album-card-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.album-card:hover .album-card-image img{transform:scale(1.025)}
.album-card-placeholder{width:100%;height:100%;font-size:2rem}
.album-card-body{padding:1rem 1.1rem 1.1rem}
.album-card-kicker,.album-card-meta{display:flex;align-items:center;justify-content:space-between;gap:.5rem}
.album-card-kicker{color:#95794f;font-size:.76rem;letter-spacing:.04em}
.privacy-pill{padding:.15rem .5rem;border:1px solid #e1dacd;border-radius:999px;color:#66736b;letter-spacing:0}
.album-card h3{font-size:1.25rem;margin:.45rem 0}
.album-card h3 a{color:var(--green-deep);text-decoration:none}
.album-card-body>p{color:#66736b;font-size:.92rem;line-height:1.5;min-height:2.8em;margin:.4rem 0 .9rem}
.album-card-meta{padding-top:.65rem;border-top:1px solid #efede7;font-size:.78rem;overflow-wrap:anywhere}
.album-empty{display:grid;justify-items:center;text-align:center;gap:.3rem;padding:3rem 1.2rem;border:1px dashed #d5cbb8;border-radius:20px;background:rgba(255,254,250,.72);color:#67746c}
.album-empty>span{font-size:2rem;color:#b59a6a}.album-empty h2{margin:.3rem 0;color:var(--green-deep)}
.album-detail{padding-bottom:2rem}
.album-back{display:inline-flex;margin:.2rem 0 1rem;color:#6f785f;text-decoration:none;font-size:.92rem}
.album-detail-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fffefa;box-shadow:var(--shadow)}
.album-detail-cover{display:block;width:100%;height:100%;min-height:320px;max-height:580px;object-fit:cover;background:#e8e3d8}
.album-detail-copy{align-self:center;padding:clamp(1.4rem,4vw,3rem)}
.album-detail-copy h1{overflow-wrap:anywhere}
.album-detail-description{color:#5f6c64;font-size:1.03rem}
.album-actions{display:flex;gap:.55rem;flex-wrap:wrap;margin-top:1.2rem}
.album-section,.album-related,.album-memories,.album-upload-panel{margin:2.2rem 0}
.album-gallery{columns:3 230px;column-gap:1rem}
.album-gallery-item{break-inside:avoid;margin:0 0 1rem;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fffefa;box-shadow:0 6px 18px rgba(39,55,46,.055)}
.album-gallery-image{display:block;background:#ebe8df;line-height:0}
.album-gallery-image img{display:block;width:100%;height:auto;max-height:680px;object-fit:contain;background:#f1eee6}
.album-photo-caption{padding:.7rem .85rem;color:#59665e;font-size:.9rem}
.album-photo-caption p{margin:0 0 .25rem}.album-photo-caption small{color:#85877d}
.album-pending{padding:2rem 1rem;background:#f4f0e7;color:#716548;text-align:center}
.photo-edit{padding:0 .8rem .8rem}.photo-edit summary,.album-settings>summary{cursor:pointer;color:var(--green);font-weight:650;padding:.45rem 0}
.photo-edit form{border-top:1px solid var(--line);padding-top:.4rem}
.photo-edit label,.album-editor-card label{font-size:.88rem}
.album-photo-quick-actions{display:flex;justify-content:space-between;gap:.4rem;flex-wrap:wrap}
.album-photo-quick-actions form{display:flex;margin:.4rem 0}
.album-photo-quick-actions button{padding:.45rem .7rem;font-size:.82rem}
.album-upload-panel,.album-memories,.album-related,.album-settings{padding:clamp(1.1rem,3vw,1.7rem);border:1px solid var(--line);border-radius:18px;background:rgba(255,254,250,.82);box-shadow:0 8px 24px rgba(39,55,46,.045)}
.album-upload-panel h2,.album-memories h2,.album-related h2{margin:.25rem 0 1rem}
.album-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem}
.album-related-grid article{padding:.8rem 1rem;border:1px solid var(--line);border-radius:12px;background:#fffefa}
.album-related-grid h3{margin:.2rem 0}.album-related-grid ul{margin:.4rem 0;padding-left:1.2rem}
.album-editor-shell{padding:1rem 0 3rem}.album-editor-card{padding:clamp(1rem,3vw,1.6rem);border:1px solid var(--line);border-radius:18px;background:#fffefa;box-shadow:var(--shadow)}
.album-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.1rem 1rem}
.album-form-grid select[multiple]{min-height:9rem}
.album-check{display:flex;align-items:center;gap:.55rem}.album-check input{width:auto}
.album-share-tools{margin-top:1rem;padding-top:1rem;border-top:1px solid var(--line)}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:850px){.album-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.album-featured{grid-template-columns:1fr 1fr}.album-detail-hero{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.albums-heading{align-items:flex-start;flex-direction:column}.albums-heading h1{font-size:2.35rem}.album-new-button{align-self:flex-start}.album-featured,.album-detail-hero{grid-template-columns:1fr}.album-feature-image,.album-feature-image img,.album-feature-placeholder{min-height:220px;max-height:300px}.album-detail-cover{min-height:220px;max-height:320px}.album-card-grid{grid-template-columns:1fr}.album-form-grid{grid-template-columns:1fr}.album-filter-row select{min-width:135px}.album-card-body>p{min-height:0}}
.album-photo-tags{font-size:.83rem;margin:.4rem 0 0}.album-photo-tags a{color:#53715e;text-decoration:none}.album-lightbox{position:fixed;inset:0;width:min(96vw,1200px);height:min(94vh,900px);max-width:none;max-height:none;padding:3.4rem 4.5rem 2.2rem;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(24,31,27,.97);color:#fff;overflow:hidden}.album-lightbox::backdrop{background:rgba(13,20,16,.84);backdrop-filter:blur(4px)}.album-lightbox figure{display:grid;place-items:center;height:100%;margin:0}.album-lightbox figure img{display:block;max-width:100%;max-height:calc(100% - 2rem);width:auto;height:auto;object-fit:contain}.album-lightbox figcaption{max-width:70ch;margin:.6rem auto 0;color:#eee9df;text-align:center}.album-lightbox button{position:absolute;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.34);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:1.7rem;box-shadow:none}.album-lightbox button:hover{background:rgba(255,255,255,.24);transform:none}.album-lightbox .lightbox-close{top:.8rem;right:.8rem}.album-lightbox .lightbox-prev{top:50%;left:.8rem}.album-lightbox .lightbox-next{top:50%;right:.8rem}@media(max-width:620px){.album-lightbox{width:100vw;height:100dvh;padding:3.2rem 2.8rem 1.4rem;border:0;border-radius:0}.album-lightbox .lightbox-prev{left:.25rem}.album-lightbox .lightbox-next{right:.25rem}}

/* Stories and Timeline Phase 1 use the same family archive editorial style. */
.stories-page,.story-detail,.story-editor-page,.timeline-page,.timeline-detail,.timeline-editor-page{max-width:1120px;margin:0 auto}
.stories-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}
.stories-heading h1,.timeline-page h1,.story-editor-page h1,.timeline-editor-page h1{margin:.3rem 0 .65rem;font-size:clamp(2.2rem,5vw,3.55rem)}
.story-search{margin:1rem 0 1.4rem}.story-search label:not(.visually-hidden){display:flex;align-items:center;gap:.5rem;margin:0;white-space:nowrap}.story-search select{width:auto;min-width:130px}
.story-featured{display:grid;grid-template-columns:1.08fr .92fr;overflow:hidden;margin:1.5rem 0 2rem;border:1px solid var(--line);border-radius:24px;background:#fffefa;box-shadow:var(--shadow)}
.story-featured-image{min-height:300px;background:#e9e4da}.story-featured-image img,.story-cover-placeholder{display:grid;width:100%;height:100%;min-height:300px;object-fit:cover;place-items:center;background:linear-gradient(135deg,#e6e9df,#eadfcd);color:#a98c5d;font-size:2.8rem}
.story-featured-copy{align-self:center;padding:clamp(1.4rem,4vw,3rem)}.story-featured-copy h2{font-size:clamp(1.7rem,3.4vw,2.55rem);margin:.7rem 0}.story-featured-copy>p:not(.story-byline){color:#647168}
.status-pill{display:inline-block;padding:.16rem .58rem;border:1px solid #ded4c2;border-radius:999px;color:#79623e;background:#fbf8f1;font-size:.76rem;letter-spacing:.025em}
.story-grid-heading{display:flex;align-items:center;justify-content:space-between;margin:1.5rem 0 .85rem}.story-grid-heading h2{margin:0}.story-grid-heading span{color:#778078;font-size:.9rem}
.story-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.story-card{overflow:hidden;border:1px solid var(--line);border-radius:17px;background:#fffefa;box-shadow:0 7px 20px rgba(39,55,46,.05)}
.story-card-cover{display:block;aspect-ratio:1.55;overflow:hidden;background:#e8e4db}.story-card-cover img{width:100%;height:100%;object-fit:cover}.story-card-cover .story-cover-placeholder{min-height:0;height:100%;font-size:2rem}
.story-card-copy{padding:1rem 1.1rem}.story-card-meta{display:flex;justify-content:space-between;gap:.5rem;color:#987c52;font-size:.77rem}.story-card h3{font-size:1.28rem;margin:.5rem 0}.story-card h3 a{color:var(--green-deep);text-decoration:none}.story-card-copy>p{color:#627067;font-size:.92rem;line-height:1.55;min-height:4.2em}.story-card footer{margin:0;padding:.7rem 0 0;border-top:1px solid var(--line);font-size:.76rem;overflow-wrap:anywhere}
.story-hero{display:grid;grid-template-columns:1.05fr .95fr;min-height:330px;overflow:hidden;border:1px solid var(--line);border-radius:24px;background:#fffefa;box-shadow:var(--shadow)}.story-hero>img,.story-hero>.story-cover-placeholder{display:grid;width:100%;height:100%;min-height:330px;object-fit:cover;place-items:center;background:linear-gradient(135deg,#e6e9df,#eadfcd);color:#a98c5d;font-size:3rem}.story-hero-copy{align-self:center;padding:clamp(1.5rem,4vw,3.2rem)}.story-hero-copy h1{font-size:clamp(2rem,4vw,3.4rem);margin:.4rem 0 .8rem}.story-byline{color:#748078;font-size:.87rem}
.story-detail-tabs,.timeline-view-tabs,.timeline-decade-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:1.2rem 0;padding:.25rem 0;border-bottom:1px solid var(--line)}.story-detail-tabs a,.timeline-view-tabs a,.timeline-decade-tabs a{padding:.5rem .8rem;border-radius:999px;color:#56665d;text-decoration:none}.story-detail-tabs a:hover,.timeline-view-tabs a:hover,.timeline-decade-tabs a:hover,.timeline-view-tabs a.is-active,.timeline-decade-tabs a.is-active{background:var(--sage);color:var(--green-deep)}
.story-detail-layout{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(230px,.8fr);gap:2rem;align-items:start}.story-article{min-width:0}.story-prose{max-width:72ch;padding:1rem 0 1.5rem;color:#34433a;font:1.08rem/1.9 Georgia,"Times New Roman",serif}.story-language-note{font:italic .88rem/1.5 system-ui,sans-serif;color:#8a7a5f}.story-linked-content{margin:1.4rem 0;padding-top:1rem;border-top:1px solid var(--line)}.story-linked-content h2{margin:.25rem 0 .9rem}.story-related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.7rem}.story-related-card{display:flex;align-items:center;gap:.7rem;min-width:0;padding:.65rem;border:1px solid var(--line);border-radius:13px;background:#fffefa;color:var(--green-deep);text-decoration:none}.story-related-card>img,.story-mini-placeholder{flex:0 0 62px;width:62px;height:55px;object-fit:cover;border-radius:8px}.story-mini-placeholder{display:grid;place-items:center;background:#eee8da;color:#ac9060;font-size:1.4rem}.story-related-card span{display:grid;gap:.2rem;min-width:0}.story-related-card strong{overflow-wrap:anywhere}.story-related-card small{color:#78837b}.story-sidebar{position:sticky;top:1rem;display:grid;gap:.8rem}.story-sidebar section,.timeline-related{padding:1rem;border:1px solid var(--line);border-radius:14px;background:#fffefa}.story-sidebar h2,.story-sidebar h3,.timeline-related h2{margin:.25rem 0 .65rem;font-size:1.25rem}.story-sidebar ul{margin:.4rem 0;padding-left:1.1rem}
.story-editor-page,.timeline-editor-page{padding-bottom:3rem}.story-editor-card{margin:1.2rem 0;padding:clamp(1rem,3vw,1.7rem);border:1px solid var(--line);border-radius:18px;background:#fffefa;box-shadow:var(--shadow)}.story-editor-card textarea{line-height:1.65}.story-people-select{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:.2rem .8rem;margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:12px}.story-person-choice{display:flex;align-items:center;gap:.5rem;margin:.2rem 0}.story-person-choice input{width:auto}
.timeline-view-tabs{border:0}.timeline-view-tabs a{border:1px solid var(--line)}.timeline-decade-tabs{border:0;margin-top:-.7rem}.timeline-decade-tabs a{border:1px solid var(--line)}
.family-timeline{position:relative;margin:1rem 0 2.5rem;padding-left:1.5rem}.family-timeline:before{content:"";position:absolute;top:.8rem;bottom:0;left:.43rem;width:2px;background:#d7c8a6}.timeline-year{position:relative;margin:1.7rem 0 .9rem;color:#886f48;font:500 1.65rem Georgia,serif}.timeline-card{position:relative;display:grid;grid-template-columns:135px minmax(0,1fr);gap:1rem;margin:0 0 1.1rem;padding:1rem 1.2rem;border:1px solid var(--line);border-radius:16px;background:#fffefa;box-shadow:0 7px 19px rgba(39,55,46,.045)}.timeline-dot{position:absolute;top:1.35rem;left:-1.52rem;width:14px;height:14px;border:3px solid #f8f5ef;border-radius:50%;background:var(--gold);box-shadow:0 0 0 1px #bda574}.timeline-card-date{padding-top:.2rem;color:#8b744e;font-size:.9rem;font-weight:650}.timeline-card-content h2{margin:.25rem 0 .45rem;font-size:1.4rem}.timeline-card-content h2 a{color:var(--green-deep);text-decoration:none}.timeline-card-content>p:not(.eyebrow){margin:.35rem 0;color:#657168}.timeline-card-albums{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.7rem}.timeline-card-albums a{padding:.22rem .6rem;border:1px solid var(--line);border-radius:999px;color:#53685a;text-decoration:none;font-size:.8rem}
.timeline-event-hero{padding:clamp(1.4rem,4vw,3rem);border:1px solid var(--line);border-radius:24px;background:linear-gradient(120deg,#fffefa,#f1ede3);box-shadow:var(--shadow)}.timeline-event-hero h1{margin:.2rem 0 .65rem}.timeline-date-large{margin:.8rem 0 0;color:#96784a;font:500 1.35rem Georgia,serif}.timeline-byline{color:#778078;font-size:.9rem}.timeline-detail-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,.8fr);gap:1.2rem;margin:1.2rem 0}.timeline-event-story,.timeline-related{padding:1.3rem;border:1px solid var(--line);border-radius:16px;background:#fffefa}.timeline-event-story h2{margin:.25rem 0}.timeline-event-story>p:last-child{font:1.05rem/1.8 Georgia,serif;color:#445248}
@media(max-width:850px){.story-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.story-detail-layout{grid-template-columns:1fr}.story-sidebar{position:static;grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.timeline-detail-grid{grid-template-columns:1fr}}
@media(max-width:620px){.stories-heading{align-items:flex-start;flex-direction:column}.story-featured,.story-hero{grid-template-columns:1fr}.story-featured-image,.story-featured-image img,.story-featured-image .story-cover-placeholder{min-height:220px;max-height:300px}.story-hero>img,.story-hero>.story-cover-placeholder{min-height:220px;max-height:300px}.story-card-grid{grid-template-columns:1fr}.story-search{flex-wrap:wrap}.story-search label:not(.visually-hidden){width:100%;justify-content:space-between}.timeline-card{grid-template-columns:1fr;gap:.2rem}.family-timeline{padding-left:1.2rem}.timeline-dot{left:-1.22rem}.family-timeline:before{left:.28rem}}

/* Private family home dashboard */
.family-dashboard{display:grid;gap:clamp(1.4rem,3vw,2.2rem)}
.dashboard-welcome{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.35fr);gap:1.6rem;align-items:center;padding:clamp(1.5rem,4vw,3.2rem);border:1px solid #e2d8c6;border-radius:28px;background:radial-gradient(circle at 90% 15%,rgba(189,155,104,.18),transparent 32%),linear-gradient(130deg,#fffefa,#f0eee5);box-shadow:var(--shadow)}
.dashboard-welcome h1{margin:.3rem 0 .55rem}.dashboard-welcome-copy>p:not(.eyebrow){max-width:620px;color:#5e6b63;font-size:1.05rem}.dashboard-family-name{margin:.35rem 0;color:#96764d;font:600 1.05rem Georgia,serif;letter-spacing:.04em}
.dashboard-welcome-link{display:grid;justify-items:center;gap:.2rem;padding:1.25rem;border:1px solid rgba(189,155,104,.42);border-radius:20px;background:rgba(255,255,255,.62);color:var(--green-deep);text-align:center;text-decoration:none;transition:transform .2s,box-shadow .2s}.dashboard-welcome-link:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.dashboard-welcome-link>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:.4rem;border:1px solid #d7c4a3;border-radius:50%;color:#a17d4d;font-size:1.8rem}.dashboard-welcome-link strong{font:500 1.25rem Georgia,serif}.dashboard-welcome-link small{color:#68746d}
.dashboard-section{padding:clamp(1.1rem,2.5vw,1.7rem);border:1px solid var(--line);border-radius:20px;background:rgba(255,254,250,.88);box-shadow:0 10px 32px rgba(39,55,46,.045)}.dashboard-section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;margin-bottom:1.1rem}.dashboard-section-heading h2{margin:.15rem 0 0}.dashboard-section-heading .eyebrow{margin:.1rem 0}.dashboard-section-heading>a,.dashboard-side-card>a:not(.button){white-space:nowrap;text-decoration:none;font-weight:650}.dashboard-section-heading>a:hover,.dashboard-side-card>a:hover{text-decoration:underline}
.dashboard-quick-actions{padding:0;border:0;background:transparent;box-shadow:none}.dashboard-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.dashboard-action{display:grid;grid-template-columns:42px minmax(0,1fr) 18px;align-items:center;gap:.7rem;min-height:92px;padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fffefa;color:var(--ink);text-decoration:none;box-shadow:0 6px 22px rgba(39,55,46,.045);transition:transform .18s,border-color .18s,box-shadow .18s}.dashboard-action:hover{transform:translateY(-2px);border-color:#cdb78f;box-shadow:var(--shadow)}.dashboard-action-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--sage);color:var(--green);font-size:1.25rem}.dashboard-action strong,.dashboard-action small{display:block}.dashboard-action strong{font:600 1rem Georgia,serif;color:var(--green-deep)}.dashboard-action small{margin-top:.2rem;color:#6a756e;font-size:.78rem;line-height:1.4}.dashboard-action-arrow{color:#a18459}
.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(250px,.72fr);gap:1.2rem;align-items:start}.dashboard-main-column,.dashboard-side-column{display:grid;gap:1.2rem}.dashboard-highlight-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.85rem}.dashboard-highlight-card{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:15px;background:#fff;color:var(--ink);text-decoration:none;transition:transform .18s,box-shadow .18s}.dashboard-highlight-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.dashboard-highlight-card>img,.dashboard-highlight-mark{display:grid;place-items:center;width:100%;height:145px;object-fit:cover;background:linear-gradient(135deg,#e7eee8,#efe6d7);color:#9a7b50;font-size:2rem}.dashboard-highlight-copy{display:grid;gap:.25rem;padding:.9rem}.dashboard-highlight-copy small{color:#96764d;text-transform:uppercase;letter-spacing:.1em;font-size:.68rem;font-weight:700}.dashboard-highlight-copy strong{color:var(--green-deep);font:500 1.15rem/1.3 Georgia,serif}.dashboard-highlight-copy time{color:#707a72;font-size:.78rem}
.dashboard-empty{padding:1rem 1.1rem;border:1px dashed #d6cbb9;border-radius:13px;background:#fcfbf7;color:#69746d;font-size:.92rem}.dashboard-activity-list{display:grid;gap:0;margin:0;padding:0;list-style:none}.dashboard-activity-list li{display:grid;grid-template-columns:38px minmax(0,1fr);gap:.7rem;padding:.75rem 0;border-bottom:1px solid #eee9df}.dashboard-activity-list li:last-child{border-bottom:0}.dashboard-activity-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f0ecdf;color:#95754c}.dashboard-activity-list a{display:grid;gap:.1rem;color:var(--ink);text-decoration:none}.dashboard-activity-list a:hover strong{text-decoration:underline}.dashboard-activity-list small{color:#96764d;font-size:.75rem}.dashboard-activity-list strong{font-weight:600}.dashboard-activity-list time{color:#778078;font-size:.78rem}
.dashboard-photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem}.dashboard-photo{position:relative;aspect-ratio:1/1;overflow:hidden;border-radius:12px;background:#e7e8df}.dashboard-photo img{width:100%;height:100%;object-fit:cover;transition:transform .25s}.dashboard-photo:hover img{transform:scale(1.05)}.dashboard-photo span{position:absolute;right:0;bottom:0;left:0;padding:.65rem .55rem .45rem;background:linear-gradient(transparent,rgba(22,35,29,.75));color:#fff;font-size:.72rem;line-height:1.3}
.dashboard-side-card{padding:1.15rem 1.2rem;border:1px solid var(--line);border-radius:18px;background:#fffefa;box-shadow:0 8px 28px rgba(39,55,46,.04)}.dashboard-side-card h2{margin:.2rem 0 .6rem;font-size:1.45rem}.dashboard-side-card .eyebrow{margin:.1rem 0}.dashboard-side-card p:not(.eyebrow){margin:.45rem 0;color:#647067;font-size:.9rem;line-height:1.55}.dashboard-memory-card{background:linear-gradient(145deg,#f5f0e5,#fffefa)}.dashboard-discover-card{background:linear-gradient(145deg,#e9efe9,#fffefa)}.dashboard-discover-card .button{margin-top:.45rem}
.dashboard-action:focus-visible,.dashboard-highlight-card:focus-visible,.dashboard-photo:focus-visible,.dashboard-welcome-link:focus-visible{outline:3px solid rgba(189,155,104,.65);outline-offset:3px}
@media(max-width:900px){.dashboard-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-columns{grid-template-columns:1fr}.dashboard-side-column{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.dashboard-welcome{grid-template-columns:1fr}.dashboard-welcome-link{grid-template-columns:54px 1fr;justify-items:start;text-align:left}.dashboard-welcome-link>span{grid-row:span 2;margin:0}.dashboard-action-grid{grid-template-columns:1fr}.dashboard-section-heading{align-items:flex-start;flex-direction:column}.dashboard-side-column{grid-template-columns:1fr}.dashboard-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-highlight-grid{grid-template-columns:1fr 1fr}}
@media(prefers-reduced-motion:reduce){.dashboard-welcome-link,.dashboard-action,.dashboard-highlight-card,.dashboard-photo img{transition:none}.dashboard-welcome-link:hover,.dashboard-action:hover,.dashboard-highlight-card:hover{transform:none}}

/* Keep album pages focused on photographs while limiting preview artwork. */
.album-gallery-image{display:flex;justify-content:center;align-items:center;overflow:hidden}
.album-gallery-image img.album-display-photo{display:block;width:auto;height:auto;max-height:800px;object-fit:contain;background:#f1eee6}
.album-gallery-image img.album-display-photo--portrait{max-width:min(600px,100%);max-height:800px}
.album-gallery-image img.album-display-photo--landscape{max-width:min(800px,100%);max-height:600px}
.album-lightbox figure img.photo-portrait{max-width:min(600px,100%);max-height:800px}
.album-lightbox figure img.photo-landscape{max-width:min(800px,100%);max-height:600px}
.family-collage .collage-cell img{left:50%;right:auto;width:min(100%,300px);max-width:300px;transform:translateX(-50%)}
.album-feature-image,.story-featured-image{display:flex;justify-content:center;align-items:center;overflow:hidden}
.album-feature-image img,.album-card-image img,.story-featured-image img,.story-card-cover img,.dashboard-highlight-card>img,.dashboard-photo img{max-width:300px;margin-inline:auto}
.album-card-image,.story-card-cover{display:flex;justify-content:center;align-items:center}

.profile-title-details{display:block;margin:-.45rem 0 1.1rem;font:400 1rem/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:normal;color:#627068;white-space:normal}.profile-relationship-list{padding-left:1.25rem}.profile-relationship-list li{margin:.45rem 0}.profile-relationship-list li>span{margin-left:.2rem;color:#68746d}
header nav>.nav-dropdown>.nav-dropdown-menu[data-floating="true"],header nav>.account-menu>.account-dropdown[data-floating="true"]{position:fixed!important;margin:0!important;z-index:2000!important}


/* Enforce the requested review, album and homepage image limits over legacy theme rules. */
.admin-review-item{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.admin-review-item>label{display:flex;flex:1;align-items:center;gap:.8rem;min-width:0}
.admin-review-item>label input[type=checkbox]{flex:0 0 auto}
.admin-review-preview{display:block;flex:0 0 auto;width:300px!important;height:auto!important;max-width:min(300px,100%)!important;max-height:400px!important;object-fit:contain;border:1px solid var(--line,#ded8ca);border-radius:12px;background:#f1eee6}
.album-gallery-image img.album-display-photo{width:auto!important;height:auto!important;max-height:800px!important;object-fit:contain!important}
.album-gallery-image img.album-display-photo--portrait,.album-lightbox figure img.photo-portrait{max-width:min(600px,100%)!important;max-height:800px!important}
.album-gallery-image img.album-display-photo--landscape,.album-lightbox figure img.photo-landscape{max-width:min(800px,100%)!important;max-height:600px!important}
.home-family img,.home-family picture img,.album-feature-image img,.album-card-image img,.story-featured-image img,.story-card-cover img{width:auto!important;height:auto!important;max-width:min(300px,100%)!important;object-fit:contain}
.family-collage .collage-cell img{width:min(100%,300px)!important;max-width:300px!important;height:100%!important;object-fit:cover}
.dashboard-highlight-card>img,.dashboard-photo img{max-width:300px!important}
.account-settings-photo{display:block;width:auto;height:auto;max-width:min(300px,100%);max-height:400px;object-fit:contain;border-radius:16px}
.account-settings-avatar{width:112px;height:112px;border:3px solid #dcc99f;border-radius:50%;object-fit:cover}
.account-photo-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.account-photo-item{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem;align-content:start;padding:1rem;border:1px solid var(--line);border-radius:16px;background:#fffefa}
.account-photo-item>img{display:block;width:100%;height:260px;object-fit:contain;background:#f1eee6;border-radius:12px}
.profile-contact{margin-top:1.2rem;padding:1rem 1.15rem;border:1px solid var(--line);border-radius:14px;background:#f7f5ee}
header,header nav{overflow:visible!important}
header nav{position:relative;z-index:100}
header nav>.nav-dropdown>.nav-dropdown-menu[data-floating="true"],header nav>.account-menu>.account-dropdown[data-floating="true"]{position:fixed!important;z-index:2000!important;max-height:calc(100vh - 24px);overflow:auto}
@media(max-width:620px){.admin-review-item{align-items:stretch;flex-direction:column-reverse}.admin-review-preview{align-self:flex-end;max-width:min(300px,100%)!important}}

/* Deployment-proof overrides for the requested display fixes (displayfix3). */
header nav>.nav-dropdown[open]>.nav-dropdown-menu,
header nav>.account-menu[open]>.account-dropdown,
header nav>.nav-dropdown>.nav-dropdown-menu[data-floating="true"],
header nav>.account-menu>.account-dropdown[data-floating="true"]{
  position:fixed!important;z-index:2000!important;margin:0!important;
}
header nav>.account-menu>summary{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:50%!important;overflow:hidden!important}
header nav>.account-menu>summary img.account-avatar-photo,
header nav>.account-menu>summary>.account-avatar{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border-radius:50%!important}
.album-gallery-image img.album-display-photo,
.album-lightbox figure img.photo-portrait,.album-lightbox figure img.photo-landscape{width:auto!important;height:auto!important;max-width:min(800px,100%)!important;max-height:800px!important;object-fit:contain!important}
.admin-review-item>img.admin-review-preview{display:block!important;flex:0 0 auto!important;width:auto!important;height:auto!important;max-width:min(300px,100%)!important;max-height:400px!important;object-fit:contain!important}
.album-card-body h3,.album-feature-copy h2,.story-card-copy h3{display:inline;margin-right:.25em}
.album-card-body h3+p,.album-feature-copy h2+p,.story-card-copy h3+p{display:inline;margin:0;color:#66736b}
.album-card-body h3+p::before,.album-feature-copy h2+p::before,.story-card-copy h3+p::before{content:" ("}
.album-card-body h3+p::after,.album-feature-copy h2+p::after,.story-card-copy h3+p::after{content:")"}

.page-heading-actions{display:flex;gap:.65rem;justify-content:flex-end;align-items:center;flex-wrap:wrap}.people-page:not([data-adding='1']) #personCreatePanel,.relationships-page:not([data-adding='1']) #relationshipCreatePanel{display:none}.relationship-list{display:grid;gap:.75rem;margin-top:1.25rem}.relationship-row{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:0;padding:1rem 1.2rem}.relationship-row span:first-of-type{color:#68746d}.record-photo-collage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:4px;overflow:hidden;background:#e8e5dc}.record-photo-collage img{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.record-photo-collage--split img:first-child{grid-row:span 2}.record-photo-collage--mosaic img:first-child{grid-column:span 2}.record-photo-collage--mosaic img:nth-child(2){grid-row:span 2}.album-card-image .record-photo-collage,.album-feature-image .record-photo-collage,.story-featured-image .record-photo-collage,.story-card-cover .record-photo-collage{width:100%;height:100%;min-height:200px}.album-gallery-image img,.record-photo-item img{display:block;max-width:min(100%,400px);max-height:400px;width:auto;height:auto;object-fit:contain}.record-photo-strip{display:flex;gap:.75rem;overflow-x:auto;padding:.5rem 0 1rem}.record-photo-item{flex:0 0 auto;display:block;max-width:400px}.record-photo-item img{border-radius:14px}.album-lightbox img{max-width:min(800px,88vw);max-height:82vh;object-fit:contain}.album-card-owner,.album-owner{color:#68746d}.album-bulk-toolbar{display:flex;gap:.7rem;align-items:center;flex-wrap:wrap;margin:.8rem 0}.album-card-select{position:absolute;z-index:2;top:.7rem;left:.7rem}.album-card{position:relative}

.album-feature-image,.story-featured-image,.story-card-cover,.album-detail-collage{overflow:hidden}.album-detail-collage{width:min(100%,460px);height:340px;border-radius:22px}.timeline-card-collage{width:min(100%,380px);height:190px;border-radius:14px;margin:.65rem 0}.timeline-byline{color:#68746d;font-size:.86rem}.album-actions form{display:inline-flex;align-items:center}.album-actions{flex-wrap:wrap}.story-manage,.timeline-manage{margin-top:1.2rem}.story-manage details,.timeline-manage details{margin-bottom:.8rem}.story-manage form,.timeline-manage form{margin-top:.8rem}

/* Album collage, individual photo, and slideshow bounds. */
.record-photo-collage{max-width:min(100%,600px);max-height:600px}
.album-feature-image .record-photo-collage,.album-detail-collage{max-width:min(100%,600px);max-height:600px}
.album-gallery-image img.album-display-photo{max-width:min(400px,100%)!important;max-height:400px!important}
.album-lightbox figure img.photo-portrait,.album-lightbox figure img.photo-landscape{max-width:min(800px,88vw)!important;max-height:min(800px,82vh)!important;object-fit:contain!important}
.kinship-dialog{width:min(920px,calc(100vw - 28px));max-width:920px;max-height:min(92vh,1000px);padding:0;border:1px solid #c6b697;border-radius:22px;background:#fffdf8;color:#263b31;box-shadow:0 24px 80px #18291f55}
.kinship-dialog::backdrop{background:#15241dcc;backdrop-filter:blur(3px)}
.kinship-content{padding:clamp(1rem,3vw,2rem);overflow:auto;max-height:92vh}
.kinship-header,.kinship-selected-people,.kinship-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.kinship-header h2{margin:.2rem 0;font-family:Georgia,serif;font-size:clamp(1.5rem,4vw,2.1rem)}
.kinship-close{width:38px;height:38px;border-radius:50%;font-size:1.5rem}
.kinship-selected-people{justify-content:center;margin:1.1rem 0}
.kinship-person{display:flex;align-items:center;gap:.65rem;color:#263b31}
.kinship-photo{display:grid;place-items:center;width:64px;height:64px;overflow:hidden;border:2px solid #bc9b65;border-radius:50%;background:#eee6d6;font:600 1.25rem Georgia,serif}
.kinship-photo img{width:100%;height:100%;object-fit:cover}
.kinship-descriptions,.kinship-common{margin:1rem 0;padding:1rem 1.15rem;border-radius:14px;background:#f4f0e7}
.kinship-descriptions h3,.kinship-common h3{margin:0 0 .5rem;font-family:Georgia,serif}
.kinship-descriptions p,.kinship-common p{margin:.35rem 0;line-height:1.55}
.kinship-marriage-date{color:#80643a}
.kinship-diagram{margin:1rem 0;padding:1rem;overflow-x:auto;border:1px solid #e1d6c1;border-radius:16px;background:#faf8f2}
.kinship-diagram>.kinship-diagram-person{width:max-content;margin:0 auto 1rem}
.kinship-branches{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:1.25rem;position:relative}
.kinship-branch{display:flex;flex-direction:column;align-items:center;min-width:150px}
.kinship-diagram-person{min-width:130px;max-width:220px;justify-content:center;flex-direction:column;text-align:center;padding:.5rem}
.kinship-diagram-person .kinship-photo{width:42px;height:42px;font-size:1rem}
.kinship-diagram-person small{color:#728077}
.kinship-connector{display:block;width:2px;height:20px;background:#58765c}
.kinship-direct-pair{display:flex;align-items:center;justify-content:center;gap:.75rem;min-width:360px}
.kinship-connector--horizontal{width:clamp(30px,10vw,110px);height:3px;background:#b3262d}
.kinship-path-choice{display:block;margin:.5rem 0;padding:.55rem .75rem;text-align:left}
.kinship-actions{justify-content:center;margin-top:1.25rem;padding-top:1rem;border-top:1px solid #e8dfce}
.tree-compare-status{color:#58765c;font-size:.9rem}
@media(max-width:620px){.kinship-branches{grid-template-columns:1fr}.kinship-direct-pair{min-width:0;gap:.3rem}.kinship-direct-pair .kinship-diagram-person{min-width:95px}.kinship-photo{width:50px;height:50px}}

/* Story and album photo previews: fixed display bounds and shared slideshow behavior. */
.story-hero{grid-template-columns:minmax(0,400px) minmax(0,1fr);align-items:stretch}
.story-hero-photo{display:flex;align-items:center;justify-content:center;min-width:0;min-height:300px;max-width:400px;max-height:400px;overflow:hidden;background:#e9e4da}
.story-detail-collage{width:min(100%,400px);height:300px;max-width:400px!important;max-height:400px!important}
.story-featured-image .record-photo-collage.story-featured-collage{width:min(100%,400px);height:300px;min-height:0;max-width:400px!important;max-height:400px!important}
.album-detail-collage{width:min(100%,300px)!important;height:300px!important;max-width:300px!important;max-height:300px!important;border-radius:18px}
.record-collage-photo{display:contents}
.record-photo-slideshow-links{display:none!important}
.story-hero-photo .record-photo-collage-placeholder{display:grid;width:100%;height:300px;place-items:center}
@media(max-width:620px){.story-hero{grid-template-columns:1fr}.story-hero-photo{width:100%;max-width:400px;margin-inline:auto}.album-detail-collage{width:min(100%,300px)!important;height:300px!important}}
.story-featured-image .record-photo-collage.story-featured-collage img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:cover!important}
.story-hero-photo .story-detail-collage img{width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:cover}
.album-detail-collage img{width:100%;height:100%;max-width:none;max-height:none;margin:0;object-fit:cover}

/* Equal, uncropped photo previews and event photos in the timeline list. */
.record-photo-collage img{object-fit:contain!important;background:#f5f2eb}
.record-photo-collage--count-2{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:1fr!important}
.record-photo-collage--count-2 img{grid-column:auto!important;grid-row:auto!important}
.album-detail-collage.record-photo-collage--count-2{height:150px!important;grid-template-rows:1fr!important}
.story-detail-collage.record-photo-collage--count-2,.story-featured-collage.record-photo-collage--count-2{height:200px!important;grid-template-rows:1fr!important}
.album-detail-collage img,.story-detail-collage img,.story-featured-collage img{object-fit:contain!important;background:#f5f2eb}
.timeline-card-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,300px);gap:.15rem 1rem;align-items:start}
.timeline-card-text,.timeline-card-content>.timeline-card-albums{grid-column:1}
.timeline-card-photos{grid-column:2;grid-row:1/span 5;align-self:center;width:100%;max-width:300px;max-height:200px;overflow:hidden;border-radius:12px;background:#f5f2eb}
.timeline-card-collage{width:100%;height:200px!important;max-height:200px;margin:0!important}
.timeline-card-collage img{max-height:200px;object-fit:contain!important}
.album-lightbox .lightbox-counter{position:absolute;top:1.05rem;left:50%;transform:translateX(-50%);margin:0;color:#fff;font-variant-numeric:tabular-nums}
.album-lightbox .lightbox-play{top:auto;right:50%;bottom:.7rem;width:auto;height:auto;min-height:38px;padding:.35rem .9rem;border-radius:999px;transform:translateX(50%);font-size:.9rem}
.album-lightbox figure{height:100%;padding-bottom:2rem;box-sizing:border-box}
.album-lightbox figcaption{display:grid;gap:.2rem}
.album-lightbox figcaption time{color:#d8d4cb;font-size:.88rem}
.album-lightbox button:focus-visible{outline:3px solid #f0c877;outline-offset:3px}
@media(max-width:620px){.timeline-card-content{grid-template-columns:1fr}.timeline-card-text,.timeline-card-content>.timeline-card-albums,.timeline-card-photos{grid-column:1;grid-row:auto}.timeline-card-photos{max-width:100%;margin-top:.6rem}.album-detail-collage.record-photo-collage--count-2{height:150px!important}.story-detail-collage.record-photo-collage--count-2{height:200px!important}}
/* Phase 2: everyday family engagement */
.community-page{max-width:1040px;margin:0 auto}.community-compose{margin:1.5rem 0 2rem}.community-update,.community-event{background:#fffdf8;border:1px solid #e3dccd;border-radius:20px;padding:1.25rem;margin:1rem 0;box-shadow:0 8px 24px rgba(49,44,34,.06)}.community-update>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem}.community-update>header strong{color:#293d31}.community-update time{display:block;color:#807969;font-size:.85rem;margin-top:.2rem}.community-update-body{white-space:normal;line-height:1.7;margin:1rem 0}.community-update-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.65rem;margin:1rem 0}.community-update-photos a{display:block;max-height:330px;border-radius:14px;overflow:hidden;background:#f0ece3}.community-update-photos img{display:block;width:100%;height:100%;max-height:330px;object-fit:contain}.community-actions{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin:.75rem 0}.community-actions form{display:flex;align-items:center;gap:.5rem}.community-actions span{color:#766d5d;font-size:.9rem}.community-comments{border-top:1px solid #ece6da;margin-top:1rem;padding-top:.4rem}.community-comments p{margin:.55rem 0;line-height:1.55}.community-comment-form{display:flex;align-items:end;gap:.6rem}.community-comment-form label{flex:1}.community-comment-form input{margin-top:.3rem}.community-manage{margin-top:1rem;padding-top:.8rem;border-top:1px solid #ece6da}.community-manage form{margin:.8rem 0}.community-event{display:grid;grid-template-columns:minmax(180px,300px) 1fr;gap:1.25rem;align-items:start}.community-event-cover{width:100%;max-height:300px;object-fit:contain;background:#f0ece3;border-radius:14px}.community-event-copy h2{margin:.35rem 0}.community-event-counts{color:#615b4e;font-size:.95rem}.community-celebrations,.dashboard-celebrations{list-style:none;padding:0;margin:.7rem 0}.community-celebrations li,.dashboard-celebrations li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem 0;border-bottom:1px solid #e8e1d4}.dashboard-celebrations li span{display:grid;gap:.2rem}.dashboard-celebrations small{color:#746d5f}.community-compose input[type=file]{max-width:100%}.community-page .album-empty{margin:2rem 0}
@media(max-width:680px){.community-event{grid-template-columns:1fr}.community-event-cover{max-height:240px}.community-comment-form{align-items:stretch}.community-comment-form button{align-self:end}.community-update,.community-event{padding:1rem;border-radius:16px}.community-update-photos{grid-template-columns:repeat(2,minmax(0,1fr))}}

.community-report-form{display:flex;align-items:end;gap:.6rem;flex-wrap:wrap;margin-top:.8rem}.community-report-form label{min-width:min(100%,220px)}.community-moderation{margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #e3dccd;border-radius:14px;background:#fffdf8}.community-report{padding:.7rem 0;border-top:1px solid #ece6da}.community-report p{margin:.35rem 0}.community-report small{color:#746d5f}

.community-greeting-card{border:2px solid #c8a46a;background:linear-gradient(145deg,#fffaf0,#fffdf8 62%,#f7ead2);box-shadow:0 10px 30px rgba(130,92,38,.12)}.community-greeting-card--floral{background:radial-gradient(ellipse at top left,#f4dce6 0,transparent 45%),linear-gradient(145deg,#fff8fb,#fffdf8 68%,#f5e9ef);border-color:#c89caf}.community-greeting-card--celebration{background:radial-gradient(ellipse at top right,#f6dfb8 0,transparent 45%),linear-gradient(145deg,#fff8ea,#fffdf8 68%,#f2e5c9);border-color:#caa14f}.community-greeting-card .community-update-body{padding:1rem 1.2rem;border-left:2px solid currentColor;font-family:Georgia,serif;font-size:1.1rem;color:#4d473c}.community-greeting-card .community-update-photos{padding:.5rem}
.community-compose textarea{font-size:1.08rem;line-height:1.6;min-height:7rem}.community-compose label,.community-comment-form label{font-weight:600}.community-category{display:inline-block;margin:.7rem 0;padding:.3rem .7rem;border-radius:999px;background:#edf1e8;color:#405b45;font-size:.85rem;font-weight:700}.community-album-link{margin:.8rem 0;padding:.75rem 1rem;border-radius:12px;background:#f3f0e8}.community-album-link a{color:#405b45;font-weight:650;text-decoration:none}.community-comment{margin:.65rem 0 0;padding:.55rem .7rem .2rem;border-left:2px solid #d7cfbf;margin-left:min(calc(var(--comment-depth,0)*1.2rem),4.8rem);background:rgba(249,247,241,.65);border-radius:0 10px 10px 0}.community-comment>.community-comment-form{margin:.2rem 0 .5rem}.community-comment>.community-comment-form input{min-height:2.6rem}.community-comment .community-comment{background:#fffdf9}

.community-compose textarea{font-size:1.08rem;line-height:1.6;min-height:7rem}.community-compose label,.community-comment-form label{font-weight:600}.community-category{display:inline-block;margin:.7rem 0;padding:.3rem .7rem;border-radius:999px;background:#edf1e8;color:#405b45;font-size:.85rem;font-weight:700}.community-album-link{margin:.8rem 0;padding:.75rem 1rem;border-radius:12px;background:#f3f0e8}.community-album-link a{color:#405b45;font-weight:650;text-decoration:none}.community-comment{margin:.65rem 0 0;padding:.55rem .7rem .2rem;border-left:2px solid #d7cfbf;background:rgba(249,247,241,.65);border-radius:0 10px 10px 0}.community-comment>.community-comment-form{margin:.2rem 0 .5rem}.community-comment>.community-comment-form input{min-height:2.6rem}.community-comment .community-comment{background:#fffdf9}

.community-discovery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem;margin:1.2rem 0 2rem}.community-discovery-card{background:#fffdf8;border:1px solid #e3dccd;border-radius:18px;padding:1rem 1.1rem;box-shadow:0 5px 18px rgba(49,44,34,.045)}.community-discovery-card h2{font-size:1.15rem;margin:.25rem 0 .7rem;color:#293d31}.community-discovery-card ul{list-style:none;padding:0;margin:.4rem 0}.community-discovery-card li{display:grid;gap:.15rem;padding:.55rem 0;border-bottom:1px solid #eee8dd}.community-discovery-card li a{color:inherit;text-decoration:none}.community-discovery-card li span,.community-discovery-card>p:not(.eyebrow){color:#766d5d;font-size:.92rem}.community-discovery-card> a{display:inline-block;margin-top:.55rem;color:#405b45;font-weight:650}.community-linked-items{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:.7rem;margin:.8rem 0}.community-linked-card{display:grid;gap:.3rem;padding:.8rem 1rem;border-radius:13px;background:#f3f0e8;color:#293d31;text-decoration:none}.community-linked-card small{color:#766d5d}.community-linked-card strong{line-height:1.35}.community-linked-card span{color:#615b4e;font-size:.93rem;line-height:1.45}

/* Phase 3: family Facebook link and explicitly public share cards */
.community-facebook-group{display:flex;gap:1.5rem;align-items:flex-start;justify-content:space-between;margin:1.5rem 0;padding:1.5rem;border:1px solid #d7c9ad;border-radius:18px;background:linear-gradient(135deg,#fffdf8,#f2f4ef)}.community-facebook-group>div:first-child{max-width:58rem}.community-facebook-group h2{margin:.2rem 0 .5rem}.community-facebook-group p{line-height:1.65}.community-facebook-settings{min-width:min(22rem,100%);padding:1rem;background:#fff;border:1px solid #e2e4dd;border-radius:14px}.community-facebook-settings summary{cursor:pointer;font-weight:650}.community-facebook-settings form{display:grid;gap:.8rem;margin-top:1rem}.community-linked-card-wrap{display:grid;gap:.45rem;min-width:0}.community-facebook-share{display:inline-flex;width:max-content;max-width:100%;padding:.35rem .6rem;border-radius:999px;color:#345b45;background:#edf3ed;font-size:.82rem;font-weight:650;text-decoration:none}.community-facebook-share:hover{text-decoration:underline}.community-public-share{max-width:760px;margin:clamp(2rem,8vw,6rem) auto;padding:1rem}.community-public-share .panel{padding:clamp(1.5rem,5vw,3rem);border:1px solid #ded3bf;border-radius:24px;background:#fffdf8}.community-public-share h1{margin:.25rem 0 1rem}.community-public-share p{line-height:1.7}@media(max-width:760px){.community-facebook-group{display:grid}.community-facebook-settings{width:100%;box-sizing:border-box}}

/* Shared two-photo preview treatment for album, story, and timeline previews. */
.record-photo-pair-preview{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:6px!important;box-sizing:border-box;width:min(100%,600px)!important;height:300px!important;min-height:0!important;max-width:600px!important;max-height:600px!important;margin-inline:auto;overflow:hidden;border-radius:16px;background:#f5f2eb}.record-photo-pair-preview img{display:block!important;grid-column:auto!important;grid-row:auto!important;width:100%!important;height:100%!important;min-height:0!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;background:#f5f2eb}.record-photo-pair-preview .record-collage-photo{display:contents}.album-feature-image .record-photo-pair-preview,.album-card-image .record-photo-pair-preview,.story-featured-image .record-photo-pair-preview,.story-card-cover .record-photo-pair-preview{width:min(100%,600px)!important;height:300px!important}.album-detail-collage.record-photo-pair-preview{width:min(100%,600px)!important;height:300px!important;max-width:600px!important;max-height:600px!important;border-radius:16px}.story-hero-photo{max-width:min(100%,600px)!important}.story-detail-collage.record-photo-pair-preview{width:min(100%,600px)!important;height:300px!important;max-width:600px!important;max-height:600px!important}.timeline-card-content{grid-template-columns:minmax(0,1fr) minmax(240px,600px)}.timeline-card-photos{max-width:600px!important;max-height:300px!important}.timeline-card-collage.record-photo-pair-preview{width:min(100%,600px)!important;height:300px!important;max-width:600px!important;max-height:600px!important}.timeline-card-collage.record-photo-pair-preview img{max-height:100%!important}
@media(max-width:620px){.record-photo-pair-preview{height:240px!important}.timeline-card-content{grid-template-columns:1fr}.timeline-card-photos{max-width:100%!important;max-height:240px!important}.timeline-card-collage.record-photo-pair-preview{height:240px!important}}

/* Keep equal-height paired images uncropped despite older detail-page rules. */
.story-hero{grid-template-columns:minmax(0,600px) minmax(0,1fr)}.story-hero-photo .story-detail-collage.record-photo-pair-preview img,.story-featured-image .record-photo-collage.record-photo-pair-preview img{object-fit:contain!important}
@media(max-width:620px){.story-hero{grid-template-columns:1fr}}

.record-photo-pair-preview.record-photo-collage--count-1{grid-template-columns:1fr!important}.timeline-detail-collage{width:min(100%,600px)!important;height:300px!important;max-width:600px!important;max-height:600px!important}

.story-featured-image .record-photo-collage.story-featured-collage.record-photo-pair-preview{width:min(100%,600px)!important;height:300px!important;min-height:0!important;max-width:600px!important;max-height:600px!important}

/* Phase 3: shared orientation, keyboard access, and comfortable touch targets. */
.person-profile-page{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.15rem 1rem;max-width:1040px;margin:0 auto}
.person-profile-page>.album-back,.person-profile-page>.person-profile-heading,.person-profile-page>.person-profile-bio{grid-column:1/-1}
.person-profile-heading{display:flex;align-items:center;min-height:130px;margin:.1rem 0 .8rem;padding:clamp(1.3rem,4vw,2.4rem);border:1px solid #d9cbb1;border-radius:22px;background:radial-gradient(circle at 92% 14%,rgba(189,155,104,.2),transparent 30%),linear-gradient(130deg,#fffefa,#f0eee5);color:var(--ink);box-shadow:var(--shadow)}
.person-profile-heading .eyebrow{margin:.1rem 0 .3rem}.person-profile-heading h1{margin:0;font-size:clamp(2rem,5vw,3.3rem);overflow-wrap:anywhere}.person-profile-heading .profile-title-details{margin:.45rem 0 0;color:#647067;font:400 1rem/1.5 system-ui,sans-serif}
.person-profile-page>.panel{min-width:0;margin:.5rem 0;padding:clamp(1rem,2.5vw,1.45rem)}.person-profile-page>.person-profile-bio{padding:clamp(1.2rem,3vw,1.8rem)}
.person-profile-bio .profile-gallery>img:first-child{width:210px;height:280px;border-radius:20px}.person-profile-bio .profile-gallery>img:not(:first-child){width:128px;height:171px}
.person-profile-page>.panel h2{font-size:clamp(1.3rem,2.6vw,1.7rem)}.person-profile-page .profile-relationship-list{display:grid;gap:.45rem;padding-left:1.15rem}.person-profile-page .profile-relationship-list li{padding:.35rem .2rem;border-bottom:1px solid #eee8dd;line-height:1.5}.person-profile-page .profile-relationship-list a{font-weight:650;text-decoration:none}.person-profile-page .profile-relationship-list a:hover{text-decoration:underline}
.person-profile-page .profile-contact{margin:1.2rem 0;padding:1rem 1.1rem;border:1px solid #e3dccd;border-radius:14px;background:#f7f5ef}
.skip-link{position:fixed;z-index:2000;top:.65rem;left:.65rem;transform:translateY(-180%);padding:.7rem 1rem;border-radius:10px;background:#fffefa;color:var(--green-deep);box-shadow:var(--shadow);font-weight:700}
.skip-link:focus{transform:translateY(0);outline:3px solid #d5b679;outline-offset:2px}
header nav a[aria-current="page"],header nav>.nav-dropdown>summary[aria-current="page"]{background:rgba(255,255,255,.15);box-shadow:inset 0 -2px 0 #d9bd87;color:#fff}
header nav a:focus-visible,header nav summary:focus-visible,.account-menu>summary:focus-visible{outline:3px solid #e8cb91;outline-offset:2px}
#main-content:focus{outline:none}
@media(max-width:800px){header nav{gap:.25rem}header nav>a,header nav>.nav-dropdown>summary{min-height:44px;display:inline-flex;align-items:center;justify-content:center}main{scroll-margin-top:1rem}}
@media(max-width:700px){.person-profile-page{grid-template-columns:1fr;gap:0}.person-profile-page>.album-back,.person-profile-page>.person-profile-heading,.person-profile-page>.person-profile-bio{grid-column:1}.person-profile-page>.panel{margin:.5rem 0}.person-profile-bio .profile-gallery>img:first-child{width:min(210px,55vw);height:auto;aspect-ratio:3/4}.person-profile-bio .profile-gallery>img:not(:first-child){width:112px;height:149px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button,.button,nav a{transition:none}}
.dashboard-highlight-card>img{width:100%;height:145px;max-width:300px!important;object-fit:contain!important;background:#f1eee7}

.dashboard-welcome-feature{display:grid;gap:.65rem;min-width:0;padding:.65rem;border:1px solid rgba(189,155,104,.42);border-radius:20px;background:rgba(255,255,255,.68)}.dashboard-mini-slideshow{overflow:hidden;border-radius:14px;background:#e9e6de}.dashboard-mini-slides{position:relative;aspect-ratio:16/10;min-height:150px}.dashboard-mini-slide{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;overflow:hidden;color:var(--green-deep);text-decoration:none;background:#f2f0e9}.dashboard-mini-slide[hidden]{display:none}.dashboard-mini-slide img{width:100%;height:100%;min-height:0;object-fit:contain;background:#f1eee7}.dashboard-mini-caption{display:block;padding:.4rem .6rem;background:rgba(255,254,250,.92);font-size:.78rem;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-mini-controls{display:flex;align-items:center;justify-content:center;gap:.4rem;padding:.4rem}.dashboard-mini-controls button{min-width:36px;min-height:34px;padding:.25rem .55rem;font-size:.85rem}.dashboard-mini-controls [data-slide-counter]{min-width:3.5rem;text-align:center;font-size:.8rem;color:#53645a}.dashboard-welcome-link{display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.55rem;border:0;background:transparent;box-shadow:none}.dashboard-welcome-link:hover{background:rgba(232,239,233,.7);box-shadow:none}.dashboard-welcome-link>svg{flex:0 0 56px;width:56px;height:56px;color:var(--green);overflow:visible}.dashboard-welcome-link>span{display:grid;place-items:start;width:auto;height:auto;margin:0;border:0;border-radius:0;color:inherit;font-size:inherit;gap:.15rem}.dashboard-welcome-link>span{display:grid;gap:.15rem}.dashboard-mini-empty{display:grid;place-items:center;min-height:170px;padding:1rem;text-align:center;color:#68746d;background:#f1eee7;border-radius:14px}@media(max-width:620px){.dashboard-welcome-feature{grid-template-columns:1fr}.dashboard-welcome-link{justify-content:flex-start;text-align:left}.dashboard-welcome-link>svg{width:48px;height:48px;flex-basis:48px}}
.home-hero{position:relative;width:100vw;min-height:clamp(420px,56vw,680px);margin:0 0 2.5rem calc(50% - 50vw);overflow:hidden;background:#29473d;isolation:isolate;color:#fff}.home-hero-slides,.home-hero-empty{position:absolute;inset:0;background:linear-gradient(135deg,#29473d,#8e795c)}.home-hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1s ease-in-out;pointer-events:none}.home-hero-slide.is-active{opacity:1}.home-hero-slide img{display:block;width:100%;height:100%;object-fit:cover;object-position:var(--focal-x,50%) var(--focal-y,50%)}.home-hero-shade{position:absolute;inset:0;display:flex;align-items:center;padding:clamp(1.5rem,7vw,6rem);background:linear-gradient(90deg,rgba(17,31,25,.82) 0%,rgba(17,31,25,.62) 40%,rgba(17,31,25,.12) 78%,rgba(17,31,25,.08) 100%),linear-gradient(0deg,rgba(17,31,25,.34),transparent 45%)}.home-hero-copy{max-width:660px;color:#fff}.home-hero-copy .eyebrow{color:#ead7b5}.home-hero-copy h1{margin:.45rem 0 1rem;color:#fff;font-size:clamp(2.7rem,6vw,5.4rem);line-height:1.03;text-wrap:balance}.home-hero-copy>p:not(.eyebrow){max-width:560px;color:rgba(255,255,255,.91);font-size:clamp(1.03rem,1.5vw,1.24rem);line-height:1.65}.home-hero .button.secondary{border-color:rgba(255,255,255,.75);color:#fff;background:rgba(25,42,34,.3)}.home-hero-controls{position:absolute;right:clamp(1rem,4vw,3.5rem);bottom:clamp(1rem,3vw,2.2rem);z-index:2;display:flex;align-items:center;gap:.5rem;padding:.45rem;border:1px solid rgba(255,255,255,.25);border-radius:999px;background:rgba(18,31,25,.55);backdrop-filter:blur(12px)}.home-hero-controls button{min-width:42px;min-height:42px;padding:.4rem .8rem;border-color:rgba(255,255,255,.24);background:rgba(255,255,255,.1);box-shadow:none}.home-hero-controls button:hover{background:rgba(255,255,255,.22)}.home-hero-controls [data-hero-counter]{min-width:3.6rem;text-align:center;color:#fff;font-variant-numeric:tabular-nums;font-size:.9rem}.home-hero:focus-visible{outline:3px solid #d8bd8e;outline-offset:-5px}.hero-photo-editor{min-width:0;border:1px solid #ded8cc;border-radius:12px;padding:.65rem .85rem}.hero-photo-editor legend{padding:0 .3rem;color:var(--green-deep);font-weight:650}.hero-photo-editor label{margin:.45rem 0}.hero-photo-editor input[type=range]{padding:0;accent-color:var(--green)}.hero-photo-editor output{float:right;color:#647067;font-weight:500}.banner-editor form{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-editor form>button{grid-column:1/-1;justify-self:start}.home-hero-empty+.home-hero-shade{background:linear-gradient(105deg,rgba(25,45,36,.92),rgba(48,68,53,.65))}@media(max-width:700px){.home-hero{min-height:clamp(500px,78svh,680px);margin-bottom:1.8rem}.home-hero-shade{align-items:flex-end;padding:1.5rem 1.1rem 6.2rem;background:linear-gradient(0deg,rgba(17,31,25,.86) 0%,rgba(17,31,25,.62) 46%,rgba(17,31,25,.12) 100%)}.home-hero-copy h1{font-size:clamp(2.45rem,11vw,3.8rem)}.home-hero-copy>p:not(.eyebrow){font-size:1rem}.home-hero-controls{right:1rem;bottom:1rem;left:1rem;justify-content:center}.home-hero-controls button{min-width:44px;min-height:44px}.banner-editor form{grid-template-columns:1fr}.banner-editor form>button{grid-column:auto}}@media(prefers-reduced-motion:reduce){.home-hero-slide{transition:none}}

.tree-stats-popover,.tree-relationship-popover{z-index:2147483000!important}.public-person-profile .person-profile-hero{display:flex;align-items:center;gap:1.25rem}.public-person-photo{width:150px;height:190px;object-fit:cover;border-radius:18px;border:2px solid #c8a46a}.public-album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;margin:1rem 0}.public-album-grid figure{margin:0}.public-album-grid img{display:block;width:100%;max-width:400px;height:auto;max-height:400px;object-fit:contain;border-radius:14px}.public-album-grid figcaption{margin:.4rem;color:#68746d}@media(max-width:600px){.public-person-profile .person-profile-hero{align-items:flex-start;flex-direction:column}.public-person-photo{width:120px;height:150px}}
.dashboard-welcome-link>.family-tree-button-icon{flex:0 0 56px;width:56px;height:56px;object-fit:contain;display:block}@media(max-width:620px){.dashboard-welcome-link>.family-tree-button-icon{flex-basis:48px;width:48px;height:48px}}
.dashboard-welcome{grid-template-columns:minmax(0,1fr) minmax(252px,.5fr)}.dashboard-welcome-link{justify-content:center;text-align:center}.dashboard-welcome-link>span{flex:1;place-items:center;text-align:center}.dashboard-welcome-link strong,.dashboard-welcome-link small{white-space:nowrap}@media(max-width:620px){.dashboard-welcome{grid-template-columns:1fr}.dashboard-welcome-link{justify-content:center;text-align:center}}
header{z-index:2500!important}header nav{z-index:2501!important}header nav>.nav-dropdown>.nav-dropdown-menu,header nav>.account-menu>.account-dropdown,header nav>.nav-dropdown>.nav-dropdown-menu[data-floating="true"],header nav>.account-menu>.account-dropdown[data-floating="true"]{z-index:2502!important}.skip-link{z-index:3000!important}
/* Keep the full navigation bar available while scrolling and above all page content. */
header{position:sticky!important;top:0;z-index:2147483600!important;overflow:visible!important}
header nav{position:relative;z-index:2147483601!important;overflow:visible!important}
header nav>.nav-dropdown>.nav-dropdown-menu[data-floating="true"],header nav>.account-menu>.account-dropdown[data-floating="true"]{position:fixed!important;z-index:2147483602!important}
/* Keep the profile title card in the page layer, below the sticky header and its menus. */
main#main-content .person-profile-page>.person-profile-heading{position:relative!important;z-index:0!important}

/* Georgia on some Windows/browser combinations places Vietnamese tone marks poorly. */
html[lang='vi'] h1,html[lang='vi'] h2,html[lang='vi'] h3{font-family:'Segoe UI',Arial,sans-serif}


.inline-check{display:flex;align-items:center;gap:.55rem}.inline-check input{width:auto;min-width:1rem}

/* Disabled death-date controls remain legible but are clearly unavailable. */
#newDeathFields:disabled,#editDeathFields:disabled{opacity:.34;filter:grayscale(.6);background:#efeee9;border-color:#c9c6bd}
#newDeathFields input:disabled,#newDeathFields select:disabled,#editDeathFields input:disabled,#editDeathFields select:disabled{opacity:.42;background:#e4e2dc;color:#777;cursor:not-allowed}
.zoom-card-name-link{cursor:pointer;pointer-events:visiblePainted}.zoom-card-name-link:hover .zoom-card-name,.zoom-card-name-link:focus .zoom-card-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
#familyGraph[data-public="1"] .tree-node{cursor:default!important}

.zoom-card-edit-link{cursor:pointer;pointer-events:visiblePainted}.zoom-card-edit{font:400 8px system-ui,sans-serif;fill:#bd9b68!important;stroke:none;color:#bd9b68;text-decoration:underline;text-underline-offset:2px}.tree-node.zoomed .tree-zoom-card{cursor:grab;touch-action:none}.tree-node.zoomed .tree-zoom-card:active{cursor:grabbing}.tree-scroll.tree-profile-expanded .tree-node.dim{opacity:.32}.tree-scroll.tree-profile-expanded #treeEdges .dim{opacity:.30}

/* Public member pages and their self-service front-page editor */
.member-public-hero{min-height:clamp(360px,44vw,560px);margin-bottom:2rem}.member-public-hero .home-hero-copy h1{max-width:18ch}.member-public-role{font-size:1.15rem;font-weight:600;letter-spacing:.04em}.member-public-hero .home-hero-slides:empty{background:linear-gradient(135deg,#203c33 0%,#53695a 52%,#9e835b 100%)}
.public-author-page{width:min(1120px,calc(100% - 2rem));margin:0 auto 3rem;display:grid;gap:1.25rem}.public-author-page .panel{border:1px solid rgba(155,126,79,.2);border-radius:20px;background:#fffefa;box-shadow:0 12px 34px rgba(33,48,40,.07);padding:clamp(1.2rem,3vw,2rem)}.public-author-intro{font-size:1.05rem;line-height:1.8}.member-public-bio{white-space:normal;line-height:1.85}.member-public-detail{margin:.7rem 0;color:#536258}.profile-relationship-list{display:grid;gap:.65rem;padding:0;list-style:none}.profile-relationship-list li{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 0;border-bottom:1px solid #e9e5da}.public-author-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:1rem}.public-author-card{padding:1.25rem;border:1px solid #e8e1d3;border-radius:16px;background:linear-gradient(145deg,#fffefa,#f6f3ec)}.public-author-card h3{margin:.2rem 0 .6rem}.public-author-card>p:not(.eyebrow){line-height:1.65;color:#526057}.public-author-timeline{list-style:none;border-left:2px solid #c3a567;margin:1rem 0 0 1rem;padding:0 0 0 1.5rem}.public-author-timeline li{position:relative;padding:0 0 1.5rem}.public-author-timeline .timeline-dot{position:absolute;width:11px;height:11px;border-radius:50%;background:#c3a567;left:-1.93rem;top:.3rem}.public-author-timeline time{color:#8b7148;font-size:.9rem}.public-author-timeline h3{margin:.25rem 0}.member-front-settings{max-width:1000px;margin:1.5rem auto}.member-front-settings fieldset{margin:1.5rem 0;padding:1rem 1.2rem;border:1px solid #dcd5c5;border-radius:14px}.member-front-settings legend{padding:0 .5rem;font-weight:700;color:#29473d}.member-setting-check{display:flex;align-items:center;gap:.65rem;margin:.7rem 0}.member-setting-check input{width:auto}.member-slug-field{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem;margin-top:.5rem;padding:.35rem .6rem;border:1px solid #cfc8b9;border-radius:10px;background:#fff}.member-slug-field>span{color:#68736c;font-size:.95rem}.member-slug-field input{flex:1;min-width:12rem;margin:0;border:0!important;box-shadow:none!important}.member-banner-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}.member-banner-setting{padding:.8rem;border:1px solid #e4dece;border-radius:12px;background:#fffefa}.member-banner-setting img{display:block;width:100%;height:130px;object-fit:cover;border-radius:8px;margin-bottom:.6rem}.member-banner-setting label{display:block}.member-front-settings-link{margin-top:1rem}.member-front-settings-link .button{display:inline-flex}.member-public-hero .home-hero-controls{z-index:3}
@media(max-width:640px){.member-public-hero{min-height:380px}.public-author-page{width:calc(100% - 1rem)}.profile-relationship-list li{display:grid;gap:.2rem}.member-slug-field{align-items:flex-start}.member-slug-field>span{width:100%}.member-banner-settings-grid{grid-template-columns:1fr}}
/* Personal member homepage themes, showcase, and contact dialog */
.member-homepage-theme{--member-peach:#efd3b1;--member-blue:#abc0ba;--member-sage:#d5e2d7;--member-warm-ink:#865b38;--member-line:#d3dfd7;background:var(--member-bg,#f4f3ee);color:var(--member-ink,#263630);padding-bottom:clamp(2rem,5vw,4rem)}
.member-homepage-theme .panel{background:var(--member-surface,#fffefa);color:var(--member-ink,#263630);border-color:color-mix(in srgb,var(--member-accent,#29473d) 20%,transparent)}
.member-homepage-theme a:not(.button){color:var(--member-accent,#29473d)}
.member-homepage-theme .button,.member-homepage-theme button:not(.lightbox-close){background:var(--member-accent,#29473d);border-color:var(--member-accent,#29473d);color:#fff}
.member-homepage-content{padding-top:clamp(1rem,3vw,2.5rem)}
.member-album-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:.8rem;margin:1rem 0}
.member-album-thumb{display:block;overflow:hidden;border-radius:1rem;background:#e9e7df;aspect-ratio:4/3}
.member-album-thumb img{width:100%;height:100%;object-fit:contain}
.member-album-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.member-feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin-top:1rem}
.member-feature-grid article,.member-portfolio-admin{padding:1rem;border:1px solid rgba(38,54,48,.14);border-radius:1rem;background:var(--member-surface,#fffefa)}
.member-portfolio-grid img{width:100%;max-height:360px;object-fit:contain;border-radius:.8rem;background:rgba(0,0,0,.04)}
.member-contact-dialog{width:min(92vw,560px);max-height:min(90vh,760px);border:1px solid rgba(189,155,104,.5);border-radius:1.25rem;padding:1.5rem;background:#fffefa;color:#263630;box-shadow:0 24px 80px rgba(20,35,29,.35)}
.member-contact-dialog::backdrop{background:rgba(13,23,20,.66);backdrop-filter:blur(3px)}
.member-contact-dialog form{display:grid;gap:.9rem;padding-top:1.5rem}
.member-contact-dialog label,.member-portfolio-admin label{display:grid;gap:.35rem;font-weight:600}
.member-contact-dialog input,.member-contact-dialog textarea,.member-portfolio-admin input,.member-portfolio-admin textarea{width:100%;padding:.7rem .8rem;border:1px solid #cfc9bc;border-radius:.65rem;font:inherit}
.member-contact-dialog textarea,.member-portfolio-admin textarea{min-height:7rem;resize:vertical}
.member-contact-dialog .lightbox-close{position:absolute;right:.7rem;top:.7rem}
.member-honeypot{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.member-experience-settings fieldset{margin:1.5rem 0;padding:1rem;border:1px solid rgba(38,54,48,.18);border-radius:1rem}
.member-palette-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.7rem;margin-top:.7rem}
.member-palette-option{display:block;cursor:pointer}.member-palette-option input{position:absolute;opacity:0}
.member-palette-swatch{display:grid;gap:.3rem;min-height:84px;padding:.85rem;border:2px solid transparent;border-radius:.8rem;background:var(--palette-bg,#f4f3ee);color:var(--palette-ink,#263630)}
.member-palette-swatch small{color:var(--palette-accent,#29473d)}
.member-palette-option input:checked+.member-palette-swatch{border-color:var(--palette-accent,#29473d);box-shadow:0 0 0 2px rgba(41,71,61,.15)}
.member-palette-custom{background:linear-gradient(135deg,#edf5f7 0 25%,#f3f0f8 25% 50%,#f8f0ea 50% 75%,#f7f3e8 75%)}
.member-custom-colors{display:flex;flex-wrap:wrap;gap:1rem;margin-top:1rem}.member-custom-colors label{display:grid;gap:.4rem}.member-custom-colors input{width:3rem;height:2.5rem;padding:.15rem;border:1px solid #bbb;border-radius:.4rem}
.member-portfolio-admin{margin:1rem 0}.member-portfolio-admin form{display:grid;gap:.8rem}.member-portfolio-admin form+form{margin-top:.7rem}
@media(max-width:600px){.member-contact-dialog{padding:1rem}.member-album-preview{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Match the personal member page to the approved mini-homepage concept. */
body.member-public-shell{background:var(--member-bg,#f7f5f0);color:var(--member-ink,#263630)}
body.member-public-shell>header,body.member-public-shell>footer{display:none!important}
body.member-public-shell>main#main-content{max-width:none;width:100%;min-height:0;margin:0;padding:0}
body.member-public-shell .member-homepage-theme{min-height:100vh;background:var(--member-bg,#f7f5f0);color:var(--member-ink,#263630);padding:0 0 1px}
.member-site-bar{position:sticky;top:0;z-index:1000;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;width:100%;padding:10px max(calc((100vw - 1100px)/2),22px);background:var(--member-accent,#49745e);color:#fff;border:0;box-shadow:0 4px 18px rgba(20,40,32,.2)}
.member-site-bar .member-brand{display:flex;align-items:center;gap:10px;min-width:max-content;color:#fff;text-decoration:none;font:600 15px Georgia,serif;letter-spacing:.12em}
.member-site-bar .member-brand img{width:42px;height:42px;object-fit:contain}
.member-site-bar .member-brand small{display:block;color:var(--member-peach);font:9px system-ui,sans-serif;letter-spacing:.2em}
.member-site-bar nav{display:flex;align-items:center;justify-content:center;gap:clamp(10px,2vw,22px);margin:0;padding:0;background:none;box-shadow:none;border:0;color:#fff;font-size:13px}
.member-site-bar nav a{color:#fff;text-decoration:none;white-space:nowrap}
.member-site-bar nav a:hover,.member-site-bar nav a:focus-visible{color:#e7d3ad;text-decoration:underline;text-underline-offset:4px}
.member-site-actions{display:flex;align-items:center;gap:9px}
.member-site-actions a,.member-site-actions button{border:1px solid rgba(255,255,255,.45);border-radius:30px;background:transparent;color:#fff;padding:8px 12px;font:600 13px system-ui,sans-serif;text-decoration:none;cursor:pointer}
.member-site-actions .member-note-link{background:var(--member-peach);border-color:var(--member-peach);color:#203a32}
.member-page-wrap{width:min(1100px,calc(100% - 52px));margin:0 auto;padding:0 0 1px}
.member-hero{min-height:550px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:45px;padding:55px 0}
.member-hero-copy .eyebrow,.member-section .eyebrow{font-size:10px;letter-spacing:.22em;text-transform:uppercase;color:var(--member-warm-ink,#865b38);font-weight:750}
.member-hero h1{font:500 clamp(45px,6vw,72px)/1.04 Georgia,serif;letter-spacing:-.04em;color:var(--member-accent,#203a32);margin:15px 0;max-width:13ch}
.member-hero-copy>p{color:#59675f;font-size:17px;max-width:460px}
.member-hero-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}
.member-hero-buttons a{display:inline-flex;align-items:center;background:var(--member-accent,#203a32);color:#fff;border-radius:30px;padding:11px 18px;font-weight:650;text-decoration:none}
.member-hero-buttons a.secondary{background:transparent;border:1px solid #aebbb1;color:var(--member-accent,#203a32)}
.member-hero-art{height:410px;position:relative;isolation:isolate}
.member-cover{position:absolute;inset:8px 7% 0 10%;border-radius:28px;overflow:hidden;background:radial-gradient(circle at 70% 24%,#f1ddb9 0 9%,transparent 9.5%),linear-gradient(150deg,#dbe7da,#94b199 50%,#29473d);box-shadow:0 22px 50px rgba(32,58,50,.16)}
.member-cover:after{content:"";position:absolute;inset:52% -5% -10%;z-index:1;background:linear-gradient(160deg,#688262,#203a32);clip-path:polygon(0 30%,27% 0,50% 28%,72% 2%,100% 32%,100% 100%,0 100%);pointer-events:none}
.member-cover-slide{position:absolute;inset:0;z-index:0;opacity:0;transition:opacity 1s ease-in-out;pointer-events:none}
.member-cover-slide.is-active{opacity:1}
.member-cover-slide img{width:100%;height:100%;display:block;object-fit:cover}
.member-cover-caption{position:absolute;z-index:2;left:24px;right:24px;bottom:24px;text-align:center;overflow-wrap:anywhere;color:white;font:25px Georgia,serif;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.member-cover-controls{position:absolute;z-index:4;left:14px;right:auto;top:14px;max-width:calc(100% - 28px);display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.member-cover-controls button,.member-cover-controls span{border:1px solid rgba(255,255,255,.65);border-radius:24px;background:rgba(20,42,33,.62);color:#fff;padding:6px 9px;font-size:12px}
.member-snapshot{position:absolute;z-index:3;bottom:12px;left:0;width:125px;height:160px;border:6px solid #fffefa;border-radius:17px;background:linear-gradient(140deg,#e8d6bd,#b27d60 55%,#395a45);box-shadow:0 15px 35px rgba(32,58,50,.22);transform:rotate(-3deg)}
.member-snapshot:before,.member-snapshot:after{content:"";position:absolute;left:50%;transform:translateX(-50%);border-radius:50%}
.member-snapshot:before{top:22px;width:45px;height:45px;background:#efd2ae}
.member-snapshot:after{bottom:0;width:94px;height:83px;border-radius:50% 50% 0 0;background:#5b765f}
.member-snapshot.two{left:auto;right:0;bottom:auto;top:0;width:112px;height:135px;background:linear-gradient(140deg,#dce8df,#849c85 60%,#d7b783);transform:rotate(3deg)}
.member-snapshot.two:before{width:39px;height:39px;top:18px}.member-snapshot.two:after{width:82px;height:68px}
.member-snapshot label{position:absolute;z-index:2;bottom:5px;left:0;right:0;text-align:center;color:white;font-size:8px;text-shadow:0 1px 4px #000}
.member-section{border-top:1px solid var(--member-line,#d3dfd7);padding:62px 0}
.member-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}
.member-section-head h2{font:500 clamp(31px,4vw,43px) Georgia,serif;color:var(--member-accent,#203a32);margin:7px 0}
.member-section-head>p{color:#68746d;max-width:390px;margin:0}
.member-about-grid{display:grid;grid-template-columns:.65fr 1.35fr;gap:40px;align-items:center}
.member-portrait{height:300px;border-radius:22px;position:relative;background:linear-gradient(145deg,#e9d9c1,#b47d5e 55%,#29473d);overflow:hidden}
.member-portrait img{width:100%;height:100%;object-fit:cover;display:block}
.member-portrait:empty:before{content:"";position:absolute;top:48px;left:50%;transform:translateX(-50%);width:125px;height:125px;border-radius:50%;background:#efd3b1;box-shadow:0 0 0 15px rgba(255,255,255,.2)}
.member-portrait:empty:after{content:"";position:absolute;bottom:-35px;left:50%;transform:translateX(-50%);width:245px;height:180px;border-radius:50% 50% 0 0;background:#355b49}
.member-about-copy h3{font:500 27px Georgia,serif;color:var(--member-accent,#203a32);margin:0}
.member-about-copy p{color:#59675f}.member-signature{font:italic 20px Georgia,serif;color:var(--member-warm-ink,#865b38)}
.member-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.member-card{background:var(--member-surface,#fffefa);border:1px solid var(--member-line,#d3dfd7);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(32,58,50,.05)}
.member-card-thumb{height:175px;background:linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48);position:relative;display:grid;grid-template-columns:1fr 1fr;gap:2px;overflow:hidden}
.member-card:nth-child(3n+2) .member-card-thumb{background:linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c)}
.member-card:nth-child(3n) .member-card-thumb{background:linear-gradient(140deg,#dce8e5,var(--member-blue,#abc0ba) 45%,#405c57)}
.member-card-thumb img{width:100%;height:100%;min-height:0;object-fit:contain;background:rgba(255,255,255,.35)}
.member-card-thumb:empty:after{content:"";position:absolute;width:110px;height:110px;border:1px solid rgba(255,255,255,.7);border-radius:50%;right:20px;top:18px;box-shadow:0 0 0 14px rgba(255,255,255,.12)}
.member-card-body{padding:16px}.member-card-body small{font-size:9px;color:var(--member-warm-ink,#865b38);letter-spacing:.16em;text-transform:uppercase}
.member-card h3{font:500 20px Georgia,serif;color:var(--member-accent,#203a32);margin:5px 0}.member-card p{font-size:13px;color:#68746d;margin:0 0 .7rem}
.member-card a{color:var(--member-accent,#29473d);font-weight:650}
.member-timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;position:relative;margin-top:30px}
.member-timeline:before{content:"";height:1px;position:absolute;top:7px;left:5%;right:5%;background:var(--member-blue,#abc0ba)}
.member-moment{position:relative;padding-top:27px}.member-moment:before{content:"";position:absolute;top:1px;width:12px;height:12px;background:var(--member-blue,#abc0ba);border:3px solid var(--member-bg,#f7f5f0);border-radius:50%;box-shadow:0 0 0 1px var(--member-blue,#abc0ba)}
.member-moment time{font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:var(--member-accent,#49745e)}
.member-moment h3{font:500 21px Georgia,serif;color:var(--member-accent,#203a32);margin:5px 0}.member-moment p{font-size:13px;color:#68746d}
.member-cta{background:var(--member-accent,#49745e);color:white;border-radius:22px;padding:30px 36px;margin:38px 0 55px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.member-cta h2{font:500 30px Georgia,serif;color:white;margin:5px 0}.member-cta p{margin:0;color:#dbe4dd}
.member-cta .member-note-link{background:var(--member-peach);color:#203a32;border:0;border-radius:30px;padding:11px 18px;font-weight:650;text-decoration:none;white-space:nowrap}
.member-home-footer{border-top:1px solid var(--member-line,#d3dfd7);max-width:1100px;margin:auto;padding:20px 26px 32px;display:flex;justify-content:space-between;color:#758078;font-size:11px}
.member-contact-dialog{position:fixed;z-index:3000}
@media(max-width:760px){.member-site-bar nav{gap:10px}.member-hero{grid-template-columns:1fr;gap:20px}.member-hero-art{height:360px}.member-about-grid{gap:24px}.member-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.member-card:first-child{grid-column:span 2}}
@media(max-width:560px){.member-site-bar{padding:9px 14px}.member-site-bar .member-brand{font-size:12px}.member-site-bar .member-brand img{width:36px;height:36px}.member-site-bar .member-brand small{font-size:8px}.member-site-bar nav{display:none}.member-site-actions a,.member-site-actions button{font-size:10px;padding:7px 9px}.member-page-wrap{width:calc(100% - 34px)}.member-hero{min-height:0;padding:38px 0}.member-hero h1{font-size:45px}.member-hero-copy>p{font-size:15px}.member-hero-art{height:300px}.member-snapshot{width:100px;height:130px}.member-snapshot:before{width:36px;height:36px;top:17px}.member-snapshot:after{width:77px;height:67px}.member-snapshot.two{width:92px;height:112px}.member-section{padding:45px 0}.member-section-head{display:block}.member-about-grid{grid-template-columns:1fr;gap:18px}.member-portrait{height:250px}.member-cards{grid-template-columns:1fr}.member-card:first-child{grid-column:auto}.member-timeline{grid-template-columns:1fr;gap:0}.member-timeline:before{left:5px;right:auto;top:7px;bottom:0;height:auto;width:1px}.member-moment{padding:0 0 18px 27px}.member-moment:before{left:0}.member-cta{display:block;padding:25px 21px;margin:25px 0 40px}.member-cta h2{font-size:26px}.member-cta .member-note-link{display:inline-flex;margin-top:15px}.member-home-footer{display:block;padding:17px}.member-home-footer span{display:block;margin:5px 0}}

.member-card-thumb>span{position:absolute;z-index:2;bottom:11px;left:13px;color:#fff;text-transform:uppercase;font-size:9px;letter-spacing:.12em;text-shadow:0 1px 5px #000}

.member-section-head>div>.eyebrow{display:block}
.member-section#about .member-section-head h2{display:block;padding:0;border-radius:0;background:transparent;color:var(--member-accent,#203a32)}
.member-cover:after{inset:68% -5% -10%}
.member-snapshot.has-photo:before,.member-snapshot.has-photo:after{display:none}
.member-snapshot.has-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:11px}
.member-portrait.has-profile-photo{width:min(100%,300px);height:auto;aspect-ratio:1;margin-inline:auto;border-radius:50%;border:14px solid var(--member-peach,#efd3b1);box-shadow:0 14px 36px rgba(32,58,50,.18)}
.member-portrait.has-profile-photo img{border-radius:50%;object-fit:cover}
.member-card-circle-photo{display:flex;align-items:center;justify-content:center;min-height:175px}
.member-card-circle-photo img{width:124px;height:124px;min-height:124px;border:5px solid rgba(255,255,255,.94);border-radius:50%;object-fit:cover;box-shadow:0 8px 24px rgba(20,40,32,.22)}
.member-card-circle-photo>span{position:relative;inset:auto;max-width:80%;text-align:center}
.member-album-open{display:inline-flex;margin-top:.65rem;font-size:.82rem}
.member-moment-photo{width:132px;height:132px;margin:0 0 14px;border-radius:50%;overflow:hidden;background-color:transparent;border:14px solid var(--member-blue,#abc0ba);box-shadow:0 8px 24px rgba(32,58,50,.16)}
.member-moment-photo>a{display:block;width:100%;height:100%;overflow:hidden;border-radius:50%;background-color:transparent}
.member-moment-photo img{display:block;width:100%;height:100%;object-fit:cover;border-radius:50%;background-color:transparent}
/* Timeline circles cycle each coordinated fill and matching border; clip every layer to the round frame. */
.member-moment-photo{clip-path:circle(50%)}
.member-moment-photo>a,.member-moment-photo img{clip-path:circle(50%)}
.member-moment-photo-empty{background:linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c);background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n+1) .member-moment-photo{--timeline-circle-border:var(--member-album-border-color,#efd3b1)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n+1) .member-moment-photo-empty{background:var(--member-album-cover,linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n+2) .member-moment-photo{--timeline-circle-border:var(--member-timeline-border-color,#abc0ba)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n+2) .member-moment-photo-empty{background:var(--member-album-cover-2,linear-gradient(140deg,var(--member-blue,#abc0ba),var(--member-accent,#49745e)));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n) .member-moment-photo{--timeline-circle-border:var(--member-story-border-color,#d5e2d7)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(3n) .member-moment-photo-empty{background:var(--member-album-cover-3,linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment .member-moment-photo{border-color:var(--timeline-circle-border,var(--member-timeline-border-color,#abc0ba))}
.member-copy-language{margin:1.25rem 0;padding:1rem;border:1px solid #dcd5c5;border-radius:14px}
.member-copy-language legend{padding:0 .5rem;font-weight:700;color:#29473d}
.member-copy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.member-copy-grid label{display:block}
.member-copy-grid textarea{width:100%;min-height:5rem}
.member-public-detail-page{padding-top:1.5rem}
.member-public-detail-page .panel{line-height:1.75}
.member-public-detail-page .panel h1{font:500 clamp(2rem,5vw,3.5rem)/1.1 Georgia,serif;color:var(--member-accent,#203a32)}
.member-detail-copy{white-space:normal;line-height:1.85;font-size:1.05rem}
.member-detail-date{color:#98764b;font-weight:650}
.member-detail-album-gallery img{display:block;width:100%;height:auto;max-height:400px;object-fit:contain;border-radius:12px}
.member-detail-return{white-space:nowrap}
body.member-public-shell{margin:0;background:var(--member-bg,#f4f3ee);color:var(--member-ink,#263630)}
@media(max-width:760px){.member-copy-grid{grid-template-columns:1fr}.member-public-detail-page{width:calc(100% - 1rem)}.member-detail-return{font-size:11px!important;padding:7px 9px!important}}
/* Story and album covers share a fixed right-hand photo and a full-width bottom title. */
.member-card-thumb.member-story-preview,
.member-card-thumb.member-album-preview {
  --cover-photo-size: 150px;
  display: flex;
  align-items: flex-end;
  position: relative;
  box-sizing: border-box;
  height: auto;
  min-height: 260px;
  margin: 0;
  padding: 192px 20px 16px;
  overflow: hidden;
}
.member-card-thumb.member-story-preview::after,
.member-card-thumb.member-album-preview::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: var(--cover-photo-size);
  height: var(--cover-photo-size);
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255,255,255,.12);
  pointer-events: none;
}
.member-card-thumb.member-story-preview > img,
.member-card-thumb.member-album-preview > a[data-album-lightbox] {
  position: absolute;
  inset: 18px 18px auto auto;
  z-index: 1;
  display: block;
  width: var(--cover-photo-size);
  height: var(--cover-photo-size);
  min-height: 0;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: transparent;
  box-shadow: none;
}
.member-card-thumb.member-album-preview > a[data-album-lightbox] img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.member-card-thumb > .member-card-cover-title {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  z-index: 2;
  width: 100%;
  max-width: none;
  margin: 0;
  color: #fff;
  font: 500 9px/1.6 system-ui,"Segoe UI",sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}

/* Retain the mockup's varied cover palette; albums start with warm sand. */
.member-card:nth-child(3n+1) .member-card-thumb.member-album-preview{background:linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c)}
.member-card:nth-child(3n+2) .member-card-thumb.member-album-preview{background:linear-gradient(140deg,#dce8e5,var(--member-blue,#abc0ba) 45%,#405c57)}
.member-card:nth-child(3n) .member-card-thumb.member-album-preview{background:linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48)}

/* Component button colors must outrank the theme's generic link color. */
.member-homepage-theme .member-hero-buttons a:not(.secondary),
.member-homepage-theme .member-hero-buttons a:not(.secondary):visited,
.member-homepage-theme .member-hero-buttons a:not(.secondary):hover,
.member-homepage-theme .member-hero-buttons a:not(.secondary):focus-visible{color:#fff}

/* Public Story and Timeline detail photos, with the existing accessible photo viewer. */
.public-record-photos{margin:1.8rem 0}
.public-record-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.public-record-gallery figure{min-width:0;margin:0}
.public-record-gallery figure:only-child{grid-column:1/-1}
.public-record-gallery a{display:block;border-radius:14px;overflow:hidden;background:var(--member-bg,#f7f5f0)}
.public-record-gallery img{display:block;width:100%;height:300px;object-fit:contain;border-radius:14px}
.public-record-gallery figcaption{padding:.5rem .2rem;color:var(--member-ink,#536258);font-size:.9rem;overflow-wrap:anywhere}
@media(max-width:600px){.public-record-gallery{grid-template-columns:1fr}.public-record-gallery img{height:auto;max-height:400px}}

/* Keep navigation readable above the generic themed-link rule. */
.member-homepage-theme .member-site-bar .member-brand,
.member-homepage-theme .member-site-bar nav a,
.member-homepage-theme .member-site-actions a{color:#fff}
.member-homepage-theme .member-site-bar nav a:hover,
.member-homepage-theme .member-site-bar nav a:focus-visible{color:var(--member-peach)}
.member-homepage-theme .member-site-actions .member-note-link{color:#203a32}
.member-homepage-theme .member-cta .eyebrow{color:var(--member-peach)!important}
.member-homepage-theme .member-cta .member-note-link{background:var(--member-peach);border-color:var(--member-peach);color:#203a32}

/* Member-selected photo frames and preview backgrounds. */
.member-homepage-theme .member-portrait.has-profile-photo{border-width:var(--member-profile-border-width,14px);border-color:var(--member-profile-border-color,#efd3b1)}
.member-homepage-theme .member-moment-photo{border-width:var(--member-timeline-border-width,14px);border-color:var(--member-timeline-border-color,#abc0ba)}
.member-homepage-theme .member-card-thumb.member-story-preview::after{border-width:min(1px,var(--member-story-border-width,14px));box-shadow:0 0 0 var(--member-story-border-width,14px) color-mix(in srgb,var(--member-story-border-color,#d5e2d7) 55%,transparent)}
.member-homepage-theme .member-card-thumb.member-album-preview::after{border-width:min(1px,var(--member-album-border-width,14px));box-shadow:0 0 0 var(--member-album-border-width,14px) color-mix(in srgb,var(--member-album-border-color,#efd3b1) 55%,transparent)}
.member-homepage-theme .member-card-thumb.member-story-preview>img{border-width:min(1px,var(--member-story-border-width,14px))}
.member-homepage-theme .member-card-thumb.member-album-preview>a[data-album-lightbox]{border-width:min(1px,var(--member-album-border-width,14px))}
.member-homepage-theme .member-card{background:var(--member-card-bg,var(--member-surface,#fffefa))}
.member-homepage-theme .member-card .member-card-body h3,
.member-homepage-theme .member-card .member-card-body a{color:var(--member-card-ink,var(--member-accent,#203a32))}
.member-homepage-theme .member-card .member-card-body p,
.member-homepage-theme .member-card .member-card-body .muted{color:var(--member-card-ink,#68746d)}
.member-homepage-theme .member-card .member-card-body small{color:var(--member-card-ink,var(--member-warm-ink,#865b38))}
.member-homepage-theme .member-card .member-card-thumb.member-story-preview{background:var(--member-story-cover,linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48))}
.member-homepage-theme .member-card:nth-child(3n+2) .member-card-thumb.member-story-preview{background:var(--member-story-cover-2,var(--member-story-cover,linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c)))}
.member-homepage-theme .member-card:nth-child(3n) .member-card-thumb.member-story-preview{background:var(--member-story-cover-3,var(--member-story-cover,linear-gradient(140deg,#dce8e5,var(--member-blue,#abc0ba) 45%,#405c57)))}
.member-homepage-theme .member-card .member-card-thumb.member-album-preview{background:var(--member-album-cover,linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c))}
.member-homepage-theme .member-card:nth-child(3n+2) .member-card-thumb.member-album-preview{background:var(--member-album-cover-2,var(--member-album-cover,linear-gradient(140deg,#dce8e5,var(--member-blue,#abc0ba) 45%,#405c57)))}
.member-homepage-theme .member-card:nth-child(3n) .member-card-thumb.member-album-preview{background:var(--member-album-cover-3,var(--member-album-cover,linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48)))}
.member-border-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.member-border-control,.member-cover-color-controls>div{padding:1rem;border:1px solid #d3dfd7;border-radius:14px}
.member-border-control h3{font-size:1.15rem;margin:0 0 .75rem}
.member-experience-settings input[type=color]{width:4rem;height:2.75rem;padding:.15rem;display:block;margin-top:.4rem}
.member-border-control input[type=range]{padding:0;accent-color:#49745e}
.member-border-control output{float:right;font-variant-numeric:tabular-nums}
.member-cover-color-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
.member-design-preview{margin:1.5rem 0}
.member-design-preview>.member-homepage-theme{padding:1.25rem;border-radius:18px}
.member-design-preview .member-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.member-design-preview .member-card:first-child{grid-column:auto}
.member-design-photo-samples{display:flex;align-items:center;justify-content:space-around;gap:1rem;margin:0 0 1.25rem;text-align:center}
.member-design-photo-samples>div{min-width:0;flex:1}
.member-design-preview .member-portrait.has-profile-photo{width:min(100%,180px);height:auto}
.member-design-preview .member-moment-photo{margin-inline:auto}
.member-design-preview>[data-reset-member-appearance]{margin-top:1rem}
@media(max-width:600px){.member-border-controls,.member-cover-color-controls,.member-design-preview .member-cards{grid-template-columns:1fr}.member-design-photo-samples{flex-wrap:wrap}.member-design-photo-samples>div{flex:1 1 140px}}

/* Presets show their coordinated colors; background editing is beside the Custom preview. */
.member-experience-settings [data-member-custom-only][hidden]{display:none!important}
.member-palette-colors{display:flex;gap:6px;margin-top:.45rem}
.member-palette-colors i{display:block;width:19px;height:19px;border:1px solid rgba(38,54,48,.18);border-radius:50%}
.member-palette-option input:focus-visible+.member-palette-swatch{outline:3px solid #49745e;outline-offset:3px}
.member-design-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:1.25rem;align-items:start}
.member-design-workspace:has(.member-design-card-editor:not([hidden])){grid-template-columns:minmax(0,1fr) 250px}
.member-design-workspace>.member-homepage-theme{min-width:0;padding:1.25rem;border-radius:18px}
.member-design-card-editor{position:sticky;top:1rem;min-width:0}
.member-design-card-editor fieldset{margin:0;padding:1rem}
.member-design-card-editor .member-cover-color-controls{grid-template-columns:1fr}
.member-design-card-editor .member-cover-color-controls>div{padding:.75rem}
.member-design-save-top{display:flex;justify-content:flex-end;margin:.8rem 0 1.2rem}
@media(max-width:780px){.member-design-workspace:has(.member-design-card-editor:not([hidden])){grid-template-columns:1fr}.member-design-card-editor{position:static}.member-design-card-editor .member-cover-color-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.member-design-card-editor .member-cover-color-controls{grid-template-columns:1fr}}

/* Carry each theme's suggested colors through the decorative photo frames. */
.member-homepage-theme .member-cover{background:radial-gradient(circle at 70% 24%,var(--member-peach,#efd3b1) 0 9%,transparent 9.5%),linear-gradient(150deg,var(--member-bg,#eef4ef),var(--member-sage,#d5e2d7) 50%,var(--member-accent,#49745e))}
.member-homepage-theme .member-cover::after{background:linear-gradient(160deg,var(--member-sage,#d5e2d7),var(--member-accent,#49745e))}
.member-homepage-theme .member-snapshot{background:linear-gradient(140deg,var(--member-peach,#efd3b1),var(--member-accent,#49745e))}
.member-homepage-theme .member-snapshot.two{background:linear-gradient(140deg,var(--member-blue,#abc0ba),var(--member-accent,#49745e))}
.member-homepage-theme .member-portrait:not(.has-profile-photo){background:linear-gradient(145deg,var(--member-peach,#efd3b1),var(--member-accent,#49745e))}

/* Showcase colors repeat 1, 2, 3 using the page's existing theme palette. */
.member-work-preview{--work-ring-color:var(--member-story-border-color,#d5e2d7);--work-ring-width:var(--member-work-border-width,10px);display:flex;flex-direction:column;justify-content:space-between;gap:20px;height:auto;min-height:260px;padding:24px 20px 16px;box-sizing:border-box}
.member-homepage-theme .member-card:nth-child(3n+1) .member-work-preview{--work-ring-color:var(--member-story-border-color,#d5e2d7);background:var(--member-story-cover,linear-gradient(140deg,var(--member-sage,#d5e2d7),#819c82 55%,#355a48))}
.member-homepage-theme .member-card:nth-child(3n+2) .member-work-preview{--work-ring-width:var(--member-album-border-width,14px);--work-ring-color:var(--member-album-border-color,#efd3b1);background:var(--member-story-cover-2,var(--member-album-cover,linear-gradient(140deg,var(--member-peach,#efd3b1),#c4a17b 55%,#765d4c)))}
.member-homepage-theme .member-card:nth-child(3n) .member-work-preview{--work-ring-width:var(--member-work-border-width,4px);--work-ring-color:var(--member-work-border-color,#355a48);background:linear-gradient(140deg,var(--member-work-color,#355a48),var(--member-bg,#edf4ef))}
.member-work-photo-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;width:100%;align-items:center}
.member-work-photo-pair>a,.member-work-photo-pair>.member-work-photo-empty{position:relative;display:block;min-width:0;width:100%;aspect-ratio:1;border-radius:50%;border:var(--work-ring-width) solid var(--work-ring-color);box-sizing:border-box;overflow:hidden;background:rgba(255,255,255,.12)}
.member-work-photo-pair>a:focus-visible{outline:3px solid #fff;outline-offset:4px}
.member-card-thumb.member-work-preview .member-work-photo-pair img{display:block;width:100%;height:100%;min-height:0;object-fit:cover;border:0;border-radius:50%;background:transparent}
.member-work-preview>.member-card-cover-title{flex:0 0 auto}
.member-work-edit-photos{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:1rem}
.member-work-edit-photos img{display:block;width:100%;max-width:180px;height:130px;object-fit:contain;border-radius:12px;background:#eef4ef}

/* Keep the slideshow frame; corner photos use a thin border matching its theme background. */
.member-homepage-theme .member-cover{border:var(--member-profile-border-width,14px) solid var(--member-profile-border-color,#efd3b1);box-sizing:border-box}
.member-homepage-theme .member-snapshot{border:4px solid var(--member-bg,#eef4ef);box-sizing:border-box}

/* Sanitized long-form content, shared by editor and saved public/private pages. */
.rich-text-content{overflow-wrap:anywhere;line-height:1.65}
.rich-text-content p{margin:0 0 1em}
.rich-text-content h1,.rich-text-content h2,.rich-text-content h3,.rich-text-content h4,.rich-text-content h5,.rich-text-content h6{margin:.8em 0 .4em;line-height:1.25;color:inherit}
.rich-text-content ul,.rich-text-content ol{padding-inline-start:1.6em;margin:.5em 0 1em;list-style-position:outside}
.rich-text-content ul{list-style-type:disc}.rich-text-content ol{list-style-type:decimal}
.rich-text-content li{margin:.2em 0}.rich-text-content a{text-decoration:underline;text-underline-offset:.15em}
.rich-text-content blockquote{margin:1em 0;padding:.3em 1em;border-inline-start:3px solid #abc0ba}
.rich-text-content pre{white-space:pre-wrap}.rich-text-content code{font-family:monospace}
.member-hero-copy>.rich-text-content{max-width:460px;color:#59675f;font-size:17px}
.member-section-head>.rich-text-content{max-width:390px;color:#68746d}
.member-moment h3{max-width:142px;overflow-wrap:anywhere}

.member-card-thumb.member-story-preview>a.member-record-preview{position:absolute;inset:18px 18px auto auto;width:150px;height:150px;border-radius:50%;z-index:2;overflow:hidden;border:min(1px,var(--member-story-border-width,14px)) solid #fff}
.member-card-thumb.member-story-preview>a.member-record-preview img{display:block;width:100%;height:100%;object-fit:cover;border:0;border-radius:50%;background:transparent}
.member-moment-photo>a,.member-snapshot>a,.member-cover-slide>a,.member-portrait>a{display:block;width:100%;height:100%}
.member-cover-slide{margin:0}.member-cover-slide.is-active{pointer-events:auto}.member-cover-caption{pointer-events:none}
.member-moment h3{width:min(100%,142px);max-width:142px;overflow-wrap:anywhere}

/* Connect the small ringed milestone markers, independently of the photos below. */
.member-timeline{display:flex;gap:22px;overflow-x:auto;padding-bottom:8px}
.member-timeline::before{display:none}
.member-timeline>.member-moment{position:relative;flex:0 0 max(230px,calc((100% - 44px)/3));min-width:0;padding-top:27px}
.member-timeline>.member-moment::before{left:60px;z-index:1}
.member-timeline>.member-moment:not(:last-child)::after{content:"";position:absolute;top:7px;left:66px;width:calc(100% + 22px);height:1px;background:var(--member-blue,#abc0ba);pointer-events:none}
@media(max-width:560px) and (orientation:portrait){
 .member-timeline{display:grid;grid-template-columns:1fr;gap:0;overflow:visible;padding-bottom:0}
 .member-timeline>.member-moment{padding:0 0 18px 27px}
 .member-timeline>.member-moment::before{left:7px;top:60px;z-index:1}
 .member-timeline>.member-moment:not(:last-child)::after{left:13px;top:66px;bottom:-66px;width:1px;height:auto;z-index:0}
}
@media(max-width:560px) and (orientation:landscape){
 .member-timeline{display:flex;grid-template-columns:none;gap:22px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px}
 .member-timeline>.member-moment{flex:0 0 max(230px,calc((100% - 44px)/3));padding:27px 0 0}
 .member-timeline>.member-moment::before{left:60px;top:1px;z-index:1}
 .member-timeline>.member-moment:not(:last-child)::after{left:66px;top:7px;bottom:auto;width:calc(100% + 22px);height:1px;z-index:0}
}

.member-hero-copy>div:has(>.rich-text-content){max-width:460px;color:#59675f;font-size:17px}
.member-section-head>div:has(>.rich-text-content){max-width:390px;color:#68746d}
.member-snapshot.has-photo>a>img{position:static;width:100%;height:100%;object-fit:cover}


/* Writing archive: five-color folio cards and an art-directed photo essay layout. */
.member-writing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.member-writing-card{--writing-color:var(--member-profile-border-color,#efd3b1);min-width:0}
.member-writing-card:nth-child(5n+2){--writing-color:var(--member-story-border-color,#d5e2d7)}
.member-writing-card:nth-child(5n+3){--writing-color:var(--member-album-border-color,#efd3b1)}
.member-writing-card:nth-child(5n+4){--writing-color:var(--member-timeline-border-color,#abc0ba)}
.member-writing-card:nth-child(5n){--writing-color:var(--member-writing-color,#b68a63)}
.member-writing-card-link{position:relative;display:flex;align-items:stretch;min-height:190px;overflow:hidden;border:1px solid rgba(32,58,50,.1);border-radius:4px 18px 18px 4px;background:#fffefa;box-shadow:0 12px 34px rgba(32,58,50,.07);color:var(--member-ink,#263630);text-decoration:none}
.member-writing-card-color{flex:0 0 10px;background:var(--writing-color)}
.member-writing-card-copy{position:relative;z-index:1;flex:1;min-width:0;padding:23px 22px}
.member-writing-card-copy>small,.member-writing-detail-head>small{color:var(--member-accent,#49745e);font-size:10px;letter-spacing:.17em;text-transform:uppercase}
.member-writing-card-copy h3{margin:8px 0;color:var(--member-ink,#263630);font:500 25px/1.18 Georgia,serif}
.member-writing-card-copy>p{margin:0;color:#647168;font-size:12px;letter-spacing:.03em}
.member-writing-excerpt{max-width:42ch;margin-top:12px;color:#55635a;font-size:14px;line-height:1.65}
.member-writing-excerpt p{margin:.25em 0}
.member-writing-photo-stack{position:absolute;right:22px;top:20px;width:110px;height:120px;pointer-events:none}
.member-writing-photo{position:absolute;display:block;width:78px;height:96px;overflow:hidden;border:5px solid #fff;border-radius:2px;background:var(--writing-color);box-shadow:0 7px 20px rgba(32,58,50,.17);transform:rotate(-8deg)}
.member-writing-photo.photo-2{right:0;top:8px;transform:rotate(9deg)}.member-writing-photo.photo-3{right:20px;top:20px;transform:rotate(-1deg)}
.member-writing-photo img{display:block;width:100%;height:100%;object-fit:cover}
.member-writing-ornament{position:absolute;right:35px;top:24px;color:var(--writing-color);font:70px/1 Georgia,serif;opacity:.6}
.member-writing-read{position:absolute;right:18px;bottom:13px;color:var(--member-accent,#49745e);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.member-writing-photo-stack+.member-writing-read{right:18px}
.member-writing-empty{position:relative;display:flex;gap:20px;align-items:center;max-width:720px;min-height:160px;padding:24px 30px;border:1px solid rgba(32,58,50,.1);background:#fffefa;box-shadow:0 12px 34px rgba(32,58,50,.07)}
.member-writing-color-mark{align-self:stretch;flex:0 0 10px;background:var(--member-writing-color,#b68a63)}
.member-writing-empty small{color:var(--member-accent);font-size:10px;letter-spacing:.16em;text-transform:uppercase}.member-writing-empty h3{margin:5px 0;font:500 27px Georgia,serif}.member-writing-empty p{margin:0;color:#68746d}
.member-view-more{display:flex;width:max-content;max-width:100%;margin:20px 0 0 auto;padding:9px 16px;border:1px solid var(--member-timeline-border-color,#abc0ba);border-radius:999px;color:var(--member-accent,#49745e);font-size:13px;font-weight:650;text-decoration:none}.member-view-more:hover{background:var(--member-surface,#fffefa)}
.member-collection-page{padding-top:44px;padding-bottom:60px}.member-collection-back{display:inline-block;margin:0 0 24px;color:var(--member-accent,#49745e);font-size:13px}.member-collection-heading{margin:0 0 34px;padding:0 0 20px;border-bottom:1px solid rgba(32,58,50,.15)}.member-collection-heading h1{margin:6px 0;font:500 clamp(38px,6vw,62px)/1.05 Georgia,serif;color:var(--member-ink,#263630)}.member-collection-heading p{color:#68746d}
.member-collection-list{display:grid;gap:18px}.member-collection-row{display:grid;grid-template-columns:minmax(220px,30%) minmax(0,1fr);gap:24px;align-items:center;padding:16px;border:1px solid rgba(32,58,50,.1);border-radius:18px;background:var(--member-surface,#fffefa);box-shadow:0 10px 32px rgba(32,58,50,.06)}.member-collection-row .member-card-thumb{min-height:220px}.member-collection-copy{min-width:0;padding:8px 12px}.member-collection-copy>small{color:var(--member-accent,#49745e);font-size:10px;letter-spacing:.15em;text-transform:uppercase}.member-collection-copy h2{font:500 29px/1.2 Georgia,serif}.member-collection-copy h2 a{color:inherit}.member-collection-open{display:inline-block;margin-top:12px;color:var(--member-accent,#49745e);font-weight:650}.member-collection-timeline{grid-template-columns:132px minmax(0,1fr)}.member-collection-timeline .member-moment-photo{margin:0}.member-collection-timeline .member-moment-photo img{object-fit:cover}.member-writing-chapter{margin:0 0 42px}.member-writing-chapter>h2{margin:0 0 15px;padding-bottom:10px;border-bottom:1px solid rgba(32,58,50,.15);font:500 30px Georgia,serif;color:var(--member-accent,#49745e)}.member-writing-list{display:grid;gap:14px}
.member-writing-detail{max-width:920px;padding-top:42px;padding-bottom:70px}.member-writing-detail-head{max-width:740px;margin:0 auto 24px;text-align:center}.member-writing-detail-head h1{margin:10px 0;font:500 clamp(40px,7vw,72px)/1.04 Georgia,serif;color:var(--member-ink,#263630)}.member-writing-detail-head p{color:#68746d;letter-spacing:.06em}.member-writing-gallery{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:minmax(90px,13vw);gap:12px;margin:24px auto 34px;max-width:820px}.member-writing-gallery figure{min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:3px 18px 3px 18px;background:var(--member-surface,#fffefa);box-shadow:0 12px 34px rgba(32,58,50,.1)}.member-writing-gallery figure:nth-child(1){grid-column:span 4;grid-row:span 2}.member-writing-gallery figure:nth-child(2){grid-column:span 2}.member-writing-gallery figure:nth-child(3){grid-column:span 2}.member-writing-gallery figure:nth-child(n+4){grid-column:span 2}.member-writing-gallery a,.member-writing-gallery img{display:block;width:100%;height:100%}.member-writing-gallery a{overflow:hidden}.member-writing-gallery img{object-fit:cover;transition:transform .35s}.member-writing-gallery a:hover img{transform:scale(1.035)}.member-writing-gallery[data-photo-count="1"]{grid-auto-rows:auto}.member-writing-gallery[data-photo-count="1"] figure{grid-column:2/span 4;grid-row:auto;aspect-ratio:16/9}.member-writing-gallery[data-photo-count="2"] figure{grid-column:span 3;grid-row:auto;aspect-ratio:1.15}.member-writing-detail-body{max-width:700px;margin:0 auto;color:#3c4941;font-size:18px;line-height:1.9}.member-writing-detail-body p{margin:0 0 1.25em}.member-writing-detail-body p:first-child:first-letter{float:left;padding:.08em .12em 0 0;color:var(--member-accent,#49745e);font:500 3.2em/.8 Georgia,serif}
.member-writing-admin{padding:18px;margin:18px 0;border:1px solid #ded8cc;border-radius:14px;background:#fffefa}.member-writing-admin form{display:grid;gap:12px}.member-writing-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.member-writing-fields label{min-width:0}.member-writing-admin textarea{min-height:180px}.member-writing-admin .member-work-edit-photos img{max-width:160px}.member-writing-admin .member-setting-check{margin:0}
@media(max-width:700px){.member-writing-grid{grid-template-columns:1fr}.member-writing-card-link{min-height:165px}.member-writing-card-copy{padding:20px 18px}.member-writing-photo-stack{right:12px;transform:scale(.8);transform-origin:top right}.member-collection-row{grid-template-columns:1fr;gap:8px}.member-collection-row .member-card-thumb{min-height:190px}.member-collection-timeline{grid-template-columns:112px minmax(0,1fr)}.member-collection-timeline .member-moment-photo{width:112px;height:112px;border-width:10px}.member-writing-fields{grid-template-columns:1fr}.member-writing-gallery{grid-auto-rows:100px;gap:8px}.member-writing-gallery figure:nth-child(1){grid-column:span 4;grid-row:span 2}.member-writing-gallery figure:nth-child(n+2){grid-column:span 2}.member-writing-detail-body{font-size:16px}}

.member-section#stories>.member-cards,.member-section#photos>.member-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
.member-section#stories>.member-cards>.member-card:first-child,.member-section#photos>.member-cards>.member-card:first-child{grid-column:auto}
@media(max-width:760px){.member-section#stories>.member-cards,.member-section#photos>.member-cards{grid-template-columns:repeat(3,minmax(245px,1fr));overflow-x:auto;scroll-snap-type:x mandatory;padding:0 2px 12px}.member-section#stories>.member-cards>.member-card,.member-section#photos>.member-cards>.member-card{scroll-snap-align:start}}

.member-design-preview .member-writing-live-sample{grid-template-columns:minmax(0,1fr);margin-top:14px}.member-design-preview .member-writing-live-sample .member-writing-card{--writing-color:var(--member-writing-color,#b68a63)}

/* Member page language and themed section layouts */
.member-copy-language{min-width:0}.member-copy-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.9rem}.member-copy-language>legend{font-weight:700}.member-writing-live-sample{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:stretch}.member-work-live-sample .member-writing-card-color{background:var(--member-work-color,var(--member-accent))}.member-work-live-sample .member-writing-card-link{border-color:var(--member-work-color,var(--member-accent))}.member-writing-chapter>summary{cursor:pointer;list-style:none}.member-writing-chapter>summary::-webkit-details-marker{display:none}.member-writing-chapter>summary h2{display:inline-flex;align-items:center;gap:.65rem}.member-writing-chapter>summary h2:after{content:"+";font:600 1rem sans-serif}.member-writing-chapter[open]>summary h2:after{content:"−"}.member-writing-list{padding:.5rem 0 1rem 1rem;border-left:2px solid var(--member-accent,#587969)}.member-copy-grid textarea{min-height:5rem}.account-menu>summary{width:55px!important;height:55px!important;min-width:55px!important;min-height:55px!important;padding:4px!important;display:grid;place-items:center}.account-avatar{width:47px;height:47px;font-size:.95rem}.account-avatar-photo{width:47px;height:47px}.member-writing-live-sample .member-writing-card{min-width:0}
@media(max-width:760px){.member-writing-live-sample{grid-template-columns:1fr}}

.family-member-search>label{display:grid;gap:.4rem;margin:.5rem 0}.family-member-options{max-height:22rem;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line,#dcd5c5);border-radius:10px;padding:.4rem}.family-member-options .story-person-choice{min-height:2.2rem}.family-member-options .story-person-choice[hidden]{display:none}

.member-copy-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:.9rem 1rem}.member-copy-section{border:1px solid #dcd5c5;border-radius:12px;padding:.85rem;min-width:0}.member-copy-section h3{margin:.1rem 0 .7rem;color:#29473d;font:600 1.05rem Georgia,serif}.member-copy-section label{display:block;margin:.55rem 0}.member-copy-section input,.member-copy-section textarea{width:100%;box-sizing:border-box}.member-copy-language{min-width:0}
@media(max-width:760px){.member-copy-sections{grid-template-columns:1fr}}

/* Public archive pages keep the member navigation above their collection title. */
.member-collection-page{padding-top:1rem}.member-collection-page>.member-collection-heading{margin:0 0 2rem}.member-writing-collection-row .member-writing-archive-thumb{display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(145deg,var(--member-writing-color,#b68a63),var(--member-surface,#fffefa))}.member-writing-archive-thumb>a{display:block;width:100%;height:100%}.member-writing-archive-thumb img{display:block;width:100%;height:100%;min-height:220px;object-fit:cover}.member-writing-archive-mark{font:4rem Georgia,serif;color:#fff9}.member-writing-collection-row .member-collection-copy h2 a{color:inherit;text-decoration:none}.member-writing-byline{color:var(--member-accent,#49745e);font-size:.92rem}.member-writing-collection-row .rich-text-content{line-height:1.7}
/* Place the slideshow play/pause handle midway along the right frame edge. */
.member-homepage-theme .member-cover-controls{left:14px;right:14px;top:14px;bottom:14px;width:auto;max-width:none;height:auto;align-items:flex-start}.member-homepage-theme .member-cover-controls [data-hero-toggle]{position:absolute;right:-8px;top:50%;transform:translateY(-50%);pointer-events:auto}.member-homepage-theme .member-cover-controls button{pointer-events:auto}

/* Keep the full slideshow control group together at the center of the top frame. */
.member-homepage-theme .member-cover-controls{position:absolute;left:50%;right:auto;top:-14px;bottom:auto;width:max-content;max-width:calc(100% - 24px);height:auto;transform:translateX(-50%);display:flex;flex-direction:row;align-items:center;justify-content:center;gap:.35rem;padding:.2rem .45rem;background:var(--member-surface,#fffefa);border-radius:999px;z-index:5}
.member-homepage-theme .member-cover-controls [data-hero-toggle]{position:static;right:auto;top:auto;transform:none;pointer-events:auto}
.member-homepage-theme .member-cover-controls button{pointer-events:auto}
.member-section-order-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem}.member-section-order-grid label{display:grid;grid-template-columns:1fr 4.5rem;align-items:center;gap:.5rem}.member-section-order-grid input{max-width:4.5rem}
.member-section-order-grid{display:block}.member-section-order-fixed,.member-section-order-item{display:flex;align-items:center;gap:.8rem;padding:.75rem .9rem;border:1px solid #e1ddcf;border-radius:12px;background:#fffefa}.member-section-order-fixed{margin:.45rem 0}.member-section-order-fixed>span:first-child{display:grid;place-items:center;flex:0 0 2rem;height:2rem;border-radius:50%;background:#edf2ee;color:#29473d;font-weight:700}.member-section-order-fixed .muted{margin-left:auto}.member-section-order-list{display:grid;gap:.5rem;margin:.5rem 0;padding:0;list-style:none}.member-section-order-item{cursor:grab}.member-section-order-item:active{cursor:grabbing}.member-section-order-item.is-dragging{opacity:.45;border-style:dashed}.member-section-order-grip{color:#7e897f;font-size:1.25rem;line-height:1}.member-section-order-controls{display:flex;gap:.35rem;margin-left:auto}.member-section-order-controls button{min-width:2.25rem;padding:.25rem .5rem}.member-section-order-controls button:disabled{opacity:.4;cursor:not-allowed}
.member-accent-photo-library{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.member-accent-view-all{display:inline-flex;align-items:center;justify-content:center;margin:.35rem;padding:.45rem .75rem;border:1px solid currentColor;border-radius:999px;color:inherit;font-size:.85rem;text-decoration:none}
.member-palette-colors{display:flex;align-items:center;justify-content:center;gap:clamp(2px,.6vw,6px);width:100%;max-width:100%;margin-top:.55rem;overflow:hidden}.member-palette-colors i{display:block;flex:0 1 16px;width:clamp(10px,1vw,16px);height:clamp(10px,1vw,16px);min-width:8px;border:1px solid #fff9;border-radius:50%;box-shadow:0 0 0 1px #26363033}.member-custom-border-colors{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.member-custom-border-colors label{display:flex;align-items:center;justify-content:space-between;gap:.5rem}.member-custom-border-colors input[type=color]{width:2.4rem;height:2rem;padding:.12rem}.member-manager-tabs{display:flex;gap:.5rem;margin:0 0 1.25rem}.member-manager-tabs a{padding:.45rem .8rem;border:1px solid var(--member-accent,#49745e);border-radius:999px;color:var(--member-accent,#49745e);text-decoration:none}.member-manager-tabs a:hover{background:var(--member-accent,#49745e);color:#fff}.member-design-photo-samples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:.8rem}.member-design-work-sample{min-width:0}.member-design-work-sample .member-card-thumb{height:160px}.member-design-work-sample .member-work-photo-empty img{width:100%;height:100%;object-fit:cover}.member-border-swatch{display:inline-block;width:.75rem;height:.75rem;border-radius:50%;background:var(--border-swatch);margin-right:.4rem}.member-design-section-links{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
@media(max-width:760px){.member-section-order-grid{grid-template-columns:1fr}.member-custom-border-colors{grid-template-columns:repeat(2,minmax(0,1fr))}.member-design-photo-samples{grid-template-columns:1fr}.member-design-photo-samples>*{max-width:20rem;margin-inline:auto;width:100%}}

/* Writings and Work archives follow the existing Stories and Albums row layout. */
.member-writing-collection-row .member-card-thumb{position:relative;overflow:hidden;min-height:220px;background:linear-gradient(145deg,var(--member-story-border-color,#d5e2d7),var(--member-surface,#fffefa))}.member-writing-collection-row .member-story-preview>a{display:block;width:100%;height:100%;min-height:220px}.member-writing-collection-row .member-story-preview img{display:block;width:100%;height:100%;min-height:220px;object-fit:cover}.member-writing-collection-row .member-writing-byline{margin:.55rem 0;color:var(--member-accent,#49745e)}.member-collection-work-row .member-work-preview{background:var(--member-album-border-color,#efd3b1)}.member-collection-work-row .member-card-thumb{min-height:220px}.member-collection-work-row .member-collection-copy>p{color:#68746d;margin:.45rem 0}

.member-palette-option input:focus-visible+.member-palette-swatch{outline:3px solid var(--member-accent,#49745e);outline-offset:3px}

/* Public Writing and Work pages retain the member profile's teal header block. */
.member-homepage-theme .member-site-bar.member-archive-header{background:var(--member-accent,#49745e);color:#fff;box-shadow:0 4px 18px rgba(20,40,32,.2)}
.member-homepage-theme .member-site-bar.member-archive-header .member-brand,.member-homepage-theme .member-site-bar.member-archive-header nav a,.member-homepage-theme .member-site-bar.member-archive-header .member-site-actions a{color:#fff}
.member-homepage-theme .member-site-bar.member-archive-header nav a:hover,.member-homepage-theme .member-site-bar.member-archive-header nav a:focus-visible{color:var(--member-peach,#efd3b1)}
.member-homepage-theme .member-site-bar.member-archive-header .member-brand small{color:var(--member-peach,#efd3b1)}

/* Six section border controls: palette swatches, clickable pickers, and compact 20 px sliders. */
.member-border-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem}.member-border-control{min-width:0;padding:.75rem}.member-border-control-head{display:flex;align-items:center;justify-content:space-between;gap:.45rem}.member-border-control h3{display:flex;align-items:center;gap:.45rem;min-width:0;margin:0;font-size:1rem}.member-border-control-head input[type=color]{flex:0 0 2.35rem;width:2.35rem;height:2rem;padding:.1rem;margin:0}.member-border-control-thickness{display:flex;align-items:center;gap:.55rem;margin-top:.55rem}.member-border-control-thickness input[type=range]{flex:1;min-width:0;padding:0;accent-color:var(--border-swatch,var(--member-accent,#49745e))}.member-border-control-thickness output{flex:0 0 3.5rem;text-align:right;font-size:.84rem;font-variant-numeric:tabular-nums}.member-border-swatch{display:inline-block;flex:0 0 1.5rem;width:1.5rem;height:1.5rem;border-radius:50%;background:var(--border-swatch);margin:0;box-shadow:0 0 0 1px #26363033}.member-palette-colors{gap:clamp(4px,.65vw,8px)}.member-palette-colors i{flex:0 1 24px;width:clamp(18px,2vw,24px);height:clamp(18px,2vw,24px);min-width:16px}.member-writing-chapter{margin:0 0 2rem}.member-writing-chapter>h2{margin:0 0 .9rem;padding:0 0 .55rem;border-bottom:1px solid rgba(32,58,50,.15);font:500 1.55rem Georgia,serif;color:var(--member-accent,#49745e)}.member-writing-chapter .story-card-grid{margin-bottom:.5rem}.member-writing-chapter .story-card-cover img{display:block;width:100%;height:100%;object-fit:cover}.member-writing-chapter .story-card footer{color:#627067}.member-work-album-grid .album-card-image{position:relative}.member-work-album-grid .record-photo-collage{width:100%;height:100%;min-height:200px}.member-work-album-grid .record-collage-photo{display:block;min-width:0;min-height:0}.member-work-album-grid .record-collage-photo img{display:block;width:100%;height:100%;min-height:0;object-fit:cover}.member-work-album-grid .record-photo-slideshow-links{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.member-design-preview .member-design-photo-samples .member-portrait.has-profile-photo{border-color:var(--member-profile-border-color)}.member-design-preview .member-design-work-sample .member-work-photo-pair>a,.member-design-preview .member-design-work-sample .member-work-photo-pair>.member-work-photo-empty{--work-ring-width:var(--member-work-border-width);--work-ring-color:var(--member-work-border-color)}.member-design-preview .member-design-photo-samples .member-moment-photo{border-color:var(--member-timeline-border-color)}.member-design-preview .member-card-thumb.member-story-preview::after{box-shadow:0 0 0 var(--member-story-border-width) color-mix(in srgb,var(--member-story-border-color) 55%,transparent)}.member-design-preview .member-card-thumb.member-album-preview::after{box-shadow:0 0 0 var(--member-album-border-width) color-mix(in srgb,var(--member-album-border-color) 55%,transparent)}.member-design-preview .member-writing-live-sample .member-writing-card{--writing-color:var(--member-writing-border-color)}
@media(max-width:900px){.member-border-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.member-border-controls{grid-template-columns:1fr}.member-border-control{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,1.4fr);align-items:center;gap:.6rem}.member-border-control-thickness{margin:0}}

/* Preset palettes show six border colors in two rows at the same size as the border preview circles. */
.member-palette-colors{display:grid;grid-template-columns:repeat(3,1.5rem);grid-auto-rows:1.5rem;justify-content:center;align-content:center;gap:.35rem;margin-top:.45rem;overflow:visible}.member-palette-colors i{box-sizing:border-box;flex:none;width:1.5rem;height:1.5rem;min-width:1.5rem;border:1px solid #fff9;border-radius:50%;box-shadow:0 0 0 1px #26363033}
/* Member archive search controls mirror the Stories and Albums archive bars. */
.member-archive-search{margin:1rem 0 1.4rem;flex-wrap:wrap}
.member-archive-search input[name="q"]{flex:1 1 14rem;min-width:0}
.member-archive-add{flex:0 0 auto;white-space:nowrap}
@media(max-width:620px){.member-archive-search>*{min-height:2.7rem}.member-archive-add{order:3}.member-archive-search button{order:4}}

.member-work-social-editor{margin:.8rem 0;border:1px solid var(--line);border-radius:12px;padding:1rem}
.member-work-social-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem 1rem}
.member-work-social-fields label{margin:0}
.member-work-social-links{display:flex;gap:.45rem;align-items:center;flex-wrap:wrap;margin:.75rem 0 0}
.member-work-social-icon{display:inline-grid;place-items:center;width:2rem;height:2rem;border:1px solid var(--line);border-radius:50%;background:var(--surface,#fffefa);color:var(--green,#29473d);font-weight:700;text-decoration:none;transition:transform .15s ease,background .15s ease,color .15s ease}
.member-work-social-icon:hover,.member-work-social-icon:focus-visible{transform:translateY(-2px);background:var(--green,#29473d);color:white}
.member-work-social-icon span{font-size:.9rem;line-height:1}
.member-work-social-linkedin span{font-size:.68rem}
@media(max-width:620px){.member-work-social-fields{grid-template-columns:1fr}}
.member-archive-actions{display:flex;justify-content:flex-end;margin:1rem 0 .5rem}
.member-archive-search{margin:.5rem 0 1.4rem}
.member-social-edit-button{margin:.25rem 0 1rem}
.member-work-social-dialog{width:min(760px,calc(100vw - 2rem));max-height:min(88vh,900px);overflow:auto;border:1px solid var(--line);border-radius:18px;padding:1.25rem;background:var(--surface,#fffefa);color:var(--ink,#263630);box-shadow:0 24px 80px #15251e55}
.member-work-social-dialog::backdrop{background:#17251dcc;backdrop-filter:blur(3px)}
.member-work-social-dialog form{margin:0}
.member-social-dialog-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}
.member-work-section-copy .member-work-social-links{justify-content:flex-end;margin:0 0 .65rem}
.member-work-section-copy{align-self:start}
.member-collection-page .albums-heading>.member-work-social-links{align-self:flex-start;margin:0}
.member-collection-page .albums-heading>.member-work-social-links a{width:2.2rem;height:2.2rem}

.member-social-edit-button{margin:.25rem 0 1rem}
.member-work-social-dialog{width:min(760px,calc(100vw - 2rem));max-height:min(88vh,900px);overflow:auto;border:1px solid var(--line);border-radius:18px;padding:1.25rem;background:var(--surface,#fffefa);color:var(--ink,#263630);box-shadow:0 24px 80px #15251e55}
.member-work-social-dialog::backdrop{background:#17251dcc;backdrop-filter:blur(3px)}
.member-work-social-dialog form{margin:0}
.member-social-dialog-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1rem}
.member-work-section-copy .member-work-social-links{justify-content:flex-end;margin:0 0 .65rem}
.member-work-section-copy{align-self:start}
.member-collection-page .albums-heading>.member-work-social-links{align-self:flex-start;margin:0}
.member-collection-page .albums-heading>.member-work-social-links a{width:2.2rem;height:2.2rem}
/* Keep writing-card photos fully visible inside each framed preview slot. */
.member-writing-photo{box-sizing:border-box}
.member-writing-photo img{box-sizing:border-box;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;background:#fff}
/* Writings archive covers show the complete photo within the story-style frame. */
.member-writing-chapter .story-card-cover{display:flex;align-items:center;justify-content:center;background:var(--member-surface,#fffefa)}
.member-writing-chapter .story-card-cover img{width:100%;height:100%;object-fit:contain;background:var(--member-surface,#fffefa)}
/* Override global cover-image sizing so writing photos fit the fixed cover frame. */
.member-writing-chapter .story-card-cover img{display:block!important;flex:none!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
.member-writing-detail-hero .story-hero-photo>img{display:block;width:100%;height:300px;max-width:600px;max-height:400px;object-fit:contain;background:var(--member-surface,#fffefa)}
.member-writing-detail .member-writing-gallery img{object-fit:contain;background:var(--member-surface,#fffefa)}
.member-writing-chapter-link{display:inline-flex;padding:.4rem .75rem;border:1px solid var(--member-writing-color,#b68a63);border-radius:999px;color:var(--member-accent,#49745e);text-decoration:none}
.member-writing-category-list{display:flex;flex-wrap:wrap;gap:.45rem}
.member-writing-category-list a{padding:.35rem .65rem;border:1px solid var(--line);border-radius:999px;color:var(--member-accent,#49745e);font-size:.84rem;text-decoration:none}
.member-writing-category-list a.is-active,.member-writing-category-list a:hover{background:var(--member-accent,#49745e);border-color:var(--member-accent,#49745e);color:#fff}
@media(max-width:620px){.member-writing-detail-hero .story-hero-photo>img{height:240px}.member-writing-detail .story-detail-layout{grid-template-columns:1fr}}
.member-section-headline-with-socials{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:1rem;row-gap:.15rem;min-width:0}
.member-section-headline-with-socials>.eyebrow{grid-column:1;grid-row:1}
.member-section-headline-with-socials>.member-work-social-links{grid-column:2;grid-row:1;margin:0}
.member-section-headline-with-socials>h2{grid-column:1/-1;grid-row:2}
@media(max-width:560px){.member-section-headline-with-socials{column-gap:.5rem}.member-section-headline-with-socials>.member-work-social-links{gap:.3rem}.member-section-headline-with-socials .member-work-social-icon{width:1.8rem;height:1.8rem}}
.member-homepage-theme .member-site-bar.member-archive-header .member-site-actions .member-note-link{background:var(--member-peach,#efd3b1);border-color:var(--member-peach,#efd3b1);color:#203a32}
/* Let the full slideshow handle sit over the photo frame's top border. */
.member-homepage-theme .member-cover{overflow:visible}
.member-homepage-theme .member-cover-slide{overflow:hidden;border-radius:14px}
.member-homepage-theme .member-cover:after{inset:68% 0 0;border-radius:0 0 14px 14px}
.member-homepage-theme .member-cover-controls{top:-25px;z-index:8}
/* Keep slideshow controls readable without a dark or gray backing block. */
.member-homepage-theme .member-cover-controls{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
.member-homepage-theme .member-cover-controls button,.member-homepage-theme .member-cover-controls span{background:transparent!important;border-color:var(--member-ink,#263630);color:var(--member-ink,#263630)!important;box-shadow:none!important;text-shadow:none}
.member-homepage-theme .member-cover-controls button:hover,.member-homepage-theme .member-cover-controls button:focus-visible{background:transparent!important}
/* Homepage writing previews use the Stories photo-card layout with Writing colors. */
.member-writing-grid:not(.member-writing-live-sample){grid-template-columns:repeat(3,minmax(0,1fr))}
.member-homepage-theme .member-writing-preview-card{border-color:var(--member-writing-border-color,var(--member-writing-color,#b68a63))}
.member-homepage-theme .member-writing-preview-card .member-card-thumb.member-writing-preview-cover{background:linear-gradient(140deg,var(--member-writing-color,#b68a63),color-mix(in srgb,var(--member-writing-color,#b68a63) 55%,var(--member-bg,#eef4ef)));}
.member-homepage-theme .member-writing-preview-card .member-card-thumb.member-writing-preview-cover::after{border-color:color-mix(in srgb,var(--member-writing-border-color,var(--member-writing-color,#b68a63)) 55%,transparent);box-shadow:0 0 0 var(--member-writing-border-width,4px) color-mix(in srgb,var(--member-writing-border-color,var(--member-writing-color,#b68a63)) 55%,transparent)}
.member-homepage-theme .member-writing-preview-card .member-card-thumb.member-writing-preview-cover>img{border-color:var(--member-writing-border-color,var(--member-writing-color,#b68a63));box-shadow:0 0 0 var(--member-writing-border-width,4px) color-mix(in srgb,var(--member-writing-border-color,var(--member-writing-color,#b68a63)) 55%,transparent)}
@media(max-width:760px){.member-writing-grid:not(.member-writing-live-sample){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.member-writing-grid:not(.member-writing-live-sample){grid-template-columns:1fr}}
/* Align social circles with the first section eyebrow, at the far end of its header row. */
.member-section-head:has(>.member-section-headline-with-socials){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,390px);grid-template-rows:auto auto;align-items:end;column-gap:20px;row-gap:0}
.member-section-headline-with-socials{display:contents}
.member-section-headline-with-socials>.eyebrow{grid-column:1;grid-row:1}
.member-section-headline-with-socials>.member-work-social-links{grid-column:2;grid-row:1;justify-self:end;margin:0}
.member-section-headline-with-socials>h2{grid-column:1;grid-row:2}
.member-section-head .member-work-social-icon{display:inline-grid;place-items:center;box-sizing:border-box;padding:0;line-height:1;text-align:center}
.member-section-head .member-work-social-icon>span{display:grid;place-items:center;width:100%;height:100%;line-height:1}
.member-section-head .member-work-social-icon.member-work-social-website svg{display:block;width:15px;height:15px}
@media(max-width:560px){.member-section-head:has(>.member-section-headline-with-socials){grid-template-columns:minmax(0,1fr) max-content;column-gap:.5rem}.member-section-head:has(>.member-section-headline-with-socials)>div:not(.member-section-headline-with-socials){grid-column:1/-1}.member-section-headline-with-socials>.member-work-social-links{gap:.3rem}.member-section-head .member-work-social-icon{width:1.8rem;height:1.8rem}}
.member-work-social-icon{display:inline-grid;place-items:center;box-sizing:border-box;padding:0;line-height:1;text-align:center}
.member-work-social-icon>span{display:grid;place-items:center;width:100%;height:100%;line-height:1}
.member-work-social-icon svg{display:block;width:1rem;height:1rem;max-width:100%;max-height:100%}
/* Keep the About introduction aligned to the far right of its title row. */
.member-section#about .member-section-head>div:last-child{width:min(100%,390px);margin-left:auto;text-align:right}
@media(max-width:560px){.member-section#about .member-section-head>div:last-child{margin-top:.75rem}}

/* Preview cards begin with their own section color, then cycle through the other section colors. */
.member-homepage-theme #stories .member-card:nth-child(6n+1) .member-story-preview{background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #stories .member-card:nth-child(6n+2) .member-story-preview{background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #stories .member-card:nth-child(6n+3) .member-story-preview{background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #stories .member-card:nth-child(6n+4) .member-story-preview{background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #stories .member-card:nth-child(6n) .member-story-preview{background:linear-gradient(140deg,var(--member-work-border-color),color-mix(in srgb,var(--member-work-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #photos .member-card:nth-child(6n+1) .member-album-preview{background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #photos .member-card:nth-child(6n+2) .member-album-preview{background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #photos .member-card:nth-child(6n+3) .member-album-preview{background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #photos .member-card:nth-child(6n+4) .member-album-preview{background:linear-gradient(140deg,var(--member-work-border-color),color-mix(in srgb,var(--member-work-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #photos .member-card:nth-child(6n) .member-album-preview{background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+1) .member-work-preview{--work-ring-color:var(--member-work-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-work-border-color),color-mix(in srgb,var(--member-work-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+2) .member-work-preview{--work-ring-color:var(--member-story-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+3) .member-work-preview{--work-ring-color:var(--member-album-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+4) .member-work-preview{--work-ring-color:var(--member-timeline-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n) .member-work-preview{--work-ring-color:var(--member-writing-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+1) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+2) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-work-border-color),color-mix(in srgb,var(--member-work-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+3) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+4) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-writing-preview-card:nth-child(6n) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)))}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+1) .member-moment-photo{--timeline-circle-border:var(--member-timeline-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+2) .member-moment-photo{--timeline-circle-border:var(--member-writing-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+3) .member-moment-photo{--timeline-circle-border:var(--member-work-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+4) .member-moment-photo{--timeline-circle-border:var(--member-story-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n) .member-moment-photo{--timeline-circle-border:var(--member-album-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+1) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+2) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+3) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-work-border-color),color-mix(in srgb,var(--member-work-border-color) 55%,var(--member-bg)));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+4) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)));background-clip:padding-box}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)));background-clip:padding-box}
/* Keep the photo-frame accent in sync with each preview card's cycle color. */
.member-homepage-theme #stories .member-card:nth-child(6n+1) .member-story-preview,.member-homepage-theme #photos .member-card:nth-child(6n) .member-album-preview{--preview-cycle-color:var(--member-story-border-color)}
.member-homepage-theme #stories .member-card:nth-child(6n+2) .member-story-preview,.member-homepage-theme #photos .member-card:nth-child(6n+1) .member-album-preview{--preview-cycle-color:var(--member-album-border-color)}
.member-homepage-theme #stories .member-card:nth-child(6n+3) .member-story-preview,.member-homepage-theme #photos .member-card:nth-child(6n+2) .member-album-preview{--preview-cycle-color:var(--member-timeline-border-color)}
.member-homepage-theme #stories .member-card:nth-child(6n+4) .member-story-preview,.member-homepage-theme #photos .member-card:nth-child(6n+3) .member-album-preview{--preview-cycle-color:var(--member-writing-border-color)}
.member-homepage-theme #stories .member-card:nth-child(6n) .member-story-preview,.member-homepage-theme #photos .member-card:nth-child(6n+4) .member-album-preview{--preview-cycle-color:var(--member-work-border-color)}
.member-homepage-theme #stories .member-story-preview::after{border-color:color-mix(in srgb,var(--preview-cycle-color) 55%,transparent);box-shadow:0 0 0 var(--member-story-border-width,14px) color-mix(in srgb,var(--preview-cycle-color) 55%,transparent)}
.member-homepage-theme #photos .member-album-preview::after{border-color:color-mix(in srgb,var(--preview-cycle-color) 55%,transparent);box-shadow:0 0 0 var(--member-album-border-width,14px) color-mix(in srgb,var(--preview-cycle-color) 55%,transparent)}
.member-homepage-theme #stories .member-story-preview>img,.member-homepage-theme #photos .member-album-preview>a[data-album-lightbox]{border-color:var(--preview-cycle-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+1){--preview-cycle-color:var(--member-writing-border-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+2){--preview-cycle-color:var(--member-work-border-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+3){--preview-cycle-color:var(--member-story-border-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+4){--preview-cycle-color:var(--member-album-border-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n){--preview-cycle-color:var(--member-timeline-border-color)}
.member-homepage-theme .member-writing-preview-card{border-color:var(--preview-cycle-color)}
.member-homepage-theme .member-writing-preview-card .member-writing-preview-cover::after{border-color:color-mix(in srgb,var(--preview-cycle-color) 55%,transparent);box-shadow:0 0 0 var(--member-writing-border-width,4px) color-mix(in srgb,var(--preview-cycle-color) 55%,transparent)}
.member-homepage-theme .member-writing-preview-card .member-writing-preview-cover>img{border-color:var(--preview-cycle-color);box-shadow:0 0 0 var(--member-writing-border-width,4px) color-mix(in srgb,var(--preview-cycle-color) 55%,transparent)}
/* The sixth color is Profile; each section still starts with its own assigned color. */
.member-homepage-theme #stories .member-card:nth-child(6n) .member-story-preview{background:linear-gradient(140deg,var(--member-profile-border-color),color-mix(in srgb,var(--member-profile-border-color) 55%,var(--member-bg)));--preview-cycle-color:var(--member-profile-border-color)}
.member-homepage-theme #photos .member-card:nth-child(6n+5) .member-album-preview{background:linear-gradient(140deg,var(--member-profile-border-color),color-mix(in srgb,var(--member-profile-border-color) 55%,var(--member-bg)));--preview-cycle-color:var(--member-profile-border-color)}
.member-homepage-theme #photos .member-card:nth-child(6n) .member-album-preview{background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)));--preview-cycle-color:var(--member-story-border-color)}
.member-homepage-theme #work .member-card:nth-child(6n+2) .member-work-preview{--work-ring-color:var(--member-profile-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-profile-border-color),color-mix(in srgb,var(--member-profile-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+3) .member-work-preview{--work-ring-color:var(--member-story-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-story-border-color),color-mix(in srgb,var(--member-story-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+4) .member-work-preview{--work-ring-color:var(--member-album-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-album-border-color),color-mix(in srgb,var(--member-album-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+5) .member-work-preview{--work-ring-color:var(--member-timeline-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-timeline-border-color),color-mix(in srgb,var(--member-timeline-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-card:nth-child(6n+6) .member-work-preview{--work-ring-color:var(--member-writing-border-color);--work-ring-width:var(--member-work-border-width);background:linear-gradient(140deg,var(--member-writing-border-color),color-mix(in srgb,var(--member-writing-border-color) 55%,var(--member-bg)))}
.member-homepage-theme #work .member-work-photo-pair>a,.member-homepage-theme #work .member-work-photo-pair>.member-work-photo-empty{border-width:var(--member-work-border-width,10px)!important}
.member-design-preview .member-design-work-sample .member-work-photo-pair>a,.member-design-preview .member-design-work-sample .member-work-photo-pair>.member-work-photo-empty{border-width:var(--member-work-border-width,10px)!important}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+3){--preview-cycle-color:var(--member-profile-border-color)}
.member-homepage-theme .member-writing-preview-card:nth-child(6n+3) .member-writing-preview-cover{background:linear-gradient(140deg,var(--member-profile-border-color),color-mix(in srgb,var(--member-profile-border-color) 55%,var(--member-bg)));--preview-cycle-color:var(--member-profile-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+4) .member-moment-photo{--timeline-circle-border:var(--member-profile-border-color)}
.member-homepage-theme .member-timeline>.member-moment:nth-child(6n+4) .member-moment-photo-empty{background:linear-gradient(140deg,var(--member-profile-border-color),color-mix(in srgb,var(--member-profile-border-color) 55%,var(--member-bg)));background-clip:padding-box}
.member-entry-edit{margin:1.5rem 0;padding:1rem;border:1px solid color-mix(in srgb,var(--member-accent,#49745e) 28%,transparent);border-radius:14px;background:var(--member-surface,#fffefa)}
.member-entry-edit>summary{display:inline-flex;align-items:center;min-height:42px;padding:.55rem 1rem;border-radius:999px;background:var(--member-accent,#49745e);color:#fff;cursor:pointer;font-weight:700;list-style:none}
.member-entry-edit>summary::-webkit-details-marker{display:none}
.member-front-settings-save-top{display:flex;justify-content:flex-end;margin:.5rem 0 1rem}.member-front-settings-save-middle{display:flex;justify-content:flex-start;margin:1.25rem 0}
.member-content-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:1rem 0 1.5rem}.member-section-title-form{display:flex;align-items:center;gap:.75rem;flex:1;min-width:0}.member-section-title-form input[name=work_title],.member-section-title-form input[name=writings_title]{flex:0 1 50%;width:50%;min-width:10rem;max-width:50%;margin:0}.member-section-title-form button{flex:0 0 auto}.member-content-toolbar>.member-archive-add{margin-left:auto}@media(max-width:620px){.member-content-toolbar{align-items:stretch;flex-direction:column}.member-section-title-form{align-items:stretch;flex-wrap:nowrap}.member-section-title-form input[name=work_title],.member-section-title-form input[name=writings_title]{min-width:0}.member-content-toolbar>.member-archive-add{align-self:flex-end}}

.member-inline-edit{display:block;width:max-content;max-width:100%;margin:auto 0 0 auto;padding:0;border:0;background:none;color:var(--member-accent,#49745e);font-size:.78rem;font-weight:600;line-height:1.4;text-decoration:underline;text-underline-offset:3px}.member-inline-edit:hover{color:var(--member-ink,#203a32)}.member-inline-edit-timeline{margin-left:0;margin-right:auto}.timeline-card-content>.member-inline-edit-timeline{grid-column:1/-1;justify-self:start;margin-top:.7rem}.story-card{display:flex;flex-direction:column}.story-card-copy{display:flex;flex:1;flex-direction:column}.album-card{display:flex;flex-direction:column}.album-card-body{display:flex;flex:1;flex-direction:column}.member-collection-copy{display:flex;flex-direction:column}

.story-featured-copy,.album-feature-copy{display:flex;flex-direction:column}
body.member-entry-modal-open{overflow:hidden}.member-entry-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:clamp(.75rem,3vw,2rem)}.member-entry-modal-backdrop{position:absolute;inset:0;background:rgba(12,25,22,.62);backdrop-filter:blur(3px)}.member-entry-modal-panel{position:relative;z-index:1;width:min(760px,100%);max-height:min(90dvh,900px);overflow:auto;padding:clamp(1rem,3vw,2rem);border:1px solid color-mix(in srgb,var(--member-accent,#49745e) 32%,white);border-radius:1.1rem;background:var(--member-surface,#fffefa);color:var(--member-ink,#203a32);box-shadow:0 24px 80px rgba(0,0,0,.28)}.member-entry-modal-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.member-entry-modal-panel>header h2{margin:0}.member-entry-modal-close{display:grid;place-items:center;width:2.5rem;height:2.5rem;flex:none;border:1px solid currentColor;border-radius:50%;color:inherit;font-size:1.5rem;text-decoration:none}.member-entry-modal-panel .panel{margin:0}.member-entry-modal-panel details>summary{display:none}.member-entry-modal-panel .member-entry-editor-form{margin:0}.member-entry-modal-panel fieldset{min-width:0}.member-entry-edit-error{margin:.65rem 0 0;color:#9d2525;font-size:.875rem}@media(max-width:620px){.member-entry-modal{padding:.5rem}.member-entry-modal-panel{max-height:94dvh;border-radius:.75rem}}
.member-entry-modal-panel>header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 0 1rem;padding:0;background:transparent;color:var(--member-ink,#203a32);border:0;box-shadow:none}.member-entry-modal-panel>header h2{margin:0;color:var(--member-ink,#203a32)}.member-entry-modal-panel>header a{color:inherit}

.member-photo-limit-prompt{position:fixed;inset:0;z-index:10002;display:grid;align-content:center;justify-items:start;gap:.75rem;width:min(34rem,calc(100vw - 2rem));height:max-content;max-height:calc(100dvh - 2rem);overflow:auto;margin:auto;padding:1.25rem;border:1px solid color-mix(in srgb,var(--member-accent,#49745e) 45%,white);border-radius:1rem;background:var(--member-surface,#fffefa);color:var(--member-ink,#203a32);box-shadow:0 20px 70px rgba(0,0,0,.35)}.member-photo-limit-prompt::before{content:'';position:fixed;inset:0;z-index:-1;background:rgba(12,25,22,.58);backdrop-filter:blur(2px)}.member-photo-limit-prompt h3{margin:0}.member-photo-limit-prompt p{margin:0;line-height:1.55}.member-photo-limit-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.5rem;width:100%}.member-photo-limit-actions button{min-height:2.5rem}

.member-photo-limit-prompt{isolation:isolate}

.member-photo-limit-prompt{isolation:isolate;background:#fffefa;color:#18362e;box-shadow:0 20px 70px rgba(0,0,0,.35),0 0 0 100vmax rgba(12,25,22,.62);backdrop-filter:none;opacity:1}.member-photo-limit-prompt::before{display:none}.member-photo-limit-prompt h3,.member-photo-limit-prompt p{color:#18362e;opacity:1}.member-photo-limit-actions button{border:1px solid #49745e;border-radius:999px;background:#fffefa;color:#203a32;opacity:1;font-weight:650;padding:.55rem 1rem}.member-photo-limit-actions button:not(.secondary){background:#285d50;color:#fff;border-color:#285d50}.member-photo-limit-actions button:focus-visible{outline:3px solid #c88f4a;outline-offset:3px}

.member-photo-limit-actions{justify-content:center}

.record-photo-editor{margin:1rem 0;padding:.85rem;border:1px solid #c9d8d2;border-radius:.75rem;min-width:0}.record-photo-editor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem;margin:.35rem 0 .9rem}.record-photo-editor-item{min-width:0;padding:.4rem;border:1px solid #d9ded7;border-radius:.65rem;background:#fffefa}.record-photo-editor-preview{display:block;overflow:hidden;border-radius:.45rem;aspect-ratio:4/3;background:#e8eee9}.record-photo-editor-preview img{display:block;width:100%;height:100%;object-fit:cover}.record-photo-editor-item>.album-check{display:flex;align-items:flex-start;gap:.35rem;margin:.4rem 0 0;font-size:.82rem}.record-photo-editor-pending{display:grid;place-items:center;min-height:5rem;padding:.5rem;text-align:center;background:#f4efe5;border-radius:.45rem;color:#5f594c}
