:root {
 --p-bg:#f4efe5;--p-surface:#fff;--p-ink:#254c3b;--p-muted:#594638;
 --p-accent:#254c3b;--p-accent-ink:#f4efe5;--p-action:#254c3b;--p-action-ink:#f4efe5;
 --p-inv-bg:#254c3b;--p-inv-surface:#335645;--p-inv-ink:#f4efe5;--p-inv-muted:#c1c7bb;
 --p-inv-accent:#f4efe5;--p-inv-accent-ink:#254c3b;--p-inv-action:#f4efe5;--p-inv-action-ink:#254c3b;
 --font-display:'Newsreader',Georgia,serif;--font-text:'Hanken Grotesk',Arial,sans-serif;
 --display-weight:400;--display-tracking:-.018em;--display-tracking-xl:-.025em;--ly-scale:1.06;
 --cream:var(--p-bg);--green:var(--p-ink);--gold:#b99a5b;--brown:#443e34;--line:#d8cfbd;--white:#fffdf8;
 --bg:var(--cream);--ink:var(--green);--accent:var(--green);--action:var(--green);--t-h2:56px;
 --gut:clamp(24px,5.56vw,80px);--nav:80px;--ease:cubic-bezier(.2,.8,.2,1);
}
*{box-sizing:border-box}html{scroll-padding-top:96px}body{margin:0;background:var(--cream);color:var(--brown);font:400 17px/1.65 var(--font-text)}
a{color:inherit}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
.wrap{width:min(calc(100% - 2 * var(--gut)),1280px);margin-inline:auto}h1,h2,h3{font-family:var(--font-display);font-weight:400;color:var(--green);letter-spacing:var(--display-tracking);line-height:1.08;text-wrap:pretty}
h1{font-size:clamp(42px,5vw,72px);margin:20px 0 24px}h2{font-size:48px;margin:0 0 32px}h3{font-size:30px;margin:0}p{margin:0 0 24px}strong{font-weight:500}em{font-style:normal}
button,.button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:16px;border:1px solid var(--green);border-radius:4px;padding:10px 24px;background:var(--green);color:var(--cream);font-size:16px;font-weight:500;text-decoration:none;cursor:pointer}
button:disabled{opacity:.55;cursor:wait}.outline{background:transparent;color:var(--green)}.light{background:var(--cream);color:var(--green);border-color:var(--cream)}
.actions{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.text-link{display:inline-flex;align-items:center;gap:16px;min-height:44px;color:var(--green);text-decoration:none;text-underline-offset:6px;font-size:16px}.text-link:hover{text-decoration:underline}
.eyebrow{font:500 14px/1.5 var(--font-text);letter-spacing:.015em;color:var(--green);margin:0 0 20px}
.site-header{position:fixed;inset:0 0 auto;height:var(--nav);z-index:30;background:var(--cream);border-bottom:1px solid var(--line)}.nav__bar{height:100%;display:flex;align-items:center;gap:32px}
.brand{display:flex;align-items:center;gap:12px;color:var(--green);text-decoration:none;flex-shrink:0}.brand-crest{object-fit:contain;display:block}.brand small{display:block;font-size:13px;line-height:1.1;letter-spacing:.04em}.brand strong{display:block;font:400 31px/1.05 var(--font-display)}
.nav__links{display:flex;gap:24px;align-items:center;margin-left:auto}.nav__links a{font-size:14px;white-space:nowrap;text-decoration:none;min-height:44px;display:flex;align-items:center;position:relative}.nav__links a[aria-current]{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:9px}.header-cta{white-space:nowrap}.mobile{display:none}
.hero{height:100svh;min-height:720px;padding:136px 0 56px}.hero-layout{display:grid;grid-template-columns:1.15fr .85fr;grid-template-rows:1fr auto;column-gap:64px;row-gap:40px;height:100%}.hero-copy{align-self:start}.hero h1{max-width:760px;margin-top:16px}.hero__lead{max-width:48ch;font-size:20px;line-height:1.5;margin-bottom:32px}.hero__media{display:flex;align-items:flex-start;justify-content:center;height:min(450px,48svh);min-width:0}.family-crest{display:block;width:100%;height:100%;object-fit:contain;max-width:400px}.hero-event{grid-column:1/-1;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:32px;border-top:1px solid var(--line);padding-top:24px}.event-number{color:var(--green);font:400 56px/1 var(--font-display)}.event-number span{font-size:28px;vertical-align:top}.hero-event h2{font-size:28px;margin:0 0 8px}.hero-event .eyebrow{font-size:13px;margin-bottom:8px}.hero-event p{font-size:15px;margin:0}.hero-event .text-link{align-self:end}
.home-section{height:100svh;min-height:720px;padding:120px 0 72px}.section-lead{max-width:58ch;font-size:20px;line-height:1.5;margin-bottom:48px}.directory-list{display:grid}.directory-row{display:grid;grid-template-columns:48px 1fr 1fr 32px;align-items:center;gap:24px;text-decoration:none;padding:32px 0;border-bottom:1px solid var(--line);min-height:128px}.directory-row h3{font-size:30px}.directory-row p{font-size:17px;line-height:1.5;margin:0;max-width:36ch}.row-index{font-size:14px;color:var(--brown)}.row-arrow{font-size:26px;color:var(--green)}
.memory-section{background:#e8e4d8}.memory-section .mo-wh__text{font-size:clamp(36px,4vw,58px);max-width:1080px;line-height:1.12;margin:0 0 64px}.memory-details{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:end}.memory-details p{max-width:48ch;font-size:20px;margin:0}.memory-details .text-link{justify-self:end}
.section{width:min(calc(100% - 2 * var(--gut)),1280px);margin:auto;padding:64px 0 80px}.narrow{max-width:800px}.page-heading{width:min(calc(100% - 2 * var(--gut)),1280px);margin:auto;padding:144px 0 40px;border-bottom:1px solid var(--line)}.page-heading .eyebrow{margin:0;font-size:14px}.page-heading h1{margin-bottom:0;max-width:1000px;font-size:clamp(38px,4.5vw,64px)}
.panel,.content-card{background:var(--white);padding:32px;border:1px solid var(--line);border-radius:8px;margin:24px 0}.content-card h2{font-size:34px;margin-bottom:24px}.content-card .eyebrow{font-size:14px;margin:0 0 16px}.content-card p:last-child{margin-bottom:0}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.location{font-weight:500;color:var(--green)}.empty{padding:48px 0}.empty h2{font-size:34px;max-width:28ch}.empty p{max-width:58ch}.muted{font-size:14px;line-height:1.6;color:#625647}.notice{background:#eee5d1;border-left:3px solid var(--gold);padding:24px;margin:24px 0}.lead{font:400 26px/1.4 var(--font-display)}
label{display:block;font-size:15px;font-weight:500;margin-bottom:20px}input,select,textarea{display:block;width:100%;min-height:48px;margin-top:8px;padding:12px 16px;background:#fff;color:var(--brown);border:1px solid #a49c88;border-radius:4px;font-size:17px}input::placeholder,textarea::placeholder{color:#746c5c;opacity:1}textarea{min-height:144px;resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--green)}.check{display:flex;align-items:flex-start;gap:12px;font-size:15px;font-weight:400;line-height:1.6}.check input{flex-shrink:0;width:20px;height:20px;min-height:20px;margin:3px 0 0}.honeypot{position:absolute;left:-9999px}.search .actions{gap:16px;flex-wrap:nowrap}.search input{margin:0}.search button{white-space:nowrap}.pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0}.result{width:100%;text-align:left;justify-content:space-between;margin:16px 0;padding:24px;background:var(--white);color:var(--green);border-color:var(--line)}.result small{font-size:14px}.tree{display:grid;gap:16px;margin-top:24px}.tree-node{border:1px solid var(--line);border-radius:8px;background:var(--white);padding:24px}.tree-node button{padding:0;background:transparent;color:var(--green);border:0;font:400 28px var(--font-display);justify-content:flex-start}.tree-node p{font-size:16px;margin:8px 0}.tree-edge{border-left:2px solid var(--gold);padding-left:20px}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.photo-grid img{width:100%;height:auto;display:block}.photo-grid figure{margin:24px 0}.photo-grid figcaption{font-size:14px;margin-top:12px}.metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:32px 0}.metric{padding:24px;background:var(--white);border:1px solid var(--line);border-radius:8px;font-size:15px}.metric strong{display:block;color:var(--green);font:400 40px/1.2 var(--font-display);margin-bottom:8px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:32px 0}.tabs button{font-size:15px}.admin-row{background:var(--white);padding:24px;border:1px solid var(--line);border-radius:8px;margin:16px 0;overflow-wrap:anywhere}.admin-row>strong{font-size:20px;color:var(--green)}.admin-row p{margin:8px 0}.admin-row .actions{gap:12px;margin-top:20px}.admin-area{max-width:1280px}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}
footer.closing{background:var(--green);color:var(--cream);padding:80px 0 32px}body[data-page=inicio] footer.closing{height:100svh;min-height:720px;padding-top:120px}footer.closing>.wrap{height:100%;display:flex;flex-direction:column}.footer-close{display:flex;justify-content:space-between;align-items:flex-end;gap:48px;padding-bottom:64px}.footer-close .eyebrow,footer h2{color:var(--cream)}.footer-close h2{font-size:56px;margin:0 0 24px}.footer-close p{max-width:48ch;margin-bottom:0}.footer-close .eyebrow{margin-bottom:24px}.footer-close .button{flex-shrink:0}.footer-directory{display:flex;align-items:start;justify-content:space-between;gap:48px;border-top:1px solid #ffffff35;padding-top:40px;margin-top:auto}.footer-directory .brand{color:var(--cream)}.footer-directory>p{font-size:16px}.footer-directory nav{display:grid;gap:8px}.footer-directory nav a{display:flex;align-items:center;min-height:44px;color:var(--cream);text-decoration:none}.footer-directory nav a:hover{text-decoration:underline;text-underline-offset:6px}.footer-bottom{display:flex;justify-content:space-between;gap:24px;margin-top:40px;padding-top:24px;border-top:1px solid #ffffff35;font-size:14px;color:#d8dbcc}
.skip{position:fixed;top:-100px;left:24px;z-index:100;background:var(--green);color:white;padding:16px 24px;border:2px solid var(--cream);border-radius:4px}.skip:focus{top:12px}:focus-visible{outline:3px solid #8b6a2f;outline-offset:4px}.skip:focus-visible{outline-color:white}[hidden]{display:none!important}[role=status]{white-space:pre-wrap;overflow-wrap:anywhere}.error{color:#9b2929}.success{color:var(--green)}.menu-open{overflow:hidden}
@media(max-width:1180px){.mobile{display:inline-flex;margin-left:auto;order:2}.header-cta{margin-left:0;order:1}.nav__bar{gap:16px}.nav__links{position:fixed;inset:var(--nav) 0 0;display:none;margin:0;padding:32px var(--gut) 64px;background:var(--cream);overflow-y:auto;align-content:start;gap:0}.nav__links.open{display:grid}.nav__links a{min-height:64px;font-size:24px;border-bottom:1px solid var(--line)}.hero-layout{column-gap:32px}.hero h1{font-size:60px}.hero-event{gap:24px}.hero-event h2{font-size:26px}.home-section{padding-top:112px}.directory-row{grid-template-columns:40px 1fr 1fr 24px;gap:16px}.directory-row h3{font-size:27px}}
@media(max-width:900px){.hero{padding-top:120px;padding-bottom:32px;min-height:768px}.hero-layout{grid-template-columns:1fr;grid-template-rows:auto 1fr auto;gap:24px}.hero-copy{max-width:720px}.hero h1{font-size:56px;margin:16px 0 20px}.hero__lead{font-size:18px;margin-bottom:24px;max-width:54ch}.hero__media{height:min(300px,25svh);align-self:center;align-items:center}.hero-event{grid-column:auto}.hero-event h2{font-size:24px}.home-section{height:auto;min-height:100svh;padding:112px 0 64px}.directory-row{grid-template-columns:32px 1fr 24px;gap:16px;padding:24px 0}.directory-row h3{font-size:30px}.directory-row p{grid-column:2;max-width:none}.row-arrow{grid-column:3;grid-row:1/3}.row-index{align-self:start;padding-top:5px}.memory-details{grid-template-columns:1fr;gap:24px}.memory-details .text-link{justify-self:start}.memory-section .mo-wh__text{font-size:48px;max-width:840px;margin-bottom:48px}.footer-directory{flex-wrap:wrap}.footer-close{gap:32px}.footer-close h2{font-size:48px}.metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){:root{--nav:72px;--gut:24px;--t-h2:36px}body{font-size:17px}.brand{gap:10px}.brand strong{font-size:27px}.brand small{font-size:13px}.brand-crest{width:30px;height:38px}.header-cta{display:none}.mobile{margin-left:auto;min-width:76px}.nav__links a{font-size:23px}.hero{height:100svh;min-height:800px;padding:104px 0 24px}.hero-layout{gap:20px}.hero h1{font-size:42px;line-height:1.05;letter-spacing:-.025em;margin:12px 0 20px}.hero .eyebrow{font-size:13px;margin:0}.hero__lead{font-size:17px;line-height:1.5;margin-bottom:24px}.hero .actions{gap:8px;display:grid}.hero .actions .button{width:100%}.hero .actions .text-link{justify-content:center}.hero__media{height:min(168px,20svh)}.hero-event{grid-template-columns:40px 1fr;gap:12px 16px;padding-top:16px}.event-number{font-size:40px;align-self:start}.event-number span{font-size:20px}.hero-event h2{font-size:21px;line-height:1.15;margin-bottom:8px}.hero-event .eyebrow{font-size:13px;margin-bottom:8px}.hero-event p{font-size:14px;line-height:1.4}.hero-event>.text-link{grid-column:2;justify-self:start}.home-section{padding:104px 0 48px;min-height:100svh}.home-section h2{font-size:36px;margin-bottom:24px}.section-lead{font-size:18px;margin-bottom:32px}.directory-row{padding:24px 0;gap:12px}.directory-row h3{font-size:27px}.directory-row p{font-size:16px}.memory-section .mo-wh__text{font-size:38px;line-height:1.14;margin-bottom:40px}.memory-details p{font-size:18px}.section{padding:40px 0 56px}.page-heading{padding:120px 0 32px}.page-heading h1{font-size:40px;margin-top:16px}.panel,.content-card{padding:24px 20px;margin:24px 0}.content-card h2,.empty h2{font-size:30px}.panel>h2{font-size:32px}.check{font-size:15px}.search .actions{display:grid}.search button{width:100%}.result{align-items:start;gap:12px;padding:20px}.result small{max-width:12ch}.pagination{flex-wrap:wrap}.pagination button{flex:1}.field-grid{grid-template-columns:1fr}.photo-grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric{padding:20px}.tabs button{flex:1;min-width:120px}.admin-row{padding:20px}.admin-row .actions button{flex:1}.admin-area>.actions button{width:100%}.footer-close{display:block;padding-bottom:40px}.footer-close h2{font-size:44px}.footer-close .button{margin-top:32px;width:100%}.footer-directory{display:grid;gap:24px;padding-top:32px}.footer-directory p{margin:0}.footer-directory nav{gap:0}.footer-bottom{flex-direction:column;gap:8px;margin-top:24px;font-size:13px}footer.closing,body[data-page=inicio] footer.closing{height:auto;min-height:100svh;padding:80px 0 32px}.text-link{min-height:48px}h2{font-size:36px}h3{font-size:28px}}
@media(max-width:360px){.hero{height:auto;min-height:100svh}.hero h1{font-size:36px}.hero__media{height:144px;margin:8px 0}.hero-event h2{font-size:20px}.hero-event{margin-top:8px}.panel,.content-card{padding:20px 16px}.brand strong{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{.site-header,footer,.actions,button{display:none!important}body{background:white}.hero,.home-section{height:auto;min-height:0;padding:24px 0}.section{padding:0}.hero__media{height:180px}.page-heading{padding-top:0}}
.italian-ribbon{position:absolute;inset:0 0 auto;height:3px;display:grid;grid-template-columns:repeat(3,1fr)}.italian-ribbon span:nth-child(1){background:#008c45}.italian-ribbon span:nth-child(2){background:#f4f5f0}.italian-ribbon span:nth-child(3){background:#cd212a}.event-materials{margin:32px 0}.event-materials h3{font-size:28px;margin-bottom:16px}.event-materials .actions{gap:8px 24px;align-items:start;flex-direction:column}.memory-section .mo-wh__text{font-size:clamp(36px,3.8vw,54px);margin-bottom:40px}.memory-details{align-items:start;gap:48px}.culture-copy h3{font-size:30px;margin:0 0 24px}.culture-copy p{font-size:18px;margin:0 0 24px}.culture-copy p.muted{font-size:15px}.culture-copy .text-link{justify-self:start}.source-photo{position:relative;overflow:hidden;aspect-ratio:1.54;background:#e8e4d8;min-width:0}.source-photo img{position:absolute;top:0;left:-100%;width:200%;max-width:none;height:auto;display:block}
@media(max-width:900px){.memory-details{grid-template-columns:1fr 1fr;gap:32px}.culture-copy h3{font-size:28px}.source-photo{aspect-ratio:1.54}.memory-section .mo-wh__text{font-size:44px}}
@media(max-width:600px){.memory-details{grid-template-columns:1fr;gap:32px}.memory-section .mo-wh__text{font-size:36px}.source-photo{width:100%;aspect-ratio:1.54}.culture-copy h3{font-size:28px}}
.nav__bar{position:relative}.brand-name,.brand-name strong{display:inline;font:400 28px/1.1 var(--font-display);white-space:nowrap}.hero-layout{grid-template-columns:1fr}.hero-main{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:24px;align-items:start}.hero-copy{grid-column:1/7}.hero__media{grid-column:7/13}.hero-event{grid-template-columns:1fr auto;padding-top:16px;gap:24px;min-height:0}.hero-event .eyebrow{font-size:13px;margin:0 0 4px;line-height:1.25}.hero-event .event-place{font:400 24px/1.15 var(--font-display);color:var(--green);margin-bottom:4px}.hero-event p{font-size:14px;line-height:1.4}.footer-meta{margin-top:auto}.footer-directory{margin-top:0;border-top:0}.footer-close .footer-action{color:var(--cream);border-bottom:1px solid #ffffff80;font-size:20px;white-space:nowrap}.footer-close h2{font-size:48px}.home-section h2{font-size:48px}.memory-section .mo-wh__text{font-size:48px}body[data-page=inicio] footer.closing{padding-bottom:72px}.skip:focus-visible{outline-color:var(--green)}.muted{color:#554b3e}
.event-calendar,.event-location,.event-contacts{margin:40px 0;padding-top:32px;border-top:1px solid var(--line)}.event-calendar h3,.event-location h3,.event-contacts h3{margin-bottom:20px;font-size:30px}.event-calendar>.muted{margin-top:20px}.event-location .actions{gap:16px}.event-map:empty{display:none}.event-map{margin-top:24px;border:1px solid var(--line);border-radius:8px;overflow:hidden}.event-map iframe{display:block;width:100%;height:380px;border:0}.event-contact-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.event-contact{border:1px solid var(--line);border-radius:8px;padding:24px;min-width:0}.event-contact h4{font:400 28px/1.15 var(--font-display);color:var(--green);margin:0 0 20px}.event-contact>.eyebrow{font-size:14px;margin-bottom:12px}.event-contact>p{margin-bottom:8px;font-size:16px}.event-contact .actions{gap:12px;margin-top:20px}.event-contact .button{flex:1;padding:10px 16px}.gathering-editor{border:1px solid var(--line);padding:24px;margin:24px 0;min-width:0}.gathering-editor legend{font:400 28px var(--font-display);color:var(--green);padding:0 12px}.event-contact-editor{padding:24px 0;border-bottom:1px solid var(--line);margin-bottom:24px}.field-error{display:block;color:#9b2929;font-size:14px;font-weight:400;margin-top:8px}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:#9b2929}
@media(max-width:900px){.hero-main{grid-template-columns:1fr;gap:24px}.hero-copy,.hero__media{grid-column:auto}.hero-main{height:100%;grid-template-rows:auto 1fr}.hero__media{align-self:center}.hero-layout{grid-template-rows:1fr auto}.footer-close .footer-action{white-space:normal}.hero-event .event-place{font-size:24px}}
@media(max-width:600px){.brand-name,.brand-name strong{font-size:25px}.hero-main{gap:16px}.hero-event{grid-template-columns:1fr;gap:4px;padding-top:16px}.hero-event>.text-link{grid-column:auto}.hero-event .event-place{font-size:21px}.hero-event .eyebrow{margin-bottom:4px}.hero-event .text-link{min-height:44px}.home-section h2,.memory-section .mo-wh__text{font-size:36px}.footer-close h2{font-size:40px}.footer-close .footer-action{display:inline-flex;margin-top:24px}.event-contact-list{grid-template-columns:1fr}.event-calendar .actions{display:grid;gap:12px}.event-location .actions>*{width:100%}.event-map iframe{height:300px}.gathering-editor{padding:20px 16px}.hero__media{height:144px}.hero{min-height:800px}}
@media(max-width:360px){.brand-name,.brand-name strong{font-size:21px}.brand-crest{width:24px;height:32px}.nav__bar{gap:12px}.mobile{min-width:64px;padding:10px 16px}.hero__media{height:128px}}

.skip{left:var(--gut)}
/* Cadastro familiar por etapas, com campos e vínculos acessíveis no celular. */
#member-proposal-form fieldset{border:0;padding:0;margin:24px 0;min-width:0}
#member-proposal-form legend{font:400 30px var(--font-display);color:var(--green);margin-bottom:24px}
#proposal-relative-results{display:flex;gap:12px;flex-wrap:wrap;margin:24px 0}
#proposal-links .panel{display:grid;gap:12px;margin:16px 0;padding:20px}
#proposal-photo-preview{object-fit:contain;border-radius:6px;max-height:220px;margin:16px 0}
.tree-node img{max-width:120px;max-height:160px;object-fit:contain;border-radius:6px}

/* Refinamento editorial: papel claro, brasão em destaque e navegação legível. */
body{background:#f7f4ed}
.site-header{background:#f7f4ed}
.hero{background:var(--cream);padding-top:152px;padding-bottom:40px}
.hero-main{align-items:start}
.hero-copy{align-self:start;padding-bottom:24px}
.hero h1{font-size:clamp(56px,6.3vw,90px);line-height:.98;letter-spacing:-.045em;margin:24px 0 32px}
.hero__lead{max-width:43ch;font-size:19px;line-height:1.65}
.hero__media{position:relative;align-items:center;height:min(440px,48svh);border-left:1px solid var(--line)}
.family-crest{max-width:340px;padding:12px}
.hero-event{background:var(--white);border:1px solid var(--line);border-left:4px solid var(--gold);padding:24px 32px;gap:32px}
.hero-event .event-place{font-size:28px;margin:4px 0 8px}
.hero-event>.text-link{align-self:center;white-space:nowrap}
.hero-event .eyebrow{font-size:14px}
.directory{background:#f7f4ed}
.directory-row{padding:32px 0;transition:background .2s ease,transform .2s ease}
.directory-row:hover{background:#eeeadd}
.row-index{color:#766443;font-size:16px}
.row-arrow{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;font-size:22px}
.memory-section{background:#e7eade}
.source-photo{border-radius:8px}
.origin-photo{aspect-ratio:3/2}
.origin-photo img{inset:0;width:100%;height:100%;object-fit:cover}
.origin-photo span{position:absolute;right:10px;bottom:10px;max-width:calc(100% - 20px);padding:5px 9px;border-radius:4px;background:#251d16;color:#fff8ea;font-size:12px;line-height:1.3}
.page-heading{padding-top:144px;padding-bottom:48px}
.page-heading .eyebrow{color:#665d4e}
.page-heading h1{font-size:clamp(40px,5.3vw,76px);letter-spacing:-.035em;margin-top:24px}
.panel,.content-card,.tree-node,.event-contact,.admin-row{border-color:#ded8cc;border-radius:12px}
.panel{padding:40px}
input,select,textarea{border-color:#b7b2a5;border-radius:6px;background:#fffefa;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus,textarea:focus{box-shadow:0 0 0 3px #254c3b12}
#proposal-progress{padding:12px 16px;background:#edf0e7;border-radius:6px;color:var(--green);font-size:15px}
.nav__links a::after{content:"";position:absolute;bottom:4px;left:0;right:0;height:1px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s ease}
.nav__links a:hover::after{transform:scaleX(1)}
@media(min-width:1181px){.nav__bar{gap:24px}.nav__links{gap:20px}.nav__links a{font-size:14px}.header-cta{padding-inline:20px}}
@media(min-width:901px) and (max-height:780px){.hero{padding-top:120px;min-height:720px}.hero h1{font-size:68px}.hero__media{height:330px}.hero-layout{row-gap:24px}}
@media(max-width:900px){
 .hero{padding-top:120px;height:auto;min-height:100svh}
 .hero-main{grid-template-columns:1.2fr .8fr;grid-template-rows:auto;gap:24px}
 .hero-copy{padding:0}.hero h1{font-size:60px}.hero__lead{font-size:18px}
 .hero__media{height:300px;border-left:0}.family-crest{padding:0}
 .hero-event{padding:24px}.hero-layout{gap:32px}
}
@media(max-width:600px){
 .hero{padding:104px 0 24px;min-height:100svh;height:auto}
 .hero-layout{gap:24px}.hero-main{grid-template-columns:1fr;gap:24px}
 .hero h1{font-size:48px;line-height:1; margin:12px 0 20px}
 .hero__lead{font-size:17px;line-height:1.5;margin-bottom:20px}
 .hero__media{height:136px}.family-crest{max-width:160px}
 .hero-event{padding:16px;gap:4px}.hero-event .event-place{font-size:21px}
 .hero-event p{font-size:14px}.hero-event>.text-link{white-space:normal}
 .directory-row{padding:24px 0}.row-arrow{width:36px;height:36px;font-size:20px}
 .page-heading{padding-top:120px;padding-bottom:32px}
 .panel{padding:24px 20px}.section{padding-top:32px}
}
@media(max-width:360px){.hero h1{font-size:46px}.hero-event{padding:16px}.hero__media{height:152px}}

/* Rodapé compacto com a faixa tricolor da Itália. */
footer.closing,body[data-page=inicio] footer.closing{position:relative;height:auto;min-height:0;padding:40px 0 24px;background:#254c3b;color:#fff}
footer.closing>.italian-ribbon{height:6px}
footer.closing>.italian-ribbon span:nth-child(2){background:#fff}
footer.closing>.wrap{height:auto}
.footer-close{align-items:center;gap:32px;padding-bottom:24px}
.footer-close .eyebrow{margin-bottom:8px;color:#fff}
.footer-close h2{font-size:36px;margin-bottom:12px;color:#fff}
.footer-close h2 br{display:none}
.footer-close p{font-size:16px;max-width:60ch}
.footer-close .footer-action{color:#fff;font-size:17px;border-bottom-color:#ffffff80}
.footer-meta{margin-top:0}
.footer-directory{align-items:center;gap:24px;padding-top:24px;border-top:1px solid #ffffff35}
.footer-directory .brand,.footer-directory nav a{color:#fff}
.footer-directory>p{margin:0;font-size:14px}
.footer-directory nav{display:flex;flex-wrap:wrap;gap:8px 24px}
.footer-directory nav a{font-size:14px;min-height:44px}
.footer-bottom{margin-top:16px;padding-top:16px;gap:16px;color:#e5ebe7;font-size:13px}
@media(max-width:900px){.footer-directory>p{display:none}}
@media(max-width:600px){
 footer.closing,body[data-page=inicio] footer.closing{padding:32px 0 20px}
 .footer-close{display:block;padding-bottom:20px}
 .footer-close h2{font-size:30px}
 .footer-close .footer-action{margin-top:12px}
 .footer-directory{display:flex;align-items:start;gap:12px;padding-top:20px}
 .footer-directory nav{gap:0 20px}
 .footer-bottom{gap:4px;margin-top:12px;padding-top:12px}
}

/* O acervo acompanha o conteúdo, sem blocos forçados à altura da tela. */
body[data-page=inicio] .hero{height:auto;min-height:0;padding-top:136px;padding-bottom:40px}
body[data-page=inicio] .hero-layout{height:auto;gap:40px}
body[data-page=inicio] .home-section{height:auto;min-height:0;padding:64px 0}
body[data-page=inicio] .section-lead{margin-bottom:32px}
body[data-page=inicio] .directory-row{min-height:112px;padding:24px 0}
body[data-page=inicio] .memory-section .mo-wh__text{margin-bottom:40px}

.event-heading{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:48px;align-items:center;padding-bottom:48px}
.event-heading-copy{min-width:0}
.event-heading h1{font-size:clamp(40px,4.6vw,64px);max-width:16ch;margin-bottom:24px}
.event-intro{max-width:48ch;font-size:19px;line-height:1.6}
.event-heading-photo{aspect-ratio:1.54;align-self:center;min-height:0}
.event-facts{display:grid;grid-template-columns:1fr 1fr;gap:16px 24px;margin:32px 0}
.event-facts>div:last-child{grid-column:1/-1}
.event-facts dt{font-size:14px;color:#665d4e;margin-bottom:4px}
.event-facts dd{margin:0;font-size:18px;font-weight:500;color:var(--green)}
#confirmar-presenca{scroll-margin-top:var(--nav)}
.attendance-page{max-width:620px}
.attendance-page h1{font-size:clamp(36px,6vw,56px)}
@media(max-width:600px){.attendance-page .actions{display:grid}}
#share-attendance-status{overflow-wrap:anywhere}
#attendance-form [role="status"]:empty{margin:0}
body[data-event-detail="true"] main>.section{max-width:1280px;padding-top:40px}
body[data-event-detail="true"] .content-card{display:grid;grid-template-columns:1.1fr 1fr;gap:32px 48px;border:0;background:transparent;padding:0;margin:0}
body[data-event-detail="true"] .content-card>*{grid-column:1/-1;min-width:0}
body[data-event-detail="true"] .content-card>.eyebrow,
body[data-event-detail="true"] .content-card>h2,
body[data-event-detail="true"] .content-card>h2+p,
body[data-event-detail="true"] .content-card>.location{display:none}
body[data-event-detail="true"] .content-card .event-story{grid-column:1;grid-row:1}
.event-story h2,.event-program h2{font-size:36px;margin-bottom:24px}
.event-story p{font-size:17px;line-height:1.75;margin-bottom:24px}
body[data-event-detail="true"] .content-card .event-program{grid-column:2;grid-row:1;padding:32px;background:#e7eade;border-radius:12px;align-self:start;scroll-margin-top:104px}
.event-program ol{list-style:none;padding:0;margin:0}
.event-program li{font-size:17px;padding:16px 0;border-bottom:1px solid #254c3b26;color:var(--green)}
.event-program li:first-child{padding-top:0}.event-program li:last-child{border-bottom:0;padding-bottom:0}
body[data-event-detail="true"] .content-card>.muted{margin:0}
body[data-event-detail="true"] .notice{margin:0}
body[data-event-detail="true"] .event-calendar,
body[data-event-detail="true"] .event-location,
body[data-event-detail="true"] .event-contacts{margin:0;padding-top:32px;scroll-margin-top:104px}
body[data-event-detail="true"] .event-contact{background:var(--white);border-top:3px solid var(--green)}
body[data-event-detail="true"] .event-materials{margin:0;padding-top:24px;border-top:1px solid var(--line)}
body[data-event-detail="true"] #share-event{justify-self:start}
body[data-event-detail="true"] #more-content{display:none}
@media(max-width:900px){
 .event-heading{grid-template-columns:1fr;gap:32px}.event-heading h1{max-width:22ch}
 .event-heading-photo{aspect-ratio:2;min-height:0;max-height:320px}
 body[data-event-detail="true"] .content-card{grid-template-columns:1fr;gap:32px}
 body[data-event-detail="true"] .content-card .event-story,
 body[data-event-detail="true"] .content-card .event-program{grid-column:1;grid-row:auto}
}
@media(max-width:600px){
 body[data-page=inicio] .hero{padding-top:104px;padding-bottom:32px}
 body[data-page=inicio] .hero-layout{gap:24px}
 body[data-page=inicio] .home-section{padding:40px 0}
 body[data-page=inicio] .directory-row{min-height:0}
 body[data-page=inicio] .memory-section .mo-wh__text{margin-bottom:32px}
 .event-heading{padding-bottom:32px;gap:24px}
 .event-heading h1{font-size:42px}.event-intro{font-size:17px}
 .event-facts{gap:16px;margin:24px 0}.event-facts dd{font-size:16px}
 .event-heading .actions{display:grid;gap:8px}.event-heading .actions .text-link{justify-content:center}
 body[data-event-detail="true"] main>.section{padding-top:32px}
 body[data-event-detail="true"] .content-card .event-program{padding:24px}
 .event-story h2,.event-program h2{font-size:30px}
}

.gathering-list-section{padding-top:32px}
.gathering-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-bottom:32px}
.gathering-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.gathering-cover{position:relative;aspect-ratio:1.54;min-width:0;overflow:hidden;background:#e8eade}
.gathering-cover img{display:block;width:100%;height:100%;object-fit:cover}
.gathering-cover[data-cover=folder] img{position:absolute;top:0;left:-100%;width:200%;height:auto;max-width:none}
.gathering-cover[data-cover=crest] img{object-fit:contain;padding:32px}
.gathering-card-copy{display:flex;flex-direction:column;flex:1;padding:24px}
.gathering-card .eyebrow{font-size:13px;margin-bottom:16px}
.gathering-card h2{font-size:30px;line-height:1.12;margin:0 0 16px}
.gathering-card .location{font-size:15px;margin-bottom:16px}
.gathering-summary{font-size:16px;line-height:1.6;margin-bottom:24px}
.gathering-card .button{align-self:start;margin-top:auto;pointer-events:none}
.event-back{margin-bottom:16px}
.event-heading .actions:empty{display:none}
body[data-event-detail=true] .content-card:not(:has(.event-program)) .event-story{grid-column:1/-1;max-width:72ch}
.related-gallery{padding-top:32px;border-top:1px solid var(--line);scroll-margin-top:104px}
.related-gallery-heading h2{font-size:36px;margin-bottom:12px}
.related-gallery-heading p{margin-bottom:24px}
.related-gallery .photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.related-gallery figure{min-width:0;margin:0 0 16px}
.related-gallery figure a{display:block;overflow:hidden;border-radius:8px;background:#e8eade}
.related-gallery .photo-grid img{aspect-ratio:4/3;object-fit:cover}
.related-gallery figcaption{font-size:14px;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:1100px){.gathering-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-gallery .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
 .gathering-grid{grid-template-columns:1fr;gap:24px}
 .gathering-card-copy{padding:24px}.gathering-card .button{width:100%}
 .related-gallery .photo-grid{grid-template-columns:1fr}
 .related-gallery-heading h2{font-size:30px}
}

/* Árvore com projeção 3D, controles locais e alternativa em lista. */
.genealogy-section>p,.genealogy-section>.search,.genealogy-section>.pagination,#search-results{max-width:800px}
#tree-panel{scroll-margin-top:104px;margin-top:40px}#tree-panel>label{max-width:280px}
.tree-3d-viewer{overflow:hidden;border:1px solid #cdd6c8;border-radius:12px;background:#f0f2e8}
.tree-3d-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:20px 24px;border-bottom:1px solid #d6decd;background:#fafbf5}
.tree-3d-caption{display:grid;gap:4px}.tree-3d-caption strong{color:var(--green);font-size:18px}.tree-3d-caption span{font-size:13px;color:#5c6656}
.tree-3d-controls{display:flex;flex-wrap:wrap;gap:8px}.tree-3d-controls button{min-width:44px;padding:8px 16px;font-size:14px}.tree-3d-controls button[aria-pressed=true]{background:var(--green);color:white}
.tree-3d-stage{position:relative;height:600px;overflow:hidden;touch-action:none;cursor:grab;isolation:isolate;background:#edf0e3}
.tree-3d-stage:active{cursor:grabbing}.tree-3d-stage:focus-visible{outline-offset:-4px}
.tree-3d-stage canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tree-person-anchor{position:absolute;left:0;top:0;width:164px;will-change:transform}
.tree-person{position:relative;display:flex;align-items:center;gap:8px;min-height:56px;width:164px;padding:12px;white-space:normal;text-align:left;border:1px solid #a7b798;border-radius:8px;background:#fffef7;color:var(--green);line-height:1.25;cursor:pointer;box-shadow:0 3px 0 #254c3b12}
.tree-person:hover{background:#f7f4e7;border-color:var(--green)}
.tree-person--selected{background:var(--green);border:2px solid #bd9c5a;color:white}.tree-person--selected:hover{background:#315e48}
.tree-person img{width:32px;height:40px;object-fit:cover;border-radius:4px;flex-shrink:0}
.tree-person-copy{display:grid;gap:4px;min-width:0}.tree-person strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.tree-person small{font-size:12px;font-weight:400}
.tree-3d-help{padding:16px 24px 0;font-size:14px;margin:0;color:#46533e}
.tree-3d-legend{display:flex;flex-wrap:wrap;gap:12px 24px;padding:12px 24px 20px;font-size:13px;color:#46533e}
.tree-3d-legend span::before{content:"";display:inline-block;vertical-align:middle;width:20px;height:2px;background:#254c3b;margin-right:8px}.tree-3d-legend .tree-legend-union::before{background:#96723a}.tree-3d-legend .tree-legend-research::before{height:0;border-top:2px dashed #657659;background:none}
.tree-accessible-list{margin:16px 0}.tree-accessible-list>summary{min-height:48px;padding:12px 0;cursor:pointer;color:var(--green);font-weight:500}
.genealogy-section #tree-panel{max-width:100%;min-width:0}
.genealogy-displays{display:flex;gap:8px;flex-wrap:wrap;margin:24px 0 16px}
.genealogy-displays [aria-pressed=true]{background:var(--green);color:#fff;border-color:var(--green)}
.genealogy-diagram{display:grid;gap:16px;min-width:0}
.genealogy-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px 24px}
.genealogy-toolbar strong{font-size:16px;color:var(--green)}
.genealogy-toolbar label{display:grid;gap:4px;margin:0;width:min(100%,322px);font-size:14px}
.genealogy-toolbar select{margin:0;max-width:100%}
.tree-3d-legend.genealogy-diagram-legend{padding:0}
.genealogy-branches{display:grid;gap:24px;min-width:0}
.genealogy-branch{min-width:0;border:1px solid #ccd5c7;border-radius:10px;background:#edf0e5;scroll-margin-top:104px}
.genealogy-branch-header{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:4px 18px;padding:16px 20px;border-bottom:1px solid #ccd5c7;background:#f8f8f1;border-radius:10px 10px 0 0}
.genealogy-branch-header h3{margin:0;color:var(--green);font-size:25px}
.genealogy-branch-header span{color:#435342;font-size:14px}
.genealogy-viewport{max-height:640px;overflow:auto;overscroll-behavior-inline:contain;scrollbar-color:#839781 #e2e8da}
.genealogy-viewport:focus-visible{outline-offset:-3px}
.genealogy-board{position:relative;margin-inline:auto}
.genealogy-board canvas{position:absolute;top:0;height:100%;pointer-events:none}
.genealogy-person{display:grid;grid-template-columns:1fr;align-content:center;gap:3px;min-width:0;min-height:76px;padding:8px 11px;text-align:left;line-height:1.23;border:1px solid #a9b9a4;border-radius:7px;background:#fffdf6;color:var(--green);cursor:pointer}
.genealogy-card-position{position:absolute;width:182px}
.genealogy-card-position .genealogy-person{width:100%;height:76px}
.genealogy-person:has(img){grid-template-columns:34px minmax(0,1fr);column-gap:8px}
.genealogy-person img{grid-row:1 / 3;width:34px;height:42px;object-fit:cover;border-radius:4px}
.genealogy-person strong{font-size:15px;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.genealogy-person:has(span) strong{-webkit-line-clamp:2}
.genealogy-person span{font-size:12px;color:#435342}
.genealogy-person:hover,.genealogy-person:focus-visible{border-color:var(--green);background:#f8f3df}
.genealogy-person[aria-current=true]{background:var(--green);border-color:var(--green);color:#fff}
.genealogy-person[aria-current=true] span{color:#fff}
.genealogy-isolated{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,182px),1fr));gap:12px;padding:16px}
.minutes-pages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));align-items:start;gap:24px;margin-top:24px}
.minutes-pages a{position:relative;display:block;isolation:isolate;max-width:580px;padding:18px 10px;background:#edd5a4;border:1px solid #af8956;border-radius:9px 9px 7px 7px;box-shadow:0 6px 13px #60412126,inset 0 0 12px #79522045}
.minutes-pages a::before,.minutes-pages a::after{content:"";position:absolute;inset-inline:3px;height:11px;border-radius:50% / 7px;background:linear-gradient(180deg,#906437,#e7c48b 43%,#af8150 76%,#795027);box-shadow:0 1px 3px #53381b66;pointer-events:none;z-index:1}
.minutes-pages a::before{top:2px}
.minutes-pages a::after{bottom:2px}
.minutes-pages a:hover{border-color:#795027;box-shadow:0 8px 17px #60412138,inset 0 0 12px #79522045}
.minutes-pages a:focus-visible{outline:3px solid var(--green);outline-offset:4px}
.minutes-pages img{display:block;width:100%;height:auto;border-radius:2px;background:#fff9ed;mix-blend-mode:multiply}
.event-sponsors{border-top:1px solid var(--line);padding-top:36px}
.event-sponsors h2{margin:0 0 28px;font-size:clamp(30px,4vw,49px)}
.event-sponsors ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;list-style:none;padding:0;margin:0}
.event-sponsors li{display:grid;place-items:center;min-width:0;min-height:108px;padding:14px;background:#fff;border:1px solid #e0dacb;border-radius:6px}
.event-sponsors img{display:block;width:100%;max-width:170px;height:74px;object-fit:contain}
@media(max-width:600px){
 .event-sponsors ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .event-sponsors li{min-height:92px;padding:8px}
}
.history-hero{padding:clamp(112px,12vw,168px) 0 clamp(46px,7vw,96px);background:#eae0cb;border-bottom:1px solid #c7af89}
.history-hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.68fr);gap:clamp(28px,9vw,116px);align-items:center}
.history-hero-copy:only-child{grid-column:1/-1}
.history-hero .eyebrow{color:#76532e;margin:0 0 22px}
.history-hero h1{font-size:clamp(46px,7vw,96px);line-height:.98;color:#453522;margin:0 0 26px}
.history-intro{max-width:48ch;font:400 clamp(21px,2.45vw,30px)/1.38 var(--font-display);color:#4b3928;margin-bottom:30px}
.history-credit{font-size:15px;line-height:1.5;color:#61482f;margin:0 0 24px}
.history-archive{max-width:440px;justify-self:center;display:block;padding:clamp(12px,2vw,24px);background:#f4ead6;border:1px solid #c7af89;box-shadow:0 12px 24px #49341d24}
.history-archive img{display:block;width:100%;height:auto;aspect-ratio:8/11;object-fit:contain;mix-blend-mode:multiply}
.history-stories{max-width:1050px;scroll-margin-top:100px}
.history-stories-heading{font-size:clamp(31px,5vw,48px);color:#493622;margin:0 0 18px}
.history-stories .content-card{margin:0;padding:clamp(22px,4vw,42px) 0;border:0;border-top:1px solid #cab796;border-radius:0;background:transparent}
.history-stories .content-card h2{font-size:clamp(26px,3.5vw,39px);color:#493622;margin:0 0 12px}
.history-stories .content-card .preserve{max-width:68ch;font:400 clamp(18px,2vw,23px)/1.47 var(--font-display)}
.history-stories .content-card .muted{margin:14px 0 0;color:#735735;overflow-wrap:anywhere}
@media(max-width:700px){
 .history-hero-layout{grid-template-columns:minmax(0,1fr)}
 .history-archive{max-width:min(100%,360px);justify-self:start}
}
.timeline-section{max-width:980px}
.timeline-toolbar{margin-bottom:28px}
.timeline-toolbar label{display:grid;gap:6px;width:min(100%,420px)}
.timeline-toolbar input{margin:0}
.timeline-list{padding:0;margin:0 0 28px;list-style:none}
.timeline-entry{--timeline-year:132px;display:grid;grid-template-columns:var(--timeline-year) minmax(0,1fr);position:relative;gap:40px;padding:0 0 36px}
.timeline-entry[hidden]{display:none}
.timeline-entry::before{content:"";position:absolute;left:var(--timeline-year);top:0;bottom:0;width:2px;background:#b8c6b5}
.timeline-entry:first-child::before{top:22px}
.timeline-entry:last-child::before{bottom:auto;height:22px}
.timeline-entry:only-child::before{display:none}
.timeline-entry::after{content:"";position:absolute;top:17px;left:calc(var(--timeline-year) - 5px);width:12px;height:12px;border-radius:50%;background:var(--green);box-shadow:0 0 0 4px #f4efe5}
.timeline-date{display:grid;align-content:start;gap:4px;padding:5px 14px 0 0}
.timeline-date strong{font:400 38px/1 var(--font-display);color:var(--green)}
.timeline-date span{font-size:14px;color:#435342}
.timeline-copy{border-bottom:1px solid #ced6c8;padding:3px 0 24px;overflow-wrap:anywhere}
.timeline-copy h2{margin:0 0 12px;font-size:clamp(24px,3vw,33px);line-height:1.14}
.timeline-copy p{margin:0 0 10px}
.timeline-category{font-size:13px;font-weight:600;color:#47634c}
.timeline-source{margin-top:8px;font-size:14px}
.timeline-source summary{min-height:44px;display:list-item;padding:10px 0;cursor:pointer;color:var(--green)}
@media(max-width:600px){
 .genealogy-branch-header{padding:12px 16px}
 .genealogy-branch-header h3{font-size:22px}
 .genealogy-viewport{max-height:500px}
 .genealogy-isolated{grid-template-columns:1fr}
 .timeline-entry{--timeline-year:8px;grid-template-columns:1fr;gap:8px;padding:0 0 26px 30px}
 .timeline-date{display:flex;align-items:baseline;gap:10px;padding:6px 0 0}
 .timeline-date strong{font-size:29px}
 .timeline-copy{padding-bottom:16px}
}
.tree-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.tree-list .tree-edge{grid-column:1/-1}

/* Área de gestão: navegação própria, indicadores e tabelas. */
body[data-page=admin]{background:#f2f5f3;font-family:var(--font-text);font-size:15px;color:#26372d}
body[data-page=admin]>.site-header,body[data-page=admin] footer.closing,body[data-page=admin] .page-heading{display:none}
body[data-page=admin] h1,body[data-page=admin] h2,body[data-page=admin] h3,body[data-page=admin] h4{font-family:var(--font-text);font-weight:500;letter-spacing:-.025em}
body[data-page=admin] main{min-height:100svh}
body[data-page=admin] .admin-area{width:100%;max-width:none;padding:0}
.admin-topbar{position:sticky;top:0;z-index:35;height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:0 32px;background:white;border-bottom:1px solid #dce4de}
.admin-topbar .brand{font-size:18px;font-weight:500}.admin-topbar .brand small{font:400 12px/1.4 var(--font-text);color:#65736a;margin-top:2px;letter-spacing:0}
.admin-topbar-actions,.admin-topbar #admin-session{display:flex;align-items:center;gap:24px}.admin-topbar .text-link{font-size:14px}.admin-topbar #admin-role{font-size:13px;color:#647469}.admin-topbar #logout{min-height:40px;font-size:14px;padding:6px 16px}
.admin-login{max-width:440px;margin:64px auto;padding:32px;background:white;border:1px solid #dce4de}.admin-login h1{font-size:30px;margin:0 0 16px}.admin-login .eyebrow{margin-bottom:12px}.admin-login>p{font-size:15px}.admin-login>button{width:100%}.admin-login .muted{font-size:13px;margin:20px 0 0}
.admin-layout{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100svh - 72px)}
.admin-sidebar{position:sticky;top:72px;align-self:start;height:calc(100svh - 72px);padding:28px 16px;background:white;border-right:1px solid #dce4de;display:flex;flex-direction:column}
.admin-sidebar-label{font-size:12px;color:#718076;margin:0 12px 16px}.admin-sidebar .tabs{display:grid;gap:4px;margin:0}.admin-sidebar .tabs button{width:100%;min-width:0;min-height:44px;border:0;justify-content:flex-start;text-align:left;background:transparent;color:#506257;border-radius:6px;font-size:14px;font-weight:400;padding:10px 12px}
.admin-sidebar .tabs button:hover{background:#f1f5f1}.admin-sidebar .tabs button.is-active{background:#e7eee6;color:#214b34;font-weight:500}
.admin-help-link{margin-top:auto;padding:20px 12px 0;border-top:1px solid #e2e8e3;font-size:12px;color:#647469;text-decoration:none}
.admin-workspace{min-width:0;max-width:1600px;padding:32px 40px 24px;width:100%;margin-inline:auto}
.admin-workspace-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.admin-workspace-header .eyebrow{font-size:12px;color:#718076;margin-bottom:12px}.admin-workspace-header h1{font-size:30px;margin:0 0 8px}.admin-workspace-header #module-description{font-size:14px;color:#637267;margin:0}.admin-workspace-header #admin-new{flex-shrink:0;font-size:14px}
.admin-workspace #admin-status:empty{display:none}.admin-workspace #admin-status:not(:empty){padding:12px 16px;background:#e7eee6;border-radius:6px;font-size:14px}
.admin-workspace .metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin:0 0 24px}.admin-workspace .metric{padding:20px;background:white;border:1px solid #dce4de;border-radius:8px;font-size:13px}.admin-workspace .metric strong{font:500 32px/1.2 var(--font-text);margin:16px 0 0}
.admin-overview-panels{display:grid;grid-template-columns:1fr 1fr;gap:24px}.admin-overview-panel{background:white;border:1px solid #dce4de;border-radius:8px;padding:24px}.admin-overview-panel h2{font-size:19px;margin:0 0 16px}.admin-overview-panel p{font-size:14px;line-height:1.7;color:#637267}.admin-overview-panel button{font-size:14px;padding:8px 16px}
.admin-list-toolbar{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:20px}.admin-list-toolbar label{font-size:13px;width:min(100%,360px);margin:0}.admin-list-toolbar input{font-size:14px;min-height:44px;background:white;border-color:#d1dcd3}.admin-list-toolbar p{font-size:13px;margin:0 0 12px;color:#637267}
.admin-table-scroll{overflow:auto;border:1px solid #dce4de;border-radius:8px;background:white}.admin-table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}.admin-table th{background:#f8faf8;padding:14px 20px;font-size:12px;font-weight:500;color:#65746a;white-space:nowrap;border-bottom:1px solid #dce4de}.admin-table td{padding:20px;vertical-align:top;border-bottom:1px solid #e4eae5}.admin-table tr:last-child td{border-bottom:0}.admin-table .admin-row{border:0;border-radius:0;margin:0;padding:0;background:white}.admin-table .admin-row:hover{background:#fafcf9}
.admin-record-cell{min-width:240px;max-width:520px}.admin-record-cell>strong{display:block;font-size:14px;font-weight:500;color:#294835}.admin-record-id{display:block;font-size:11px;color:#7b897e;margin-top:6px;overflow-wrap:anywhere}.admin-record-cell>p{font-size:12px;color:#647469;margin:8px 0 0;overflow-wrap:anywhere}.admin-date-cell{white-space:nowrap;font-size:13px;color:#647469}
.admin-badge{display:inline-block;font-size:11px;padding:3px 8px;margin:0 4px 6px 0;border-radius:4px;background:#eef2ed;color:#596c5b;white-space:nowrap}.admin-badge[data-state=PUBLISHED],.admin-badge[data-state=APPROVED]{background:#e4efe6;color:#2f643c}.admin-badge[data-state=PENDING],.admin-badge[data-state=IN_REVIEW]{background:#fbf0d6;color:#805f1e}.admin-badge[data-state=PRIVATE],.admin-badge[data-state=REJECTED]{background:#f3e9e7;color:#86554b}
.admin-table .actions{gap:8px;margin:0;flex-wrap:nowrap}.admin-table .actions button,.admin-table .actions .button{min-height:36px;font-size:12px;min-width:64px;padding:6px 12px;border-color:#cad7cb;background:white;color:#315640}.admin-table .actions button:hover{background:#edf3eb}
.admin-message summary{cursor:pointer;color:#315640;padding:12px 0;font-size:13px}.admin-message p{font-size:13px;max-width:64ch;overflow-wrap:anywhere}.admin-message .actions{flex-wrap:wrap}
.admin-empty{padding:48px;text-align:center;background:white;border:1px solid #dce4de;border-radius:8px;color:#637267}.admin-workspace .pagination{font-size:13px}.admin-workspace .pagination button{font-size:13px;min-height:40px;padding:8px 16px}
.admin-editor{background:white;border-color:#dce4de;margin:24px 0;scroll-margin-top:96px}.admin-editor>h2{font-size:24px}.admin-editor label{font-size:13px}.admin-editor input,.admin-editor select,.admin-editor textarea{font-size:15px;border-color:#cad5cd}.admin-editor .gathering-editor legend{font:500 20px var(--font-text)}
.admin-workspace-footer{border-top:1px solid #dce4de;margin:40px 0 0;padding-top:20px;font-size:12px;color:#7d8a80}
@media(max-width:1100px){.admin-layout{grid-template-columns:200px minmax(0,1fr)}.admin-workspace{padding:28px 24px}.admin-workspace .metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-overview-panels{grid-template-columns:1fr}}
@media(max-width:760px){
 .tree-3d-toolbar{align-items:start;flex-direction:column;gap:12px;padding:16px}.tree-3d-stage{height:520px}.tree-3d-help{padding:16px 16px 0}.tree-3d-legend{padding:12px 16px 16px}.tree-list{grid-template-columns:1fr}
 .admin-topbar{padding:0 20px;gap:12px}.admin-topbar-actions{gap:12px}.admin-topbar #admin-role{display:none}.admin-topbar #admin-session{gap:8px}.admin-topbar .brand{font-size:15px}.admin-topbar .brand-crest{width:26px}.admin-topbar .text-link{font-size:13px}
 .admin-layout{display:block}.admin-sidebar{height:auto;position:static;padding:16px;border-right:0;border-bottom:1px solid #dce4de}.admin-sidebar-label,.admin-help-link{display:none}.admin-sidebar .tabs{display:flex;flex-wrap:wrap;gap:6px}.admin-sidebar .tabs button{width:auto;min-width:0;flex:0 1 auto;padding:8px 12px;font-size:13px;background:#f4f7f3;min-height:44px}
 .admin-workspace{padding:24px 20px}.admin-workspace-header{align-items:start;flex-wrap:wrap;gap:16px}.admin-workspace-header h1{font-size:28px}.admin-workspace-header #admin-new{width:auto}.admin-workspace .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-workspace .metric{padding:16px}.admin-workspace .metric strong{font-size:30px}.admin-overview-panel{padding:20px}.admin-overview-panel .actions{gap:12px}.admin-list-toolbar{gap:12px}.admin-list-toolbar p{font-size:12px;white-space:nowrap}.admin-table th,.admin-table td{padding:16px}.admin-table .actions button{min-height:44px}
 .admin-login{margin:32px 20px;max-width:440px;padding:24px}.admin-editor{padding:24px 20px}
}
.admin-workspace .access-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.access-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.access-panel-heading h2{margin:0}.access-panel-heading>span{font-size:12px;color:#718076}
.access-chart{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:12px;margin-top:32px;align-items:end}
.access-chart-column{display:grid;gap:8px;text-align:center;font-size:12px;color:#6c7c70}.access-chart-value{font-size:11px}.access-chart-track{height:140px;display:flex;align-items:end;border-bottom:1px solid #dce4de;background:#f4f7f2}.access-chart-bar{width:100%;min-height:0;background:#52785a;border-radius:3px 3px 0 0}
.access-chart-label{font-size:11px}.access-daily-details{margin-top:20px}.access-daily-details summary{cursor:pointer;color:#315640;font-size:13px;min-height:44px;padding-top:12px}.access-daily-list{display:grid;grid-template-columns:1fr 1fr;max-width:400px;font-size:13px}.access-daily-list dt,.access-daily-list dd{padding:8px 0;margin:0;border-bottom:1px solid #e0e7e0}
.access-popular{margin-top:24px}.access-popular .admin-table a{color:#315640;text-underline-offset:4px}.access-explanation{font-size:12px;color:#718076;margin:20px 0 0}
@media(max-width:760px){.admin-workspace .access-metrics{grid-template-columns:1fr}.access-chart{gap:6px}.access-chart-track{height:112px}.access-panel-heading{align-items:start;flex-direction:column;gap:8px}}

.gallery-photo-link{display:block;overflow:hidden;border-radius:8px;cursor:zoom-in}
body.gallery-modal-open{overflow:hidden}
.gallery-lightbox{--bg:#16231b;--ink:#fff;--action:#fff;width:min(calc(100% - 48px),1280px);max-width:none;max-height:calc(100svh - 32px);padding:0;border:1px solid #4a5e50;border-radius:12px;background:#16231b;color:#fff;overflow:auto}
.gallery-lightbox::backdrop{background:#0b120de8}
.lightbox-toolbar{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 24px;background:#16231b;position:sticky;top:0;z-index:2}
.lightbox-counter{margin:0;font-size:14px;color:#dce7db}.gallery-lightbox .outline{border-color:#748775;color:#fff;background:transparent;min-height:44px}
.lightbox-close{font-size:14px;padding:8px 16px}
.lightbox-frame{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:16px;padding:0 16px}
.lightbox-frame>img{grid-column:2;grid-row:1;display:block;object-fit:contain;width:100%;height:min(70svh,800px);max-height:calc(100svh - 200px);min-height:120px;touch-action:pan-y}
.lightbox-nav:first-child{grid-column:1;grid-row:1}.lightbox-nav:last-child{grid-column:3;grid-row:1}
.lightbox-nav{width:48px;height:56px;min-width:44px;padding:0;font:400 36px/1 var(--font-text);justify-self:center}
.lightbox-caption{padding:20px 32px 24px;margin:0;color:#dce7db;font-size:14px;line-height:1.6;text-align:center;overflow-wrap:anywhere}
.gallery-lightbox :focus-visible{outline-color:#fff}
@media(max-width:600px){
 .gallery-lightbox{position:fixed;inset:0;width:100%;height:100svh;max-height:100svh;margin:0;border:0;border-radius:0}
 .lightbox-toolbar{padding:16px}.lightbox-frame{display:block;position:relative;padding:0 4px}
 .lightbox-frame>img{height:calc(100svh - 220px);max-height:none}
 .gallery-lightbox .lightbox-frame>.lightbox-nav{position:absolute;top:calc(50% - 24px);z-index:1;width:44px;height:48px;font-size:30px;background:#16231bd9}.lightbox-nav:first-child{left:8px}.lightbox-nav:last-child{right:8px}.lightbox-caption{padding:16px 20px;font-size:13px}
}

.simple-registration{padding-top:32px}.registration-intro{max-width:62ch;font-size:18px}
#member-proposal-form{margin-top:24px}#member-proposal-form>label{margin-bottom:24px}
.registration-help{display:block;font-size:14px;line-height:1.6;color:#625f51;font-weight:400;margin:0 0 24px}
label .registration-help{margin:8px 0 0}
.proposal-optional{border-top:1px solid var(--line)}
.proposal-optional summary{position:relative;padding:20px 0;cursor:pointer;color:var(--green);font-size:16px;font-weight:500;min-height:56px}
.proposal-optional summary span{font-size:13px;color:#6c6d5e;font-weight:400;margin-left:12px}
.proposal-optional-content{padding:4px 0 24px}.proposal-optional-content>p[role=status]{font-size:14px;color:#625f51;margin-bottom:20px}
.proposal-optional-content>label{margin-bottom:20px}
#proposal-links{display:grid;gap:12px;margin-top:20px}
.proposal-link-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px;background:#edf0e7;border-radius:8px;min-width:0}
.proposal-link-row strong,.proposal-link-row span{display:block}.proposal-link-row strong{font-size:16px;color:var(--green)}.proposal-link-row span{font-size:13px;margin-top:4px}.proposal-link-row button{min-height:44px;font-size:14px;padding:8px 16px}
#member-proposal-form .proposal-consent{padding-top:24px;border-top:1px solid var(--line);margin-bottom:24px}
#proposal-send{min-width:200px}#proposal-send+.registration-help{margin-top:16px;margin-bottom:0}
#proposal-status:empty{display:none}#proposal-status:not(:empty){margin:24px 0 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#edf0e7}
@media(max-width:600px){
 .simple-registration{padding-top:24px}.registration-intro{font-size:17px}
 .proposal-optional summary{font-size:15px}.proposal-optional summary span{display:block;margin-left:20px;margin-top:4px}
 .proposal-link-row{flex-wrap:wrap;gap:12px}.proposal-link-row button{margin-left:auto}
 #proposal-send{width:100%}.proposal-optional .actions{gap:12px}.proposal-optional .actions>button{width:100%}
}

/* Álbuns com capas reais, leitura curta e fotos prontas para ampliar. */
.gallery-heading{display:flex;align-items:end;justify-content:space-between;gap:40px;padding-bottom:32px}
.gallery-heading h1{margin-bottom:20px}.gallery-intro{max-width:52ch;font-size:19px;line-height:1.6;margin-bottom:20px}
.gallery-heading>.button{flex-shrink:0;margin-bottom:4px}.gallery-totals{font-size:14px;color:#58614f;margin:0}
.gallery-section{padding-top:32px;padding-bottom:56px}
.gallery-toolbar{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:32px}
.gallery-toolbar label{width:min(100%,420px);margin:0;font-size:14px}.gallery-toolbar input{background:var(--white)}
.gallery-toolbar>p{font-size:14px;color:#58614f;margin:0 0 12px}
.gallery-album-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
.gallery-album-card{display:flex;flex-direction:column;min-width:0;text-decoration:none;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.gallery-album-cover{aspect-ratio:3/2}.gallery-album-cover[data-cover=crest] img{padding:48px}
.gallery-album-copy{padding:24px 28px;display:flex;flex-direction:column;flex:1}
.gallery-album-meta{font-size:14px;color:#58614f;margin:0 0 12px}
.gallery-album-copy h2{font-size:34px;line-height:1.14;margin:0 0 24px;max-width:26ch}
.gallery-album-action{display:flex;align-items:center;justify-content:space-between;gap:24px;font-size:16px;color:var(--green);margin-top:auto;min-height:32px}.gallery-album-action>span{font-size:24px}
.gallery-search-empty{padding:40px 0;color:#58614f}.gallery-album-grid>.empty{grid-column:1/-1}
.gallery-section #more-content{margin-top:32px}
.album-heading{padding-bottom:32px}.album-heading>.text-link{margin-bottom:20px}.album-heading h1{font-size:clamp(38px,4.6vw,64px);margin:0 0 24px;max-width:25ch}
.album-description{max-width:70ch;font-size:18px;line-height:1.6;margin-bottom:20px}
.album-section{padding-top:40px}.album-photo-grid{gap:32px;grid-template-columns:repeat(2,minmax(0,1fr))}
.album-photo-grid figure{margin:0;min-width:0}.album-photo-grid img{aspect-ratio:4/3;object-fit:cover;width:100%;height:auto}
.album-photo-grid:has(figure:only-child){grid-template-columns:1fr}.album-photo-grid:has(figure:only-child) img{aspect-ratio:16/9;object-fit:contain;background:#e9ece2}
.album-photo-grid figcaption{font-size:15px;line-height:1.6;margin-top:16px;color:var(--green)}
.photo-grid figcaption>span{display:block;font-size:13px;color:#62705c;margin-top:4px}
.gallery-view-help{font-size:14px;color:#62705c;margin:32px 0 0}.album-section [data-load-photos]{margin-top:32px}
@media(max-width:900px){.gallery-heading{align-items:start;flex-direction:column;gap:24px}.gallery-album-grid{gap:24px}.gallery-album-copy{padding:24px}}
@media(max-width:600px){
 .gallery-intro{font-size:17px}.gallery-heading>.button{width:100%}
 .gallery-toolbar{align-items:start;flex-direction:column;gap:12px;margin-bottom:24px}.gallery-toolbar>p{margin:0}
 .gallery-album-grid,.album-photo-grid{grid-template-columns:1fr;gap:32px}.gallery-album-copy h2{font-size:30px}
 .album-heading h1{font-size:38px}.album-description{font-size:17px}.album-section{padding-top:32px}
 .album-photo-grid:has(figure:only-child) img{aspect-ratio:4/3}
}

/* Mais contraste na área administrativa, preservando superfícies claras. */
body[data-page=admin]{background:#e8eee7;color:#23392a}
body[data-page=admin] .admin-topbar{background:#e5ece3;border-bottom-color:#afbdaf}
body[data-page=admin] .admin-topbar .brand,body[data-page=admin] .admin-workspace-header h1{color:#203b29}
body[data-page=admin] .admin-topbar .brand small,body[data-page=admin] .admin-topbar #admin-role{color:#425b48}
body[data-page=admin] .admin-sidebar{background:#233f2e;border-color:#405c45}
body[data-page=admin] .admin-sidebar-label{color:#c2d2bc}
body[data-page=admin] .admin-sidebar .tabs button{color:#e7f0e1;background:transparent}
body[data-page=admin] .admin-sidebar .tabs button:hover{background:#34563b;color:#fff}
body[data-page=admin] .admin-sidebar .tabs button.is-active{background:#e2ead9;color:#213f2a}
body[data-page=admin] .admin-help-link{border-color:#4d6851;color:#d8e7d0}
body[data-page=admin] .admin-workspace-header .eyebrow,body[data-page=admin] .admin-workspace-header #module-description{color:#4b6050}
body[data-page=admin] .admin-workspace .metric,body[data-page=admin] .admin-overview-panel,body[data-page=admin] .admin-login,body[data-page=admin] .admin-editor{background:#fffef8;border-color:#b9c8b7}
body[data-page=admin] .admin-workspace .metric{color:#3a533e}
body[data-page=admin] .admin-overview-panel p,body[data-page=admin] .admin-list-toolbar p{color:#4b6050}
body[data-page=admin] .admin-table-scroll{border-color:#b5c5b4}
body[data-page=admin] .admin-table th{background:#dce7d6;color:#324f37;border-bottom-color:#b5c5b4}
body[data-page=admin] .admin-table td{border-color:#cbd7c7}
body[data-page=admin] .admin-table .admin-row:hover{background:#edf3e7}
body[data-page=admin] .admin-record-id,body[data-page=admin] .admin-record-cell>p,body[data-page=admin] .admin-date-cell{color:#526651}
body[data-page=admin] .admin-list-toolbar input,body[data-page=admin] .admin-editor input,body[data-page=admin] .admin-editor select,body[data-page=admin] .admin-editor textarea{border-color:#9eb29c}
body[data-page=admin] .admin-badge{background:#dce7d7;color:#3a563c}
body[data-page=admin] .admin-badge[data-state=PUBLISHED],body[data-page=admin] .admin-badge[data-state=APPROVED]{background:#d6e8d5;color:#244f2d}
body[data-page=admin] .admin-workspace-footer,body[data-page=admin] .access-explanation{border-color:#b9c9b6;color:#52664f}
body[data-page=admin] .access-chart-track{background:#e7eee1;border-color:#aabda3}
.toast-stack{position:fixed;z-index:1200;top:20px;right:20px;width:min(420px,calc(100vw - 32px));display:grid;gap:10px;pointer-events:none}
.toast{opacity:0;transform:translateY(-8px);transition:opacity .18s ease,transform .18s ease;padding:15px 18px;border-radius:8px;border:1px solid #8fa895;background:#203f2d;color:#fff;font-size:14px;font-weight:500;line-height:1.5;box-shadow:0 12px 32px #17271d40}
.toast.is-visible{opacity:1;transform:translateY(0)}.toast.toast-error{background:#7f2424;border-color:#b96d67;color:#fff}.toast.toast-success{background:#203f2d;color:#fff}
.admin-user-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;align-items:end}
.admin-user-editor>h2,.admin-user-editor>.admin-form-intro{grid-column:1/-1}
.admin-user-editor>h2{margin:0}.admin-user-editor>.admin-form-intro{margin:0;color:#455b49;font-size:14px;line-height:1.6}
.admin-user-editor>label{margin:0}.admin-user-editor>label.check{align-self:center}.admin-user-editor>label.check input{accent-color:#315f40}.admin-user-editor>button{width:max-content}
body[data-page=admin] .admin-workspace #admin-status:not(:empty){background:#dce9d8;border:1px solid #9fb59b;color:#294b31}
body[data-page=admin] .admin-workspace #admin-status.error:not(:empty){background:#f7e3df;border-color:#d5a49b;color:#7f2424}
@media(max-width:600px){.toast-stack{top:12px;right:12px;width:calc(100vw - 24px)}.admin-user-editor{grid-template-columns:1fr}.admin-user-editor>h2,.admin-user-editor>.admin-form-intro{grid-column:1}}

.admin-dialog{width:min(900px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid #b7bdb5;border-radius:12px;background:#fff;color:#24372c;box-shadow:0 24px 80px #0005;overflow:auto;}
.admin-dialog::backdrop{background:#13251bd9;}
.admin-dialog .admin-editor{margin:16px 0 0;max-width:none;box-shadow:none;}
.admin-dialog-close{display:block;margin-left:auto;}
body:has(.admin-dialog[open]){overflow:hidden;}
.upload-progress{overflow-wrap:anywhere;}
@media(max-width:600px){.admin-dialog{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:16px;}.admin-dialog .admin-editor{padding:16px;}}

.admin-photo-editor{margin:24px 0;padding:16px;border:1px solid var(--line);border-radius:8px;min-inline-size:0}
.admin-cover-preview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.admin-cover-preview img{width:min(100%,240px);aspect-ratio:3/2;object-fit:contain;background:var(--cream);border-radius:6px}
.admin-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr));gap:12px;margin:12px 0}
.admin-photo-grid figure{margin:0;padding:10px;border:1px solid var(--line);border-radius:6px;display:grid;align-content:start;gap:8px;overflow-wrap:anywhere}
.admin-photo-grid img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:4px}
.admin-photo-grid figcaption span{display:block}
.admin-photo-grid button{padding:8px 10px}

@media(min-width:1000px){
 .gathering-grid,.gallery-album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
 .gathering-card-copy,.gallery-album-copy{padding:20px}
 .gathering-card h2,.gallery-album-copy h2{font-size:clamp(25px,2.1vw,30px);overflow-wrap:anywhere}
 .admin-collection-table td,.admin-collection-table th{padding-block:10px}
}
@media(min-width:1350px){
 .gathering-grid,.gallery-album-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.gathering-grid>.empty{grid-column:1/-1}

footer #install-app{color:var(--cream);padding:0;justify-content:start;text-align:left}
footer #install-app-help{max-width:28ch;margin:0;font-size:.875rem}
@media(display-mode:standalone){#install-app,#install-app-help{display:none!important}}

.nav__links .mobile-nav-only{display:none}
@media(max-width:1180px){
 .nav__links.open .mobile-nav-only{display:flex}
 .nav__links.open{overscroll-behavior:contain;padding-block:12px max(28px,env(safe-area-inset-bottom))}
 .nav__links a[aria-current=page]{font-weight:700;color:var(--green);text-decoration:underline;text-underline-offset:.25em}
}
@media(max-width:600px){
 .nav__links a{font-size:20px;min-height:52px}
 .nav__links .mobile-nav-only:last-child{margin-top:8px}
}
#tree-pioneers{margin-bottom:32px}
#tree-pioneers h2,#tree-title{font-size:clamp(32px,4.3vw,48px);margin:0 0 12px}
#tree-pioneers>p{margin:0 0 24px}
.pioneer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.pioneer-link{display:grid;align-content:space-between;gap:12px;padding:20px 24px;min-height:120px;border-block:1px solid var(--line);background:var(--white);text-decoration:none;color:var(--green)}
.pioneer-link:hover,.pioneer-link:focus-visible{background:#edf0e5}
.pioneer-link strong{font:400 clamp(24px,3vw,38px)/1.1 var(--font-display);overflow-wrap:anywhere}
.pioneer-link>span{font-size:.875rem;font-weight:600}
.tree-entry-actions{margin:18px 0 0}
#tree-panel{scroll-margin-top:calc(var(--nav) + 12px);margin-top:24px}
#tree-back{margin-bottom:12px}
#tree-title:focus:not(:focus-visible),#pioneers-title:focus:not(:focus-visible){outline:none}
.tree-accessible-list ul,.close-family ul{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.close-family{display:grid;gap:16px;min-width:0}
.close-family section{padding:14px 0;border-bottom:1px solid var(--line)}
.close-family h3{font-size:24px;margin:0 0 8px}
.tree-accessible-list li,.close-family li{max-width:100%}
.tree-accessible-list button,.close-family button{text-align:left;min-height:44px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:680px){
 .pioneer-links{grid-template-columns:1fr;gap:0}
 .pioneer-link{min-height:68px;padding:14px 12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-block-end:0}
 .pioneer-link:last-child{border-block-end:1px solid var(--line)}
 .pioneer-link>span{max-width:10ch;text-align:right}
 .tree-entry-actions{gap:8px 14px}
 .tree-entry-actions .button,.tree-entry-actions .text-link{min-height:44px}
 .genealogy-displays button{min-height:44px}
}
