:root{--ink:#20201d;--muted:#625d55;--paper:#f7f2e9;--white:#fffdf7;--line:#ded6c8;--accent:#fcd307;--dark:#262520;--soft:#ebe2d3;--serif:Georgia,'Times New Roman',serif;--sans:Avenir,system-ui,sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:15px/1.55 var(--sans);background:var(--paper)}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #9b6000;outline-offset:3px}.skip{position:fixed;background:var(--accent);z-index:9;padding:12px;left:12px;top:-100px}.skip:focus{top:12px}.shell{min-height:100vh;display:grid;grid-template-columns:239px minmax(0,1fr)}.rail{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;padding:32px 20px 22px;background:var(--white);border-right:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px;font:bold 21px/.97 var(--serif);margin:0 0 47px 9px}.brand small{font:800 10px/1 var(--sans);letter-spacing:.17em;display:block;margin-top:7px}.brand-mark{width:38px;height:38px;background:var(--accent);border:1px solid #bb9300;border-radius:10px;position:relative;display:block;flex:none}.brand-mark i{display:block;position:absolute;border:1.5px solid var(--ink);width:16px;height:18px;top:9px;border-radius:2px;background:var(--accent)}.brand-mark i:nth-child(1){left:8px;transform:rotate(-14deg)}.brand-mark i:nth-child(2){left:13px;transform:rotate(12deg)}.brand-mark i:nth-child(3){left:11px;top:10px;background:#ffed94}.brand-mark i:nth-child(3)::after{content:'';display:block;position:absolute;inset:7px 2px 4px;border-top:1px solid;transform:rotate(-20deg)}nav{display:grid;gap:5px}.nav-label{margin:0 11px 6px;text-transform:uppercase;letter-spacing:.15em;font-size:10px;font-weight:800;color:var(--muted)}.nav-link{min-height:45px;display:flex;gap:12px;align-items:center;padding:0 11px;border-radius:8px;font-weight:650;color:#4d4941}.nav-link:hover{background:#f3ede2}.nav-link[aria-current="page"]{color:var(--ink);background:#f6e7ac}.icon{width:19px;height:19px;flex:none;vertical-align:-4px;stroke:currentColor;fill:none;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.rail-foot{margin-top:auto;display:flex;gap:10px;align-items:center;padding:11px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.rail-foot b,.rail-foot small{display:block}.fine-dot{width:8px;height:8px;border-radius:50%;background:#546746}.topbar{height:74px;padding:0 max(26px,4vw);display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:rgba(255,253,247,.67)}#breadcrumb,.overline{font-size:10px;font-weight:800;letter-spacing:.17em;text-transform:uppercase}.top-actions,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.button,.btn-plain{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 15px;border-radius:7px;border:1px solid var(--line);background:var(--white);font-weight:760;font-size:13px}.button:hover,.btn-plain:hover{background:var(--soft)}.button.dark{background:var(--dark);color:white;border-color:var(--dark)}.button.dark:hover{background:#434038}.button.gold{background:var(--accent);border-color:#cbab13;color:#1a180b}.button.gold:hover{background:#ffe563}.btn-plain{background:transparent;border-color:transparent}.small-button{min-height:35px;font-size:12px;padding:6px 9px}.small-button svg{width:16px;height:16px}#view{max-width:1370px;margin:0 auto;padding:30px min(4vw,64px) 49px;min-height:calc(100vh - 148px)}footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line);margin:0 min(4vw,64px);padding:18px 0 23px;color:var(--muted);font-size:12px}
.hero{min-height:373px;display:grid;grid-template-columns:1.1fr .9fr;position:relative;isolation:isolate;overflow:hidden;background:#eae0cb;border:1px solid #d8ccb4;border-radius:14px;margin-bottom:37px}.hero-copy{z-index:2;padding:42px clamp(25px,4.8vw,78px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.hero .overline{margin:0 0 14px;display:flex;align-items:center;gap:9px}.hero .overline:before{content:'';width:8px;height:8px;border-radius:50%;background:#a27213}.hero h1{font:normal clamp(42px,5vw,76px)/.97 var(--serif);letter-spacing:-.055em;margin:0}.hero-copy p:not(.overline){margin:18px 0 23px;max-width:36ch;color:#514a3a}.hero-art{position:relative;min-height:100%;overflow:hidden;background:#d6cbb2}.hero-art:before{content:'';display:block;position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#eae0cb 0%,transparent 25%)}.hero-art:after{content:'';position:absolute;inset:18px 18px 18px 32px;border:1px solid #fff6db9c;z-index:1;pointer-events:none;border-radius:3px}.hero-art img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}.hero-index{position:absolute;bottom:29px;right:30px;z-index:2;color:white;background:#242119d9;padding:5px 9px;border-radius:3px;font-size:10px;font-weight:760;letter-spacing:.1em;text-transform:uppercase}.section-bar,.page-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:17px}.section-bar h2,.page-head h1{font:normal 34px/1 var(--serif);letter-spacing:-.035em;margin:0}.page-head h1{font-size:clamp(40px,5vw,67px)}.page-head{align-items:start;margin:12px 0 29px}.page-head .overline{margin:0 0 9px;color:#65543e}.section-bar p,.page-head p{color:var(--muted);margin:6px 0 0}.page-head p:not(.overline){max-width:65ch;margin:11px 0 0}.text-button{display:inline-flex;gap:5px;border:0;background:none;padding:7px 0;border-bottom:1px solid var(--ink);font-weight:750;font-size:13px}.section{margin:30px 0}.card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.media-card,.album-card,.game-card{background:var(--white);border:1px solid var(--line);border-radius:9px;overflow:hidden;min-width:0}.card-open{width:100%;padding:0;text-align:left;border:0;background:transparent;display:block}.card-open:hover .thumb img{transform:scale(1.035)}.thumb{position:relative;aspect-ratio:4/3;overflow:hidden;background:#d9caaf;display:grid;place-items:center}.thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}.thumb-symbol{width:65px;height:65px;stroke-width:.8;color:#564b34}.thumb.film{background:radial-gradient(ellipse at 75% 25%,#5b5141,#292721);color:#f6e7ac}.thumb.film .thumb-symbol{color:#f6e7ac}.thumb-mark{position:absolute;bottom:8px;left:8px;background:#25221c;color:#fff6d7;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;padding:3px 7px;border-radius:3px}.card-meta{padding:11px 12px 14px}.card-meta strong{display:block;font:normal 22px/1.12 var(--serif);overflow-wrap:anywhere}.card-meta div{font-size:12px;color:var(--muted);margin-top:6px}.count-pill,.tag{font-size:11px;font-weight:750;display:inline-block;border-radius:99px;background:#f3ecdd;padding:3px 8px}.card-tools{padding:0 12px 12px;display:flex;gap:6px;flex-wrap:wrap}.filters{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:15px}.filter{border:1px solid var(--line);background:none;padding:6px 11px;border-radius:99px;font-size:12px;font-weight:750}.filter[aria-pressed=true]{background:var(--dark);color:white;border-color:var(--dark)}.empty,.pane,.callout{border:1px solid var(--line);border-radius:10px;padding:24px;background:var(--white)}.empty{padding:29px;border-style:dashed;text-align:center;color:var(--muted)}.empty strong{display:block;font:normal 25px/1.2 var(--serif);color:var(--ink);margin-bottom:8px}.empty .button{margin-top:10px}.callout{display:flex;justify-content:space-between;gap:18px;align-items:center;background:#f6e8b9;border-color:#dfcb84;margin:23px 0}.callout h2{font:normal 26px/1.1 var(--serif);margin:0 0 7px}.callout p{margin:0;color:#514836}.controls{display:grid;gap:11px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}label,legend{font-weight:760;font-size:12px}input:not([type=checkbox]),select,textarea{display:block;width:100%;margin:5px 0 0;padding:9px 10px;border:1px solid #cfc5b2;border-radius:6px;color:var(--ink);background:white}textarea{min-height:72px;resize:vertical}input[type=range]{padding:0}fieldset{border:1px solid var(--line);border-radius:8px;padding:11px;margin:0}.check-row{display:flex;gap:8px;align-items:center;margin:7px 0}dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:13px;padding:0;max-width:min(840px,calc(100vw - 30px));width:100%;max-height:calc(100dvh - 30px);box-shadow:0 18px 90px #211b1565}dialog.narrow{max-width:min(510px,calc(100vw - 30px))}dialog::backdrop{background:#211b15b0}.modal-head{position:sticky;top:0;z-index:3;padding:15px 19px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;align-items:center;background:var(--white)}.modal-head h2{margin:0;font:normal 24px/1.1 var(--serif);overflow-wrap:anywhere}.modal-body{padding:19px}.close{flex:none;border:1px solid var(--line);background:var(--white);height:34px;width:34px;border-radius:50%;font-size:19px}.detail-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:16px}.detail-media{border-radius:8px;background:#25221e;overflow:hidden;display:grid;place-items:center;min-height:180px;align-self:start}.detail-media img,.detail-media video{display:block;width:100%;object-fit:contain;max-height:490px}.detail-separate{border-top:1px solid var(--line);padding-top:12px;margin-top:15px}.detail-separate summary{font-weight:780;cursor:pointer}.detail-separate .controls{margin-top:12px}.detail-image-bar{margin-top:9px;display:flex;flex-wrap:wrap;gap:8px}.notes{margin-bottom:12px;margin-top:5px;color:var(--muted);display:grid;gap:6px}.notes p{border-left:2px solid #ddc47a;padding:3px 9px;margin:0;overflow-wrap:anywhere}.map-canvas{position:relative;aspect-ratio:1000 / 480;border:1px solid #bfd0cd;border-radius:10px;background:#e0ebeb url(/world.svg) center/100% 100%;overflow:hidden}.map-canvas button{position:absolute;top:var(--y);left:var(--x);transform:translate(-50%,-50%);width:25px;height:25px;border-radius:50%;border:2px solid white;background:#26251f;color:#fff;font-size:12px;font-weight:800;box-shadow:0 2px 6px #0005}.map-canvas button:hover{background:#b57813}.map-list{display:grid;gap:8px;margin-top:15px}.map-list button{display:flex;justify-content:space-between;text-align:left}.subnote,.hint{font-size:12px;color:var(--muted);margin:7px 0}.toast{position:fixed;bottom:17px;right:17px;background:#262520;color:white;padding:12px 16px;z-index:99;border-radius:6px;max-width:min(350px,calc(100vw - 34px));box-shadow:0 5px 22px #0004}.game-card{padding:20px}.game-card h2{font:normal 28px/1.05 var(--serif);margin:7px 0}.game-image{position:relative;overflow:hidden;background:#e2d5bf;border-radius:9px;max-height:480px}.game-image img{display:block;width:100%;max-height:480px;object-fit:contain}.game-mask{position:absolute;left:var(--mx);top:var(--my);width:var(--mw);height:var(--mh);background:#24221d;box-shadow:0 0 6px #24221d;border-radius:20%;pointer-events:none}.answer{border:1px solid var(--line);background:#f5e8b7;border-radius:8px;padding:8px 12px;margin-top:12px}.state-error{padding:10px 14px;background:#fbe3df;border:1px solid #cb9488}.glyph{margin:0 5px}.hidden{display:none!important}
@media(max-width:1080px){.shell{grid-template-columns:203px minmax(0,1fr)}.rail{padding-inline:14px}.hero-copy{padding:30px}.card-grid{gap:11px}}
@media(max-width:790px){.shell{display:block}.rail{height:auto;z-index:5;top:0;padding:10px 14px 5px;border-right:0;border-bottom:1px solid var(--line)}.brand{margin:0 0 8px;font-size:18px}.brand-mark{width:28px;height:28px}.brand-mark i{scale:.73;transform-origin:0 0;top:6px}.brand-mark i:nth-child(1){left:6px}.brand-mark i:nth-child(2){left:9px}.brand-mark i:nth-child(3){left:8px;top:8px}.brand small{display:inline;margin-left:8px;font-size:8px}.rail nav{display:flex;gap:5px;max-width:100%;overflow:auto;margin-left:0}.nav-label,.rail-foot{display:none}.nav-link{gap:4px;font-size:12px;min-height:34px;padding:4px 6px;white-space:nowrap}.nav-link .icon{width:14px;height:14px}.topbar{height:57px;padding:0 14px}.topbar #breadcrumb{font-size:9px}.top-actions .button,.top-actions .btn-plain{padding:5px 8px;min-height:35px}.hero{min-height:315px}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-copy{padding:22px}.hero h1{font-size:clamp(36px,8vw,54px)}#view{padding:19px 14px 40px}footer{margin:0 14px}.section-bar h2{font-size:29px}}
@media(max-width:480px){.topbar #breadcrumb{display:none}.topbar{justify-content:flex-end}.hero{display:block}.hero-art{min-height:164px}.hero-art:before{background:linear-gradient(180deg,#eae0cb 0%,transparent 20%)}.hero-art:after{inset:9px}.hero-index{bottom:14px;right:14px}.hero-copy{padding:24px 17px 13px}.hero-copy p:not(.overline){margin:12px 0}.callout,.page-head{align-items:start;flex-direction:column}.card-meta strong{font-size:20px}.detail-layout,.form-row{grid-template-columns:1fr}.thumb-symbol{width:47px;height:47px}.section-bar{align-items:start}}
.game-image{display:table;max-width:100%;max-height:none;min-width:0;margin-inline:auto}.game-image img{width:auto;height:auto;max-width:100%;max-height:min(430px,65vh);object-fit:initial}
.pin-picker{cursor:crosshair;margin-top:10px}.label-image{cursor:crosshair;max-width:100%}.face-marker{position:absolute;top:var(--py);left:var(--px);transform:translate(-50%,-50%);border:1.5px solid #fff;color:white;background:#262520ed;display:grid;place-items:center;font-size:12px;line-height:1;font-weight:800;border-radius:50%;width:24px;height:24px;pointer-events:none}.preview-marker{background:#fcd307;color:#1a1708;z-index:1}.face-row{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:13px;margin:6px 0}
.game-landing .game-card{min-height:184px}.game-landing .game-card:nth-child(1){background:#f6e8b9;border-color:#dfcb84}.game-admin{margin-top:26px}.game-play{max-width:800px}.game-play h2{font:normal 26px var(--serif);margin:0 0 15px}.outfit-art{width:100%;max-height:390px;display:block;border-radius:8px}.game-options{margin-top:13px}.detail-clue{position:relative;overflow:hidden;width:100%;max-width:380px;aspect-ratio:5/3;background:#d9caaf;border-radius:8px}.detail-clue img{width:275%;height:275%;position:absolute;left:50%;top:50%;object-fit:cover;transform:translate(-50%,-50%)}.detail-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:13px}.detail-guess{padding:0;background:var(--white);border:1px solid var(--line);border-radius:7px;overflow:hidden;text-align:left}.detail-guess img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}.detail-guess span{font-size:12px;font-weight:770;padding:6px 8px;display:block;overflow-wrap:anywhere}.detail-guess.correct{border:3px solid #627841;opacity:1}
.memory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-width:640px}.memory-tile{width:100%;aspect-ratio:4/3;padding:0;border:1px solid #bda65b;border-radius:8px;background:#f6e7ac;overflow:hidden;display:grid;place-items:center;color:#655128}.memory-tile span{font-size:clamp(19px,4vw,35px)}.memory-tile img{width:100%;height:100%;object-fit:cover}.memory-tile.visible,.memory-tile.matched{opacity:1;cursor:default;background:#dfd3bb}.memory-tile.matched{outline:2px solid #627841;outline-offset:-3px}.puzzle-board{display:grid;grid-template-columns:1fr 1fr;gap:3px;width:100%;max-width:440px;border:1px solid #85785e;background:#85785e;border-radius:7px;overflow:hidden}.puzzle-tile{width:100%;aspect-ratio:4/3;display:block;padding:0;border:0;background:var(--tile) var(--tx) var(--ty)/200% 200% no-repeat}.puzzle-tile.chosen{outline:4px solid #fcd307;outline-offset:-4px}.puzzle-tile:disabled{opacity:1}.puzzle-reference{display:block;max-width:min(100%,380px);max-height:300px;margin-top:13px;border-radius:7px}
.evidence-photo{max-width:min(100%,650px);margin:0}.evidence-photo img{display:block;max-width:100%;max-height:min(52vh,580px);height:auto;width:auto;object-fit:contain;border-radius:8px;background:#e1d8c9}.evidence-photo figcaption,.spoken-clue figcaption{font-size:12px;color:var(--muted);margin-top:6px}.answer p{margin:6px 0}.game-finish ol{padding-left:22px}.version-banner{padding:9px 17px;background:#f6e7ac;border-bottom:1px solid #bda65b;text-align:center;font-weight:700}.version-banner .button{margin-left:6px}

/* Private address book and family dates */
.family-toolbar{display:flex;align-items:end;justify-content:space-between;gap:1.1rem;margin:0 0 1.35rem}.family-toolbar label{display:grid;gap:.45rem;font-weight:650}.family-toolbar input{width:min(100%,27rem);min-height:2.7rem;border:1px solid #c7cac0;border-radius:.45rem;background:#fff;padding:.6rem .85rem;font:inherit}.family-toolbar .subnote{margin-bottom:.5rem}.family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));gap:1rem}.family-card,.family-calendar-panel,.family-upcoming{background:#fffdf8;border:1px solid #d9d9ce;border-radius:.75rem}.family-card{padding:1rem}.family-card-head{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.65rem}.family-card h2{font-size:1.35rem;margin:0;overflow-wrap:anywhere}.family-card-head p{font-size:.88rem;color:#575c50;margin:.2rem 0 0}.family-card-head .button{margin-inline-start:.15rem}.family-avatar{display:grid;place-items:center;background:#e5e9dc;color:#394b35;width:2.65rem;height:2.65rem;border-radius:50%;font-weight:700;letter-spacing:.04em}.family-contact-fields{margin:1rem 0 0}.family-contact-fields div{border-top:1px solid #e4e3d9;padding:.58rem 0;display:grid;grid-template-columns:6.4rem minmax(0,1fr);gap:.65rem}.family-contact-fields dt{color:#53574e;font-size:.87rem;font-weight:650}.family-contact-fields dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.family-calendar-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(13.75rem,21rem);gap:1rem;align-items:start}.family-month-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:.65rem;padding:1rem}.family-month-title h2,.family-upcoming h2{font-size:clamp(1.4rem,2.4vw,1.9rem);margin:0}.family-month-controls{display:flex;gap:.35rem}.family-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#e2e1d6;border-top:1px solid #e2e1d6;border-radius:0 0 .75rem .75rem;overflow:hidden}.family-weekday,.family-day,.family-cal-blank{background:#fffdf8}.family-weekday{font-size:.75rem;text-align:center;font-weight:650;color:#51594c;padding:.5rem .15rem}.family-cal-blank{background:#f2f0e8}.family-day{min-height:5.1rem;padding:.35rem;overflow-wrap:anywhere}.family-day.is-today{background:#fef8e0}.family-day-no{display:inline-flex;min-width:1.6rem;min-height:1.6rem;align-items:center;justify-content:center;font-size:.83rem;font-variant-numeric:tabular-nums}.is-today .family-day-no{border-radius:50%;background:#f6d154;font-weight:700}.family-event{display:flex;align-items:baseline;gap:.35rem;text-align:left;background:none;border:0;color:inherit;padding:.45rem .25rem;width:100%;min-width:0;border-radius:.4rem;cursor:pointer;font:inherit}.family-event:hover,.family-event:focus-visible{background:#eaeddf}.family-event span:last-child{min-width:0;overflow-wrap:anywhere}.family-event strong,.family-event small{display:block;font-size:.75rem;line-height:1.25}.family-event small{color:#565a50;font-size:.69rem;margin-top:.15rem}.family-event-dot{flex:0 0 .42rem;width:.42rem;height:.42rem;border-radius:50%;background:#a66721;display:inline-block}.family-event-dot.anniversary{background:#507356}.family-upcoming{padding:1rem}.family-upcoming ul{list-style:none;margin:.9rem 0;padding:0;max-height:32rem;overflow:auto}.family-upcoming li{display:grid;grid-template-columns:2.7rem minmax(0,1fr);align-items:center;gap:.5rem;padding:.55rem 0;border-bottom:1px solid #e4e3d9}.family-upcoming .family-event strong{font-size:1rem}.family-upcoming .family-event small{font-size:.78rem}.family-date-chip{background:#eef0e5;border-radius:.4rem;text-align:center;padding:.25rem;color:#394b35}.family-date-chip span{display:block;font-size:.68rem;text-transform:uppercase}.family-date-chip strong{font-size:1.18rem}
@media(max-width:980px){.family-calendar-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){.family-toolbar{display:grid;gap:.45rem}.family-toolbar input{width:100%}.family-toolbar .subnote{margin:0}.family-day{min-height:3.7rem;padding:.12rem}.family-event{gap:.18rem;padding:.3rem .1rem}.family-day .family-event strong{font-size:.65rem}.family-day .family-event small{display:none}.family-day .family-event-dot{flex-basis:.25rem;width:.25rem;height:.25rem}.family-month-head{padding:.7rem}.family-card-head{grid-template-columns:auto minmax(0,1fr) auto}}

/* Family tree, contact-linked local view */
.tree-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,294px);align-items:start;gap:17px}
.tree-main,.tree-side-card{background:#fffdf8;border:1px solid #d9d9ce;border-radius:.8rem;min-width:0}
.tree-side-card{padding:1.15rem}.tree-side{display:grid;gap:17px}
.tree-side-card h2,.tree-branch h2{font:normal clamp(1.4rem,2vw,1.75rem)/1.12 var(--serif);margin:.15rem 0;overflow-wrap:anywhere}
.tree-side-card p:not(.overline){font-size:.91rem;color:#56594f;line-height:1.55;margin:.8rem 0}
.tree-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.tree-side-card .tree-actions{align-items:start}
.tree-count{background:#edf0e5}.tree-count strong{font:normal 2.6rem/1.02 var(--serif)}
.tree-topline,.tree-foot{display:flex;justify-content:space-between;align-items:end;padding:1rem 1.15rem;gap:.75rem}
.tree-topline label{min-width:0;flex:1;max-width:26rem}.tree-foot{font-size:.83rem;align-items:center;color:#53574e}
.tree-foot a,.person-photo-link,.tree-node-explore{font-weight:740;text-decoration:underline;text-decoration-color:#9a8351;text-underline-offset:.2em}
.tree-person-name{font-weight:740}
.tree-node-explore{display:inline-block;margin-top:.25rem;font-size:.75rem}
.tree-diagram{border-block:1px solid #e4e4d7;padding:1.1rem;display:grid;gap:.85rem;background-color:#f2f1e8;background-image:radial-gradient(#d9d9cb 1px, transparent 1px);background-size:17px 17px}
.tree-branch{min-width:0;padding:.85rem;background:#fffdf8e8;border:1px solid #d9d9ce;border-radius:.65rem}
.tree-branch h3{font-size:.7rem;text-transform:uppercase;letter-spacing:.1em;color:#485343;margin:0 0 .6rem}
.tree-branch ul{list-style:none;margin:0;padding:0;display:grid;gap:.5rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr))}
.tree-centre{display:grid;grid-template-columns:1fr 1fr;gap:.85rem;position:relative}
.tree-centre:before,.tree-centre:after{content:"";position:absolute;width:2px;height:.85rem;background:#8a927d;left:25%;top:-.85rem}
.tree-centre:after{top:auto;bottom:-.85rem}
.tree-node{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.45rem;background:#f7f5ed;border:1px solid #e2e1d6;border-radius:.5rem;padding:.5rem}
.tree-node small{display:block;color:#555d51;margin-top:.2rem;overflow-wrap:anywhere}
.tree-node .family-avatar{width:2rem;height:2rem;font-size:.75rem}
.tree-person-name{display:block;overflow-wrap:anywhere;font-size:1rem}.tree-focus{background:#e5eadc;border-color:#a3af99}
.tree-empty{margin:.25rem 0;font-size:.82rem;color:#53574e}.tree-main>.empty{margin:1rem}
.tree-form-error{color:#872e20;border:1px solid #e5b6ab;background:#faeae6;border-radius:.45rem;padding:.5rem .7rem;font-size:.83rem;margin:0}.tree-import-list{max-height:13rem;overflow:auto}
.tree-import-list li{margin:.2rem}
@media (max-width:1100px){.tree-layout{grid-template-columns:minmax(0,1fr)}.tree-side{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tree-side,.tree-centre{grid-template-columns:minmax(0,1fr)}.tree-diagram{padding:.65rem}.tree-centre:before,.tree-centre:after{left:50%}.tree-topline,.tree-foot{padding:.75rem}.tree-topline .button{flex-shrink:0}.tree-side-card{padding:.9rem}}
@media (max-width:375px){.tree-topline{flex-wrap:wrap;align-items:start}.tree-topline label{flex:0 0 100%}}

.tree-lateral{display:grid;gap:.75rem;align-content:start}

/* Interactive, local-only family tree */
.tree-layout.visual-mode{grid-template-columns:minmax(0,1fr)}
.tree-layout.visual-mode>.tree-side{grid-template-columns:repeat(2,minmax(0,1fr))}
.tree-main>.tree-diagram[hidden]{display:none}
.tree-view-bar{display:flex;gap:.7rem;justify-content:space-between;align-items:center;padding:0 1.15rem .9rem}
.tree-view-bar p{margin:0;font-size:.84rem;color:#53574e}
.tree-view-switch{display:inline-flex;align-items:center;gap:3px;padding:3px;background:#edeee3;border:1px solid #d7daca;border-radius:10px}
.tree-view-switch button{border:1px solid transparent;padding:.38rem .75rem;border-radius:7px;background:transparent;font-weight:720;color:#445344;min-height:36px}
.tree-view-switch button[aria-pressed=true]{color:#263425;background:#fffdf8;border-color:#d2d8c8;box-shadow:0 1px 3px #303b261b}
.tree-visual{min-width:0;border-top:1px solid #dedfd3}
.tree-visual-head{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.9rem 1.15rem}
.tree-visual-head h2{font:normal clamp(1.3rem,2.15vw,1.75rem)/1.08 var(--serif);margin:.15rem 0}
.tree-zoom{display:flex;gap:.35rem;align-items:center;flex-wrap:wrap}.tree-zoom .small-button{min-width:35px;min-height:35px}
.tree-graph-port{position:relative;height:clamp(300px,55vh,560px);width:100%;overflow:auto;overscroll-behavior:contain;border-block:1px solid #d2d9cb;touch-action:pan-x pan-y;background:#f0f2e8;cursor:grab}
.tree-graph-port:focus-visible{outline:3px solid #5b7d62;outline-offset:-3px}
.tree-graph-port.is-panning{cursor:grabbing;user-select:none}
.tree-graph-world{position:relative;overflow:hidden;min-height:100%;background:radial-gradient(#b2bea7 1px,transparent 1px) 9px 9px/19px 19px,#f0f2e8}
.tree-graph-stage{position:absolute;left:0;top:0;transform-origin:top left}
.tree-graph-wires{position:absolute;inset:0;pointer-events:none}
.tree-graph-wires path{fill:none;stroke-width:2.4;stroke-linejoin:round}
.wire-parent{stroke:#42644d}.wire-sibling{stroke:#94651d;stroke-dasharray:6 4}.wire-partner{stroke:#785184;stroke-dasharray:1.5 5;stroke-linecap:round}
.tree-graph-label{position:absolute;white-space:nowrap;font-weight:800;letter-spacing:.12em;color:#465d46;text-transform:uppercase;font-size:10px}
.tree-graph-person{position:absolute;display:grid;grid-template-columns:31px minmax(0,1fr);align-items:center;gap:8px;padding:6px 9px;background:#fffdf8;color:#20251d;border:1px solid #a9b49d;border-radius:9px;text-decoration:none;text-align:left;box-shadow:0 2px 5px #26342115;line-height:1.12}
.tree-graph-person:hover,.tree-graph-person:focus-visible{background:#fff;border-color:#4c7457;outline:2px solid #5a8263;outline-offset:2px;z-index:1}
.tree-graph-person.graph-focus{border:2px solid #3b6048;background:#dae7d2;box-shadow:0 0 0 3px #f8fcf2,0 3px 10px #26342133}
.tree-graph-person.graph-sibling,.tree-graph-person.graph-relative{border-color:#c19c5f}
.tree-graph-person.graph-partner{border-color:#b295b9}
.tree-graph-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#ecf0e4;color:#304736;font-size:10px;font-weight:800}
.graph-focus .tree-graph-avatar{background:#3b6048;color:#fff}
.tree-graph-copy{display:grid;gap:3px;min-width:0}
.tree-graph-copy .tree-person-name{font-size:12px;line-height:1.15;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.tree-graph-meta{display:flex;align-items:center;justify-content:space-between;gap:.22rem;min-width:0}
.tree-graph-control{display:inline-flex;align-items:center;min-height:21px;padding:1px 3px;flex:none;color:#254431;font:700 10px/1.15 var(--sans);text-decoration:underline;text-decoration-color:#9a8351;text-underline-offset:.13em;background:none;border:0;cursor:pointer}
.tree-graph-control:focus-visible,.person-photo-link:focus-visible,.tree-node-explore:focus-visible{outline:2px solid #497155;outline-offset:2px;border-radius:2px}
.tree-focus h2 .tree-person-name{font:inherit}
.tree-graph-person:focus-within{z-index:2}
.person-genealogy{display:flex;flex-wrap:wrap;column-gap:1.5rem;row-gap:.4rem;margin:0 0 1rem;padding:.7rem .85rem;background:#fffdf8;border:1px solid var(--line);border-radius:.55rem}
.person-genealogy div{min-width:0}
.person-genealogy dt{font-weight:750;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}
.person-genealogy dd{margin:0;overflow-wrap:anywhere}
.tree-graph-copy small{display:block;color:#505e4e;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tree-visual-foot{padding:.8rem 1.15rem;border-bottom:1px solid #e0e3d7;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1.1rem}
.tree-visual-foot p,.tree-legend{margin:0;font-size:.76rem;color:#50594d}
.tree-legend{display:flex;flex-wrap:wrap;gap:.35rem .85rem;list-style:none;padding:0;font-weight:700}
.tree-legend li{display:flex;align-items:center;gap:.35rem}
.tree-legend i{display:inline-block;width:20px;border-top:2px solid #42644d}
.tree-legend .key-sibling{border-top:2px dashed #94651d}.tree-legend .key-partner{border-top:2px dotted #785184}
@media(max-width:640px){.tree-layout.visual-mode>.tree-side{grid-template-columns:minmax(0,1fr)}.tree-view-bar,.tree-visual-head,.tree-visual-foot{padding-inline:.75rem}.tree-view-bar p{display:none}.tree-graph-port{height:clamp(260px,47vh,390px)}}
@media(max-width:380px){.tree-visual-head{align-items:start;flex-direction:column}.tree-zoom .small-button{min-height:34px}}

/* Put the chart on screen sooner without hiding its actions. */
.page-head:has(+.tree-layout.visual-mode){padding-bottom:15px;margin-top:0;margin-bottom:18px}
.page-head:has(+.tree-layout.visual-mode) h1{font-size:clamp(44px,5vw,69px)}
.page-head:has(+.tree-layout.visual-mode) p:not(.overline){margin-top:.45rem;margin-bottom:0;max-width:65ch}
.visual-mode .tree-visual-head{padding-block:.68rem}
.visual-mode .tree-visual-head .overline{display:none}
.visual-mode .tree-view-bar p{display:none}
@media(min-width:641px){.visual-mode .tree-command-bar{display:flex;align-items:end;gap:.65rem}.visual-mode .tree-topline{flex:1}.visual-mode .tree-view-bar{padding-bottom:1rem}}
@media(max-width:640px){.page-head:has(+.tree-layout.visual-mode){gap:.8rem}.visual-mode .tree-graph-port{height:clamp(235px,43vh,360px)}}

.gallery-pages { margin: 1rem 0; align-items: center; flex-wrap: wrap; }

.directory-section+.directory-section{margin-top:1.8rem}
.directory-section>h2{margin:0 0 .6rem;color:var(--ink);font:normal clamp(1.25rem,2vw,1.55rem)/1.15 var(--serif)}

.mystery-review h3{margin:0;font-size:17px}.mystery-question{margin-top:9px;padding:10px 11px;border:1px solid var(--line);border-radius:8px;background:var(--white)}.mystery-question h4{margin:0 0 8px;font-size:14px;overflow-wrap:anywhere}.mystery-result{margin:0;overflow-wrap:anywhere}.mystery-choices{list-style:none;margin:0 0 10px;padding:0;display:grid;gap:7px}.mystery-choices li{display:flex;gap:6px;align-items:center;justify-content:space-between}.mystery-choices li>div{min-width:0;overflow-wrap:anywhere}.mystery-choices li span{display:block;color:var(--muted);font-size:12px}.mystery-choices button{flex:none}.mystery-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
