
.anch-animais-wrap{
	--anch-primary:#d47745;
	--anch-primary-hover:#bf6738;
	--anch-primary-soft:#fff4ed;
	--anch-text:#172033;
	--anch-heading:#162036;
	--anch-muted:#667085;
	--anch-border:#e9e2da;
	--anch-border-strong:#ddd1c7;
	--anch-soft:#fcf9f6;
	--anch-soft-2:#f7f2ed;
	--anch-white:#fff;
	--anch-success:#176b36;
	--anch-success-bg:#eaf7ee;
	--anch-warning:#8a5b00;
	--anch-warning-bg:#fff4dc;
	--anch-danger:#a53333;
	--anch-shadow:0 18px 48px rgba(24,33,49,.08);
	--anch-shadow-soft:0 12px 30px rgba(24,33,49,.06);
	max-width:1140px;
	margin:0 auto;
	padding:58px 28px 84px;
	color:var(--anch-text);
	font-family:var(--anch-font-family,inherit);
}
.anch-animais-wrap *{box-sizing:border-box}
.anch-animais-wrap h1,.anch-animais-wrap h2,.anch-animais-wrap h3{color:var(--anch-heading);text-wrap:balance}
.anch-animais-wrap h1{font-size:var(--anch-font-page-title,64px)!important;line-height:1.08!important;letter-spacing:-.035em;margin:10px 0 18px}
.anch-animais-wrap p{line-height:1.65;font-size:var(--anch-font-body,16px)}
.anch-animais-dashboard,.anch-animais-form-page,.anch-animais-detail{position:relative;isolation:isolate}
.anch-animais-dashboard::before,.anch-animais-form-page::before,.anch-animais-detail::before{content:"";position:absolute;inset:0;border-radius:32px;background:radial-gradient(circle at top right,rgba(212,119,69,.06),transparent 26%),radial-gradient(circle at bottom left,rgba(212,119,69,.04),transparent 20%);z-index:-1}
.anch-animais-eyebrow{display:block;color:var(--anch-primary);font-weight:800;text-transform:uppercase;letter-spacing:.14em;font-size:var(--anch-font-eyebrow,12px)}
.anch-animais-breadcrumb{display:flex;align-items:center;gap:10px;margin:0 0 18px;color:var(--anch-primary);font-size:var(--anch-font-breadcrumb,14px);font-weight:700;flex-wrap:wrap}
.anch-animais-breadcrumb a{color:var(--anch-primary)!important;text-decoration:none!important}
.anch-animais-breadcrumb-home{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff4ed;font-size:13px;line-height:1}
.anch-animais-breadcrumb-sep{opacity:.5}
.anch-animais-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-bottom:36px;padding-bottom:28px;border-bottom:1px solid var(--anch-border)}
.anch-animais-heading-copy{max-width:760px}
.anch-animais-heading-copy p,.anch-animais-form-header p,.anch-animais-detail-header p{margin:0;color:var(--anch-muted);font-size:var(--anch-font-intro,17px)}
.anch-animais-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:12px 22px;border:1px solid transparent;border-radius:12px;text-decoration:none!important;font-weight:800;line-height:1.2;font-size:var(--anch-font-button,16px);transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease;color:#fff!important;cursor:pointer;box-shadow:0 10px 22px rgba(212,119,69,.18)}
.anch-animais-button:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(212,119,69,.24)}
.anch-animais-button-primary,.anch-animais-button-secondary{background:var(--anch-primary)}
.anch-animais-button-primary:hover,.anch-animais-button-secondary:hover{background:var(--anch-primary-hover)}
.anch-animais-button-outline{background:#fff!important;color:var(--anch-primary)!important;border-color:rgba(212,119,69,.46);box-shadow:none}
.anch-animais-button-outline:hover{background:#fff8f4!important;border-color:var(--anch-primary)}
.anch-animais-button:focus-visible,.anch-animais-wrap a:focus-visible,.anch-animais-wrap input:focus-visible,.anch-animais-wrap select:focus-visible,.anch-animais-wrap textarea:focus-visible,.anch-animais-wrap button:focus-visible{outline:3px solid rgba(212,119,69,.24);outline-offset:3px}

/* Meus animais */
.anch-animais-summary{display:flex;justify-content:flex-end;margin:-8px 0 18px}
.anch-animais-summary p{margin:0;color:var(--anch-muted);font-size:var(--anch-font-summary,14px)}
.anch-animais-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}
.anch-animais-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--anch-border);border-radius:24px;overflow:hidden;background:var(--anch-white);box-shadow:var(--anch-shadow-soft);transition:transform .2s ease,box-shadow .2s ease}
.anch-animais-card:hover{transform:translateY(-4px);box-shadow:0 20px 44px rgba(17,24,39,.12)}
.anch-animais-card-media{position:relative}
.anch-animais-card-image{aspect-ratio:4/3;background:linear-gradient(135deg,#faf6f2,#eee6df);display:flex;align-items:center;justify-content:center;overflow:hidden;text-decoration:none}
.anch-animais-card-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.anch-animais-card:hover .anch-animais-card-image img{transform:scale(1.025)}
.anch-animais-card-media .anch-animais-status{position:absolute;left:16px;top:16px;box-shadow:0 5px 14px rgba(0,0,0,.08)}
.anch-animais-placeholder{width:92px;height:92px;border-radius:50%;display:grid;place-items:center;background:#fff7f1;color:var(--anch-primary);font-size:48px;border:1px solid #f3dccd}
.anch-animais-card-body{display:flex;flex-direction:column;flex:1;padding:24px}
.anch-animais-card-title{font-size:var(--anch-font-card-title,27px)!important;line-height:1.16;margin:0 0 18px!important;letter-spacing:-.025em}
.anch-animais-card-title a{color:var(--anch-text)!important;text-decoration:none!important}
.anch-animais-card-meta{margin:0;display:grid;gap:9px;font-size:var(--anch-font-card-meta,15px)}
.anch-animais-card-meta>div{display:grid;grid-template-columns:minmax(105px,40%) 1fr;gap:12px;padding-bottom:9px;border-bottom:1px solid #f0efed}
.anch-animais-card-meta>div:last-child{border-bottom:0}
.anch-animais-card-meta dt{font-weight:750;color:#333}
.anch-animais-card-meta dd{margin:0;color:var(--anch-muted);overflow-wrap:anywhere}
.anch-animais-status{display:inline-flex;align-items:center;width:max-content;padding:7px 12px;border-radius:999px;font-size:var(--anch-font-status,12px);font-weight:850;letter-spacing:.025em;background:#eee;color:#444}
.anch-animais-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:7px}
.anch-animais-status-publish{background:var(--anch-success-bg);color:var(--anch-success)}
.anch-animais-status-pending{background:var(--anch-warning-bg);color:var(--anch-warning)}
.anch-animais-status-draft{background:#eef2f6;color:#475467}
.anch-animais-status-trash{background:#fdeaea;color:var(--anch-danger)}
.anch-animais-status-approved{background:var(--anch-success-bg);color:var(--anch-success)}
.anch-animais-status-pending_review{background:var(--anch-warning-bg);color:var(--anch-warning)}
.anch-animais-status-blocked{background:#fdeaea;color:var(--anch-danger)}
.anch-animais-status-archived{background:#eef2f6;color:#475467}
.anch-animais-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:22px}
.anch-animais-actions .anch-animais-button{flex:1 1 auto;font-size:14px;padding:10px 14px}
.anch-animais-actions .anch-animais-danger{background:var(--anch-danger)}
.anch-animais-message{display:flex;align-items:flex-start;gap:12px;padding:16px 18px;border:1px solid transparent;border-radius:14px;margin:0 0 26px;font-size:var(--anch-font-message,16px)}
.anch-animais-message p{margin:0}
.anch-animais-message-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--anch-success);color:#fff;font-weight:800;flex:0 0 auto}
.anch-animais-success{background:var(--anch-success-bg);border-color:#cce8d5;color:#225f37}
.anch-animais-warning{background:var(--anch-warning-bg);border-color:#f1dfb2;color:#705000}
.anch-animais-error{background:#fdeaea;border-color:#f3caca;color:#8f2525}
.anch-animais-empty{text-align:center;padding:clamp(50px,7vw,80px) 28px;border:1px solid var(--anch-border);border-radius:28px;background:linear-gradient(180deg,#fff 0%,#fdfbf9 100%);box-shadow:var(--anch-shadow);position:relative;overflow:hidden}
.anch-animais-empty::before,.anch-animais-empty::after{content:"";position:absolute;border-radius:50%;background:var(--anch-primary-soft);opacity:.8}
.anch-animais-empty::before{width:260px;height:260px;right:-130px;top:-140px}
.anch-animais-empty::after{width:180px;height:180px;left:-100px;bottom:-110px}
.anch-animais-empty-illustration{width:min(280px,70vw);height:auto;margin:0 auto 18px;position:relative;z-index:1}
.anch-animais-empty-illustration img{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;filter:drop-shadow(0 14px 24px rgba(98,55,34,.10))}
.anch-animais-empty h2{font-size:var(--anch-font-empty-title,32px);margin:0 0 10px;position:relative;z-index:1}
.anch-animais-empty p{max-width:590px;margin:0 auto 24px;color:var(--anch-muted);font-size:var(--anch-font-empty-text,17px);position:relative;z-index:1}
.anch-animais-empty .anch-animais-button{position:relative;z-index:1}
.anch-animais-help-line{text-align:center;margin:26px 0 0;color:var(--anch-muted);font-size:14px}
.anch-animais-help-line a{color:var(--anch-primary)!important;font-weight:700}

/* Formulários */
.anch-animais-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:18px;color:var(--anch-primary)!important;text-decoration:none!important;font-weight:750;font-size:var(--anch-font-back-link,16px)}
.anch-animais-form-header{max-width:820px;margin-bottom:30px}
.anch-animais-form-page{max-width:1040px}
.anch-animais-form-card{background:linear-gradient(180deg,#fff,#fefdfb);border:1px solid var(--anch-border);border-radius:24px;padding:clamp(22px,4vw,42px);box-shadow:var(--anch-shadow);overflow:visible}
.anch-animais-form-intro{display:flex;align-items:flex-start;gap:14px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--anch-border)}
.anch-animais-form-intro-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--anch-primary-soft);color:var(--anch-primary);font-size:24px;flex:0 0 auto}
.anch-animais-form-intro h2{font-size:var(--anch-font-form-section-title,26px);margin:0 0 4px}
.anch-animais-form-intro p{margin:0;color:var(--anch-muted);font-size:var(--anch-font-form-help,14px)}
.anch-animais-form-card form{margin:0}
.anch-animais-form-card .acf-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;overflow:visible}
.anch-animais-form-card .acf-field{padding:14px 0!important;border-top:0!important;min-width:0;overflow:visible}
.anch-animais-form-card .acf-field.anch-field-full,.anch-animais-form-card .acf-field[data-type="textarea"],.anch-animais-form-card .acf-field[data-type="file"],.anch-animais-form-card .acf-field[data-name="observacoes"],.anch-animais-form-card .acf-field[data-name="documento_animal"],.anch-animais-form-card .anch-animais-section-divider,.anch-animais-form-card .anch-animais-consent,.anch-animais-form-card .anch-animais-upload,.anch-animais-form-card .acf-form-submit{grid-column:1/-1}
.anch-animais-form-card .acf-label{margin-bottom:8px!important}
.anch-animais-form-card .acf-label label,.anch-animais-upload label{font-size:var(--anch-font-label,15px);font-weight:750;color:var(--anch-text)}
.anch-animais-form-card .acf-required{color:#d84d3f}
.anch-animais-form-card input[type="text"],.anch-animais-form-card input[type="email"],.anch-animais-form-card input[type="number"],.anch-animais-form-card input[type="date"],.anch-animais-form-card select,.anch-animais-form-card textarea,.anch-animais-form-card .select2-selection{width:100%;min-height:54px;border:1px solid var(--anch-border-strong)!important;border-radius:12px!important;background:#fff!important;padding:13px 14px!important;font:inherit!important;font-size:var(--anch-font-input,16px)!important;color:var(--anch-text)!important;box-shadow:none!important;transition:border-color .18s ease,box-shadow .18s ease}
.anch-animais-form-card textarea{min-height:120px;resize:vertical}
.anch-animais-form-card input::placeholder,.anch-animais-form-card textarea::placeholder{color:#98a2b3;opacity:1}
.anch-animais-form-card input:focus,.anch-animais-form-card select:focus,.anch-animais-form-card textarea:focus,.anch-animais-form-card .select2-selection:focus{border-color:var(--anch-primary)!important;box-shadow:0 0 0 4px rgba(212,119,69,.12)!important;outline:0!important}
.anch-animais-form-card .acf-radio-list{display:flex;flex-wrap:wrap;gap:10px;margin:0!important}
.anch-animais-form-card .acf-radio-list li{margin:0!important;flex:1 1 120px}
.anch-animais-form-card .acf-radio-list label{display:flex;font-size:var(--anch-font-input,16px);align-items:center;justify-content:center;min-height:50px;padding:10px 13px;border:1px solid var(--anch-border-strong);border-radius:12px;background:#fff;cursor:pointer;font-weight:650;transition:.18s ease}
.anch-animais-form-card .acf-radio-list label.selected,.anch-animais-form-card .acf-radio-list label:has(input:checked){border-color:var(--anch-primary);background:var(--anch-primary-soft);color:#8e4725;box-shadow:0 0 0 2px rgba(212,119,69,.08)}
.anch-animais-form-card .acf-radio-list input{accent-color:var(--anch-primary);margin-right:8px}
.anch-animais-section-divider{display:flex;align-items:center;gap:14px;margin:20px 0 2px;color:#71717a;font-size:12px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}
.anch-animais-section-divider::before,.anch-animais-section-divider::after{content:"";height:1px;background:var(--anch-border);flex:1}
.anch-animais-form-card .acf-field-file .acf-file-uploader,.anch-animais-upload{padding:18px;border:1px dashed #e0b8a1;border-radius:16px;background:#fffaf7}
.anch-animais-form-card .acf-field-file .acf-file-uploader p{margin:0;color:var(--anch-muted)}
.anch-animais-form-card input[type="file"]{width:100%;font:inherit;font-size:var(--anch-font-input,16px);color:var(--anch-muted)}
.anch-animais-form-card input[type="file"]::file-selector-button{border:0;border-radius:10px;background:var(--anch-primary);color:#fff;padding:10px 14px;margin-right:12px;font-weight:750;cursor:pointer}
.anch-animais-upload{margin-top:16px}
.anch-animais-help{margin:4px 0 12px!important;color:var(--anch-muted);font-size:var(--anch-font-upload-help,13px)}
.anch-animais-consent{display:flex;gap:10px;align-items:flex-start;margin-top:18px;padding:14px 16px;border-radius:14px;background:var(--anch-soft);color:var(--anch-muted);font-size:13px}
.anch-animais-consent span{color:var(--anch-primary);font-size:18px;line-height:1}
.anch-animais-form-card .acf-form-submit{position:sticky;bottom:12px;z-index:20;display:flex;justify-content:flex-end;align-items:center;margin:26px -14px -14px!important;padding:16px 14px 14px!important;border-top:1px solid var(--anch-border);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-radius:0 0 18px 18px}
.anch-animais-form-card .acf-form-submit input[type="submit"]{min-height:52px;border:0;border-radius:12px;background:var(--anch-primary);color:#fff;padding:12px 24px;font:inherit;font-weight:800;cursor:pointer;box-shadow:0 10px 22px rgba(212,119,69,.2)}
.anch-animais-form-card .acf-form-submit input[type="submit"]:hover{background:var(--anch-primary-hover)}
.anch-animais-form-card .acf-form-submit input[disabled]{opacity:.7;cursor:wait}

/* Calendário ACF/jQuery UI */
body .ui-datepicker,body .anch-animais-datepicker{width:320px!important;max-width:min(320px,calc(100vw - 24px))!important;padding:12px!important;border:1px solid var(--anch-border)!important;border-radius:16px!important;background:#fff!important;box-shadow:0 22px 48px rgba(15,23,42,.18)!important;font-family:inherit!important;z-index:999999!important}
body .ui-datepicker .ui-datepicker-header{position:relative;border:0!important;background:var(--anch-soft)!important;border-radius:12px!important;padding:10px 40px!important}
body .ui-datepicker .ui-datepicker-prev,body .ui-datepicker .ui-datepicker-next{position:absolute;top:10px;width:30px!important;height:30px!important;border-radius:10px!important;border:0!important;background:transparent!important;cursor:pointer}
body .ui-datepicker .ui-datepicker-prev{left:8px}
body .ui-datepicker .ui-datepicker-next{right:8px}
body .ui-datepicker .ui-datepicker-prev:hover,body .ui-datepicker .ui-datepicker-next:hover{background:#fff!important}
body .ui-datepicker .ui-datepicker-prev span,body .ui-datepicker .ui-datepicker-next span{display:block!important;position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;margin:0!important}
body .ui-datepicker .ui-datepicker-title{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:0 32px!important}
body .ui-datepicker .ui-datepicker-title select,body .ui-datepicker select.ui-datepicker-month,body .ui-datepicker select.ui-datepicker-year{appearance:auto!important;-webkit-appearance:menulist!important;min-height:38px!important;height:38px!important;padding:6px 10px!important;font-size:14px!important;line-height:1.2!important;border:1px solid var(--anch-border-strong)!important;border-radius:10px!important;background:#fff!important;color:var(--anch-text)!important;margin:0!important;box-shadow:none!important;max-width:none!important;width:calc(50% - 6px)!important;float:none!important}
body .ui-datepicker table{width:100%!important;font-size:13px!important;margin:10px 0 0!important;border-collapse:separate!important;border-spacing:4px!important}
body .ui-datepicker th{padding:4px 0!important;font-size:12px!important;font-weight:800!important;color:var(--anch-muted)!important;text-transform:uppercase!important}
body .ui-datepicker td{padding:0!important;border:0!important}
body .ui-datepicker td a,body .ui-datepicker td span{display:grid!important;place-items:center!important;width:36px!important;height:36px!important;padding:0!important;border:0!important;border-radius:10px!important;background:transparent!important;color:var(--anch-text)!important;text-decoration:none!important}
body .ui-datepicker td a:hover,body .ui-datepicker .ui-state-active{background:var(--anch-primary)!important;color:#fff!important}
body .ui-datepicker .ui-state-default.ui-state-highlight{background:#fff4ed!important;color:var(--anch-primary)!important}
body .ui-datepicker .ui-state-disabled span{opacity:.35!important}
body .ui-datepicker .ui-datepicker-buttonpane{display:flex!important;justify-content:space-between!important;gap:10px!important;margin-top:8px!important;padding-top:10px!important;border-top:1px solid var(--anch-border)!important;background:transparent!important}
body .ui-datepicker .ui-datepicker-buttonpane button{border:1px solid var(--anch-border)!important;border-radius:10px!important;background:#fff!important;color:var(--anch-text)!important;padding:8px 12px!important;font:inherit!important;font-size:13px!important;font-weight:700!important;cursor:pointer}
body .ui-datepicker .ui-datepicker-buttonpane button:hover{background:#fff8f4!important;border-color:var(--anch-primary)!important;color:var(--anch-primary)!important}

/* Detalhes */
.anch-animais-detail--public{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start;container-type:inline-size}
.anch-animais-detail--public .anch-animais-detail-main{flex:3 1 480px;min-width:0}
.anch-animais-detail-related{flex:1 1 280px;max-width:360px;position:sticky;top:20px}
.anch-animais-detail--public-solo .anch-animais-detail-main{flex:1 1 auto}
.anch-animais-detail-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:18px}
.anch-animais-featured{position:relative;overflow:hidden;border-radius:20px;margin-bottom:20px;background:var(--anch-soft);box-shadow:var(--anch-shadow);aspect-ratio:2.15/1;max-height:520px}
.anch-animais-featured img{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important}

/*
 * Perfil público do animal no "mesmo formato do atleta" — pedido do Vini
 * (perfil-publico-animal.php): um único cartão branco, com a foto à
 * esquerda e, à direita, o nome seguido de uma tile por campo (rótulo
 * pequeno em cima, valor em negrito embaixo) — o mesmo padrão visual do
 * "Perfil do atleta" (módulo Inscrições, .anch-athlete-profile-*), só com
 * as cores e espaçamentos do módulo Animais.
 */
.anch-animais-profile-card{background:var(--anch-white);border:1px solid var(--anch-border);border-radius:20px;padding:clamp(20px,3.4vw,32px);box-shadow:var(--anch-shadow-soft)}
.anch-animais-profile-hero{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}
.anch-animais-profile-hero--no-photo{grid-template-columns:minmax(0,1fr)}
.anch-animais-profile-photo{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:3/4;background:var(--anch-soft)}
.anch-animais-profile-photo img{width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:center!important;display:block!important}
.anch-animais-profile-head{min-width:0}
.anch-animais-profile-head h1{margin:2px 0 10px;font-size:var(--anch-font-page-title,28px)!important;line-height:1.2!important;letter-spacing:normal;overflow-wrap:anywhere}
.anch-animais-profile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:14px;margin-top:10px}
.anch-animais-profile-stats div{display:flex;flex-direction:column;gap:4px;min-width:0;border:1px solid var(--anch-border);border-radius:10px;padding:12px 14px;background:var(--anch-soft)}
.anch-animais-profile-stats span{font-size:12.5px;text-transform:uppercase;letter-spacing:.04em;color:var(--anch-muted);font-weight:700;overflow-wrap:anywhere}
.anch-animais-profile-stats strong{font-size:16px;color:var(--anch-heading);overflow-wrap:anywhere;word-break:break-word}
.anch-animais-profile-section{margin-top:28px;padding-top:24px;border-top:1px solid var(--anch-border)}
.anch-animais-profile-section.anch-animais-gallery{margin-bottom:0}

/* Galeria de fotos extras do perfil público (perfil-publico-animal.php) */
.anch-animais-gallery{margin:0 0 28px}
.anch-animais-gallery h2{font-size:var(--anch-font-detail-section-title,21px);margin:0 0 14px;color:var(--anch-heading)}
.anch-animais-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:10px}
.anch-animais-gallery-thumb{position:relative;aspect-ratio:1/1;border:0;padding:0;border-radius:12px;overflow:hidden;cursor:zoom-in;background:var(--anch-soft)}
.anch-animais-gallery-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .2s ease}
.anch-animais-gallery-thumb:hover img{transform:scale(1.06)}
.anch-animais-gallery-thumb:focus-visible{outline:3px solid rgba(212,119,69,.35);outline-offset:2px}
.anch-animais-lightbox{position:fixed;inset:0;z-index:99999;display:flex;align-items:center;justify-content:center;background:rgba(10,12,16,.92);padding:40px}
.anch-animais-lightbox[hidden]{display:none}
.anch-animais-lightbox img{max-width:100%;max-height:100%;border-radius:8px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.anch-animais-lightbox-close,.anch-animais-lightbox-prev,.anch-animais-lightbox-next{position:absolute;background:rgba(255,255,255,.14);color:#fff;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;transition:background .15s ease;line-height:1}
.anch-animais-lightbox-close{top:20px;right:20px;width:44px;height:44px;font-size:22px}
.anch-animais-lightbox-prev,.anch-animais-lightbox-next{top:50%;transform:translateY(-50%);width:52px;height:52px;font-size:26px}
.anch-animais-lightbox-prev{left:16px}
.anch-animais-lightbox-next{right:16px}
.anch-animais-lightbox-close:hover,.anch-animais-lightbox-prev:hover,.anch-animais-lightbox-next:hover{background:rgba(255,255,255,.28)}
@media(max-width:480px){
	.anch-animais-gallery-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr));gap:7px}
	.anch-animais-lightbox{padding:14px}
	.anch-animais-lightbox-prev,.anch-animais-lightbox-next{width:42px;height:42px;font-size:22px}
	.anch-animais-lightbox-close{width:38px;height:38px;font-size:19px;top:10px;right:10px}
}

/*
 * Cards de dados (Identificação, Filiação, Registro) — pedido do Vini pra
 * ficar mais sutil e compacto: eram cards grandes (padding generoso, sombra
 * forte, título com margem larga, linhas bem espaçadas), ocupando mais
 * espaço vertical do que o conteúdo em si precisava. Reduzido o respiro em
 * cada nível (padding do card, espaço abaixo do título, espaço entre
 * linhas) e trocada a sombra forte por uma bem leve — mesma informação,
 * lida com a mesma facilidade, num espaço bem menor. O tamanho da fonte do
 * título continua no controle do admin (ANCH Animais → Configurações →
 * Tipografia, "Títulos das seções de dados"); só o peso visual ao redor
 * dele (margem, cor) ficou mais discreto.
 */
.anch-animais-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.anch-animais-data-section{padding:18px 20px;border:1px solid var(--anch-border);border-radius:14px;background:#fff;box-shadow:0 1px 3px rgba(17,24,39,.04)}
.anch-animais-data-section h2{font-size:var(--anch-font-detail-section-title,21px);margin:0 0 10px;font-weight:700;color:var(--anch-heading)}
.anch-animais-data-section dl{margin:0;display:grid;gap:7px}
.anch-animais-data-section dl>div{display:grid;grid-template-columns:minmax(120px,42%) 1fr;gap:12px;padding-bottom:7px;border-bottom:1px solid #f3f2f0}
.anch-animais-data-section dl>div:last-child{border:0;padding-bottom:0}
.anch-animais-data-section dt{font-weight:700;font-size:13.5px}
.anch-animais-data-section dd{margin:0;color:var(--anch-muted);font-size:14px;overflow-wrap:anywhere}
/* Identificação/Filiação/Registro juntos num card só — pedido do Vini
   (antes eram 3 cards separados na grade). Cada grupo vira uma coluna
   interna, com um rotulozinho (h3) no lugar do h2 de card próprio. */
.anch-animais-data-section--combined{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:22px 32px}
.anch-animais-data-group h3{margin:0 0 10px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:var(--anch-primary)}
.anch-animais-athlete-link{color:var(--anch-primary)!important;font-weight:750;text-decoration:none!important}
.anch-animais-athlete-link:hover{text-decoration:underline!important}
.anch-animais-observations{grid-column:1/-1}
.anch-animais-pagination{margin-top:34px}
.anch-animais-pagination ul{display:flex;justify-content:center;gap:8px;list-style:none;margin:0;padding:0}
.anch-animais-pagination a,.anch-animais-pagination span{display:grid;place-items:center;min-width:38px;height:38px;padding:6px 10px;border:1px solid var(--anch-border);border-radius:10px;text-decoration:none!important}
.anch-animais-pagination .current{background:var(--anch-primary);border-color:var(--anch-primary);color:#fff}


/* Correção de alinhamento do estado vazio */
.anch-animais-wrap .anch-animais-empty{
	display:flex!important;
	flex-direction:column!important;
	align-items:center!important;
	justify-content:center!important;
	text-align:center!important;
}
.anch-animais-wrap .anch-animais-empty> *{
	align-self:center!important;
}
.anch-animais-wrap .anch-animais-empty-illustration{
	flex:0 0 auto!important;
	margin-left:auto!important;
	margin-right:auto!important;
}
.anch-animais-wrap .anch-animais-empty h2{
	display:block!important;
	width:100%!important;
	max-width:900px!important;
	margin:0 auto 14px!important;
	padding:0!important;
	text-align:center!important;
	line-height:1.22!important;
	letter-spacing:-.02em!important;
	text-wrap:pretty!important;
	overflow-wrap:normal!important;
	word-break:normal!important;
}
.anch-animais-wrap .anch-animais-empty p{
	display:block!important;
	width:100%!important;
	max-width:650px!important;
	margin:0 auto 28px!important;
	padding:0!important;
	text-align:center!important;
	line-height:1.6!important;
	text-wrap:pretty!important;
}
.anch-animais-wrap .anch-animais-empty .anch-animais-button{
	align-self:center!important;
	margin-left:auto!important;
	margin-right:auto!important;
}
.anch-animais-wrap .anch-animais-help-line{
	clear:both!important;
	width:100%!important;
	margin:28px auto 0!important;
	text-align:center!important;
}
@media(max-width:720px){
	.anch-animais-wrap .anch-animais-empty h2{max-width:100%!important;line-height:1.25!important;}
	.anch-animais-wrap .anch-animais-empty p{max-width:100%!important;padding:0 8px!important;}
}

@media(max-width:1024px){
	.anch-animais-wrap{padding:48px 22px 72px}
	.anch-animais-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
	.anch-animais-detail-grid{grid-template-columns:1fr}
	.anch-animais-observations{grid-column:auto}
}
/* Igual à explicação no public.css do módulo Inscrições: o @media abaixo só
   reage à largura da janela; a @container reage à largura de verdade da
   coluna de conteúdo (que numa página com sidebar/coluna estreita do
   construtor de página pode ser bem menor que a janela) — por isso o
   "Outros atletas e cavalos" quebrava pra baixo do card do animal em
   algumas páginas mas continuava travado numa largura pequena, sobrando
   espaço vazio do lado. O @media continua como reforço pra navegador sem
   suporte a @container. */
@container (max-width: 760px){
	.anch-animais-detail-related{position:static;max-width:none}
}
@media(max-width:760px){
	.anch-animais-detail-related{position:static;max-width:none}
}
@media(max-width:820px){
	.anch-animais-form-card .acf-fields{grid-template-columns:1fr}
	.anch-animais-form-card .acf-field{grid-column:1/-1}
	.anch-animais-form-card{padding:26px}
}
@media(max-width:720px){
	.anch-animais-wrap{padding:36px 16px 56px}
	.anch-animais-wrap h1{font-size:var(--anch-font-page-title-mobile,44px)!important;line-height:1.1!important}
	.anch-animais-heading,.anch-animais-detail-header{align-items:flex-start;flex-direction:column}
	.anch-animais-heading .anch-animais-button,.anch-animais-detail-header .anch-animais-button{width:100%}
	.anch-animais-grid{grid-template-columns:1fr}
	.anch-animais-card-meta>div,.anch-animais-data-section dl>div{grid-template-columns:1fr;gap:4px}
	.anch-animais-summary{justify-content:flex-start;margin-top:-8px}
	.anch-animais-form-card{padding:20px 16px;border-radius:18px}
	.anch-animais-form-intro{gap:10px}
	.anch-animais-form-intro-icon{width:40px;height:40px;border-radius:12px}
	.anch-animais-form-card .acf-field{padding:11px 0!important}
	.anch-animais-form-card input[type="text"],.anch-animais-form-card input[type="email"],.anch-animais-form-card input[type="number"],.anch-animais-form-card input[type="date"],.anch-animais-form-card select,.anch-animais-form-card textarea{min-height:50px;font-size:16px!important}
	.anch-animais-form-card .acf-radio-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
	.anch-animais-form-card .acf-radio-list li{min-width:0}
	.anch-animais-form-card .acf-radio-list label{padding:8px 6px;font-size:14px;min-height:48px}
	.anch-animais-form-card .acf-form-submit{position:sticky;bottom:0;margin:22px -16px -20px!important;padding:13px 16px max(13px,env(safe-area-inset-bottom))!important;border-radius:0 0 16px 16px}
	.anch-animais-form-card .acf-form-submit input[type="submit"]{width:100%;font-size:16px}
	.anch-animais-empty{padding:46px 18px}
	body .ui-datepicker,body .anch-animais-datepicker{max-width:calc(100vw - 18px)!important}
	.anch-animais-card-title{font-size:clamp(20px,calc(var(--anch-font-card-title,27px) * .8),27px)!important}
	.anch-animais-empty h2{font-size:clamp(24px,calc(var(--anch-font-empty-title,32px) * .78),32px)!important}
	.anch-animais-form-intro h2{font-size:clamp(20px,calc(var(--anch-font-form-section-title,26px) * .8),26px)!important}
	.anch-animais-data-section h2{font-size:clamp(18px,calc(var(--anch-font-detail-section-title,21px) * .88),21px)!important}
	.anch-animais-heading-copy p,.anch-animais-form-header p,.anch-animais-detail-header p{font-size:clamp(15px,calc(var(--anch-font-intro,17px) * .9),17px)!important}
	.anch-animais-profile-card{padding:18px}
	.anch-animais-profile-hero{grid-template-columns:1fr}
	.anch-animais-profile-photo{max-width:260px;margin:0 auto}
	.anch-animais-profile-head{text-align:center}
	.anch-animais-profile-head h1{font-size:24px!important}
	.anch-animais-profile-stats{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
}
@media(max-width:480px){
	.anch-animais-actions{flex-direction:column}
	.anch-animais-actions .anch-animais-button{width:100%}
	.anch-animais-form-card .acf-radio-list{grid-template-columns:1fr}
	.anch-animais-form-card .acf-radio-list label{justify-content:flex-start;padding-left:16px}
	.anch-animais-empty-illustration{width:min(220px,72vw)}
	.anch-animais-card-body{padding:20px}
	body .ui-datepicker,body .anch-animais-datepicker{width:calc(100vw - 16px)!important;padding:10px!important}
	body .ui-datepicker .ui-datepicker-title{margin:0 28px!important}
	body .ui-datepicker .ui-datepicker-title select,body .ui-datepicker select.ui-datepicker-month,body .ui-datepicker select.ui-datepicker-year{width:calc(50% - 4px)!important;font-size:13px!important;padding:6px!important}
	body .ui-datepicker td a,body .ui-datepicker td span{width:34px!important;height:34px!important}
}
@media(prefers-reduced-motion:reduce){.anch-animais-wrap *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Vitrine pública de animais — [anch_animais_destaque] / [anch_animais_publicos]
   (mesmo estilo de card do "Conheça nossos atletas" do módulo Inscrições:
   foto ocupando o card inteiro, nome em faixa escura por cima) */
.anch-animais-showcase-bare{max-width:none;margin:0;padding:0}
.anch-animais-showcase-full{padding-top:58px}
.anch-animais-showcase-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.anch-animais-showcase-card{flex:0 1 calc(25% - 15px);position:relative;display:block;border-radius:16px;overflow:hidden;text-decoration:none!important;color:inherit;background:#1d2327;box-shadow:0 1px 3px rgba(20,20,20,.12);transition:transform .18s ease,box-shadow .18s ease}
a.anch-animais-showcase-card{cursor:pointer}
.anch-animais-showcase-card:hover{transform:translateY(-4px);box-shadow:0 16px 34px rgba(20,20,20,.2)}
.anch-animais-showcase-photo{position:relative;aspect-ratio:3/4;overflow:hidden;background:linear-gradient(135deg,#faf6f2,#eee6df)}
.anch-animais-showcase-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;display:block;transition:transform .35s ease}
.anch-animais-showcase-card:hover .anch-animais-showcase-photo img{transform:scale(1.05)}
.anch-animais-showcase-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--anch-primary);opacity:.55;font-size:48px}
.anch-animais-showcase-overlay{position:absolute;left:0;right:0;bottom:0;padding:36px 14px 14px;background:linear-gradient(180deg,rgba(20,20,20,0) 0%,rgba(15,15,15,.82) 60%,rgba(8,8,8,.95) 100%);text-align:center}
.anch-animais-showcase-card .anch-animais-showcase-name{margin:0 0 2px;font-size:var(--anch-font-showcase-name,15.5px);font-weight:800;color:#fff!important;text-transform:uppercase;letter-spacing:.02em;line-height:1.25;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.anch-animais-showcase-card .anch-animais-showcase-meta{margin:0;font-size:var(--anch-font-showcase-meta,12.5px);color:#f6e2d2!important;font-weight:700;text-transform:uppercase;letter-spacing:.06em;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.anch-animais-showcase-empty{grid-column:1/-1;flex:1 1 100%;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;padding:64px 20px;background:#fff;border:1px dashed var(--anch-border);border-radius:14px;color:var(--anch-muted)}
.anch-animais-showcase-empty p{margin:0;font-weight:700;font-size:15px;color:var(--anch-text)}
.anch-animais-showcase-seeall{margin:18px 0 0;text-align:right}
.anch-animais-showcase-seeall a{color:var(--anch-animais-seeall-color,var(--anch-primary))!important;font-weight:700;text-decoration:none!important}
.anch-animais-showcase-seeall a:hover{text-decoration:underline!important}
@media(max-width:900px){.anch-animais-showcase-card{flex-basis:calc(33.333% - 14px)}}
@media(max-width:640px){.anch-animais-showcase-card{flex-basis:calc(50% - 10px)}}
/*
 * Celular (≤480px): 1 card por linha, não 2 — pedido do Vini, que achou os
 * cards de 2 colunas "espremidos" no mobile (nome com 2-3 palavras tipo
 * "Sara Oliveira Nonato" ou "Chama Selvagem" quebrando em várias linhas
 * dentro de uma coluna estreita de ~170px). Com o card ocupando a largura
 * inteira (até um teto de 380px, centralizado), o nome cabe confortável
 * numa ou duas linhas largas, a foto fica maior e o texto pode ser um
 * pouco maior também, sem precisar mais do "piso" mínimo (13.5px) que
 * existia só pra tentar caber na coluna estreita.
 */
@media(max-width:480px){.anch-animais-showcase-grid{gap:18px}.anch-animais-showcase-card{flex-basis:100%;max-width:380px;margin:0 auto}.anch-animais-showcase-overlay{padding:32px 16px 16px}.anch-animais-showcase-name{font-size:max(var(--anch-font-showcase-name,15.5px),16px)}.anch-animais-showcase-meta{font-size:max(var(--anch-font-showcase-meta,12.5px),13px)}}

/*
 * Busca por nome — [anch_animais_publicos] ("Conheça nossos animais").
 * Mesma linguagem visual da busca de Atletas (módulo Inscrições: lupa
 * embutida, borda e foco laranja), com os mesmos cuidados pra mobile:
 * - font-size:16px no input — abaixo disso o Safari/iOS dá zoom automático
 *   ao focar o campo, o que "quebra" a tela no toque.
 * - padding generoso (min. ~44px de altura) — área de toque confortável em
 *   vez de um campo fino pensado só pra mouse.
 * -webkit-appearance:none tira o estilo nativo de type="search" do iOS (que
 * arredonda e ignora um pouco do nosso CSS) sem perder o "x" de limpar, que
 * a gente redesenha logo abaixo.
 */
.anch-animais-search{display:flex;justify-content:center;margin:0 0 22px}
.anch-animais-search-input{-webkit-appearance:none;appearance:none;width:100%;max-width:420px;padding:13px 16px 13px 40px;border:1px solid #dfe3e8;border-radius:9px;font-size:16px;color:#1d2327;background:#fbfbfc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%238a8f98' width='14' height='14'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E") no-repeat 14px center;background-size:14px}
.anch-animais-search-input:focus{outline:2px solid #d47745;outline-offset:1px}
.anch-animais-search-input::-webkit-search-cancel-button{-webkit-appearance:none;height:18px;width:18px;margin-left:8px;cursor:pointer;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%238a8f98' stroke-width='2.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;background-size:14px}
.anch-animais-search-empty{margin:0 0 20px;font-size:13.5px;color:#8a8f98;text-align:center}
.anch-animais-showcase-card.is-search-hidden{display:none!important}
