:root{--f-ink:#103e36;--f-muted:#54736c;--f-emerald:#075846;--f-emerald-deep:#063f35;--f-mint:#e7f7ef;--f-line:rgba(27,101,84,.15);--f-shadow:0 12px 34px rgba(9,62,48,.11)}
body:not(.admin-body) .tpu-footer{position:relative;isolation:isolate;overflow:hidden;width:min(calc(100% - 48px),1360px);margin:48px auto 20px;border:1px solid rgba(35,112,92,.13);border-radius:24px;background:linear-gradient(90deg,#f7fdfb 0%,#edf9fa 54%,#dff3e7 100%);color:var(--f-ink);box-shadow:var(--f-shadow)}
body:not(.admin-body) .tpu-footer__landscape{position:absolute;inset:0 0 51px 0;z-index:-2;background:linear-gradient(90deg,#f8fffc 0%,rgba(248,255,252,.96) 31%,rgba(248,255,252,.82) 57%,rgba(248,255,252,.1) 100%),url('../images/hero-ilustrasi-makam.png') right center/auto 100% no-repeat;pointer-events:none}
body:not(.admin-body) .tpu-footer__leaves{position:absolute;z-index:-1;width:160px;height:160px;background:url('../images/footer-leaves-v1.png') center/contain no-repeat;opacity:.8;pointer-events:none}body:not(.admin-body) .tpu-footer__leaves--left{left:-45px;bottom:35px}body:not(.admin-body) .tpu-footer__leaves--right{right:-30px;top:-42px;transform:rotate(180deg)}
body:not(.admin-body) .tpu-footer__inner{width:100%;min-height:190px;margin:auto;padding:29px 34px 31px;display:grid;grid-template-columns:1.15fr 1.65fr 1fr;align-items:center;gap:30px}
body:not(.admin-body) .tpu-footer__brand{display:flex;align-items:flex-start;gap:17px;min-width:0}body:not(.admin-body) .tpu-footer__logo{display:block;width:72px;height:72px;flex:none;background-size:contain;background-position:center;background-repeat:no-repeat}body:not(.admin-body) .tpu-footer__brand h2{margin:0;color:var(--f-ink);font-family:Georgia,'Times New Roman',serif;font-size:26px;line-height:1.2}body:not(.admin-body) .tpu-footer__subtitle{margin-top:3px;color:var(--f-muted);font-size:14px}body:not(.admin-body) .tpu-footer__brand p{max-width:250px;margin:12px 0 0;color:var(--f-muted);font-size:13px;line-height:1.5}
body:not(.admin-body) .tpu-footer__contact{min-width:0;display:grid;grid-template-columns:1.18fr .97fr 1.08fr;gap:14px;padding-inline:24px;border-inline:1px solid var(--f-line)}body:not(.admin-body) .tpu-footer__contactitem{display:flex;align-items:flex-start;gap:9px;min-width:0;color:var(--f-ink);font-size:13px;font-weight:650;line-height:1.45;overflow-wrap:anywhere}body:not(.admin-body) .tpu-footer__contactitem a{color:inherit;text-decoration:none}body:not(.admin-body) .tpu-footer__contactitem a:hover{text-decoration:underline}body:not(.admin-body) .tpu-footer__contactitem small{display:block;margin-top:5px;color:var(--f-muted);font-size:12px;font-weight:400}body:not(.admin-body) .tpu-footer__icon{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#d9f2e6;color:var(--f-emerald)}body:not(.admin-body) .tpu-footer__icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
body:not(.admin-body) .tpu-footer__social{min-width:0}body:not(.admin-body) .tpu-footer__social h3{margin:0 0 14px;color:var(--f-ink);font-size:16px;font-weight:750}body:not(.admin-body) .tpu-footer__sociallinks{display:flex;align-items:center;gap:10px;flex-wrap:wrap}body:not(.admin-body) .tpu-social{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;box-shadow:0 3px 12px rgba(10,69,52,.16);transition:transform .18s,box-shadow .18s}body:not(.admin-body) .tpu-social:hover{transform:translateY(-3px);box-shadow:0 7px 15px rgba(10,69,52,.22)}body:not(.admin-body) .tpu-social:focus-visible{outline:3px solid #ffc94d;outline-offset:3px}body:not(.admin-body) .tpu-social>span{display:grid;place-items:center;width:100%;height:100%}body:not(.admin-body) .tpu-social svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2}body:not(.admin-body) .tpu-social svg .solid{fill:#fff;stroke:none}body:not(.admin-body) .tpu-social--instagram{background:linear-gradient(45deg,#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5)}body:not(.admin-body) .tpu-social--facebook{background:#1877f2}body:not(.admin-body) .tpu-social--youtube{background:#f20d16}body:not(.admin-body) .tpu-social--tiktok{background:#151515}body:not(.admin-body) .tpu-social--whatsapp{background:#25d366}
body:not(.admin-body) .tpu-footer__bottom{min-height:51px;background:linear-gradient(90deg,#06483b,#07644e);color:#fff}body:not(.admin-body) .tpu-footer__bottominner{width:100%;min-height:51px;padding:0 34px;display:flex;align-items:center;justify-content:space-between;gap:18px;font-size:12px}body:not(.admin-body) .tpu-footer__bottom a{color:#fff;text-decoration:none}body:not(.admin-body) .tpu-footer__bottom a:hover{text-decoration:underline}body:not(.admin-body) .tpu-footer__bottom nav{display:flex;gap:12px;white-space:nowrap}
@media(max-width:1160px){body:not(.admin-body) .tpu-footer__inner{grid-template-columns:1fr 1.4fr;gap:24px}body:not(.admin-body) .tpu-footer__social{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}body:not(.admin-body) .tpu-footer__contact{border-right:0;grid-template-columns:1fr 1fr}}
@media(max-width:680px){body:not(.admin-body) .tpu-footer{width:calc(100% - 24px);margin:28px auto 12px;border-radius:20px}body:not(.admin-body) .tpu-footer__inner{grid-template-columns:1fr;gap:20px;padding:30px 20px 24px}body:not(.admin-body) .tpu-footer__logo{width:62px;height:62px}body:not(.admin-body) .tpu-footer__brand h2{font-size:23px}body:not(.admin-body) .tpu-footer__contact{padding:18px 0;border-inline:0;border-top:1px solid var(--f-line);border-bottom:1px solid var(--f-line);grid-template-columns:1fr;gap:13px}body:not(.admin-body) .tpu-footer__social{grid-column:auto;display:block}body:not(.admin-body) .tpu-footer__landscape{opacity:.35;background-position:right bottom;background-size:auto 70%}body:not(.admin-body) .tpu-footer__bottominner{padding:15px 20px;flex-direction:column;align-items:flex-start;min-height:unset}body:not(.admin-body) .tpu-footer__bottom nav{white-space:normal;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){body:not(.admin-body) .tpu-social{transition:none}body:not(.admin-body) .tpu-social:hover{transform:none}}
body:not(.admin-body) .tpu-footer__logo{background:transparent url('../images/logo-tpu-suka-mulya.png') center top/138% auto no-repeat}
body:not(.admin-body) .tpu-footer__contact{grid-template-columns:1.12fr 1fr 1.3fr;gap:10px;padding-inline:18px}
body:not(.admin-body) .tpu-footer__contactitem a[href^="tel:"],body:not(.admin-body) .tpu-footer__contactitem a[href^="mailto:"]{white-space:nowrap}

/* Penyelarasan akhir: transisi rapat dan blok informasi tidak berdempetan. */
.home-screen .home-main{padding-bottom:20px!important}.home-screen .tpu-footer{margin-top:0!important}
body:not(.admin-body) .tpu-footer__inner{min-height:218px;padding:24px;grid-template-columns:1.02fr 1.55fr .9fr;gap:16px}
body:not(.admin-body) .tpu-footer__brand{align-self:stretch;align-items:center;padding:17px;border:1px solid rgba(27,101,84,.13);border-radius:17px;background:rgba(255,255,255,.84);box-shadow:0 8px 22px rgba(9,62,48,.06)}
body:not(.admin-body) .tpu-footer__brand p{margin-top:9px}
body:not(.admin-body) .tpu-footer__contact{align-self:stretch;grid-template-columns:1fr 1fr;gap:10px;padding:0;border:0}
body:not(.admin-body) .tpu-footer__contactitem{align-items:center;min-height:72px;padding:12px 13px;border:1px solid rgba(27,101,84,.13);border-radius:15px;background:rgba(255,255,255,.86);box-shadow:0 7px 18px rgba(9,62,48,.055)}
body:not(.admin-body) .tpu-footer__contactitem:nth-child(3){grid-column:1/-1;min-height:62px}
body:not(.admin-body) .tpu-footer__icon{width:40px;height:40px;background:linear-gradient(145deg,#dcf7ea,#c9eddd);box-shadow:inset 0 0 0 1px rgba(7,88,70,.08),0 5px 12px rgba(7,88,70,.1)}
body:not(.admin-body) .tpu-footer__icon svg{width:21px;height:21px;stroke-width:2.15}
body:not(.admin-body) .tpu-footer__social{align-self:stretch;padding:17px 15px;border:1px solid rgba(27,101,84,.13);border-radius:17px;background:rgba(255,255,255,.84);box-shadow:0 8px 22px rgba(9,62,48,.06)}
body:not(.admin-body) .tpu-footer__social h3{margin-bottom:17px;line-height:1.35}
body:not(.admin-body) .tpu-footer__sociallinks{gap:9px}
body:not(.admin-body) .tpu-social{width:42px;height:42px}
@media(max-width:1160px){body:not(.admin-body) .tpu-footer__inner{grid-template-columns:1fr 1.35fr}body:not(.admin-body) .tpu-footer__social{grid-column:1/-1;display:block}body:not(.admin-body) .tpu-footer__sociallinks{margin-top:12px}}
@media(max-width:680px){body:not(.admin-body) .tpu-footer__inner{grid-template-columns:1fr;padding:16px;gap:12px}body:not(.admin-body) .tpu-footer__brand,body:not(.admin-body) .tpu-footer__social{padding:15px}body:not(.admin-body) .tpu-footer__contact{grid-template-columns:1fr;padding:0;border:0}body:not(.admin-body) .tpu-footer__contactitem:nth-child(3){grid-column:auto}body:not(.admin-body) .tpu-footer__contactitem{min-height:64px}body:not(.admin-body) .tpu-footer__social{grid-column:auto}}

/* Footer full-bleed: latar dan bar bawah mencapai batas viewport. */
body:not(.admin-body) .tpu-footer{width:100vw;max-width:none;margin:28px 0 0 calc(50% - 50vw);border-right:0;border-bottom:0;border-left:0;border-radius:0}
.home-screen .tpu-footer{margin-top:0!important}
body:not(.admin-body) .tpu-footer__inner{width:min(calc(100% - 48px),1440px);margin-inline:auto}
body:not(.admin-body) .tpu-footer__bottominner{width:min(calc(100% - 48px),1440px);margin-inline:auto;padding-inline:24px}
body:not(.admin-body) .tpu-footer__landscape{background-size:auto 112%;background-position:right center}
@media(max-width:680px){body:not(.admin-body) .tpu-footer{width:100vw;margin-right:0;margin-bottom:0;margin-left:calc(50% - 50vw);border-radius:0}body:not(.admin-body) .tpu-footer__inner,body:not(.admin-body) .tpu-footer__bottominner{width:100%;margin-inline:0}body:not(.admin-body) .tpu-footer__landscape{background-size:auto 78%;background-position:right bottom}}

/* Tanpa ilustrasi makam: gunakan latar bersih agar area sosial lebih tenang. */
body:not(.admin-body) .tpu-footer__landscape{background:linear-gradient(105deg,#f8fffc 0%,#eefaf6 55%,#e4f5ec 100%)}
body:not(.admin-body) .tpu-footer__social{background:rgba(255,255,255,.94)}
body:not(.admin-body) .tpu-footer__social{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
body:not(.admin-body) .tpu-footer__social h3{width:100%;margin:0 0 18px;text-align:center}
body:not(.admin-body) .tpu-footer__sociallinks{width:100%;justify-content:center}
@media(max-width:1160px){body:not(.admin-body) .tpu-footer__social{display:flex;align-items:center;justify-content:center}body:not(.admin-body) .tpu-footer__sociallinks{margin-top:0}}

/* Cegah setiap panel footer melewati dan terpotong di batas viewport. */
body:not(.admin-body) .tpu-footer__inner{grid-template-columns:minmax(0,1.02fr) minmax(0,1.55fr) minmax(240px,.9fr);box-sizing:border-box}
body:not(.admin-body) .tpu-footer__inner>*{min-width:0;max-width:100%;box-sizing:border-box}
body:not(.admin-body) .tpu-footer__contactitem{min-width:0;overflow:hidden}
body:not(.admin-body) .tpu-footer__contactitem>span:last-child,body:not(.admin-body) .tpu-footer__contactitem>a{min-width:0;max-width:100%;overflow-wrap:anywhere;word-break:normal}
body:not(.admin-body) .tpu-footer__contactitem a[href^="mailto:"]{white-space:normal}
body:not(.admin-body) .tpu-footer__sociallinks{flex-wrap:wrap}
@media(max-width:1280px){body:not(.admin-body) .tpu-footer__inner{grid-template-columns:minmax(280px,.9fr) minmax(0,1.35fr)}body:not(.admin-body) .tpu-footer__social{grid-column:1/-1;min-height:118px}body:not(.admin-body) .tpu-footer__contact{grid-template-columns:1fr 1fr}}
@media(max-width:760px){body:not(.admin-body) .tpu-footer__inner{grid-template-columns:1fr}body:not(.admin-body) .tpu-footer__brand,body:not(.admin-body) .tpu-footer__contact,body:not(.admin-body) .tpu-footer__social{grid-column:1}}

/* Full-bleed tanpa menghitung lebar scrollbar, sehingga sisi kanan tidak terpotong. */
body:not(.admin-body) .tpu-footer{
 width:auto;
 max-width:none;
 margin-right:calc(50% - 50vw);
 margin-left:calc(50% - 50vw);
 box-sizing:border-box;
}
html{overflow-x:clip}
body:not(.admin-body){overflow-x:clip}
body:not(.admin-body) .tpu-footer__bottominner{box-sizing:border-box}
body:not(.admin-body):has(.citizen-chat) .tpu-footer__bottominner{padding-right:285px}
@media(max-width:900px){body:not(.admin-body):has(.citizen-chat) .tpu-footer__bottominner{padding-right:24px;padding-bottom:76px}}
@media(max-width:680px){body:not(.admin-body) .tpu-footer{width:auto;margin-right:calc(50% - 50vw);margin-left:calc(50% - 50vw)}}

/* Footer beranda berada langsung di body: tidak membutuhkan offset full-bleed. */
.home-screen .tpu-footer{
 width:100%;
 max-width:100%;
 margin-right:0!important;
 margin-left:0!important;
 overflow:hidden;
}
.home-screen .tpu-footer__inner,
.home-screen .tpu-footer__bottominner{
 width:min(calc(100% - 48px),1440px);
 max-width:calc(100% - 48px);
 margin-right:auto;
 margin-left:auto;
}
@media(max-width:680px){
 .home-screen .tpu-footer__inner,
 .home-screen .tpu-footer__bottominner{width:100%;max-width:100%}
}

/* Beranda memakai geometri footer yang sama persis dengan halaman cari makam. */
.home-screen .tpu-footer{
 width:auto;
 max-width:none;
 margin-top:28px!important;
 margin-right:calc(50% - 50vw)!important;
 margin-left:calc(50% - 50vw)!important;
}
.home-screen .tpu-footer__inner{
 width:min(calc(100% - 48px),1440px);
 max-width:none;
 margin-inline:auto;
}
.home-screen .tpu-footer__bottominner{
 width:min(calc(100% - 48px),1440px);
 max-width:none;
 margin-inline:auto;
 padding-inline:24px;
}
@media(max-width:680px){
 .home-screen .tpu-footer{width:auto;margin-right:calc(50% - 50vw)!important;margin-left:calc(50% - 50vw)!important}
 .home-screen .tpu-footer__inner,.home-screen .tpu-footer__bottominner{width:100%;max-width:100%;margin-inline:0}
}
