/* ==========================================================================
   AChapet – estilo principal
   Ideia: os anúncios são cartazes de "procura-se" colados no poste.
   A faixa colorida diz a situação; o adesivo amarelo diz a recompensa.
   O resto da interface fica quieto para os cartazes falarem.
   ========================================================================== */

:root {
	--bg: #eef2ef;
	--paper: #ffffff;
	--ink: #14323a;
	--ink-2: #4a5f64;
	--line: #d3dcd8;
	--lost: #c8102e;
	--found: #1d5fbf;
	--home: #1e7b4f;
	--sun: #ffc629;
	--sun-ink: #3a2a00;
	--warn-bg: #fff4d1;
	--danger: #b3261e;

	--f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-paper: 3px;
	--r-ui: 10px;
	--shadow-paper: 0 1px 0 var(--line), 0 10px 24px -14px rgba(20, 50, 58, .45);
	--wrap: 1200px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	min-height: 100vh;
	overflow-x: clip;
	display: flex;
	flex-direction: column;
}
.site-main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--found); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3 {
	font-family: var(--f-display);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 .5em;
}
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible {
	outline: 3px solid var(--found);
	outline-offset: 2px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.screen-reader-text,
.ac-hp {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute; left: 1rem; top: -100px; z-index: 100;
	background: var(--paper); padding: .6rem 1rem; border-radius: var(--r-ui);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   Botões e links
   -------------------------------------------------------------------------- */

.ac-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .4em;
	min-height: 44px;
	padding: .55em 1.15em;
	border: 2px solid var(--ink);
	border-radius: var(--r-ui);
	background: var(--ink);
	color: #fff;
	font: 700 1rem/1.2 var(--f-body);
	text-decoration: none;
	cursor: pointer;
}
.ac-btn:hover { background: #0b2228; color: #fff; }
.ac-btn:disabled { opacity: .6; cursor: wait; }
.ac-btn--ghost { background: transparent; color: var(--ink); }
.ac-btn--ghost:hover { background: var(--paper); color: var(--ink); }
.ac-btn--reward { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.ac-btn--reward:hover { background: #ffd65c; color: var(--sun-ink); }
.ac-btn--success { background: var(--home); border-color: var(--home); }
.ac-btn--success:hover { background: #155e3b; }
.ac-btn--danger { background: var(--danger); border-color: var(--danger); }
.ac-btn--small { min-height: 36px; padding: .35em .8em; font-size: .92rem; }
.ac-btn--block { width: 100%; }

.ac-link {
	background: none; border: 0; padding: 0;
	color: var(--found);
	font: inherit; font-weight: 700;
	text-decoration: underline; text-underline-offset: 3px;
	cursor: pointer;
}
.ac-link--danger { color: var(--danger); }
.ac-link--small { font-size: .85rem; font-weight: 400; }

.ac-muted { color: var(--ink-2); font-size: .94rem; }

.ac-badge {
	display: inline-grid; place-items: center;
	min-width: 1.4em; height: 1.4em; padding: 0 .35em;
	border-radius: 999px;
	background: var(--lost); color: #fff;
	font-size: .78rem; font-weight: 700;
}

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */

.site-header {
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	position: sticky; top: 0; z-index: 50;
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; fill: var(--lost); }
.brand__name { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; }
.brand__logo { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.nav__list { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.nav__list a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav__list a:hover { text-decoration: underline; }
.nav__actions { display: flex; align-items: center; gap: 1rem; }
.nav__account { color: var(--ink); font-weight: 700; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block; width: 24px; height: 2px; background: var(--ink); position: relative; margin: auto;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.nav {
		display: none;
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1.25rem;
		background: var(--paper); border-bottom: 1px solid var(--line);
	}
	.nav-open .nav { display: flex; }
	.nav__list { flex-direction: column; gap: .9rem; }
	.nav__actions { justify-content: space-between; }
}

.flash { padding-top: 1rem; }

/* --------------------------------------------------------------------------
   Cartaz (card do pet)
   -------------------------------------------------------------------------- */

.poster {
	--status: var(--lost);
	color: var(--ink);
	background: var(--paper);
	border-radius: var(--r-paper);
	box-shadow: var(--shadow-paper);
	overflow: visible;
	position: relative;
}
.poster--achado { --status: var(--found); }
.poster--reunido { --status: var(--home); }

.poster__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.poster__link:hover .poster__name { text-decoration: underline; text-decoration-thickness: 2px; }

.poster__band {
	display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
	padding: .45rem .85rem .4rem;
	background: var(--status);
	color: #fff;
	border-radius: var(--r-paper) var(--r-paper) 0 0;
}
.poster__status { font-family: var(--f-display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.poster__when { font-size: .85rem; opacity: .92; }

.poster__photo { position: relative; aspect-ratio: 4 / 3; background: #dfe6e2; }
.poster__photo img { width: 100%; height: 100%; object-fit: cover; }

.poster__body { padding: .8rem .9rem 1rem; }
.poster__name { font-size: 1.35rem; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.poster__details { margin: 0 0 .45rem; color: var(--ink-2); font-size: .95rem; }
.poster__place { display: flex; gap: .3rem; align-items: flex-start; margin: 0; font-size: .95rem; font-weight: 700; }
.poster__place svg { width: 1.05em; height: 1.05em; flex: none; margin-top: .2em; fill: var(--status); }

.poster--reunido .poster__photo img { filter: saturate(.85); }

/* O adesivo de recompensa: o único elemento "torto" da interface */
.sticker {
	position: absolute; right: -10px; bottom: -18px; z-index: 2;
	display: grid; place-items: center; align-content: center;
	width: 88px; height: 88px;
	border-radius: 50%;
	background: var(--sun);
	color: var(--sun-ink);
	text-align: center;
	transform: rotate(-9deg);
	box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45);
	line-height: 1.05;
}
.sticker span { font-size: .68rem; font-weight: 700; }
.sticker strong { font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; }
.sticker--big { width: 118px; height: 118px; right: -14px; bottom: -24px; }
.sticker--big span { font-size: .82rem; }
.sticker--big strong { font-size: 1.45rem; }

.grid-posters {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 2rem 1.5rem;
}
.grid-posters--small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.grid-posters--small .poster__status { font-size: 1.15rem; }

/* --------------------------------------------------------------------------
   Página inicial
   -------------------------------------------------------------------------- */

.hero {
	background: var(--ink);
	color: #fff;
	padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
	overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: .98; letter-spacing: -0.025em; max-width: 12ch; margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; max-width: 46ch; color: #d6e3e0; }

.hero__choices { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.75rem 0 1.25rem; max-width: 560px; }
.choice {
	display: flex; flex-direction: column; gap: .15rem;
	padding: 1rem 1.1rem;
	border-radius: var(--r-ui);
	color: #fff; text-decoration: none;
	border-top: 6px solid transparent;
	background: rgba(255, 255, 255, .08);
}
.choice strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 800; }
.choice span { font-size: .95rem; color: #d6e3e0; }
.choice--lost { border-top-color: var(--lost); }
.choice--found { border-top-color: #5a9cff; }
.choice:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.quicksearch { display: flex; gap: .5rem; max-width: 560px; flex-wrap: wrap; }
.quicksearch input { flex: 1 1 160px; min-height: 48px; padding: .6rem .9rem; border: 0; border-radius: var(--r-ui); font: inherit; }
.quicksearch .ac-btn { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); min-height: 48px; }

/* Parede de cartazes no topo: o momento de entrada da página */
.hero__wall { position: relative; height: 470px; }
.hero__wall .poster { position: absolute; width: 270px; }
.hero__wall .poster:nth-child(1) { left: 4%; top: 30px; transform: rotate(-6deg); z-index: 1; }
.hero__wall .poster:nth-child(2) { left: 38%; top: 0; transform: rotate(4deg); z-index: 2; }
.hero__wall .poster:nth-child(3) { left: 22%; top: 170px; transform: rotate(-1.5deg); z-index: 3; }
.hero__wall .poster:only-child { left: 20%; }
.hero__wall .poster::before {
	content: ""; position: absolute; top: -12px; left: 50%; z-index: 4;
	width: 74px; height: 22px; margin-left: -37px;
	background: rgba(255, 246, 200, .78);
	transform: rotate(-3deg);
}

@media (prefers-reduced-motion: no-preference) {
	.hero__wall .poster { animation: pin-up .7s cubic-bezier(.2, .8, .2, 1.1) both; }
	.hero__wall .poster:nth-child(2) { animation-delay: .12s; }
	.hero__wall .poster:nth-child(3) { animation-delay: .24s; }
	@keyframes pin-up {
		from { opacity: 0; translate: 0 40px; }
		to { opacity: 1; translate: 0 0; }
	}
}

@media (max-width: 960px) {
	.hero__inner { grid-template-columns: 1fr; }
	.hero__wall { display: none; }
}
@media (max-width: 480px) {
	.hero__choices { grid-template-columns: 1fr; }
}

.band { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.band--tint { background: #e3eae6; }
.band--happy { background: #e2f1e9; }
.band--flush { padding-bottom: 0; }
.band__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.band__head h2 { margin: 0; }

.how { background: var(--paper); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 3.2rem; }
.steps li::before {
	content: counter(s);
	position: absolute; top: 0; left: 0;
	font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
	color: var(--lost);
}
.steps p { color: var(--ink-2); max-width: 34ch; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 1.25rem; } }

.donate-band { background: var(--sun); color: var(--sun-ink); padding: 2.5rem 0; }
.donate-band__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.donate-band h2 { margin-bottom: .25rem; }
.donate-band p { margin: 0; }
.donate-band .ac-btn--reward { background: var(--ink); border-color: var(--ink); color: #fff; }

.empty-state { text-align: center; max-width: 560px; margin-inline: auto; padding: 3rem 0; }
.empty-state p { color: var(--ink-2); }

/* --------------------------------------------------------------------------
   Listagem
   -------------------------------------------------------------------------- */

.listing { padding: 2rem 0 4rem; }
.listing__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.listing__head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .1rem; }
.listing__count { color: var(--ink-2); margin: 0; }

.viewtoggle { display: inline-flex; border: 2px solid var(--ink); border-radius: var(--r-ui); overflow: hidden; }
.viewtoggle__btn { min-height: 40px; padding: 0 1.1rem; border: 0; background: var(--paper); color: var(--ink); font: 700 .95rem var(--f-body); cursor: pointer; }
.viewtoggle__btn[aria-pressed="true"] { background: var(--ink); color: #fff; }

.sittabs { display: flex; gap: .4rem; margin: 1.5rem 0; overflow-x: auto; padding-bottom: .25rem; }
.sittabs__item {
	flex: none;
	padding: .45rem 1rem;
	border-radius: 999px;
	background: var(--paper);
	border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.sittabs__item[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sittabs__item--perdido[aria-current="page"] { background: var(--lost); border-color: var(--lost); }
.sittabs__item--achado[aria-current="page"] { background: var(--found); border-color: var(--found); }
.sittabs__item--reunido[aria-current="page"] { background: var(--home); border-color: var(--home); }

.listing__layout { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; align-items: start; }
.filters { position: sticky; top: 88px; background: var(--paper); border-radius: var(--r-ui); padding: 1.25rem; border: 1px solid var(--line); }
.filters__group { border: 0; padding: 0; margin: 0 0 1rem; }
.filters__group legend { font-weight: 700; margin-bottom: .5rem; }
.filters__actions { display: grid; gap: .75rem; justify-items: center; margin-top: 1rem; }
.filters-toggle { display: none; }
.nearme { display: grid; gap: .5rem; }
.nearme__msg:empty { display: none; }
.nearme__msg { margin: .5rem 0 0; }

@media (max-width: 860px) {
	.listing__layout { grid-template-columns: 1fr; gap: 1rem; }
	.filters-toggle { display: inline-flex; justify-self: start; }
	.filters { display: none; position: static; }
	.filters.is-open { display: block; }
}

.map { height: 420px; border-radius: var(--r-ui); border: 1px solid var(--line); background: #dfe6e2; z-index: 0; }
.map--results { height: min(70vh, 620px); }

.ac-pin {
	border-radius: 50%;
	background: var(--lost);
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}
.ac-pin--achado { background: var(--found); }
.ac-pin--reunido { background: var(--home); }

.mappop { display: flex; gap: .6rem; align-items: center; color: var(--ink); text-decoration: none; min-width: 180px; }
.mappop img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; }
.mappop span { display: flex; flex-direction: column; }
.mappop strong { font-size: 1rem; }
.mappop__sit { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--lost); }
.mappop__sit--achado { color: var(--found); }
.mappop__sit--reunido { color: var(--home); }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 .8rem;
	border-radius: var(--r-ui); background: var(--paper); border: 1px solid var(--line);
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Página do pet
   -------------------------------------------------------------------------- */

.petpage { padding: 1.5rem 0 4rem; }
.crumbs { margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.petpage__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: start; }
@media (max-width: 900px) { .petpage__grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.poster--big .poster__band { padding: .7rem 1.1rem .6rem; }
.poster--big .poster__status { font-size: clamp(2rem, 4.5vw, 3rem); }
.poster--big .poster__when { font-size: 1rem; }
.poster--big .gallery__main { aspect-ratio: 1 / 1; }

.gallery__thumbs { list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; padding: .75rem; }
.gallery__thumbs button { padding: 0; border: 3px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--status); }
.gallery__thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }

.petpage__name { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin-bottom: .3rem; overflow-wrap: anywhere; }
.petpage__where { font-size: 1.15rem; font-weight: 700; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .75rem; margin: 1.25rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }

.petpage__desc { max-width: 60ch; }

.reward-note { background: var(--warn-bg); border-left: 6px solid var(--sun); padding: 1rem 1.1rem; border-radius: 0 var(--r-ui) var(--r-ui) 0; margin: 1.25rem 0; }
.reward-note p:last-child { margin: 0; }

.ac-contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.25rem; margin: 1.5rem 0; }
.ac-contact--done { border-color: var(--home); background: #e2f1e9; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.share__label { font-weight: 700; margin-right: .25rem; }

.petpage__map { margin-top: 3rem; }

.ac-report { margin-top: 2rem; }
.ac-report summary { cursor: pointer; color: var(--ink-2); font-size: .92rem; text-decoration: underline; }
.ac-report form { max-width: 420px; margin-top: 1rem; }

/* --------------------------------------------------------------------------
   Páginas de texto e de conta
   -------------------------------------------------------------------------- */

.page-content { padding: 2.5rem 0 4rem; }
.page-title { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-content--text .entry { max-width: 68ch; }
.page-content--text .entry h2 { margin-top: 1.6em; }
.page-content--entrar,
.page-content--cadastro { max-width: 480px; }
.page-content--doar { max-width: 920px; }

/* --------------------------------------------------------------------------
   Formulários (plugin)
   -------------------------------------------------------------------------- */

.ac-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.5rem; }

.ac-form .ac-field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.ac-form label,
.ac-label { font-weight: 700; font-size: .95rem; }
.ac-form small { color: var(--ink-2); font-size: .85rem; }

.ac-form input[type="text"],
.ac-form input[type="email"],
.ac-form input[type="password"],
.ac-form input[type="tel"],
.ac-form input[type="number"],
.ac-form input[type="date"],
.ac-form input[type="search"],
.ac-form select,
.ac-form textarea,
.ac-pix input[type="text"] {
	width: 100%;
	min-height: 46px;
	padding: .55rem .75rem;
	border: 1.5px solid #b9c6c1;
	border-radius: 8px;
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.ac-form textarea { min-height: 110px; resize: vertical; }
.ac-form input:focus,
.ac-form select:focus,
.ac-form textarea:focus { border-color: var(--found); outline: 2px solid rgba(29, 95, 191, .25); outline-offset: 0; }
.ac-form input[disabled] { background: #f1f4f2; color: var(--ink-2); }

.ac-check { display: flex !important; flex-direction: row; gap: .55rem; align-items: flex-start; font-weight: 400 !important; margin-bottom: 1rem; }
.ac-check input { width: 20px; height: 20px; margin-top: .15em; flex: none; accent-color: var(--ink); }

.ac-row { display: flex; gap: .75rem; }
.ac-grow { flex: 1; }
.ac-uf { width: 90px; flex: none; }
.ac-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.ac-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
@media (max-width: 620px) { .ac-grid2, .ac-grid3 { grid-template-columns: 1fr; } }

.ac-form__links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; font-size: .95rem; }
.ac-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.ac-form__submit p { margin: 0; }

.ac-notice { padding: .85rem 1rem; border-radius: var(--r-ui); margin-bottom: .75rem; border-left: 6px solid var(--home); background: #e2f1e9; }
.ac-notice--error { border-left-color: var(--danger); background: #fbe5e3; }

.ac-warning { background: var(--warn-bg); border-left: 6px solid var(--sun); padding: .9rem 1rem; border-radius: 0 var(--r-ui) var(--r-ui) 0; margin: 1rem 0 1.5rem; font-size: .95rem; }

.ac-section { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); padding: 1.25rem 1.25rem .5rem; margin-bottom: 1.25rem; }
.ac-section h3 { margin-bottom: .9rem; }
.ac-section[hidden] { display: none; }

.ac-choice { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.ac-choice legend { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; margin-bottom: .75rem; }
.ac-choice label { position: relative; cursor: pointer; }
.ac-choice input { position: absolute; opacity: 0; }
.ac-choice span {
	display: flex; flex-direction: column; gap: .15rem;
	padding: 1rem 1.1rem;
	border: 2px solid var(--line); border-top-width: 6px;
	border-radius: var(--r-ui);
	background: var(--paper);
	font-weight: 400;
}
.ac-choice strong { font-family: var(--f-display); font-size: 1.25rem; }
.ac-choice input[value="perdido"]:checked + span { border-color: var(--lost); }
.ac-choice input[value="achado"]:checked + span { border-color: var(--found); }
.ac-choice input:focus-visible + span { outline: 3px solid var(--found); outline-offset: 2px; }
@media (max-width: 520px) { .ac-choice { grid-template-columns: 1fr; } }

.ac-mappicker { height: 340px; border-radius: var(--r-ui); border: 1px solid var(--line); margin-bottom: .75rem; z-index: 0; }

.ac-photos { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; padding: 0; margin: 0 0 1rem; }
.ac-photos img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; }
.ac-photos .ac-check { margin: .35rem 0 0; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Painel do usuário
   -------------------------------------------------------------------------- */

.ac-panel { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; }
.ac-panel__nav { position: sticky; top: 88px; }
.ac-panel__hello { font-family: var(--f-display); font-weight: 800; font-size: 1.6rem; margin-bottom: .75rem; }
.ac-panel__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.ac-panel__nav a {
	display: flex; align-items: center; justify-content: space-between;
	padding: .65rem .85rem; border-radius: 8px;
	color: var(--ink); text-decoration: none; font-weight: 700;
}
.ac-panel__nav a:hover { background: var(--paper); }
.ac-panel__nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.ac-panel__main { min-width: 0; }
.ac-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.ac-panel__head h2 { margin: 0; }

@media (max-width: 800px) {
	.ac-panel { grid-template-columns: 1fr; gap: 1.25rem; }
	.ac-panel__nav { position: static; }
	.ac-panel__nav ul { display: flex; overflow-x: auto; gap: .4rem; }
	.ac-panel__nav a { white-space: nowrap; background: var(--paper); border: 1px solid var(--line); gap: .4rem; }
}

.ac-empty { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--r-ui); padding: 2rem; text-align: center; }
.ac-empty p { color: var(--ink-2); }

.ac-mypets { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ac-mypet { display: grid; grid-template-columns: 84px 1fr auto; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); padding: .75rem; }
.ac-mypet__photo { width: 84px; height: 84px; border-radius: 6px; overflow: hidden; background: #dfe6e2; }
.ac-mypet__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-mypet h3 { margin: 0 0 .3rem; }
.ac-mypet p { margin: 0 0 .2rem; }
.ac-mypet__actions { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.ac-mypet__actions form { margin: 0; }
@media (max-width: 640px) {
	.ac-mypet { grid-template-columns: 64px 1fr; }
	.ac-mypet__photo { width: 64px; height: 64px; }
	.ac-mypet__actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .9rem; }
}

.ac-tag, .ac-state { display: inline-block; padding: .1rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.ac-tag { color: #fff; background: var(--lost); }
.ac-tag--achado { background: var(--found); }
.ac-tag--reunido { background: var(--home); }
.ac-state { background: #eef2ef; color: var(--ink-2); }
.ac-state--pending { background: #fff1c9; color: #6b4c00; }
.ac-state--rejected { background: #fbe5e3; color: var(--danger); }
.ac-state--live { background: #e2f1e9; color: #0f5c3d; }

.ac-danger-zone { margin-top: 2rem; }

/* Mensagens */
.ac-threads { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-ui); overflow: hidden; }
.ac-thread + .ac-thread { border-top: 1px solid var(--line); }
.ac-thread a { display: grid; grid-template-columns: 52px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 1rem; color: var(--ink); text-decoration: none; }
.ac-thread a:hover { background: #f6f8f7; }
.ac-thread__photo { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #dfe6e2; }
.ac-thread__photo img { width: 100%; height: 100%; object-fit: cover; }
.ac-thread__body { min-width: 0; }
.ac-thread__preview { display: block; color: var(--ink-2); font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-thread__date { font-size: .82rem; color: var(--ink-2); }
.ac-thread.is-unread a { background: #fffaf0; }
.ac-thread.is-unread strong::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: .4rem; border-radius: 50%; background: var(--lost); vertical-align: middle; }

.ac-messages { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.ac-msg { max-width: 78%; }
.ac-msg--mine { align-self: flex-end; text-align: right; }
.ac-msg__bubble { display: inline-block; text-align: left; padding: .7rem .95rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); overflow-wrap: anywhere; }
.ac-msg--mine .ac-msg__bubble { background: var(--ink); color: #fff; border-color: var(--ink); }
.ac-msg__meta { font-size: .78rem; color: var(--ink-2); margin-top: .2rem; }
.ac-msg__alert { margin-top: .35rem; font-size: .85rem; background: var(--warn-bg); padding: .4rem .65rem; border-radius: 8px; }
.ac-inline { display: inline; }
.ac-reply { display: flex; gap: .75rem; align-items: flex-end; }
.ac-reply textarea { flex: 1; min-height: 70px !important; }
.ac-block { margin-top: 1.5rem; }
@media (max-width: 560px) { .ac-msg { max-width: 92%; } .ac-reply { flex-direction: column; align-items: stretch; } }

/* Pix */
.ac-pix { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.ac-pix__intro > p { font-size: 1.15rem; max-width: 46ch; }
.ac-pix__values { border: 0; padding: 0; margin: 1.5rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.ac-pix__values legend { font-weight: 700; margin-bottom: .6rem; }
.ac-pix__values label { cursor: pointer; }
.ac-pix__values input { position: absolute; opacity: 0; }
.ac-pix__values span { display: inline-flex; min-height: 48px; align-items: center; padding: 0 1.2rem; border: 2px solid var(--ink); border-radius: var(--r-ui); background: var(--paper); font-weight: 700; font-size: 1.05rem; }
.ac-pix__values input:checked + span { background: var(--sun); border-color: var(--sun-ink); color: var(--sun-ink); }
.ac-pix__values input:focus-visible + span { outline: 3px solid var(--found); outline-offset: 2px; }
.ac-pix__pay { background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: 1.5rem; border-top: 10px solid var(--sun); }
.ac-pix__qr { width: 100%; max-width: 260px; margin: 0 auto 1rem; aspect-ratio: 1; }
.ac-pix__qr svg { width: 100%; height: 100%; }
.ac-pix__copy { display: flex; gap: .5rem; margin: .35rem 0 1rem; }
.ac-pix__copy input { font-size: .8rem !important; }
.ac-pix__key { font-size: .95rem; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 760px) { .ac-pix { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #d6e3e0; padding: 3rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.brand--footer .brand__name { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer__safety { border-left: 6px solid var(--sun); padding-left: 1rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 2rem; padding-top: 1rem; font-size: .85rem; }
.site-footer__legal p { margin: 0; }
@media (max-width: 760px) { .site-footer__inner { grid-template-columns: 1fr; } }

/* Leaflet dentro do tema */
.leaflet-container { font-family: var(--f-body); }
.leaflet-popup-content { margin: .6rem .75rem; }

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
