
/* Family-connection and archival gallery: inherits seasonal site palette. */
.swth-mock-family,.swth-mock-gallery{background:rgba(255,248,230,.72);border:2px double #b58b4b;border-radius:7px;padding:1.25rem;margin:1.5rem 0;color:#3d261e;font-family:Georgia,serif}
.swth-mock-family h2,.swth-mock-family h3,.swth-mock-gallery h2{color:#780d22;font-family:Georgia,serif}
.swth-ancestor-path{display:flex;align-items:center;flex-direction:column;gap:.3rem}.swth-ancestor-node{background:#fff4d8;border:1px solid #ae8449;border-radius:8px;padding:.65rem 1rem;text-align:center;max-width:100%;min-width:180px;color:#5a1925}.swth-arrow{color:#870d25;font-size:1.3rem}.swth-will{margin-top:1.2rem;border-top:1px solid #b58b4b;padding-top:1rem}.swth-will img{max-width:100%;height:auto}.swth-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.swth-gallery-grid figure{margin:0;text-align:center}.swth-gallery-grid img{width:100%;height:155px;object-fit:cover;border:1px solid #b58b4b;border-radius:5px}.swth-gallery-grid figcaption{font-style:italic;font-size:.9rem;margin-top:.3rem}.swth-family-fields{border:1px solid #b58b4b;margin:1rem 0;padding:1rem}.swth-family-fields input,.swth-family-fields select{max-width:100%}
/* Single-entry historical layout */
.swth-profile-page{max-width:1200px;margin:0 auto;padding:2rem 1.25rem 3rem;font-family:Georgia,'Times New Roman',serif;color:#39241f}.swth-profile-page *{box-sizing:border-box}.swth-profile-breadcrumb{font-size:1rem;border-bottom:1px solid #b78b4a;padding-bottom:.65rem}.swth-profile-breadcrumb span{margin:0 .5rem;color:#987442}.swth-profile-heading{text-align:center;margin:2rem 0 1.6rem}.swth-profile-heading h1{font-size:clamp(2.2rem,4.5vw,4rem);line-height:1.13;color:#780e20;margin:0 0 .6rem}.swth-profile-heading p{font-size:1.2rem;margin:.8rem 0}.swth-profile-status{display:inline-block;background:#780e20;color:#fff4db;padding:.45rem 1.4rem;border-radius:8px;font-weight:bold}.swth-heading-flourish{color:#ae8344;font-size:2rem}.swth-profile-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(285px,1fr);gap:1rem;align-items:start}.swth-profile-panel,.swth-profile-aside>.swth-mock-family{background:rgba(255,249,233,.82);border:3px double #b48b4c;border-radius:8px;padding:1.35rem;box-shadow:inset 0 0 0 3px rgba(255,255,255,.4)}.swth-profile-panel>h2,.swth-profile-aside h2{font-size:clamp(1.6rem,2.5vw,2.3rem);color:#780e20;margin:0 0 1rem}.swth-profile-content{font-size:1.08rem;line-height:1.7;overflow-wrap:anywhere}.swth-profile-content p{margin:0 0 1.1rem}.swth-profile-featured img{max-width:100%;height:auto}.swth-profile-aside>.swth-mock-family{margin:0}.swth-profile-aside .swth-ancestor-node{min-width:0;width:100%;font-size:.95rem}.swth-profile-aside .swth-will{overflow-wrap:anywhere}.swth-profile-main>.swth-mock-gallery{margin:1.5rem 0 0;padding:1rem}.swth-profile-main>.swth-mock-gallery h2{text-align:center}.swth-profile-footer{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:1.5rem}.swth-profile-edit{border:1px solid #780e20;border-radius:5px;padding:.35rem .8rem}@media(max-width:760px){.swth-profile-columns{grid-template-columns:1fr}.swth-profile-page{padding:1.25rem .75rem}.swth-profile-panel,.swth-profile-aside>.swth-mock-family{padding:1rem}}

/* Ornate pedigree using the live OAT relationship path */
.swth-profile-aside>.swth-mock-family{background:#f8e9c8;border:3px double #a87839}
.swth-profile-aside .swth-mock-family>h2{text-align:center;border-bottom:2px solid #b88a48;padding-bottom:.65rem}
.swth-pedigree{font-family:Georgia,serif;color:#661b29;text-align:center}
.swth-pedigree-kicker{font-size:.7rem;letter-spacing:.1em;color:#855b35}
.swth-pedigree-person{background:#fff5df;border:1px solid #b88b4d;border-radius:6px;padding:.65rem .25rem;color:#681e2a;font-size:.85rem;font-weight:700;line-height:1.35;overflow-wrap:anywhere}
.swth-pedigree-founder,.swth-pedigree-last{background:#681e2a;color:#fff1d2;border-color:#d4a957}
.swth-pedigree-caption,.swth-pedigree-spouse{font-size:.7rem;color:#805b39;margin:.4rem 0}
.swth-pedigree-parent:after{content:"";display:block;height:17px;width:2px;background:#aa7b41;margin:auto}
.swth-pedigree-sisters{display:grid;grid-template-columns:1fr 1fr;gap:.5rem;position:relative;padding-top:17px}
.swth-pedigree-sisters:before{content:"";position:absolute;top:0;left:25%;right:25%;border-top:2px solid #aa7b41}
.swth-pedigree-sister{position:relative;min-width:0}
.swth-pedigree-sister:before{content:"";position:absolute;top:-17px;left:50%;height:17px;border-left:2px solid #aa7b41}
.swth-pedigree-ribbon{display:block;background:#75212b;color:#fff1d5;font-size:.65rem;padding:.4rem .2rem;margin-bottom:.4rem;border-radius:3px;min-height:3em}
.swth-pedigree-lineage{margin-left:calc(50% + .25rem);width:calc(50% - .25rem)}
.swth-pedigree-descendant:before{content:"";display:block;width:2px;height:15px;background:#aa7b41;margin:auto}
.swth-pedigree-fallback{margin-left:0;width:100%}
.swth-pedigree-fallback .swth-pedigree-descendant:first-child:before{display:none}

/* v1.15.4: readable chart and continuous Sarah Bassett -> Sarah Elwell branch */
@media(min-width:761px){
 .swth-profile-columns{grid-template-columns:minmax(0,1.45fr) minmax(390px,1fr)}
}
.swth-pedigree-person{font-size:1rem;line-height:1.35;padding:.75rem .4rem;letter-spacing:0}
.swth-pedigree-founder{font-size:1.05rem}
.swth-pedigree-kicker{font-size:.83rem;letter-spacing:.045em}
.swth-pedigree-ribbon{font-size:.79rem;min-height:0;padding:.5rem .25rem}
.swth-pedigree-spouse,.swth-pedigree-caption{font-size:.83rem}
.swth-pedigree-sisters{gap:.65rem}
.swth-pedigree-direct:after{content:"";display:block;height:18px;width:2px;background:#aa7b41;margin:0 auto}
.swth-pedigree-lineage{margin-left:calc(50% + .325rem);width:calc(50% - .325rem)}
.swth-pedigree-lineage>.swth-pedigree-descendant:first-child:before{display:none}
.swth-pedigree-fallback{margin-left:0;width:100%}
.swth-pedigree-fallback>.swth-pedigree-descendant:first-child:before{display:none}
@media(max-width:760px){
 .swth-pedigree-person{font-size:1rem}
 .swth-pedigree-ribbon{font-size:.78rem}
}
/* v1.15.5: unbroken Sarah Bassett to Sarah Elwell descent line */
.swth-pedigree-direct{display:flex;flex-direction:column;align-self:stretch}
.swth-pedigree-direct:after{content:"";display:block;flex:1 0 18px;width:2px;height:auto;background:#aa7b41;margin:0 auto}
.swth-pedigree-lineage:not(.swth-pedigree-fallback)>.swth-pedigree-descendant:first-child:before{display:block;height:18px}
/* Theme styles can override text color; force readable cream on burgundy */
.swth-pedigree .swth-pedigree-founder,
.swth-pedigree .swth-pedigree-last,
.swth-pedigree .swth-pedigree-ribbon{color:#fff2d9 !important}

/* v1.15.6: spouse and marriage details for both Bassett sisters */
.swth-pedigree-marriage{display:flex;flex-direction:column;align-items:stretch;gap:.25rem;margin-top:.15rem}
.swth-pedigree-marriage-symbol{font-size:1.35rem;line-height:1;color:#99672d;font-weight:bold}
.swth-pedigree .swth-pedigree-partner{background:#fff5df;color:#681e2a;font-size:.98rem}
.swth-pedigree-marriage-date{font-size:.78rem;line-height:1.35;color:#69472c;font-weight:600;padding:.15rem 0 .35rem}
.swth-pedigree-direct:after{min-height:18px}
.swth-pedigree .swth-pedigree-founder,.swth-pedigree .swth-pedigree-last,.swth-pedigree .swth-pedigree-ribbon{color:#fff2d9!important}
/* v1.15.8 Historical Gallery */
.swth-mock-gallery{border:1px solid #bb8c4d;background:#fff4dd;border-radius:7px;padding:1.1rem;margin-top:1rem}
.swth-mock-gallery h2{color:#681e2a;text-align:center}
.swth-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:1rem}
.swth-gallery-item{margin:0;background:#fff9ec;border:1px solid #c49b64;border-radius:6px;overflow:hidden}
.swth-gallery-item img{display:block;width:100%;height:180px;object-fit:contain;background:#f6e8ca}
.swth-gallery-item figcaption{padding:.6rem;color:#603a29;font-size:.88rem}
.swth-gallery-item figcaption strong,.swth-gallery-item figcaption span{display:block}
.swth-gallery-editor{border:1px solid #b88b4d;border-radius:7px;padding:1rem;margin:1rem 0;background:#fff5df}
.swth-gallery-editor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:.6rem;margin:.75rem 0}
.swth-gallery-edit-tile{position:relative;display:flex;flex-direction:column;gap:.3rem;border:1px solid #b88b4d;background:#fffaf0;padding:.35rem;cursor:grab}
.swth-gallery-edit-tile img{width:100%;height:90px;object-fit:contain}
.swth-gallery-edit-tile span{font-size:.75rem;overflow-wrap:anywhere}
.swth-gallery-edit-tile .swth-gallery-remove{position:absolute;top:0;right:0;background:#681e2a;color:#fff;border:0;padding:2px 8px;cursor:pointer}

/* Original historical will viewer and editor */
.swth-will-editor{border:1px solid #b88b4d;background:#fff5df;border-radius:7px;padding:1rem;margin:1rem 0}
.swth-will-editor h3{color:#681e2a}
.swth-will-preview img{display:block;max-width:100%;max-height:320px;width:auto;height:auto;object-fit:contain;margin:.6rem 0}
.swth-will-document{display:block;width:100%;max-height:640px;height:auto;object-fit:contain;background:#f9f0df}
.swth-will a{display:block;cursor:zoom-in}
