/* Toque Perto · identidade pública. Painéis administrativos têm estilos próprios. */
body.tp-publico {
  --bg:#12251f; --card:#1d352d; --line:#446356;
  --ink:#f7f0e2; --muted:#c6d4ca; --gold:#d9b77b;
  background:var(--bg); color:var(--ink);
}
.tp-publico .top {background:#12251f; border-color:#446356}
.tp-publico .hero {background:radial-gradient(ellipse at 90% 10%, #345244, #12251f 68%)}
.tp-publico .footer {background:#12251f;color:#f7f0e2;border-color:#446356}
.tp-publico .field,.tp-publico .regional-search input {background:#1d352d;color:#f7f0e2;border-color:#668375}
.tp-publico .field::placeholder,.tp-publico .regional-search input::placeholder {color:#c6d4ca}
.tp-publico main > .section {
  --bg:#f7f0e2; --card:#fffaf1; --line:#c3c6b5;
  --ink:#12251f; --muted:#455a4f; --gold:#80571e; --ok:#286344;
  background:var(--bg);color:var(--ink);
}
.tp-publico main > .section .card {background:var(--card);color:var(--ink);border-color:var(--line)}
.tp-publico main > .section .btn:not(.ghost),
.tp-publico main > .section button:not(.ghost):not(.tp-photo-button) {background:#d9b77b;color:#12251f}
.tp-publico main > .section .field,.tp-publico main > .section .regional-search input {
  background:#fffaf1;color:#12251f;border-color:#74887b;
}
.tp-publico main > .section .field::placeholder,.tp-publico main > .section .regional-search input::placeholder {color:#455a4f}
.tp-publico .modal:not(.tp-lightbox) .panel {background:#1d352d}
.tp-publico .tp-lightbox .panel {background:#12251f}
.tp-publico .topbar {background:#12251f;border-color:#446356}
body.tp-publico {--paper:#1d352d;--gold2:#e5c88f}
.tp-publico main > .section {--paper:#fffaf1;--gold2:#80571e}
.tp-publico .modal-card {background:#1d352d}
.tp-publico main > .section .btn.secondary {background:transparent;color:#12251f;border-color:#74887b}

.tp-publico .tp-protected-photo{position:relative;overflow:hidden;isolation:isolate;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.tp-publico .tp-protected-photo img{display:block;pointer-events:none;-webkit-user-drag:none}
.tp-publico .tp-protected-photo::after{content:"Toque Perto";position:absolute;z-index:3;right:8px;top:8px;padding:5px 9px;border-radius:6px;color:#fff;background:#12251fd9;font:700 12px/1.2 system-ui,sans-serif;letter-spacing:.02em;pointer-events:none}
.tp-publico .tp-gallery-photo{padding:0;border:0;background:#12251f;width:100%;border-radius:12px}
.tp-publico .tp-gallery-photo img{width:100%;height:220px;object-fit:cover}
#tpPhotoDialog{width:min(94vw,820px);max-height:94dvh;border:1px solid #446356;border-radius:16px;padding:12px;background:#12251f}
#tpPhotoDialog::backdrop{background:#000c}
#tpPhotoDialog .tp-close-photo{display:block;margin:0 0 10px auto}
#tpPhotoDialog .tp-enlarged-photo{width:fit-content;max-width:100%;margin:auto}
#tpPhotoDialog img{width:auto;max-width:100%;max-height:76dvh;object-fit:contain}

/* Central overlay for previously uploaded public photos. */
.tp-publico .tp-protected-photo:not(:has(img[src*="/gallery-wm-"])):not([style*="/gallery-wm-"])::before{
 content:"Toque Perto";position:absolute;z-index:3;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-20deg);white-space:nowrap;pointer-events:none;color:rgba(255,255,255,.54);text-shadow:0 1px 3px rgba(18,37,31,.58);font:800 clamp(12px,5vw,40px)/1.2 system-ui,sans-serif
}
.tp-publico .tp-thumbs .tp-protected-photo::before{font-size:10px!important}
.tp-publico .tp-protected-photo.tp-enlarged-photo::before{font-size:clamp(19px,7vw,52px)}

/* Discreet vertical watermarks: keep the center of photographs clear. */
.tp-publico .tp-protected-photo::before,.tp-publico .tp-protected-photo::after{content:"Toque Perto";position:absolute;z-index:3;top:50%;bottom:auto;transform:translateY(-50%);writing-mode:vertical-rl;text-orientation:mixed;white-space:nowrap;pointer-events:none;padding:0;background:none;border-radius:0;color:rgba(255,255,255,.28);text-shadow:0 1px 2px rgba(0,0,0,.22);font:500 clamp(10px,1.2vw,14px)/1.1 system-ui,sans-serif;letter-spacing:.08em}
.tp-publico .tp-protected-photo::before,.tp-publico .tp-protected-photo:not(:has(img[src*="/gallery-wm-"])):not([style*="/gallery-wm-"])::before{left:8px;right:auto;top:50%;transform:translateY(-50%);font-size:clamp(10px,1.2vw,14px);font-weight:500;color:rgba(255,255,255,.28)}
.tp-publico .tp-protected-photo::after{left:auto;right:8px}
.tp-publico .tp-protected-photo.tp-enlarged-photo::before{font-size:14px}
.tp-publico .tp-thumbs .tp-protected-photo::before,.tp-publico .tp-thumbs .tp-protected-photo::after{display:none}
