:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18372d;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0}button,input,select,textarea{font:inherit}button,a{cursor:pointer}a{color:inherit;text-decoration:none}.portal-header{height:auto;min-height:80px;background:#fff;border-bottom:1px solid #dde7df;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px max(5%,calc((100% - 1200px)/2));position:relative}.brand{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:20px;font-weight:700;line-height:1.1;white-space:nowrap}.brand small{display:block;font-family:inherit;font-size:15px;font-weight:400;color:#76877d}.brand-glyph{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#183e32;color:#e6b85d;font-size:31px}.portal-header nav{display:flex;align-items:center;gap:24px;font-size:13px;font-weight:600}.admin-link{color:#267b55}.hero{padding:76px max(5%,calc((100% - 1200px)/2));background:radial-gradient(circle at 80% 0%,#436653 0%,transparent 45%),linear-gradient(125deg,#133e30,#0f2721);color:white}.eyebrow,.section-label{font-size:11px;letter-spacing:2px;font-weight:800;color:#d9b972}.hero h1{font-family:Georgia,serif;font-size:clamp(33px,4.5vw,56px);font-weight:400;line-height:1.13;max-width:760px;margin:14px 0}.hero p{max-width:640px;font-size:16px;line-height:1.8;color:#d4e3d8}.button{display:inline-block;background:#e9c16c;color:#19372d;border:0;border-radius:10px;font-weight:800;padding:14px 20px;font-size:14px;margin-top:12px}.button:hover{filter:brightness(.96)}.button.secondary{background:#e1eee6;color:#1a6c4a}.button.wide{width:100%}.portal-layout{max-width:1200px;margin:auto;padding:54px 24px 70px;display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:36px;align-items:start}h2{font-family:Georgia,serif;font-size:31px;line-height:1.2;font-weight:500;margin:12px 0}.intro,.giving>p{color:#64756d;line-height:1.7}.section-label{color:#597868}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0}.tabs button{background:white;border:1px solid #d4ded6;color:#416554;padding:10px 16px;border-radius:24px;font-size:13px}.tabs button.selected{color:white;background:#235540;border-color:#235540}.post{background:white;border:1px solid #e1e8e1;padding:26px;border-radius:16px;box-shadow:0 9px 25px #102f2610;margin-bottom:14px}.post .tag{display:inline-block;border-radius:30px;background:#e7f3ea;padding:5px 10px;color:#25704a;font-size:11px;font-weight:800;letter-spacing:.6px}.post .tag.aviso{background:#fff1d7;color:#92631e}.post h3{font-family:Georgia,serif;font-weight:500;font-size:25px;margin:13px 0 9px}.post time{display:block;font-size:12px;color:#87948b;margin-bottom:16px}.post .body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;color:#496055}.empty,.loading,.error{padding:22px;border-radius:12px;background:white;border:1px solid #e1e8e1;color:#567367}.giving{background:white;border:1px solid #d8e4d9;padding:30px;border-radius:18px;box-shadow:0 14px 40px #1a4b3520;position:sticky;top:18px}.giving .eyebrow{color:#59836a}.giving form{margin-top:23px}.giving label{font-size:12px;color:#415b4c;font-weight:800;display:block;margin:17px 0 7px}.giving input,.giving select,.giving textarea{display:block;width:100%;border:1px solid #cbdcd0;background:#fff;padding:12px;border-radius:10px;color:#18372d}.giving input:focus,.giving select:focus{outline:2px solid #a7cbb5}.hint{font-size:12px!important;line-height:1.6!important;color:#6b8174!important;margin-top:13px}.note{padding:14px;border-radius:10px;background:#fff5e3;color:#77642e;font-size:13px;margin-top:16px}.info-title{display:block;margin-top:22px;margin-bottom:8px;font-weight:800;font-size:13px}.copy-field{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.copy-field code{background:#eff5ef;display:block;flex:1;min-width:0;overflow-wrap:anywhere;padding:12px;font-size:12px;border-radius:8px}.copy-field button{background:#245b40;color:white;padding:11px 13px;border:0;border-radius:8px;font-size:12px}#brcode-box textarea{font-size:12px;resize:vertical;word-break:break-all}footer{padding:26px 5%;background:#16382d;color:#dce8da;font-size:12px;display:flex;gap:16px;flex-wrap:wrap;justify-content:space-between}footer span{color:#9fc3a8}@media(max-width:800px){.portal-header{align-items:flex-start;flex-direction:column;gap:16px}.portal-header nav{flex-wrap:wrap;gap:12px}.portal-layout{grid-template-columns:1fr;gap:30px;padding:36px 18px}.hero{padding:54px 24px}.giving{position:static}.post{padding:21px}}

/* Portal da casa v1.2 — cadastro verificado, Pix e mídias */
.member-area{max-width:1200px;margin:0 auto;padding:20px 24px 82px;scroll-margin-top:22px}
.member-area h2{font-size:32px}.member-card{border:1px solid #dce8df;background:white;border-radius:16px;padding:24px;margin:20px 0;box-shadow:0 10px 28px #143e2910}
.member-card h3{font-family:Georgia,serif;font-size:22px;font-weight:500}.member-card p{line-height:1.6;color:#617668}.member-form{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:16px 0 8px}.member-form label{display:block;width:100%;font-size:13px;font-weight:700}.member-form input{flex:1;min-width:180px;border:1px solid #cfddd3;padding:12px;border-radius:8px}.member-form .button{margin:0}.member-row{display:flex;gap:16px;align-items:center;justify-content:space-between}.text-button{border:0;background:none;text-decoration:underline;color:#246243}.member-feedback{background:#e9f4ea;border:1px solid #cde5d1;border-radius:10px;padding:14px;line-height:1.5}.member-feedback.error{background:#fff0e9;color:#913c29;border-color:#efd2c1}.due-item{border-top:1px solid #e5ece7;padding:18px 0;display:flex;gap:18px;justify-content:space-between;align-items:center;flex-wrap:wrap}.due-item p{margin:6px 0 10px}.due-item .due-status{background:#fff4dc;color:#815a13;font-size:12px;padding:5px 10px;border-radius:30px}.due-item .due-status.done{background:#e0f2e4;color:#28603a}.due-actions{display:flex;gap:8px;flex-wrap:wrap}.due-actions .button{margin:0;padding:10px 14px;white-space:nowrap}.due-actions button:disabled{opacity:.58;cursor:not-allowed}.qr-box{display:flex;justify-content:center;align-items:center;background:white;padding:12px;max-width:300px;margin:14px auto}.qr-box svg{max-width:100%;height:auto;image-rendering:pixelated}.media-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px;margin-top:18px}.media-gallery img,.media-gallery video{display:block;max-width:100%;width:100%;max-height:400px;object-fit:contain;background:#12241c;border-radius:10px}.member-card textarea{width:100%;padding:12px;border:1px solid #d4dfd8;border-radius:8px;overflow-wrap:anywhere;font-size:12px}
@media(max-width:800px){.member-area{padding:12px 18px 50px}.member-card{padding:18px}.member-form{display:grid;grid-template-columns:1fr}.member-form input{min-width:0}}

/* v1.3: cadastro do filho após autenticação */
#member-signup-card .member-form{display:grid;grid-template-columns:1fr;gap:9px}
#member-signup-card .member-form input{width:100%;min-width:0}
#member-signup-card .member-form label{margin-top:8px}
#member-approval-card{border-left:4px solid #d8b676}

/* v1.4 — acesso por senha/link e identificação do filho */
.auth-switch{display:flex;flex-wrap:wrap;gap:7px;margin:18px 0 8px}
.auth-switch button{border:1px solid #cfded4;background:#f6faf7;border-radius:10px;padding:10px 13px;color:#335849;font-weight:700;font-size:13px}
.auth-switch button.selected{background:#225a40;border-color:#225a40;color:white}
.auth-panel[hidden]{display:none!important}
.auth-panel .member-form{display:grid;grid-template-columns:1fr;gap:8px}
.auth-panel .member-form label{margin-top:8px}
.auth-panel .member-form input{width:100%;min-width:0}
.auth-panel .member-form button{justify-self:start}
.member-number{margin:8px 0 0;font-size:13px;font-weight:800;color:#1c6b4a;background:#e4f1e9;border-radius:20px;padding:6px 12px;display:inline-block}
@media (max-width:650px){.auth-panel .member-form button{width:100%}.auth-switch button{flex:1}}

/* v1.5 — deixa o cadastro de filhos visível ao abrir o portal */
.hero-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:18px}
.hero-actions .button{margin-top:0}
.hero-secondary{background:transparent;color:white;border:1px solid #a9c3ad}
.hero-secondary:hover,.hero-secondary:focus-visible{background:#ffffff16}
