/* Shared footer: independent of each page's root font size and legacy footer rules. */
.page-footer{position:relative;background:#002d40;color:#d4e9ee;padding:38px 0 22px;min-height:0;font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.5;isolation:isolate;overflow:hidden}
.page-footer::after{content:'';position:absolute;inset:auto 0 0;height:clamp(170px,24vw,280px);z-index:-1;pointer-events:none;background:url('assets/decorative/footer-forest-v2.webp') center bottom/cover no-repeat;-webkit-mask-image:linear-gradient(180deg,transparent,#000 24%);mask-image:linear-gradient(180deg,transparent,#000 24%);opacity:.88}
.page-footer>.container{width:calc(100% - 64px);max-width:1170px;margin:0 auto}
.page-footer .footer-grid{display:grid;grid-template-columns:1.35fr .9fr .95fr 1.55fr;align-items:start;gap:32px}
.page-footer .footer-grid>div{grid-column:auto;min-width:0}
.page-footer .footer-grid>div:first-child{padding-top:2px}
.page-footer img.footer-brand{display:block;width:260px;max-width:100%;height:auto;padding:0;background:transparent;border-radius:0;object-fit:contain;filter:none;mix-blend-mode:normal}
.page-footer .footer-grid h3{font-size:16px;font-weight:700;line-height:1.3;letter-spacing:0;color:#fff;margin:0 0 12px}
.page-footer .footer-grid a:not(:first-child):not(.footer-community-link),.page-footer .footer-grid>div>button{display:block;margin:7px 0;padding:0;color:#c1d9e2;font-size:14px;line-height:1.5;text-align:left}
.page-footer .footer-grid p{font-size:14px;line-height:1.6;color:#9ebdc9;margin:0}
.page-footer a:hover,.page-footer button:hover{color:#fff;text-decoration:underline}
.page-footer .social{display:flex;flex-wrap:wrap;gap:2px;margin:8px 0 0 -9px}
.page-footer .social button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;margin:0;padding:0;background:none;border:0;color:#fff;border-radius:50%}
.page-footer .social button:hover{background:#ffffff14}
.page-footer .social img{display:block;width:22px;height:22px;filter:brightness(0) invert(1)}
.page-footer .footer-grid .footer-invitation{align-self:start;padding:18px;border:1px solid #36809a80;border-radius:16px;background:linear-gradient(135deg,#084456b8,#00344894)}
.page-footer .footer-invitation h3{max-width:24ch;margin:0 0 7px;font-size:21px;line-height:1.25;letter-spacing:-.025em}
.page-footer .footer-invitation p{max-width:34ch;color:#c9dfe6;font-size:14px;line-height:1.5}
.page-footer .footer-grid a.footer-community-link{display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;width:100%;max-width:100%;min-height:44px;height:auto;margin:14px 0 0;padding:10px 16px;border:1px solid #fff;border-radius:24px;background:#fff;color:#07366e;font-size:14px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none;white-space:normal}
.page-footer .footer-grid a.footer-community-link:hover{background:#e1f5f8;border-color:#e1f5f8;color:#07366e;text-decoration:none}
.page-footer a.footer-community-link:focus-visible{outline:3px solid #83dfeb;outline-offset:4px}
.page-footer .footer-community-link .icon{display:block;width:20px;height:20px;flex:0 0 20px;color:inherit}
.page-footer .footer-bottom{border-top:1px solid #9ed2e530;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:16px 24px;margin-top:30px;padding:18px 0 9px;color:#c1d9e2}
.page-footer .footer-bottom small{font-size:13px;line-height:1.5}
.page-footer .footer-bottom .handwritten{font-family:'Segoe Print','Bradley Hand','Comic Sans MS',cursive;font-style:italic;font-size:18px;line-height:1.35;transform:none;color:#fff;position:relative;margin:0;max-width:100%}
.page-footer .footer-bottom .handwritten::after{content:'';display:block;position:absolute;margin:0;padding:0;box-sizing:border-box;top:calc(100% + 4px);left:50%;width:76%;max-width:150px;height:6px;border-top:2px solid #d8a365;border-radius:50%;transform:translateX(-50%) rotate(-2deg);pointer-events:none}
@media(max-width:900px){.page-footer .footer-grid{grid-template-columns:1.4fr 1fr 1fr;gap:24px}.page-footer .footer-grid>div:last-child{grid-column:1/-1}.page-footer .footer-invitation p{max-width:48ch}.page-footer .footer-grid a.footer-community-link{width:fit-content;min-width:220px}}
@media(max-width:600px){.page-footer>.container{width:calc(100% - 32px)}.page-footer .footer-grid{grid-template-columns:1fr 1fr;gap:28px 20px}.page-footer .footer-grid>div:first-child{grid-column:1/-1}.page-footer .footer-grid .footer-invitation{padding:18px}.page-footer .footer-grid a.footer-community-link{width:100%;min-width:0}.page-footer .social{margin-top:8px}.page-footer .footer-bottom{flex-direction:column;align-items:flex-start;gap:12px}.page-footer .footer-bottom .handwritten{align-self:flex-start;font-size:17px}}
