.ftg{--ink:#213d35;--muted:#64766d;--line:#d7e2d9;--paper:#fafbf7;--green:#255c46;color:var(--ink);background:var(--paper);font:16px/1.55 system-ui,-apple-system,sans-serif;border:1px solid var(--line);border-radius:16px;max-width:1400px;margin:24px auto;overflow:hidden;box-sizing:border-box;text-align:left}.ftg *{box-sizing:border-box}.ftg h2,.ftg h3,.ftg h4{color:var(--ink);line-height:1.25;margin:0 0 16px}.ftg h2{font-family:Georgia,serif;font-size:clamp(27px,4vw,44px);font-weight:500}.ftg h3{font-size:23px;margin-top:24px}.ftg h4{font-size:18px;margin-top:20px}.ftg p{margin:10px 0 20px}.ftg-header{background:#eaf1e6;padding:36px;display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.ftg-header p{color:var(--muted);margin:0}.ftg-eyebrow{font-size:11px;font-weight:800;letter-spacing:3px;display:block;margin-bottom:12px}.ftg-mark{font-size:80px;color:#71916b;line-height:1}.ftg button,.ftg .ftg-file{font:inherit;font-size:14px;line-height:1.3;cursor:pointer;border:1px solid #b9ccbe;background:white;color:var(--ink);padding:11px 15px;border-radius:8px;box-shadow:none;white-space:normal;text-transform:none;letter-spacing:normal;min-height:43px;transition:background .15s}.ftg button:hover,.ftg .ftg-file:hover{background:#e7eee5}.ftg button:focus-visible,.ftg input:focus-visible,.ftg select:focus-visible,.ftg textarea:focus-visible,.ftg summary:focus-visible{outline:3px solid #bd7626;outline-offset:2px}.ftg button[type=submit],.ftg form>button:not([type]),.ftg button[data-action=save]{background:var(--green);color:#fff}.ftg button.ftg-danger{color:#9d2c2c;border-color:#d8abab;background:#fff}.ftg-toolbar{padding:16px 26px;display:flex;flex-wrap:wrap;align-items:end;gap:12px;border-bottom:1px solid var(--line)}.ftg-toolbar label{flex:1;min-width:180px;max-width:420px}.ftg label{font-size:13px;font-weight:600;display:flex;flex-direction:column;gap:6px}.ftg input,.ftg select,.ftg textarea{font:inherit;font-size:15px;line-height:1.4;color:var(--ink);background:#fff;border:1px solid #b9ccbe;border-radius:6px;padding:10px;max-width:100%;width:100%;height:auto;margin:0}.ftg input[type=checkbox]{width:auto;min-width:18px;min-height:18px}.ftg .ftg-check{flex-direction:row;align-items:center;gap:10px}.ftg select[multiple]{height:200px}.ftg input[type=file]{font-size:13px}.ftg .ftg-file{position:relative;flex:0 1 auto;min-width:170px;overflow:hidden;font-weight:400}.ftg-file input{position:absolute;inset:0;opacity:0;cursor:pointer}.ftg-file:focus-within{outline:3px solid #bd7626;outline-offset:2px}.ftg-tabs{display:flex;flex-wrap:wrap;padding:12px 26px;gap:6px;background:#f1f5ee;border-bottom:1px solid var(--line)}.ftg-tabs button{border-color:transparent;background:transparent}.ftg-tabs button[aria-pressed=true]{background:var(--green);color:#fff}.ftg-content{padding:12px 28px 36px;min-height:320px}.ftg-empty{text-align:center;padding:50px 28px;max-width:700px;margin:auto}.ftg-empty h3{font:30px Georgia,serif}.ftg-notice:empty{display:none}.ftg-notice,.ftg-warning{margin:0;padding:12px 26px;background:#e3f0df;color:#244c2d}.ftg-error,.ftg-warning{background:#fff0d9;color:#7a430d}.ftg-cards{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:20px}.ftg button.ftg-card{text-align:left;width:210px;max-width:100%;padding:18px;border-radius:10px;background:#fff;border:1px solid var(--line);border-top:3px solid #8ba486;flex-shrink:0;overflow-wrap:anywhere}.ftg-card strong,.ftg-card small{display:block}.ftg-card small{font-size:12px;color:var(--muted);margin-top:7px}.ftg button.ftg-selected{border-color:var(--green);background:#eaf2e6}.ftg-profile{background:#fff;border:1px solid var(--line);border-radius:12px;padding:24px;margin:20px 0}.ftg-profile h3{font:29px Georgia,serif;margin-top:0}.ftg-profile dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px}.ftg dt{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.ftg dd{margin:2px 0 0}.ftg-prose{white-space:pre-wrap;overflow-wrap:anywhere}.ftg-family{border:1px solid var(--line);padding:22px;border-radius:10px;margin:20px 0}.ftg-children{border-left:3px solid #bccfb5;padding:16px 0 0 22px;margin-left:18px}.ftg-chart{overflow:auto;padding:20px 0 40px}.ftg-chart ul{display:flex;gap:20px;list-style:none;margin:0;padding:25px 0 0;position:relative}.ftg-chart>ul{padding-top:0}.ftg-chart li{text-align:center;position:relative;padding:20px 8px 0;list-style:none;flex:0 0 auto}.ftg-chart li:before{content:'';position:absolute;top:0;left:0;width:100%;border-top:1px solid #a7bca9}.ftg-chart li:after{content:'';position:absolute;height:20px;width:1px;background:#a7bca9;top:0;left:50%}.ftg-chart li:only-child:before{display:none}.ftg-chart>ul>li{padding-top:0}.ftg-chart>ul>li:before,.ftg-chart>ul>li:after{display:none}.ftg-chart ul ul:before{content:'';position:absolute;width:1px;height:25px;left:50%;top:0;background:#a7bca9}.ftg-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:950px}.ftg-form button{justify-self:start}.ftg-wide{grid-column:1/-1}.ftg-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:20px}.ftg-gallery figure{margin:0;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff}.ftg-gallery img{width:100%;height:180px;object-fit:cover;border-radius:6px;background:#eaf0e7}.ftg-gallery figcaption{font-size:13px;margin:10px 0;overflow-wrap:anywhere}.ftg details{padding:18px 0}.ftg summary{cursor:pointer;font-weight:600;margin-bottom:20px}.ftg-calendar{display:grid;gap:10px}.ftg-calendar button{text-align:left}.ftg-calendar strong{display:inline-block;min-width:80px}.ftg[aria-busy=true]{cursor:progress}.ftg[aria-busy=true] .ftg-tools{opacity:.65}.ftg-chart-limit{max-width:210px;font-size:13px}@media(max-width:640px){.ftg-header{padding:24px}.ftg-mark{display:none}.ftg-toolbar,.ftg-tabs{padding:14px}.ftg-content{padding:10px 16px 24px}.ftg-form{grid-template-columns:1fr}.ftg-wide{grid-column:auto}.ftg button.ftg-card{width:180px}.ftg-profile{padding:18px}.ftg-toolbar label{max-width:none}.ftg-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body *{visibility:hidden}.ftg,.ftg *{visibility:visible}.ftg{position:absolute;left:0;top:0;width:100%;border:0;font-size:11pt;background:#fff}.ftg-toolbar,.ftg-tabs,.ftg-tools,.ftg-notice,.ftg details,.ftg button:not(.ftg-card),.ftg-form,.ftg-warning{display:none!important}.ftg-chart{overflow:visible}.ftg button.ftg-card{width:140px;font-size:10pt;padding:8px}.ftg-content{padding:0}.ftg-header{padding:15px 0;background:#fff}.ftg-profile,.ftg-family,.ftg-gallery figure{break-inside:avoid}.ftg-chart ul{gap:5px}.ftg-chart li{padding-left:2px;padding-right:2px}.ftg-header h2{font-size:25pt}}
/* Family, name, tree and printable layouts (1.1.0). */
.ftg .ftg-muted{color:var(--muted)}.ftg .ftg-person-link{display:inline;padding:0;min-height:0;border:0;border-radius:0;background:transparent;color:#14588a;font:inherit;line-height:inherit;font-weight:600;text-align:inherit;vertical-align:baseline;overflow-wrap:anywhere}.ftg .ftg-person-link:hover{background:transparent;color:#07385b;text-decoration:underline}.ftg-section-label{font-size:12px!important;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted)!important;font-weight:700;display:block}.ftg .ftg-family-view{background:#f0f2df;margin:8px -12px -12px;padding:30px 24px;border-radius:12px}.ftg-parent-section{position:relative;text-align:center;padding-bottom:30px}.ftg-parent-section:after{content:'';height:28px;width:1px;background:#8b9a7b;position:absolute;bottom:0;left:50%}.ftg .ftg-parent-section>h3{margin-top:0}.ftg-parent-group{max-width:900px;margin:0 auto 12px}.ftg-parent-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(30px,9vw,150px);align-items:start;position:relative}.ftg-parent-pair:before{content:'';position:absolute;top:45%;left:25%;right:25%;height:1px;background:#8b9a7b}.ftg-parent-pair:after{content:'';position:absolute;top:45%;bottom:-20px;left:50%;width:1px;background:#8b9a7b}.ftg-parent-pair.ftg-one-parent{grid-template-columns:minmax(0,360px);justify-content:center}.ftg-one-parent:before{display:none}.ftg-parent-card{position:relative;z-index:1;background:#f8f9ed;border:1px solid #9ea98f;border-radius:7px;padding:16px;text-align:left;min-width:0}.ftg .ftg-parent-card h4{margin:0 0 10px;font-size:17px;text-align:center}.ftg-parent-card .ftg-vitals{font-size:13px}.ftg .ftg-parent-thumb{width:44px;height:50px;object-fit:cover;border:1px solid var(--line);border-radius:4px;float:left;margin:0 10px 6px 0}.ftg-parent-partners{font-size:13px;margin-top:8px}.ftg-parent-partners>span{color:var(--muted);margin-right:7px}.ftg-parent-group-label{font-size:13px;font-weight:600}.ftg .ftg-quiet{padding:4px 8px;min-height:28px;font-size:12px;border-color:transparent;background:transparent;color:#14588a}.ftg-family-hero{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(220px,1.2fr) minmax(220px,1.1fr);gap:clamp(20px,3vw,44px);align-items:start;padding:24px 0 28px;position:relative}.ftg .ftg-portrait{margin:0 auto 14px;padding:9px 9px 25px;max-width:260px;background:#fff;border:1px solid #aeb7a2;box-shadow:0 3px 10px #253a2726;text-align:left}.ftg .ftg-portrait img{display:block;width:100%;max-height:340px;object-fit:contain;background:#fff}.ftg .ftg-portrait figcaption{font-size:12px;line-height:1.4;margin:10px 3px 0;color:var(--muted);overflow-wrap:anywhere}.ftg-portrait-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;background:#edf0e5;color:#66775f}.ftg-portrait-placeholder>span{font:56px Georgia,serif}.ftg-portrait-placeholder>p{font-size:13px;margin:10px 0}.ftg-portrait-column{text-align:center}.ftg .ftg-person-details>h3{font-size:25px;line-height:1.3;margin:6px 0 18px;text-align:left;overflow-wrap:anywhere}.ftg .ftg-vitals{display:block;margin:0}.ftg .ftg-vitals>div{display:grid;grid-template-columns:65px minmax(0,1fr);gap:9px;margin:0 0 15px}.ftg .ftg-vitals dt{text-transform:none;font-size:13px;letter-spacing:0;padding-top:1px}.ftg .ftg-vitals dd{margin:0;overflow-wrap:anywhere}.ftg-vitals dd>span{display:block}.ftg-marriage{margin-top:16px;overflow-wrap:anywhere}.ftg-detail-label{display:block;color:var(--muted);font-size:12px;letter-spacing:.6px;margin-bottom:4px}.ftg-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}.ftg-inline-actions button{font-size:12px;padding:7px 10px;min-height:34px}.ftg-notes-paper{background:#fafbed;padding:20px;box-shadow:3px 5px 12px #35453026;overflow-wrap:anywhere;font-size:14px}.ftg .ftg-notes-paper h4{font-size:15px;margin:0 0 10px}.ftg .ftg-notes-paper h4:not(:first-child){margin-top:24px}.ftg-notes-paper p:last-child{margin-bottom:0}.ftg .ftg-family-descendants{position:relative;padding-top:28px;text-align:center;border-top:1px solid #aebda3}.ftg-family-descendants:before{content:'';position:absolute;width:1px;height:28px;top:-28px;left:50%;background:#8b9a7b}.ftg .ftg-family-descendants>h3{margin-top:0}.ftg-child-group .ftg-cards{justify-content:center}.ftg .ftg-child-group h4{font-size:14px;margin-top:22px}.ftg-family-album{border-top:1px solid #cdd6c1;margin-top:20px}.ftg .ftg-people-table{border-collapse:collapse;border:1px solid var(--line);background:#fff;width:100%;font-size:14px;line-height:1.5;margin:0}.ftg-people-table th,.ftg-people-table td{padding:13px 16px;vertical-align:top;border:0;border-bottom:1px solid var(--line);text-align:left;min-width:120px;overflow-wrap:anywhere}.ftg-people-table thead th{font-size:12px;letter-spacing:.4px;font-weight:700;background:#eaf0e5;color:var(--ink)}.ftg-people-table tbody th{min-width:210px;font-weight:500}.ftg-people-table tbody tr:nth-child(even){background:#f7f9f3}.ftg-people-table small{display:block;color:var(--muted)}.ftg-table-scroll{max-width:100%;overflow:auto;border-radius:7px}.ftg-surname-index{display:flex;flex-wrap:wrap;gap:5px;margin:0 0 20px}.ftg-surname-index button{min-width:34px;min-height:34px;padding:6px 9px}.ftg-surname-index button[aria-pressed=true]{background:var(--green);color:#fff}.ftg-tree-scroll{overflow:auto;max-width:100%;padding:20px 0}.ftg-hourglass{min-width:660px;padding:10px;display:flex;flex-direction:column;gap:32px;align-items:stretch;text-align:center}.ftg-tree-generation{position:relative}.ftg-tree-generation:not(:first-child):before{content:'';width:1px;height:28px;position:absolute;top:-32px;left:50%;background:#9aaf96}.ftg-tree-generation>h4{font-size:12px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.ftg-tree-pair,.ftg-tree-groups,.ftg-tree-children{display:flex;justify-content:center;gap:18px;align-items:start}.ftg-tree-groups{gap:32px}.ftg-tree-unit{border:1px solid var(--line);border-radius:10px;padding:16px;background:#fff}.ftg-tree-unit h5{font-size:12px;margin:0 0 12px}.ftg-tree-pair>.ftg-card+.ftg-card{position:relative}.ftg-tree-pair>.ftg-card+.ftg-card:before{content:'';position:absolute;width:20px;top:50%;left:-20px;border-top:1px solid #9aaf96}.ftg-tree-siblings{padding:18px;background:#eef2e7;border:1px dashed #b8c6ad;border-radius:8px;align-self:center;max-width:100%}.ftg-tree-siblings h4{font-size:13px;margin:0 0 12px}.ftg-tree-siblings .ftg-cards{justify-content:center;margin:0}.ftg-grandchildren{margin-top:24px;padding-top:20px;border-top:1px solid #aabca3;display:flex;flex-direction:column;gap:12px;position:relative}.ftg-grandchildren:before{content:'';position:absolute;left:50%;top:-24px;height:24px;border-left:1px solid #aabca3}.ftg-kin-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.ftg-kin-groups>section{padding:20px;border:1px solid var(--line);border-radius:10px;background:#fff}.ftg-kin-groups h4{margin-top:0}.ftg-kin-groups .ftg-cards{margin-bottom:0}.ftg-statistics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 28px}.ftg-statistics>div{border:1px solid var(--line);background:#eef3e7;border-radius:9px;padding:20px}.ftg-statistics dd{font:32px Georgia,serif;margin-top:8px}.ftg .ftg-print-controls{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin:10px 0 25px;padding:18px;background:#eef2e8;border:1px solid var(--line);border-radius:8px}.ftg-print-controls>p{font-size:13px;margin:0;flex-basis:100%}.ftg-print-controls>label{min-width:200px}.ftg-print-sheet{background:#fff;border:1px solid var(--line);padding:24px;border-radius:8px}.ftg-print-sheet .ftg-family-view{margin:0}.ftg .ftg-personal-info>h4{margin-bottom:8px}.ftg-private-badge,.ftg-profile-badge{display:inline-block;border:1px solid #c3d2be;background:#e9f0e0;color:#435a37;font-size:11px;border-radius:4px;padding:4px 7px;line-height:1.4;margin-bottom:12px}.ftg .ftg-personal-info dl{display:block}.ftg .ftg-personal-info dl>div{margin-bottom:13px}.ftg .ftg-personal-info dt{font-size:11px}.ftg .ftg-personal-info dd{margin:4px 0 0;font-size:14px}.ftg .ftg-personal-fields{border:1px solid var(--line);border-radius:8px;padding:22px;min-width:0}.ftg-personal-fields>legend{padding:0 8px;font-weight:700;font-size:16px}.ftg-personal-fields>p{font-size:13px;color:var(--muted);margin-top:0}.ftg-photo-actions{display:flex;flex-direction:column;align-items:start;gap:8px}.ftg-photo-actions button{font-size:12px;min-height:32px;padding:7px 10px}.ftg-photo-actions .ftg-profile-badge{margin:0}
@media(max-width:1000px){.ftg-family-hero{grid-template-columns:minmax(140px,.75fr) minmax(200px,1.25fr);gap:24px}.ftg-notes-column{grid-column:1/-1}.ftg-notes-paper{box-shadow:2px 3px 9px #3545301c}.ftg-parent-pair{gap:40px}.ftg .ftg-person-details>h3{font-size:23px}}@media(max-width:640px){.ftg .ftg-family-view{padding:20px 14px;margin:4px -8px}.ftg-parent-pair{grid-template-columns:1fr;gap:16px}.ftg-parent-pair:before,.ftg-parent-pair:after{display:none}.ftg-parent-pair.ftg-one-parent{grid-template-columns:1fr}.ftg-parent-card{max-width:100%}.ftg-family-hero{grid-template-columns:1fr;gap:24px;padding-top:20px}.ftg-notes-column{grid-column:auto}.ftg .ftg-portrait{max-width:220px}.ftg .ftg-person-details>h3{text-align:center}.ftg-person-details>.ftg-section-label{text-align:center}.ftg-inline-actions{justify-content:center}.ftg-kin-groups{grid-template-columns:1fr}.ftg-statistics{grid-template-columns:repeat(2,minmax(0,1fr))}.ftg-statistics>div{padding:14px}.ftg-print-sheet{padding:10px}.ftg .ftg-personal-fields{padding:15px}.ftg .ftg-parent-card h4{text-align:left}.ftg-surname-index{gap:4px}}
@media print{.ftg .ftg-print-controls,.ftg .ftg-surname-index,.ftg .ftg-inline-actions,.ftg .ftg-parent-group>.ftg-quiet,.ftg .ftg-family-album{display:none!important}.ftg .ftg-person-link{display:inline!important;background:transparent!important;color:#000!important;text-decoration:none;padding:0!important;border:0!important;min-height:0!important}.ftg .ftg-family-view{background:#fff;margin:0;padding:10px 0}.ftg .ftg-family-hero{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(150px,1.2fr) minmax(150px,1fr);gap:15px}.ftg .ftg-parent-pair{display:grid;grid-template-columns:1fr 1fr;gap:60px}.ftg .ftg-parent-pair.ftg-one-parent{grid-template-columns:minmax(0,50%)}.ftg .ftg-notes-column{grid-column:auto}.ftg .ftg-portrait{box-shadow:none;max-width:160px;padding:5px}.ftg .ftg-portrait img{max-height:220px}.ftg .ftg-notes-paper{box-shadow:none;padding:10px;background:#fff;border:1px solid #ccc;font-size:9pt}.ftg .ftg-person-details>h3{font-size:17pt}.ftg .ftg-parent-card{font-size:9pt;padding:10px;background:#fff}.ftg .ftg-vitals{font-size:9pt}.ftg .ftg-parent-card .ftg-vitals>div{grid-template-columns:45px 1fr;gap:5px}.ftg .ftg-notes-paper h4{font-size:11pt}.ftg .ftg-people-table{font-size:9pt}.ftg .ftg-people-table th,.ftg .ftg-people-table td{min-width:0;padding:6px}.ftg .ftg-table-scroll,.ftg .ftg-tree-scroll{overflow:visible}.ftg .ftg-people-table thead{display:table-header-group}.ftg .ftg-people-table tr{break-inside:avoid}.ftg .ftg-print-sheet{border:0;padding:0}.ftg .ftg-statistics{grid-template-columns:repeat(3,1fr)}.ftg .ftg-parent-card,.ftg .ftg-portrait,.ftg .ftg-child-group{break-inside:avoid}.ftg .ftg-private-badge{font-size:8pt}.ftg .ftg-tree-unit{padding:8px}.ftg .ftg-hourglass{min-width:0}.ftg .ftg-parent-pair:before,.ftg .ftg-parent-pair:after{display:block}}
/* Also adapt inside narrow WordPress theme content columns on wide screens. */
.ftg{container-type:inline-size}.ftg .ftg-personal-info{margin-bottom:24px}.ftg .ftg-personal-info:last-child{margin-bottom:0}
@media screen{@container (max-width:900px){.ftg .ftg-family-hero{grid-template-columns:minmax(140px,.75fr) minmax(200px,1.25fr);gap:22px}.ftg .ftg-notes-column{grid-column:1/-1}.ftg .ftg-parent-pair{gap:40px}.ftg .ftg-kin-groups{grid-template-columns:1fr}}@container (max-width:600px){.ftg .ftg-family-hero{grid-template-columns:1fr;gap:24px}.ftg .ftg-notes-column{grid-column:auto}.ftg .ftg-parent-pair,.ftg .ftg-parent-pair.ftg-one-parent{grid-template-columns:1fr;gap:16px}.ftg .ftg-parent-pair:before,.ftg .ftg-parent-pair:after{display:none}.ftg .ftg-portrait{max-width:220px}.ftg .ftg-form{grid-template-columns:1fr}.ftg .ftg-wide{grid-column:auto}.ftg .ftg-statistics{grid-template-columns:repeat(2,minmax(0,1fr))}.ftg .ftg-family-view{padding:20px 14px}.ftg .ftg-person-details>h3,.ftg .ftg-person-details>.ftg-section-label{text-align:center}}}
/* Bulk photo uploads, matching inbox and profile thumbnails (1.2.0). */
.ftg .ftg-profile-thumbnails{margin-top:26px;border-top:1px solid #bdc9ae;padding-top:16px}.ftg .ftg-profile-thumbnails h4{font-size:14px;margin:0 0 12px}.ftg-profile-thumbnails h4>span{font-weight:400;color:var(--muted)}.ftg-thumbnail-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;margin-bottom:12px}.ftg button.ftg-thumbnail-button{padding:3px;min-height:0;background:#fff;border:1px solid #b7c8b0;border-radius:5px;overflow:hidden}.ftg .ftg-thumbnail-button img{display:block;width:100%;height:72px;object-fit:cover;background:#e7ecdf;border-radius:2px}.ftg-bulk-upload{background:#edf3e7;border:1px solid var(--line);padding:22px;border-radius:10px;margin-bottom:24px}.ftg-bulk-upload>h4{margin-top:0}.ftg-bulk-upload>p{font-size:14px}.ftg .ftg-upload-status{margin-top:22px;font-size:13px}.ftg-upload-status progress{width:100%;height:14px;margin:10px 0;accent-color:var(--green)}.ftg-upload-status ul{list-style:none;margin:10px 0 16px;padding:0;max-height:260px;overflow:auto}.ftg-upload-status li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 15px;padding:9px 0;border-bottom:1px solid #cfdac7;overflow-wrap:anywhere}.ftg-upload-status li>small{grid-column:1/-1;color:#963922}.ftg-upload-failed>strong{color:#963922}.ftg-upload-done>strong{color:#2d693d}.ftg-upload-uploading>strong{color:#174d88}.ftg .ftg-album-filter{max-width:480px;margin-bottom:20px}.ftg-match-toolbar{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;border:1px solid var(--line);background:#f2f5ed;border-radius:8px;margin-bottom:20px}.ftg-match-toolbar>label{flex:1;min-width:190px;max-width:400px}.ftg-match-toolbar>span{align-self:center;font-size:13px}.ftg .ftg-photo-tile{display:flex;flex-direction:column;gap:10px;min-width:0}.ftg .ftg-photo-tile figcaption{margin:0}.ftg-photo-person{display:block;color:var(--muted);font-size:12px;margin-top:5px}.ftg .ftg-photo-tile>label{font-size:12px}.ftg .ftg-photo-tile select,.ftg .ftg-photo-tile input{font-size:13px;padding:8px}.ftg button.ftg-photo-preview{display:block;border:0;background:#edf1e7;min-height:0;padding:0;border-radius:5px;overflow:hidden;width:100%}.ftg .ftg-photo-preview img{display:block;width:100%;height:190px;object-fit:cover;margin:0}.ftg .ftg-photo-actions{margin-top:auto}.ftg-photo-pagination{display:flex;justify-content:center;align-items:center;gap:16px;margin:24px 0 0;font-size:14px}.ftg .ftg-photo-viewer{position:fixed;inset:0;margin:auto;padding:20px;border:1px solid var(--line);border-radius:12px;width:min(1000px,94vw);max-height:92dvh;max-width:94vw;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 12px 70px #0005}.ftg-photo-viewer::backdrop{background:#13271de0}.ftg-photo-viewer-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}.ftg-photo-viewer-tools strong{overflow-wrap:anywhere}.ftg .ftg-photo-viewer .ftg-large-photo{display:block;width:100%;height:auto;max-height:70dvh;object-fit:contain;background:#f1f4ed}.ftg-photo-viewer>p{font-size:14px;margin:14px 0 0}.ftg button:disabled,.ftg input:disabled{opacity:.55;cursor:wait}
@media(max-width:640px){.ftg-bulk-upload{padding:16px}.ftg-match-toolbar{padding:12px}.ftg .ftg-gallery{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.ftg .ftg-photo-viewer{padding:12px}.ftg-thumbnail-strip{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))}}
@media print{.ftg .ftg-profile-thumbnails,.ftg .ftg-bulk-upload,.ftg .ftg-match-toolbar,.ftg .ftg-photo-pagination,.ftg .ftg-album-filter,.ftg .ftg-photo-viewer{display:none!important}.ftg .ftg-photo-preview{display:block!important}}
/* Wider page and compact Family layout (1.2.1). Screen styles leave printed sheets unchanged. */
@media screen{
  .ftg.ftg--wide{position:relative;left:var(--ftg-page-shift,0px);width:var(--ftg-page-width,100% )!important;max-width:none!important;min-width:0;margin-left:0!important;margin-right:0!important;justify-self:start;flex-shrink:0}
  .ftg-width-host{overflow:visible!important}
  .ftg .ftg-header{padding:20px 24px;align-items:center}
  .ftg .ftg-header h2{font-size:clamp(26px,3vw,36px);margin-bottom:8px}
  .ftg .ftg-eyebrow{margin-bottom:7px}
  .ftg .ftg-mark{font-size:58px}
  .ftg .ftg-toolbar{padding:10px 20px;gap:9px}
  .ftg .ftg-tabs{padding:8px 20px;gap:4px}
  .ftg .ftg-content{padding:10px 24px 24px}
  .ftg .ftg-family-view{padding:20px 18px;margin:4px -8px -8px}
  .ftg .ftg-parent-section{padding-bottom:18px}
  .ftg .ftg-parent-section:after{height:18px}
  .ftg .ftg-parent-group{max-width:1000px;margin-bottom:8px}
  .ftg .ftg-parent-card{padding:12px}
  .ftg .ftg-parent-card h4{margin-bottom:7px}
  .ftg .ftg-family-view .ftg-vitals>div{margin-bottom:9px}
  .ftg .ftg-family-hero{padding:16px 0 20px;gap:24px;line-height:1.4}
  .ftg .ftg-person-details>h3{font-size:24px;margin:5px 0 12px}
  .ftg .ftg-marriage{margin-top:12px}
  .ftg .ftg-inline-actions{margin-top:14px;gap:7px}
  .ftg .ftg-notes-paper{padding:16px;font-size:14px;line-height:1.45}
  .ftg .ftg-notes-paper h4{margin-bottom:7px}
  .ftg .ftg-notes-paper h4:not(:first-child){margin-top:16px}
  .ftg .ftg-notes-paper .ftg-personal-info{margin-bottom:18px}
  .ftg .ftg-notes-paper .ftg-personal-info dl>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:9px;margin-bottom:8px;align-items:start}
  .ftg .ftg-notes-paper .ftg-personal-info dt{padding-top:2px;font-size:11px;letter-spacing:.3px}
  .ftg .ftg-notes-paper .ftg-personal-info dd{margin:0;font-size:14px}
  .ftg .ftg-notes-paper p{margin:8px 0 12px}
  .ftg .ftg-profile-thumbnails{margin-top:18px;padding-top:12px}
  .ftg .ftg-family-descendants{padding-top:20px}
}
@media screen and (min-width:850px){
  .ftg.ftg--wide .ftg-family-view .ftg-family-hero{grid-template-columns:minmax(150px,220px) minmax(220px,.95fr) minmax(240px,1.15fr);gap:24px}
  .ftg.ftg--wide .ftg-family-view .ftg-notes-column{grid-column:3;min-width:0}
  .ftg.ftg--wide .ftg-family-view .ftg-portrait-column{grid-column:1;min-width:0}
  .ftg.ftg--wide .ftg-family-view .ftg-person-details{grid-column:2;min-width:0}
  .ftg.ftg--wide .ftg-family-view .ftg-portrait{max-width:220px}
  .ftg.ftg--wide .ftg-family-view .ftg-person-details>h3,.ftg.ftg--wide .ftg-family-view .ftg-person-details>.ftg-section-label{text-align:left}
}
@media screen and (max-width:849px){
  .ftg .ftg-family-view .ftg-family-hero{grid-template-columns:minmax(140px,.7fr) minmax(0,1.3fr);gap:20px}
  .ftg .ftg-family-view .ftg-notes-column{grid-column:1/-1}
}
@media screen and (max-width:600px){
  .ftg .ftg-header{padding:18px 16px}
  .ftg .ftg-toolbar,.ftg .ftg-tabs{padding:10px 12px}
  .ftg .ftg-content{padding:8px 14px 20px}
  .ftg .ftg-family-view{padding:16px 12px}
  .ftg .ftg-family-view .ftg-family-hero{grid-template-columns:minmax(0,1fr);gap:20px}
  .ftg .ftg-family-view .ftg-notes-column{grid-column:auto}
  .ftg .ftg-notes-paper .ftg-personal-info dl>div{grid-template-columns:95px minmax(0,1fr)}
}

@media screen{.ftg .ftg-person-details .ftg-thumbnail-strip{grid-template-columns:repeat(auto-fill,minmax(54px,1fr));gap:6px}.ftg .ftg-person-details .ftg-thumbnail-button img{height:54px}}
/* 1.2.2: Keep the Other photos empty state readable in the compact family profile. */
.ftg .ftg-profile-thumbnails{min-width:0;width:100%;box-sizing:border-box}
.ftg .ftg-profile-thumbnails h4{white-space:nowrap;overflow-wrap:normal;word-break:normal}
.ftg .ftg-profile-thumbnails .ftg-thumbnail-strip:has(> .ftg-muted){display:block;min-width:0}
.ftg .ftg-profile-thumbnails .ftg-thumbnail-strip > .ftg-muted{display:block;width:100%;margin:0 0 10px;line-height:1.45;white-space:normal;overflow-wrap:normal;word-break:normal}
.ftg .ftg-person-details .ftg-profile-thumbnails{max-width:none}

/* Repeatable education history */
.ftg-education-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(105px,.55fr) minmax(180px,1.3fr) auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid #d8dfd0}
.ftg-education-row label{min-width:0}
.ftg-education-row input{width:100%;box-sizing:border-box}
@media(max-width:700px){.ftg-education-row{grid-template-columns:minmax(0,1fr);gap:6px}}
